Tuesday, 23 October 2012

Add Values To A MultiPicklist In Apex

How easy is this

Simple as this create a String which separates the individual values with a ';' and assign the picklist to this String

myobj__c.myMultiPicklist__c = 'PicklistA;PicklistB;PicklistC';
update myobj__c;

No comments:

Post a Comment

Note: only a member of this blog may post a comment.