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 variable to send email notification to all the certifier for Entitlement Owner Campaign

biswajitoram
Regular Contributor
Regular Contributor

Hi Team,

We have launched an Entitlement Owner campaign for an endpoint which will be available for all the certifiers (Entitlement Owner for each entitlement). We are having issues creating email notifications sent to all the Entitlement Owners/certifiers.

Please help with this.

21 REPLIES 21

indra_hema_95
Regular Contributor III
Regular Contributor III

Hi @biswajitoram Can you please share your template?

Regards,

Indra

@indra_hema_95 

Are you asking for the Email template? then we haven't finalized yet just testing on Dev.

But could not find any appropriate binding yet.

biswajitoram_1-1725436199993.png

 

 

indra_hema_95
Regular Contributor III
Regular Contributor III

Hi @biswajitoram So, this is not getting triggered when the campaign is launched?

Regards,

Indra

@indra_hema_95 

It is getting triggered and also I am receiving the email as well but we want the email sent to all Entitlement Owners. So we want to know which binding variable will help us achieve the requirement

biswajitoram_0-1725437293800.png

 

indra_hema_95
Regular Contributor III
Regular Contributor III

Hi @biswajitoram Try this, I have tested and used it in our case.

indra_hema_95_0-1725437443024.png

Body:

<head> <style> table { font-family: arial, sans-serif; border-collapse: collapse; width: 100%; } td, th { border: 1px solid #dddddd; text-align: left; padding: 8px; } </style> </head> <div> Hi ${users?.firstname} ${users?.lastname},<br><br></div> <div>you are receiving this email because you have been identified as certifier for the certification: ${certification?.cert_name}.<br><br></div><div>We are excited to announce the commencement of our annual Access Certification Campaign. This important initiative is designed to ensure the ongoing security and integrity of our systems.<br><br></div><div>The campaign will run for a period of **30 days**, starting from ${campaign?.startDate.format('yyyy-MM-dd')}. During this time, you will be required to review and validate your current employee's system access rights. This is a critical process that helps us maintain the highest level of data security and compliance.<br><br></div><div>Here's what you need to do: <br> 1. Log in to the <a href="https://yourorgurl.saviyntcloud.com/ECM/login/auth">Saviynt Portal</a> using your credentials.<br> 2. Review each of the system access rights listed under your profile.<br> 3. Confirm if they are still necessary for your role.<br> 4. Submit your certification. <br><br></div> <div>Please find the certification details below:<br> <table> <td>Campaign Name:</th> <td>${campaign?.campaignName}</th> </tr> <tr> <td>Certification Name:</td> <td>${certification?.cert_name}</td> </tr> <tr> <td>Certification Start Date:</td> <td>${campaign?.startDate.format('yyyy-MM-dd')}</td> </tr> <tr> <td>Certification End Date:</td> <td>${campaign?.endDate.format('yyyy-MM-dd')}</td> </tr></table><br><br></div> <div>We understand that this process may require some of your time, but it is crucial for our collective security and compliance. Your cooperation and prompt attention to this matter are greatly appreciated.<br><br></div> <div>If you have any questions or need assistance during the certification process, please do not hesitate to contact the Identity Access Management team via admin or by submitting a serviceNow ticket and assign it to the IAM team.<br><br></div> <div>Thank you for your understanding and cooperation.<br><br></div> <div>Best Regards,<br>IAM team</div>

Binding Variables:

${users?.email}: Certifier's email

${users?.firstname}: Certifiers's First Name

${users?.lastname}: Certifier's Last Name

${certification?.cert_name}: Certification Name

${campaign?.campaignName}: Campaign Name

${campaign?.startDate.format('yyyy-MM-dd')}: Cert Start Date

${campaign?.endDate.format('yyyy-MM-dd')}: Cert End Date

For more details you can refer this link https://docs.saviyntcloud.com/bundle/EIC-Admin-v24x/page/Content/Chapter06-EIC-Configurations/Creati...

Regards,

Indra

 

 

Hi @indra_hema_95 

I have tried ${users?.email} but still, it's sending emails to the Default certifier, not entitlement owners.

indra_hema_95
Regular Contributor III
Regular Contributor III

Hi @biswajitoram Can you share your template again and launched campaign page once please?

Make sure to hide any sensitive data.

Regards,

Indra

@indra_hema_95  PFA the template

biswajitoram_0-1725538857981.png

biswajitoram_2-1725538985103.png

 

 

 

indra_hema_95
Regular Contributor III
Regular Contributor III

Hi @biswajitoram keep that in to field, not in cc.

Regards,

Indra

@indra_hema_95  I have used it as To value as well but still, it is sending to Default Certifier.

biswajitoram_0-1725543258972.png

biswajitoram_1-1725543351223.png

 

 

@biswajitoram  Share output of below code

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:


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

Hi @rushikeshvartak 

PFA the details

biswajitoram_0-1725546425734.png

 

Its always easy in text. in shared variable who are entitlement owner ? Do you see in any variable ?


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

biswajitoram
Regular Contributor
Regular Contributor

@indra_hema_95 

So Binding Variables: ${users?.email} will send emails to all the Entitlement Owner's emailAddress right?

indra_hema_95
Regular Contributor III
Regular Contributor III

Hi @biswajitoram correct.

Regards,

Indra

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:


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

biswajitoram
Regular Contributor
Regular Contributor

@rushikeshvartak The correct variable is "certifiers" which is passing Saviynt Username. But we need the certifier's email.

${certifiers.email}


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

indra_hema_95
Regular Contributor III
Regular Contributor III

Hi @biswajitoram Can you try ${users.email} instead of ${users?.email} and see one last time?

Regards,

Indra

stalluri
Valued Contributor
Valued Contributor

@biswajitoram 

Primary: ${users?.email} / ${users.email}
Secondary: ${secondarycertifier}

Well, it turns out that the Campaign Preview supports a completely different set of attributes in the email templates than active campaigns.

When you create the campaign, the above binding variable works fine, but not when you run it in a Preview state.


Best Regards,
Sam Talluri
If you find this a helpful response, kindly consider selecting Accept As Solution and clicking on the kudos button.

biswajitoram
Regular Contributor
Regular Contributor

Thanks so much for your support @indra_hema_95 @rushikeshvartak @stalluri 

I have achieved the requirement with the below details.

 

biswajitoram_0-1725551025646.png