2

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

2 Answers 2

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).

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .