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
withoutmewithoutme 

Multi-select picklist

I have a multi-select picklist field (multi__c) on the User object.

I'm writing a after-insert/update trigger on the object.

 

OBJECTIVE: check multi__c. Get values.

1. Then if multi__c==A, insert record on custom object.

 2. if multi__c==B, insert record on custom object.

3. multi__c==A and B, insert two records in custom object.

 

Now, the problem. Which method for picllist do I use to get values of the multiselect picklist?

Is this possible?

sgoremasgorema
hi there, am looking to do something similar. Get the values in a multi select picklist and then add them as seperate records to a child object. If you find out anything can you post it here? thanks!
withoutmewithoutme

multi-select picllist are stored as ';' separated values

i used a split string method

String [] x = user.multi__c.split(';',0);

hope this helps