How to attach an approval email back to the request once approved

Sudiksha Misra
Tera Contributor

Hello, 

 

Need help to understand on how I can attach an approval mail that is being triggered for a catalogue back to the request once it is approved.

 

Also looking forward on having the approval or reject button in the mail body itself.

 

Regards, 

Sudiksha Misra

2 REPLIES 2

Tony Chatfield1
Kilo Patron

Hi, if you review the OOB approval notification configuration\functionality in a PDI, you should see that 'Approval' emails are triggered from the 'Approval' table sysapproval_approver and not the table for the task that is being 'approved'.
/sysevent_email_action_list.do?sysparm_query=active%3Dtrue%5Ecollection%3Dsysapproval_approver&sysparm_view=

To attach the approval notification to a related record, I think you would need an after BR on the sys_email table to update the approval email record so that it points to your task and not the target record it was mapped too.
But I would not recommend this as best practice as it and means the audit date for 1 subset of records is different when compared to other 'approvals' and your audit data is no longer a true\accurate representation of your approval process.
Perhaps you could configure an inbound action to lookup up the related task(s) and populate details of the approval into the tasks work_notes.

If you want to replace OOB 'link' type approval functions, then you will need to configure 'standard' HTML buttons to replace them in your notifications and there are already many great community posts already that cover this requirement.
Search - ServiceNow Community

Its_Azar
Tera Guru

Hi there @Sudiksha Misra 

 

To attach an approval email back to the request once approved, make sure your email system integrates with your request management tool. Use the unique identifier in the email subject or body to link it back. If integration isn't available, manually upload the email to the request. For approval/reject buttons in the email, customize your email template to include these buttons with links that trigger the appropriate actions in your system. 

 

If this helps kindly accept the response thanks much.

☑️ If this helped, please mark it as Helpful or Accept Solution so others can find the answer too.




Kind Regards,

Mohamed Azarudeen Z

Developer @ KPMG

 Microsoft MVP (AI Services), India