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

Binding variables for User in Campaign Email Templates

Isha
New Contributor
New Contributor

Hi, 

We need to get users name, department , job in our Campaign Email Templates, but when we are using variables such as ${users?.firstname} or ${users?.lastname} or ${users?.email} , we are getting Manager's firstname, lastname and so on.

Is there a way to fetch user details for Campaign Email Templates?

7 REPLIES 7

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 Rushikesh!

After triggering email with the following query : ${this.binding.variables.each {k,v -> println "$k = $v" + "" + "br" + ">"}}

This is the result I got:

manager = ${users?.username}
certifiers = ${originalCertifier?.username}
certificationUsers =
delegateUser =${delegateuser?.username}
usersManager =  ${manager?.username}
users =
secondarycertifier =
certification = com.saviynt.ecm.campaign.domain.Certification
out =
delegateEmail =${delegateuser?.email}
campaign =${campaign?.campaignName}

Which binding variable is used to get the username? Since I saw in the email , it was able to fetch the username in front of users =xyz.

User is object is blank hence you can’t achieve 


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

NM
Honored Contributor II
Honored Contributor II

Hi @Isha were you able to fetch the details of users??

Isha
New Contributor
New Contributor

No. It is not possible in Saviynt.

raise idea ticket and share idea ticket number https://ideas.saviynt.com/ideas/new


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

Amit_Malik
Valued Contributor II
Valued Contributor II

Hi @Isha , if users is coming blank then it is not supported variable.

Looks like you are using user manager campaign, for that users binding variable is not exposed , refer below form. You can raise an idea,

https://forums.saviynt.com/t5/identity-governance/email-template-attributes-for-certification-for-us...

 

Kind Regards,
Amit Malik
If this helped you move forward, please click on the "Kudos" button.
If this answers your query, please select "Accept As Solution".