[Vtigercrm-developers] vtws_revise multiselect field

Conrado Maggi comaggi at gmail.com
Wed Feb 24 15:57:41 GMT 2016


Hi,

Have you tried sending the array instead on the values with |##|?



El miércoles, 24 de febrero de 2016, Estefan Civera <
estefan.civera at gmail.com> escribió:

> Hi all I need to modify via revise function a multi select field
>
> Multiselect field works well infact from crm I can add remove field
> normally.
>
>
> With retrieve I obtain my record...
> global  $current_user;
> $wsid = vtws_getWebserviceEntityId('Accounts', '5'); //
> Module_Webservice_ID
> x CRM_ID
> $record = vtws_retrieve($wsid);
>
> I obtain this data in this format for mutiple picklist
> //$record['brandcategory'] = "Contemporary |##| Avantguard |##| Street |##|
> Urban |##| Design |##| Other";
>
> Now I need change brandcateory field
>
> $data['brandcategory'] = "Contemporary |##| Avantguard";
> $data['id'] = $wsid;
> $record = vtws_revise($data, $current_user);
>
> Revise seems works well and no fail infact it change field in database and
> modtracker see the changes but when I go to edit record in EditView field
> is
> empty.
>
> Can someone help me!?
>
>
>
>
> -----
> Ing. Estefan Civera
> Vtiger developer and consultant
> http://www.estefancivera.net
> Italy
> --
> View this message in context:
> http://vtiger-crm.2324883.n4.nabble.com/vtws-revise-multiselect-field-tp18501.html
> Sent from the vtigercrm-developers mailing list archive at Nabble.com.
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20160224/fd4941c2/attachment.html>


More information about the vtigercrm-developers mailing list