07/06/2023 06:41 AM
Hi Team,
We want to put the consultee's name ( username) in the consult completion email notification. Please suggest if this is feasible. Thanks.
07/06/2023 06:55 AM
Hi @Rashmi
Below document for reference:
The Consult Completion email template is used to trigger an email to inform the required users that the consultee has completed the review.
Sample template:
Name: Consult completion
To: ${originalCertifier?.email}
Body:
The items you had consulted to have been reviewed for the certification.
Binding variables:
The following table provides a description of the binding variables used for creating this email template:
${originalCertifier?.email} | Obtains the email ID of a previous certifier of the campaign. |
${campaign?.campaignName} | Obtains the campaign name. |
${users?.firstname} ${users?.lastname} | Obtains the first name and the last name of the user's manager. |
${campaign?.startDate.format('yyyy-mm-dd')} | Obtains the start date of the campaign. |
${campaign?.endDate.format('yyyy-mm-dd')} | Obtains the end date of the campaign. |
07/06/2023 06:57 AM
If I understood correctly you are asking if you can use username to get consultee name in consult email notification right? If so then YES, below is the right parameter for it.
${users?.username}
07/06/2023 07:33 AM
Hi,
We used ${users?.username} in consult completion email. However, after using that binding variable, the email was not getting triggered.
Thanks
07/06/2023 07:51 AM - edited 07/06/2023 07:52 AM
Okay I miss understood, You are looking to get consult information in the email upon consultee completed the review. In that case it's bit tricky as documentation doesn't clearly state any variable for it. Please use below logic and share the output to see if we can derive consult information
${this.binding.variables.each {k,v -> println "$k = $v" + "<" + "br" + ">"}}
Also please don't use any other variable in email template. In TO use any your email and in body paste above logic to receive the email
07/06/2023 08:03 AM
Hi ,
Below was the output of the email.
manager = H277841<br>
certifiers = H278175<br>
certificationUsers = <br>
delegateUser = <br>
usersManager = H277841<br>
users = H278175<br>
secondarycertifier = Rohit15.cric@staging.com<br>
certification = com.saviynt.ecm.campaign.domain.Certification : 996<br> out = java.io.PrintWriter@ac8c7ef<br> delegateEmail = <br> campaign = com.saviynt.ecm.campaign.domain.Campaign : 162<br> campaignOwnerAndTheirDelegateEmailList = <br> baseUrlForEmail = https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2F-test.saviyntcloud.com%2FECM%2F&da...>
[manager:H277841, certifiers:H278175, certificationUsers:, delegateUser:, usersManager:H277841, users:H278175, secondarycertifier:Rohit15.cric@staging.com, certification:com.saviynt.ecm.campaign.domain.Certification : 996, out:java.io.PrintWriter@ac8c7ef, delegateEmail:, campaign:com.saviynt.ecm.campaign.domain.Campaign : 162, campaignOwnerAndTheirDelegateEmailList:, baseUrlForEmail:https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2F-test.saviyntcloud.com%2FECM%2F&da...]
Thanks
07/06/2023 08:10 AM
I was hoping there is some variable which we can use to derive that information but looking at the output seems like it is not possible to pull consult information.