[Vtigercrm-developers] User Webservice can't update Org

Sukhdev Mohan s.mohan at myti.it
Wed Dec 9 10:41:12 GMT 2020


Thanks Alan,  checking if I’m missing the mandatory fields

Best Regards,
Sukhdev Mohan | Software Developer







> Il giorno 9 dic 2020, alle ore 11:02, Alan Lord <alanslists at gmail.com> ha scritto:
> 
> 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/
> _______________________________________________
> http://www.vtiger.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20201209/5ac2aff8/attachment.html>


More information about the vtigercrm-developers mailing list