- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2020 10:22 PM
Hello Experts,
I have a catalog item with check boxes and when ever there is a notification sent for approval i want to checked values to be displayed and ignore false values.
Thank You In advance.
Solved! Go to Solution.
- Labels:
-
Service Level Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2020 09:51 AM
Hi Rachel,
Can you share what values/checkbox user has selected?
Still not getting why if statements are required; the below script should show only those checkboxes which are selected/true
(function runMailScript(current, template, email, email_action, event) {
var ritmSysId = current.sys_id;
var set = new GlideappVariablePoolQuestionSet();
set.setRequestID(ritmSysId);
set.load();
var vs = set.getFlatQuestions();
for (var i=0; i < vs.size(); i++) {
var label = vs.get(i).getLabel();
var variableName = vs.get(i).getName();
var variableValue = vs.get(i).getDisplayValue();
if(label !='' && variableName !='' && variableValue.toString() == 'true')
template.print(label + ' : ' + variableValue);
})(current, template, email, email_action, event);
this would print like this
Approve Quotes : True
Read only : True
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2020 07:52 PM
Hi Ankur,
Thank You . This is working fine . I also have one more query will you be able to answer.
Will be raising an other question( in case you know the answer , since you know most of the answers and answered many.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2020 09:09 PM
Hi Rachel,
you could create new thread and post the link here; If I could help then I will
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2020 08:55 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2020 08:59 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2020 05:57 PM
Do you know where to find the GlideappVariablePoolQuestionSet documentation on all the available methods? I checked the Developer site to no avail, and Google failed me as well. Couldn't find anything in the script includes. Kinda running out of luck. Any direction is much appreciated.