Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Use Event and inbound action to send notification

rez4
Kilo Guru

I want to generate an email notification when an update is made to the hr case work notes in the closed state.

This is what I have in the inbound action 

 if (current.state == "3" || current.state == "4")
        gs.eventQueue("sn_hr_core.closed.case.updated", current, email.origemail, gs.getUserName());

 

Servicenow receives the email and event gets triggered but I don't get the notification in the Outbox

notification when to send is set to the event

who will receive set to parm 1 ( should be sender of the email)

I use BR and everything worked fine

how should I test the Inbound action

1 ACCEPTED SOLUTION

rez4
Kilo Guru

I had a suggestion to move the event to the global scope that caused the event to not trigger. When I added the event back to the hr scope it worked

View solution in original post

2 REPLIES 2

Yousaf
Giga Sage

Hi Rez,

Did you check that inbound properties are enabled?

find_real_file.png

 

Mark Correct or Helpful if it helps.


***Mark Correct or Helpful if it helps.***

rez4
Kilo Guru

I had a suggestion to move the event to the global scope that caused the event to not trigger. When I added the event back to the hr scope it worked