How to get variable values from a MRVS and include them in a notification without writing a script

MIcheleWilliams
Tera Contributor

How do you fetch variable values from a Multi-Row Variable Set (MRVS) and include them in a notification without writing a script?

4 REPLIES 4

Nehal Dhuri
Mega Sage
Fetching and including Multi-Row Variable Set (MRVS) values in a notification without writing a script is not directly possible in ServiceNow, as MRVS data is stored as a JSON string and requires parsing to extract individual row and variable values. This parsing inherently involves scripting.
 
However, you can achieve this with minimal scripting by using a Mail Script within your notification. This approach encapsulates the necessary scripting within a dedicated script that can be called from the notification template.

You can refer to the following article for detailed steps to create a mail script for MRVS:
https://www.servicenow.com/community/developer-articles/how-to-display-multi-row-variable-set-mrvs-d...
Please hit like and mark my response as correct if that helps

Bhavya11
Kilo Patron

Hi @MIcheleWilliams ,

 

As @Nehal Dhuri  mention ,Fetching and including Multi-Row Variable Set (MRVS) values in a notification without writing a script is not directly possible. but you can try with minimal script.

 

You can refer to the this article.

 

Thanks,

BK

Ankur Bawiskar
Tera Patron
Tera Patron

@MIcheleWilliams 

Not possible.

You will require email script to grab, parse that MRVS and then print in email body.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

AparnaSahu
Tera Guru

Fetching Multi-Row Variable Set (MRVS) values directly into a notification isn’t possible without using a script.

A mail script can be created to pull the submitted MRVS data and include it in the notification (can also be done in a nice table format). If there are any reference fields, it will also return their display names.

 

In Notification  "What it contains" section

Call your mail script using the syntax - 

${mail_script:employment_details}

 

Regards,

Aparna