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

Need binding variable for sending email to user group from campaign

kmashwini
Regular Contributor
Regular Contributor

Hi All,

we are triggering email from campaign reminder to specific user group, where everyone in user group need to receive email.

 

We need binding variable for user group to mention in TO address .

Regards

Ashwini

4 REPLIES 4

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'.

kmashwini
Regular Contributor
Regular Contributor

Hi ,

@rushikeshvartak  User group is not exposed in that body.

Where is group mapped ? Is that group is camping’s owner?


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

Raghu
All-Star
All-Star

@kmashwini  try below

${com.saviynt.ecm.identitywarehouse.domain.Users.get(accessItems.find{it.request_access_attrss.size()}.collect{it.request_access_attrss.find{(it.attributeName.toString().equalsIgnoreCase('USERGROUPKEY'))}.collect{it.attributeValue}}).getEmail()}


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.