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.

How to retrieve list collector ritm variable value in email script for notification in servicenow

Neha Tiwari5
Tera Contributor
 
1 ACCEPTED SOLUTION

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

Within a mail script you can just use current.variable_name. This will obviously give you a comma separated list of sys_ids since its a list collector. Depends really on what you want to do with the values? Perhaps applying getDisplayValue() is already sufficient for you? If not, explain your question.

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

View solution in original post

1 REPLY 1

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

Within a mail script you can just use current.variable_name. This will obviously give you a comma separated list of sys_ids since its a list collector. Depends really on what you want to do with the values? Perhaps applying getDisplayValue() is already sufficient for you? If not, explain your question.

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn