Click HERE to see how Saviynt Intelligence is transforming the industry. |
07/26/2024 07:28 AM
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
07/26/2024 08:05 AM
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:
07/26/2024 08:13 AM
Hi ,
@rushikeshvartak User group is not exposed in that body.
07/27/2024 06:55 AM
Where is group mapped ? Is that group is camping’s owner?
07/27/2024 12:19 AM - edited 07/27/2024 12:20 AM
@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()}