[Vtigercrm-developers] using vtws_update fails for user objects

Hamono, Chris (DPC) Chris.Hamono at sa.gov.au
Thu May 7 06:56:12 GMT 2015


User objects are exposed through the webservice, but if you try to update a user record via that interface it fails.

The reason it fails is because the update is missing the mandatory password fields. As these fields can't be supplied during an update process (they aren't known). you can't update a user entity.

The workaround is remove the mandatory flags from the password fields using the following sql.

UPDATE `vtiger_field` SET `typeofdata` = 'P~O' WHERE `tablename` = `vtiger_field`.'vtiger_users' AND `vtiger_field`.`fieldname` IN ('user_password','confirm_password');

This is a bit of a hack ....

Chris

P.S. Don't blindly run the above sql make sure its ok for your system...

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


More information about the vtigercrm-developers mailing list