Why Im not getting the Incident Number in email notification

Alon Grod
Tera Expert

Hi,

I have a schedule job that suppose to send an email using event registry when some condition is met. The problem is that the email is being send but Im not getting the Incident Number in the subject. What am I doing wrong?

WhatsApp Image 2023-12-20 at 13.50.00.jpeg


WhatsApp Image 2023-12-20 at 13.50.40.jpeg

WhatsApp Image 2023-12-20 at 13.52.06.jpeg

1 ACCEPTED SOLUTION

Anil Lande
Kilo Patron

Hi.,

On your line no 11 add 2nd parameter as gr, you have added current.

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

View solution in original post

6 REPLIES 6

swathisarang98
Giga Sage
Giga Sage

Hi @Alon Grod ,

 

Could you please add gr.number in your code as below  then it will work .

 

gs.eventQueue('test_event',gr, gr.number, gs.getUserName());
 

Please check and Mark Helpful and Correct if it really helps you.

Regards,

Swathi Sarang

Ankur Bawiskar
Tera Patron
Tera Patron

@Alon Grod 

@Anil Lande has pointed the mistake and has shared the correct answer.

Please do the necessary changes and share the update. If it works please mark his response as correct.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader