Click HERE to see how Saviynt Intelligence is transforming the industry. |
01/02/2024 08:19 AM
Hi,
we want to send notification email to both primary and secondary certifier. The name in the email body should be of secondary certifier. I know there is binding variable but not sure how to use it. Please advise how the format should be in "TO" and in the "body" of the email (highlighted places)
01/02/2024 09:52 AM - edited 01/02/2024 09:54 AM
To get what variables are present to use in the email template, check using the below expression. By putting it in the email body, it will print all variable names with values, and then accordingly, you can use it:
${this.binding.variables.each {k,v -> println "$k = $v" + "" + "br" + ">"}}
01/03/2024 04:11 AM
Hi Rushikesh,
How to use this trick. can you please help with more details. I tried below. Is this email to be triggered ? how does it display the variables?
Thanks
Nidhi
01/03/2024 04:43 AM
Attach email template to any action where you want to trigger email for example campaign preview email and check variable availability it will send email to email id mentioned in it ( hardcode your email)
01/03/2024 09:16 AM
I am able to send the email to Secondary Certifiers but I still cn't pull the firstname and lastname to be printed in the email body.
01/03/2024 09:29 AM
@NID27 : There is no direct variable to get secondary certifier attributes, It may have to be derived. Can you share the email output of below
${this.binding.variables.each {k,v -> println "$k = $v" + "" + "br" + ">"}}
01/03/2024 10:24 AM - edited 01/03/2024 10:25 AM
Here is the output
manager = psinghbr> certifiers = nsharmabr> certificationUsers = br> delegateEmail = br> campaign = com.saviynt.ecm.campaign.domain.Campaign : 557br> delegateUser = br> campaignOwnerAndTheirDelegateEmailList = nsharma@abc.combr> usersManager = psinghbr> users = nsharmabr> secondarycertifier = akolhe@abc.combr> certification = com.saviynt.ecm.campaign.domain.Certification : 37072br> out = java.io.PrintWriter@1802cd52br> [manager:psingh, certifiers:nsharma, certificationUsers:, delegateEmail:, campaign:com.saviynt.ecm.campaign.domain.Campaign : 557, delegateUser:, campaignOwnerAndTheirDelegateEmailList:nsharma@abc.com, usersManager:psingh, users:nsharma, secondarycertifier:akolhe@abc.com, certification:com.saviynt.ecm.campaign.domain.Certification : 37072, out:java.io.PrintWriter@1802cd52]