List values in Flow Designer are showing as sys_ids instead of Values

Russ Heard3
Mega Expert

Hi,

First time creating a Flow in Flow Designer, want to send an email to interested parties about Failed Changes.

One of the Change columns I want to show on the email is the 'Region Affected' which is a Choice List of one to six regions.

The Regions are being returned as a list of sys_ids, rather than a list of text values.
Does this mean Choice Lists cannot be shown, or am I doing some thing wrong (as I suspect)?

Choice List 

find_real_file.png

Change record

find_real_file.png

Email Body generated 

find_real_file.png

 

Thanks!
Russ                       

1 ACCEPTED SOLUTION

In this case a simple way to go would be to first do a look up of all region records that is on the trigger record, then loop through all records, and store their display names in a Flow variable.
Once done, use the data in the Flow variable as input in your email action.

I've made a simple example for you to examine and alter it so that it fits your needs.

find_real_file.png

View solution in original post

15 REPLIES 15

Hi @DKSINGH 

It would probably be better for you to post your own question as the discussion here is about 3 years old now.

Outside of that, you wouldn't loop through using For Each for the list field, as that means you will pass a message...for each...value selected in this field.

Instead, you'd want to pass just the value of the list field, which would be a comma-separated list of sys_id or retrieve their display name.


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi,

Thanks for providing all that.

As mentioned, you'd have to loop through the table which contains those sys_ids to then get their display value. The other option would be to use script for the body, but then you'd have to script the entire thing. Just wanting to provide that piece for maybe the future?

find_real_file.png

Using the above example would net you a body in email that share the display names (same would work for your other field, you'd just swap out 'watch_list' with the name of your field.

find_real_file.png

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Russ Heard3
Mega Expert

Thanks both for your help, I got the required result !
Safe to say I probably would not have figured that out anytime soon.

Thanks,
Russ

find_real_file.png 

find_real_file.png

 

find_real_file.png

 

Hi Russ,

Just reviewing your output on the email, for your Regions =  can you tell me how you were able to get the spaces to appear for the output? "EMEA UK&I "  

I was successful to get the results I needed, from this post, but my results, unfortunately, are grouped together so the output looks like one log word. Is there a way to space or add commas to separate?


Much appreciate your assistance

Joel

astanley
Tera Contributor

Hello,

Have you found a solution for this?