Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/26/2024 09:35 AM
Hi Team,
We have requirement to send attestation reminder notification to rank1 owners under organization owner campaign, email template is not triggering when i am using rank 1 owner variable in cc. but when i place the same dynamic variable in body for test email able to see the email of org one owner.
This is the binding variable used ${rankOneOwners.email}.
Can anyone help us with the functionality.
Thanks in advance!
Regrads,
Padmavathi
08/26/2024 09:37 AM
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 {k,v -> println "$k = $v" + "" + "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:
08/26/2024 12:38 PM
Thanks for the quick response!
Yeah, I have already followed the same way and got ${rankOneOwners} but, when I placed the same in CC email didn't trigger, that is the reason I just placed in sample email again as mentioned above.
Regards,
Padmavathi
08/26/2024 01:11 PM
Does it print values in body ? Please share response of above code shared
08/26/2024 09:42 PM
08/26/2024 10:42 PM
${rankOneOwners?.email?.toString()}
08/27/2024 07:46 AM
I tried by placing ${rankOneOwners?.email?.toString()} in cc, but still email didn't get generated.
then I tried by placing in body of the email, it prints the highlighted value
Regards,
Padmavathi
08/27/2024 09:30 AM
${rankOneOwners?.email?.replace("[", "").replace("]", "")}
08/27/2024 12:37 PM
Thanks for the response!
I tried by placing the above dynamic variable, but this time email didn't generate when I placed in cc also in body.
Regards,
Padmavathi
08/27/2024 07:19 PM
${rankOneOwners?.email?.replace('[', '').replace(']', '')}
08/27/2024 10:40 PM
Email didn't trigger and tried with ${rankOneOwners?.email?.replaceAll("\\[|\\]", "")} as well, but still email is not generating and found the below error in logs
Thanks,
Padmavathi
08/27/2024 10:52 PM
try in body
08/28/2024 01:48 AM
Email is not generating, please find the screenshots for the ref
tried with replace all, but not generating
Regards,
Padmavathi
08/28/2024 07:25 AM
Share error in text
09/03/2024 05:40 AM
Please use
${rankOneOwners.findAll { it.hasProperty('email') }.collect { it.email }.join(', ')}
09/03/2024 05:43 AM
09/03/2024 07:56 AM
Please try ${this.binding.variables.each { k, v -> println "${k} = ${v.toString()}<br>" }}
Thanks,
Chetan
09/03/2024 08:12 AM
${this.binding.variables.each { k, v -> out.println "${k} = ${(v instanceof Collection) ? v.join(', ') : v.toString()}<br>" }}
09/03/2024 08:46 AM - edited 09/03/2024 08:56 AM
Unable to save template with either of them