Need help with using scripts in email client templates

Eddie Alvarado
Tera Contributor

Hi, 

 

I am trying to create an email client template that sends an email to the "requested_by" and the "u_client_approvals" emails. I was trying to achieve through a script include but I am not able to figure out what I'm missing . 

Snag_c4b07b5.png

 

 Should I try using a mail script for this requirement instead?

 
1 REPLY 1

Community Alums
Not applicable

Hi Eddie

 

The most straightforward way is to utilise "Notifications" and a Mail Script.

 

The Notification dictates the 'When' to send, 'Who' the recipients are and 'What' is contained in the email. The 'mail script' can be called from the notification to do more advanced scripting if required. 

 

If the notification is triggered by an approval or rejection on the sysapproval_approver table, the 'Who will receive' field can be dot walked; for example, you can add 'Approval for.Opened by'. 

 

If you are triggering from an event you could pass sys_id's using the event_parm_1 or event_parm_2 etc. 

If this doesn't help, a little more info on what your trigger is would provide more clarity. 

 

Regards

James