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.

Email Notification is showing RITM number instead of SCTASK number in the notification.

Arjun Reddy Yer
Mega Sage

Can you help me @Vasantharajan N 

 

Step 1: Submitted Catalog Item: Claims Authority Referral Form
Step 2: Approval levels are completed
Step 3: SCTASKS will get created

Issue:
Step 1: Created Event: asp.level2.australia
Step 2: Mention that Event in Workflow: Claims Authority
Step 3: Created Email Notification: SCTASK Australia
Step 4: Email is showing RITM Number instead of SCTASK number as attached file

 

Triggered Email Notification: 

ArjunReddyYer_0-1706498752991.png

 

Email Notification Design:

 

ArjunReddyYer_1-1706498855397.png

 

ArjunReddyYer_3-1706499013090.png

ArjunReddyYer_4-1706499114281.png

Preview Email Notification view:

ArjunReddyYer_0-1706499570560.png

 

Workflow Design:

 

ArjunReddyYer_5-1706499227074.png

 

1 ACCEPTED SOLUTION

@Arjun Reddy Yer - Why do you need gr.setWorkflow(false)? Could you please comment that and try. Because that will stop the execution of other business rules on that catalog task. 

 

check the sysevent table for the event triggered with actual triggered record. 


Thanks & Regards,
Vasanth

View solution in original post

15 REPLIES 15

@Arjun Reddy Yer -

Cause : Your workflow runs on RITM table hence the event will be trigger for RITM record

Mitigation Plan: Use gs.eventQueue("<event_name>", "Catalog_task GlideRecord Object", "parma1", "param2") in your Run script activity where you are creating the catalog task (as per the workflow screenshot shared)

 

Please make the change and let us know the feedback.


Thanks & Regards,
Vasanth

Created script in the Run Script Activity

 

ArjunReddyYer_0-1706514413026.png

but still it's reflecting same it's still showing RITM number instead of SCTASK number

Hello @Arjun Reddy Yer  ,

can you try above solution which I have provided , that should be feasible and works well in this scenario , Create an email Script and call that into Notification 

 

Regards,

Shyamkumar

 

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar

still it's reflecting same it's still showing RITM number instead of SCTASK number

Email Script:

 

ArjunReddyYer_0-1706516831478.png

Email Notification:

ArjunReddyYer_1-1706516961479.png

Triggered Email :

ArjunReddyYer_2-1706517088521.png

 

@Arjun Reddy Yer - Could you please replace the following in gs.eventQueue("your_event_name.asp.level2.australia", gr,"","");

 

gr should be the GlideRecord object of your catalog task.


Thanks & Regards,
Vasanth