ServiceNow List Collector sysID to displayName on catalog task

IT Eric
Tera Contributor

I have a catalog item that contains a list collector that i will use to populate the description field of a catalog task.

find_real_file.png

 

When i use this variable, the sysID of the server selected is populated instead of the displayName
find_real_file.png

 

If i try to drill down into the variable and select the name (pulling from the cmdb_ci_server) table, it shows blank on the task. 
find_real_file.png

I've set the display field on the table to be the name but it still shows the sysID.

What should be the correct way in getting the displayName for these?

1 ACCEPTED SOLUTION

Maik Skoddow
Tera Patron
Tera Patron

Hi

a list collector field is just a String field with a comma-separated list of Sys IDs.

If you need the display names you have to iterate over the Sys IDs and lookup the relating records.

See the following article if you want to know how to build that: https://community.servicenow.com/community?id=community_blog&sys_id=e244e902dbcc2010fb4ae15b8a9619c3

Kind regards
Maik

View solution in original post

5 REPLIES 5

kdelbridge
Tera Expert

Hey @IT Eric ,

Can you share how you were able to accomplish this? 

I am having a similar issue needing to populate short description with user names selected via list collector (sys_user) and I am getting the sys_id when I really want the name.