function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
tlaappdev1tlaappdev1 

getPicklist in the future?

is there any planning or future for the php toolkit to include support for picklist searching and updating?

I can't update a picklist field via the update command, unless im doing something wrong and if so can someone post some code snippits on howto accomplish this?
sf_davesf_dave
I'm about to start doing the same where we update a picklist from an external application in php.  From digging around in the docs it looks like you can select values of a picklist and it is returned as a semicolon delimted list.
Code:
In the following example SOQL notation, the query filters on values in the MSP1__c field that are equal to AAA and BBB selected (exact match):
MSP1__c = 'AAA;BBB'

In the following example SOQL notation:
MSP1__c includes ('AAA;BBB','CCC')

the query filters on values in the MSP1__c field that contains either of these values:
    * AAA and BBB selected.
    * CCC selected. 

A match will result on any field value that contains 'AAA' and 'BBB' or any field that contains 'CCC'. For example, the following will be matched:
    * matches with ' AAA;BBB':
             'AAA;BBB'
             'AAA;BBB;DDD'

 so is it possible to update a feild with the same syntax?
Code:
class Data
{
 public MyPickList;
 public Id;
}

$data = new Data();
$data->Id = 'ABC123';
$data->MyPickList = 'Item1;Item2;Item4';
$salesforce->update(array($data), 'Contact');

Thanks,
-Dave