[Vtigercrm-developers] Webservice revise "Permission to perform the operation is denied for id"
Alan Lord
alanslists at gmail.com
Thu Jun 7 15:33:00 GMT 2018
Not a terribly helpful message to be honest.
I am trying to do a simple remote revision to a Contact record over the
REST Webservices API using vtwsclib-1.6.
* doDescribe works fine.
* doCreate works fine (am adding Tasks or Comments to an existing Contact
But every time I try doInvoke('Revise' $params) I get the above error
back and in the vtiger debug log I see the following at the end of the
log file...
> Thu Jun 7 15:14:29 2018,280 [22179] DEBUG webservice - Prepared sql query parameters : [31]
> Thu Jun 7 15:14:29 2018,282 [22179] DEBUG webservice - Prepared sql query being executed : SELECT allowduplicates FROM vtiger_tab WHERE name=?
> Thu Jun 7 15:14:29 2018,282 [22179] DEBUG webservice - Prepared sql query parameters : [Contacts]
> Thu Jun 7 15:14:29 2018,335 [22179] INFO VT - PearDatabase ->ADODB disconnect
> Thu Jun 7 15:14:29 2018,374 [22179] DEBUG webservice - Prepared sql query being executed : select * from vtiger_ws_operation where name=?
> Thu Jun 7 15:14:29 2018,374 [22179] DEBUG webservice - Prepared sql query parameters : [revise]
> Thu Jun 7 15:14:29 2018,374 [22179] DEBUG webservice - Prepared sql query being executed : select * from vtiger_ws_operation_parameters where operationid=? order by sequence
> Thu Jun 7 15:14:29 2018,375 [22179] DEBUG webservice - Prepared sql query parameters : [14]
> Thu Jun 7 15:14:29 2018,375 [22179] DEBUG user - Entering Users() method ...
> Thu Jun 7 15:14:29 2018,375 [22179] DEBUG webservice - Entering getColumnFields(Users) method ...
> Thu Jun 7 15:14:29 2018,375 [22179] DEBUG webservice - in getColumnFields Users
> Thu Jun 7 15:14:29 2018,375 [22179] DEBUG webservice - Prepared sql query being executed : SELECT tabid, name, ownedby FROM vtiger_tab
> Thu Jun 7 15:14:29 2018,376 [22179] DEBUG webservice - Prepared sql query being executed : SELECT tabid, fieldname, fieldid, fieldlabel, columnname, tablename, uitype, typeofdata, presence
> FROM vtiger_field WHERE tabid in (?)
> Thu Jun 7 15:14:29 2018,376 [22179] DEBUG webservice - Prepared sql query parameters : [29]
> Thu Jun 7 15:14:29 2018,377 [22179] DEBUG webservice - Exiting getColumnFields method ...
> Thu Jun 7 15:14:29 2018,377 [22179] DEBUG user - Exiting Users() method ...
> Thu Jun 7 15:14:29 2018,380 [22179] DEBUG webservice - Prepared sql query being executed : SELECT * FROM vtiger_tab
> Thu Jun 7 15:14:29 2018,382 [22179] DEBUG webservice - Prepared sql query being executed : SELECT fieldname,modulename,tablename,entityidfield,entityidcolumn from vtiger_entityname
> Thu Jun 7 15:14:29 2018,384 [22179] DEBUG webservice - Prepared sql query being executed : select * from vtiger_ws_entity where id=?
> Thu Jun 7 15:14:29 2018,384 [22179] DEBUG webservice - Prepared sql query parameters : []
Note the final line. There is NO id being passed to the query (This is
in VtigerWebserviceObject.php in the fromId method).
The $params array I am sending contains 2 key=>value pairs:
> (
> [mailingcountry] => Some data about mailing country
> [id] => 12x2
> )
12 is the wsid for Contacts and 2 is the crmid of my contact.
This is a clean installation of vtiger 7.1.0+ (pulled from master on
code.vtiger.com just today).
Anyone got any ideas?
As I said, other functions, including create, work fine.
Al
More information about the vtigercrm-developers
mailing list