function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Peter HerzogPeter Herzog 

Dynamic Choice - Choice Stored Value not working as expected

I am not getting the IDs of the dynamic choice options when I set it as the Choice Stored Value.

Here is what I have:

First screen, Dynamic Choice for the Contact record - Choice Label: Name Choice Stored Value: Id
Last screen, Outputs the field

Behavior:
1. Run the flow, select the contacts (I see their names)
2. Click Next
3. Last screen shows their names.  I expect and want to see their Ids.  

Screenshots:
User-added image

User-added image

User-added image

User-added image
Bohdan DovhanBohdan Dovhan
If you want to see Id, you should have probably choose Id as Choice Label since Choice Label is what displayed actually on the flow.
Peter HerzogPeter Herzog
But in my scenario how is ID accessed?  I want choice label to be Name but I want to capture the Id for processing.  
Chris BockChris Bock
You must reassign the screen field using the dynamic choice element to a text variable and then that text variable will have the Choice Stored Value -- ID in your example (or for multi-value choices a semicolon-delimited list of values. Multiple values are actually delimited by semicolon and a space, so you have to take the space into consideration when parsing the list of values in the text.)