Can I use 'catalog variables' in conditions on email notifications
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2024 11:48 AM
Can I use 'catalog variables' in conditions on email notifications?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2024 11:58 AM
Hi there,
Yes, and zero scripting:
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2024 02:19 AM
Hi Mark, Thank you for your reply. But I have written my Notification on sysaproval_approver table. So the catalog variables on RITM table. I am not sure how can I add catalog variables in condition?
Just assume the catalog variable 'Access' is a Type of Select Box with options prod and non_prod.
So my Notification should be execute if the Access is non_prod.
or is it possible with by writing script in Advanced condition like below:
var v = current.sysapproval.ref_sc_req_item.variables.access;
answer = v?"true" == v:non_prod;
I tried with above code but the notification is not triggering.
I tried to put some logs:
gs.log(v) is printing- non_admin but when I try to print gs.log(answer)- it's False so that might be the reason.
What was the issue with my script?