In Salesforce, we have a custom object built that has a picklist for one of the values. I'm not sure how to set the picklist value with SOQL. Anyone have any ideas?
Here's what I'm currently doing:
PHP Code:
$soqlcmd = "Select e.PickListField, e.Id from CustomObject e where e.Id = '" . $id . "'";
$result = $this->client->query($soqlcmd);
foreach ($result->records as $record){
$sObject = new sObject();
$sObject->type = 'CustomObject';
$sObject->Id = $record->Id;
$sObject->fields = array('PickListField' => $newPickListValue);
$returnResult = $this->client->update(array($sObject));
}
Bookmarks