ServiceNow GlideappVariablePoolQuestionSet
Summary
Recently I was tasked with adding all variables from a ServiceNow Request to an email. This is where you can use the function GlideappVariablePoolQuestionSet. I’ll use of a few examples that leverage the OOB items in a ServiceNow Personal Developer Instanace.
Add all RITM variables to an email sent to the Requester
In this example, we will place all variables for all RITM records in the Request in an email to the requester.
- Create a mail script named “add RITM variables”
- On the OOB request.general notification template, add the mail script to the bottom. Note that this notification is on the sc_request table
Notification Change
Sample Result
Add all RITM variables to an email sent to the Catalog Task Fulfiller
In this example, we will place all variables for all RITM records in the Request, in an email to the Catalog Task Fulfiller.
- Create a mail script named “add RITM variables to task”
- On the OOB sc_task.itil.role notification template, add the mail script to the bottom. Note that this notification is on the sc_task table.
Notification Change
Sample Result
Bonus - Add variables to the subject line
While doing this I realized you can also add variables to subject lines. For example, this will override the default subject by adding this script to the sc_task.itil.role notification template.
Mail Script
Notification Change
Sample Result
Leave a comment