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

Still it's same

ArjunReddyYer_0-1706518260783.png

 

RunScript Activity:

ArjunReddyYer_1-1706518363039.png

 

@Arjun Reddy Yer - Did you remove the Create Event activity from the workflow? please provide the workflow screenshot. 


Thanks & Regards,
Vasanth

Ya but still not working and after that the Emails are not triggering at all

ArjunReddyYer_0-1706520939264.png

ArjunReddyYer_1-1706520995728.png

 

@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

shyamkumar VK
Kilo Patron

@Arjun Reddy Yer , design an email script and call that into notification body

template.print('<a href="https://' + gs.getProperty('instance_name') + '.service-now.com/nav_to.do?uri=task.do?sys_id=' + current.sys_id + ' ">' + current.getValue("number") + '</a>');

${mail_script:sctasknumber}

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

Shyamkumar