[Vtigercrm-developers] vtwsclib and extension
Christophe Humbert
chrissc.humbert at gmail.com
Fri Jun 19 20:06:23 GMT 2015
Hello Alan
Thanks a lot
As I am using the webservices outside vtiger I have expanded WSclient.php
in vtwsclib with a doRevise function
/**
* Do Revise Operation
*/
function doRevise($module, $valuemap) {
// Perform re-login if required.
$this->__checkLogin();
$postdata = Array(
'operation' => 'revise',
'sessionName' => $this->_sessionid,
'elementType' => $module,
'element' => $this->toJSONString($valuemap)
);
$resultdata = $this->_client->doPost($postdata, true);
if($this->hasError($resultdata)) {
return false;
}
return $resultdata[result]; // Return Revised Record
}
I owe you some beers Alan
Christophe Humbert
On Fri, Jun 19, 2015 at 6:01 PM, Alan Lord <alanslists at gmail.com> wrote:
> On 19/06/15 16:35, Christophe Humbert wrote:
>
>> Hello Alan
>>
>> Does revise update all fields or only fields you pass as parameters
>>
>
> with vtws_revise you only need to pass the values you want to change. You
> do not need to pass the whole object (or at least all the mandatory fields)
> as you do with vtws_update.
>
> Al
>
>
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150619/9c77812f/attachment.html>
More information about the vtigercrm-developers
mailing list