Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Writing list collector display values to text fields with flow designer

dondandrea
Tera Contributor

I need to write the display values from a list collector to a text field. The ultimate use case is to use the values through an integration using integration hub. I can get that to work once I'm able to write the data to a text field.

I'm trying to avoid the creation of a new action if at all possible. I'm hoping ServiceNow has a way of doing this that is simple that I am simply unaware of. 

My first attempt was just dropping the pill in the filed and that returned a comma separated list of sys_id
 
My second attempt used the following block of code and achieved the same results.
 
var sillyName = fd_data._1__get_catalog_variables.variable_name;
return sillyName;
 
My third attempt was the following block of code that doesn't populate anything.
 
var sillyName = fd_data._1__get_catalog_variables.variable_name.getDisplayValue();
return sillyName;
 
Thanks in advance
8 REPLIES 8

dondandrea
Tera Contributor

The list collector does not seem to work like a related list field. 

JC S_
Mega Guru

Were you able to figure this out? We have the same requirement to do this recently.

Check out my reply to this thread for a possible solution.

KaMmILa__
Tera Expert

did any of you able to figure this out? We have the same requirement to do this recently.