Can I use 'catalog variables' in conditions on email notifications

Sarah Bouil
Tera Expert

Can I use 'catalog variables' in conditions on email notifications?

2 REPLIES 2

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

Yes, and zero scripting:

MarkRoethof_0-1712084289982.png

 

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

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

LinkedIn

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?