The CreatorCon Call for Content is officially open! Get started here.

Can I include field values other than display value from records selected via List Collector?

Chad7
Tera Expert

I have a list collector field on a catalog item where a user can select a product. The display value of the product is its name, and using the ref_ac_columns variable attribute, I am able to also display its product code, which works exactly how I want it to.

 

I'm then taking the selected values and I'm listing them in the Description field of the resulting ticket via script in its workflow... the problem I'm having is that I can't figure out how to also include the product code along with the name for each selected product, so they will be written like Product 1 P0001, Product 3 P0003, Product 5 P0005, etc. Is there a way to do this?

1 ACCEPTED SOLUTION

Sandeep Rajput
Tera Patron
Tera Patron

@Chad7 Please refer to this thread https://www.servicenow.com/community/developer-forum/list-collector-reference-dot-walking/m-p/165695... where the author has suggested to extract the sys_ids array from list collector field, loop through the array and inside the loop do a glide record to the table to extract values of Product id and name fields. You can add these values in the description inside the loop.

 

Hope this helps.

View solution in original post

1 REPLY 1

Sandeep Rajput
Tera Patron
Tera Patron

@Chad7 Please refer to this thread https://www.servicenow.com/community/developer-forum/list-collector-reference-dot-walking/m-p/165695... where the author has suggested to extract the sys_ids array from list collector field, loop through the array and inside the loop do a glide record to the table to extract values of Product id and name fields. You can add these values in the description inside the loop.

 

Hope this helps.