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

In email templates unable to get the primary certifier email address added as a variable

myasin
New Contributor II
New Contributor II

I am able to add ${campaign?.campaignOwner?.email}, ${campaign?.campaignName}, ${campaign?.startDate}, ${campaign?.endDate}

but cant find the variable/property for primary certifier
tried
$(primarycertifier?.email)
${originalCertifier?.email}
${users?.email}

but none seem to work.

8 REPLIES 8

rushikeshvartak
All-Star
All-Star

Share output of below

${this.binding.variables.each {k,v -> println "$k = $v" + "<" + "br" + ">"}}


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

output:

certifiers = myasin
delegateEmail =
campaign = com.saviynt.ecm.campaign.domain.Campaign : 80
delegateUser =
campaignOwnerAndTheirDelegateEmailList = myasin@xxxxxxxx
baseUrlForEmail = https://xxxxxxxx.saviyntcloud.com/ECM
usersManager =
secondarycertifier =
out = java.io.PrintWriter@288e9e25

dgandhi
All-Star
All-Star

Try this and let me know if it works.

${users.email}

 

Thanks,
Devang Gandhi
If this reply answered your question, please Accept As Solution and give Kudos to help others who may have a similar problem.

myasin
New Contributor II
New Contributor II

${users.email} did not work, i see in the logs the below

ERROR campaigns.CampaignService - Send preiview Notification email fails with Campaign-com.saviynt.ecm.campaign.domain.Campaign : 79 groovy.lang.GroovyRuntimeException: Failed to parse template script (your template may contain an error or be trying to use expressions not currently supported): startup failed:\n","stream":"stdout","time":"2023-07-21T20:48:32.643022462Z"}

Is the template attached to Preview Email Notification or Create Email Notification? 

Can you attach screenshot where you have you attached your email templates in the campaign configuration?

Thanks,
Devang Gandhi
If this reply answered your question, please Accept As Solution and give Kudos to help others who may have a similar problem.

myasin
New Contributor II
New Contributor II

Preview Email Notification

 

myasin_0-1689974479702.png

 

You will not get certifier name here.


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

It wont work in Preview. Attach it in Create and test.

 

Thanks,
Devang Gandhi
If this reply answered your question, please Accept As Solution and give Kudos to help others who may have a similar problem.