[Vtigercrm-developers] User Webservice can't update Org
Alan Lord
alanslists at gmail.com
Wed Dec 9 10:02:25 GMT 2020
It would help to see some code. But a couple of suggestions (I don't
recall having issues using vtws_revise or vtws_update on any particular
module).
The data payload for vtws_update() *must* contain data for all mandatory
fields - even if they do not change. vtws_revise() permits update to
just a single field, or more, without having to ensure all mandatory
fields are in the payload.
Make sure you have the right wsid for the Accounts module.
HTH
Al
On 09/12/2020 09:54, Sukhdev Mohan wrote:
> Hi all,
> As per title, I’m trying to release an API to a client which abstracts
> some logic, basically they’ll use it to update an entity and the API
> will will get the correct element from the db and call the vtws_update().
>
> I’ve tried it out with contacts and when testing Org it continues to
> give me ACCESSDENIED for id. After some debugging/reverse engineering I
> narrowed it to VtigerCRMObjectMeta.php::computeAccess()
>
> I’m using webservice user with profile webservice, which has write,
> update,create,delete access same as contacts. In shared access Org is
> public, if this may help.
> Can you help?
>
>
> Best Regards,
> *Sukhdev Mohan* | *Software Developer*
>
>
>
>
>
>
>
> _______________________________________________
> http://www.vtiger.com/
>
More information about the vtigercrm-developers
mailing list