Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Unable to use ${rankOneOwners.email} in To/cc in email notification for organization owner campaign

Padmavathi
Regular Contributor II
Regular Contributor II

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

18 REPLIES 18

rushikeshvartak
All-Star
All-Star

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:


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Hi @rushikeshvartak 

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

Does it print values in body ? Please share response of above code shared


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Padmavathi
Regular Contributor II
Regular Contributor II

Hi @rushikeshvartak 

Please find the screenshots for the email template and the response

Padmavathi_1-1724732922163.png

Padmavathi_2-1724733680551.png

 

 

 ${rankOneOwners?.email?.toString()}


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Padmavathi
Regular Contributor II
Regular Contributor II

Hi @rushikeshvartak 

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

Padmavathi_1-1724769971520.png

Regards,

Padmavathi

 

 

 

 ${rankOneOwners?.email?.replace("[", "").replace("]", "")}


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Padmavathi
Regular Contributor II
Regular Contributor II

Hi @rushikeshvartak 

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

${rankOneOwners?.email?.replace('[', '').replace(']', '')}


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Hi @rushikeshvartak 

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 

Padmavathi_0-1724823468528.png

Thanks,

Padmavathi

try in body


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Hi @rushikeshvartak 

Email is not generating, please find the screenshots for the ref 

Padmavathi_1-1724834594197.png

Padmavathi_2-1724834652439.png

tried with replace all, but not generating

Padmavathi_3-1724834674103.png

Padmavathi_4-1724834839245.png

Regards,

Padmavathi

 

Share error in text


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

chetanreddy
Saviynt Employee
Saviynt Employee

Please use 
${rankOneOwners.findAll { it.hasProperty('email') }.collect { it.email }.join(', ')}

  • Can you share scripts to find inner all variable like email

Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Please try ${this.binding.variables.each { k, v -> println "${k} = ${v.toString()}<br>" }}

Thanks,
Chetan

chetanreddy
Saviynt Employee
Saviynt Employee

${this.binding.variables.each { k, v -> out.println "${k} = ${(v instanceof Collection) ? v.join(', ') : v.toString()}<br>" }}

Unable to save template with either of them

rushikeshvartak_0-1725378964054.png

rushikeshvartak_1-1725378972988.png

 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.