+ Start a Discussion
Amanda Byrne- Carolina Tiger RescueAmanda Byrne- Carolina Tiger Rescue 

How do I create a collection from a semi-colon delimited variable in Visual Flow?

I'm using Visual Flow and have a multi-select checkbox input that puts the checked results into a semi-colon delimited variable (populated with Contact Ids).  Now I need to use this variable to build an SObject Collection so I can fast update the selected records.

How could I go about this?
ShashankShashank (Salesforce Developers) 
We would need string functions like the ones in Apex to be able to make a list out of the comma delimited variable. The same are not available in formulas, so I'm not sure if there is a straight forward way to do this using flows.

As a workaround, instead of adding them into a comma-delimited variable, you can may be add them into a "collection variable".

 
Gary WGary W
For anyone else looking for a solution for handling delimited strings in flows, this installable apex flow action should come in handy. https://unofficialsf.com/new-flow-actions-to-convert-csv-strings-to-string-collections-and-vice-versa/