I have a multi-select picklist field that I need to transform to an array of number to use in a API. How can I do this in a Flow?




1 Answer 1


This is a hard problem for Flow to do directly so you'll need to escape to Apex via an Apex Action. Fortunately, the good folks at UnofficialSF.com have one already built that you can install


One of the options is to return a collection of strings for each element in the MSP

  • Input is the record + name of MSP field + action
  • Output depends on action, but in your case, a collection of strings for each selected MSP value for that record.

Once you get back a collection of strings, you can loop through that collection in Flow and use formula expressions to turn into a collection of numbers

  • Hi, thanks for the answer. Would it be possible to input a field from the flow screen component with this? Thanks Jun 17 at 11:31
  • if you construct a record variable from screen input, then yes
    – cropredy
    Jun 17 at 15:34

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.