Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/17/2024 07:52 AM
Hi Team,
We have configured the New Service Account Owner Notification in Global config and trying to transfer the ownership through user update rule.
Here is the email template:
<div>Hi ${firstname} ${lastname},</div><div><br></div><div>You have been added as an owner.</div>
To as : ${emailid}
Owner is getting updated but email is not getting triggerd. Could someone help me on this.
09/17/2024 07:54 AM
To as : ${emailid} is not correct variable.
Please validate supported variables.
Purpose :
To get what variables are present to use in the email template.
Email Template steps :
keep Advanced HTML CSS flag is checked
Keep your email Address in TO
TO /CC/BCC & Subject - Don't use any dynamic variables
Add only below code in Email Body
${this.binding.variables.each {RVkey,RVvalue -> println "$RVkey ------- $RVvalue" + "" + "br" + ">"}}
Output : 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:
09/17/2024 08:21 AM
Hi,
I have added my mail address in to TO and added this as body ${this.binding.variables.each {RVkey,RVvalue -> println "$RVkey ------- $RVvalue" + "" + "br" + ">"}}.. Attached this email template into Global config and updating the owners of service account . Email is not getting triggering.
09/17/2024 08:30 AM
Share screenshot of email template
09/17/2024 08:41 AM - edited 09/17/2024 09:12 AM
Here is the SS
09/17/2024 08:42 AM
I am hopping your TO & CC is end user email if yes share logs
09/17/2024 09:14 AM
Hi,
Seen the logs. No information about this email template in the logs
09/17/2024 09:21 AM
Click on edit mode and share screenshot
09/17/2024 09:26 AM
Provided the edited mode:
09/17/2024 09:27 AM
try below code
${this.binding.variables.collect { RVK, RVV -> "$RVK: $RVV" }.join('<br>')}
09/17/2024 09:35 AM
No luck, It didnt triggered
09/17/2024 09:38 AM
${owner}
09/17/2024 10:09 AM
Where I have to provide this owner-?
09/17/2024 10:10 AM
in Email TO field.
How are you validating email template ? via ARS / Admin - Accounts ?
09/17/2024 10:12 AM
Via UI-- Admin-Accounts. Even tested via ARS no luck
09/17/2024 10:27 AM
Via UI-- Admin-Accounts - I have validated it does not trigger
09/17/2024 10:29 AM
When I tried with user update rule as the global config template is not getting triggered, but when I attach the mail template to the userupdate rule it is triggering
09/17/2024 08:03 AM
How to test this email template through UI can I update owner and trigger the mail or I have to update owner through rules?
09/17/2024 08:06 AM
Hi, ${emailid} -- This is what it was there in documentation for the New Service Account Owner Notification in Global config
09/17/2024 09:18 AM
@Neeharika008
Add this value to the email template, use that email template in the below, and trigger the email.
TO : Hardcode your Email address.
CC/BCC & Subject: Don't use dynamic variables.
Add only below code in Email Body:
${this.binding.variables.each {STkey, STvalue -> println "<div style='margin-left:20px;'><strong>$STkey</strong>: $STvalue</div><br>"}}