Getting display values from list collector in Flow Designer

Abbottronix
Tera Guru

I'm making a flow for a catalog item that has a list collector variable that collects users. I want to list the users from the list collector variable in the description of a task. If I take the list collector data pill and insert it into the task description like so: 

Screenshot 2024-02-13 145412.png

 

It comes out looking like this:

 

Screenshot 2024-02-13 145512.png

Does anyone know a way to get the values from the list collector and display them as names instead of sys ids?

3 REPLIES 3

Sumanth16
Kilo Patron

Hi @Abbottronix ,

Please refer below thread:

https://www.servicenow.com/community/developer-blog/using-list-collector-in-flow-designer-for-each-l...


Hit like, Helpful or Correct depending on the impact of the response

 

Thanks & Regards,
Sumanth Meda

Aman Kumar S
Kilo Patron

Hi @Abbottronix 

There are two ways you can achieve this.

Either, you can use the foreach flow logic, to iterate through the list collector of the users that you have and Lookup the user table and fetch the user name and store that in the flow variable, and pass that along in the description.

OR, you can simply use the script editor for the description filed, and iterate through the list collector and glide the user table to get the names of the user, and set the string value for the description.

 

Best Regards
Aman Kumar

JMEKALA
Tera Contributor

hi @Abbottronix ,

Did you find the solution? I have the same question. I want to display the user's email and username in a short description. Can you help me with this?