We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Configuring conditional script in service now trigger

SiluniP
Tera Contributor

I need to trigger an email notification based on a few conditions being met.

I have used the ServiceNow Workflow Studio to implement the trigger, and now I need to add some advanced conditions so that the trigger runs only when those conditions are satisfied.

I couldn't find any place to attach a conditional script. I would appreciate any input related to configuring a script for a ServiceNow trigger.

5 REPLIES 5

Ricardo26
Tera Guru

Hi,

 

If you need to trigger a notification via script, you can create and event and set the notification to be trigged when the event is fired.

Then you use gs.eventQueue('event_name'); on your javascript code after you conditions being evaluated

The documentation is here: Create an event 

 

If it is helpful, accept the answer.