how to add incident number in request item table notification

Vinod S Patil
Tera Contributor

Hello Team,

I have requirement to trigger the notification when catalog item server failed.
I have created email script to add all the variable value from the "Storage" catalog item.

created notification with run type fired event.
Created event with storage and table name is 'request item'.

In flow designer created event fire action to fire the event and selected the table name as incident.

Here my question is how to add this incident number in the notification body? 

Go through below screen shot for understanding

VinodSPatil_0-1747923732141.png



VinodSPatil_1-1747923786721.png

 

VinodSPatil_2-1747923838266.png

This event is added in the subflow of the flow.

 

 

 


please suggest me

@Ankur Bawiskar 

2 ACCEPTED SOLUTIONS

Pankaj kr
Kilo Sage

Hi @Vinod S Patil ,

 

Try changing table name in flow to sc_req_item (same as event registry) and pass your incident number in the parameter. From email script or notification you can easily dot walk and use ${event.parm1} for putting in the notification body. For more debugging kindly share your email script as well.

 

If this helped you, pls mark this as helpful and accepted.

View solution in original post

Ankur Bawiskar
Tera Patron
Tera Patron

@Vinod S Patil 

if you pass the correct incident number in Event parm1 then it should work

are you sure you are dot walking till Number in that Data pill?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

7 REPLIES 7

Vinod S Patil
Tera Contributor

@Ankur Bawiskar 
@Pankaj kr 

As you can see above screen shots, in flow event using incident table but in event registry and notification using requested item table name.
In event logs I can see event is processed but notification is not triggering.

Please suggest what im missing here.

@Vinod S Patil 

that's the reason it's not triggered

Notification, event should be on same table

If notification and event is on RITM table then how and from where INC is being fetched?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Vinod S Patil
Tera Contributor

Thank you @Ankur Bawiskar  @Pankaj kr 

Thank you for your suggestion, it helped to complete my requirement.

just quick note what I have done.

In event registry table is empty, not giving any table name.
Flow fire event given the requested item table name but in par1 adding the incident number from the above flow's step.
In notification also selecting same requested item table.

Now its working completely fine. suggestion is not to use different table in flow fire event and notification.
because of this mistake notification was not being trigger.