0

I retrieved a multi-selected picklist values and I received the values separated by comma as below.

enter image description here

enter image description here

But I noticed another post with answer that selected multi values is separated by semicolon, how multiple values from a multi-select picklist represented in Apex

Can anybody confirm which one is correct, comma or semicolon? Thanks...!

  • AFAIK it's ';' separated. If it's not a restricted picklist, not sure if there's any automation in your org to save them as ',' separated. – highfive Dec 21 '18 at 6:33
1

By default in apex it will give you semicolon only. so split values by semicolon if you want in list.

0

The values are separated by semi-colons, and no spaces. It is possible to have a value of "NE, SD", but that is only a single value, not two distinct values. Someone likely imported data with the incorrect format.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.