1

I currently pass a list of strings from my apex class to a flow. The list of strings {!cancellationReasonsList} I pass to a choice recource. The choice recource I pass to a picklist. Instead of ending up with a picklist I get 1 value with the whole list of strings. What am I mising?

I found this answer but dont see what is different: https://developer.salesforce.com/forums/?id=906F0000000AaLOIA0

Flow Choice resource enter image description here

Picklist enter image description here

Value screen picklist enter image description here

1

As of now, there isn't a way to pass a list of string values and display as dynamic choices in the flow's picklist component.

You can check for some alternatives in a similar question asked. (Screen Flow Picklist from Lightning Component).

| improve this answer | |
0

You can solve this today using the Quick Choice extension

Choice resources can be confusing. Each one represents literally a single choice.In the page that you link to, a single value is being assigned to a single choice resource. In theory you could define 20 choice resources and assign a different choice to each one, but just use Quick Choice instead until we add this properly to the built-in picklist support.

| improve this answer | |

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.