We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Does any on know how to trigger the location.affected notification

jamesbet23
Tera Contributor

Anyone knows how this notification trigger or sends?

1 ACCEPTED SOLUTION

Sure, to trigger the event:

  1. Add location affected [task_location] record with a reference to a task table record and a location [cmn_location]
  2. Update record (br is only update not insert)
  3. location.affected event fired, confirm from [sysevent].

Note that if you have location hierarchy setup properly the event will bubble to the top of the parent-child hierarchy.

 

Might be you are actually struggling with the subscribable notification. So, how to trigger the notification?

  1. It is a subscribable notification so you need to subscribe to it [sys_notif_subscription] by using the notifications preferences experience for example lauri457_0-1771388756164.png
  2. When you are testing it notice that the email is set to not send to event creator so if you update the incident you won't get the notification OOB
    lauri457_1-1771388917536.png

 

 

 

View solution in original post

12 REPLIES 12

BharatC
Tera Contributor

Hello @jamesbet23 

 

Notification Name: Affected location notifications

 

Trigger Condition:   javascript:new AffectedUtils().hasAffected(current, "task_location", "task");

 

It means if this task have any related records in the  "task_location" table?

then it triggers the Business rule and then notification

 

Please mark this response as Helpful & accept it as solution if it assisted you with your question.
Regards

 

lauri457
Tera Sage

The br "Affected location notifications" on task

/sys_script.do?sys_id=0a7daca70a0a0b1d00b156b6b953267b

Can you walk me through it cause I already seen that business rule and got no Idea how to trigger it.

Can you walk me through it? As I am still wondering how to trigger that on the incident.