9

I am creating a lightning flow & trying to create an input with dynamic choices. On the basis of some decisions I am using get Records with different filter criteria to get records & using Record Collection variables to store those records.

I am looking for a way with which I would like to add all filtered records from Record collection variable to a Record choice set which can be used in a picklist input.

Thanks

3
  • G, Did you find the solution to this problem ? I also want to use record collection variable in record choice set but can't.
    – lambad
    Jul 24, 2020 at 13:19
  • You can refer automationchampion.com/2015/02/03/…
    – Aakriti.G
    Jul 24, 2020 at 13:34
  • Aakriti.G, I still could not figure out how we can use collection variable in record choice set. Can you answer it plz ?
    – lambad
    Jul 25, 2020 at 8:23

1 Answer 1

1

Okay, so, this is probably very, very, late, so I don't know if it was a possible solution when you asked, but it does look like there's something now, for screen flows at least.

Partial screenshot: picklist choices via "Collection Choice Set"

To explain the screenshot a bit:

  1. Create a screen flow, or open up the one you were tinkering with.
  2. Get whatever records you wanted to pull your choices from (I used leads for this example), wherever you like so long as it's before the screen you want to display these choices on. Remember to store "all records" instead of "the first one".
  3. Add or open the aforementioned screen element.
  4. Find the "picklist" component and add one to the screen, where you want it on the layout. Name it and so on.
  5. In the "enter value or search resources" space under "Choice" (that red-outlined bit on the screenshot), pick "New Choice Resource".
  6. Pick "Collection Choice Set". Note: you can also pick "Record Choice Set", which lets you do step 2 right there.
  7. Pick the field you want to generate your picklist values off of. In the screenshot, this is "City", so you'd get a bunch of choices like "Mumbai" or "Annapolis" as your resulting picklist values.

You must log in to answer this question.

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