+ Start a Discussion

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?

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!

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

i used a split string method

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

hope this helps