开发者

Salesforce, using picklist programmatically. Is it possible to "select" a picklistEntry

开发者 https://www.devze.com 2023-01-24 05:26 出处:网络
Wondering if it\'s possible to set a picklistEntry as开发者_如何学Go \"selected\" programmatically. I know usually a user will be doing this, however, I want to do this programmatically because I\'m s

Wondering if it's possible to set a picklistEntry as开发者_如何学Go "selected" programmatically. I know usually a user will be doing this, however, I want to do this programmatically because I'm sending an email to salesforce, and the value is already there.

Scenario: Send an email to salesforce that will create a custom object. The email will have the field for picklist as well as the picklistEntry.value() in a string format. ie. "Programming Languages: PHP, JS, RoR" I have it splitting up into "Programming Languages" and "PHP" "JS" "RoR".

Inside salesforce, there is a multipicklist(multi-select) for Programming Languages, for PHP, JS, RoR and more.

How do I make sure that the custom object field "Programming_Languages" will have PHP, JS, RoR selected and not the other ones?

Thanks.


It will take a string value, separated by semicolons. So your programming languages might looks something like:

object__c.Programming_Languages__c = 'PHP; JS; RoR'; 
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号