Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Email Template binding variable for Manager hierarchy

Amar_Simha
Regular Contributor
Regular Contributor

Hi Team,

We have a requirement for sending emails to manager & hierarchy  for each for campaign reminders. I am aware of binding variable for Manager but wanted to check if we can get hierarchical manager details well for sending the notifications.

Example - 

1st reminder - Certifier + manager

2nd reminder - Certifier + manager + Manager's manager (let's call Functional Manager)

3rd reminder - Certifier + manager + Functional Manager + Functional Manager's manager

I am not sure if it is supported but wanted to check if this is something that can be achieved. If yes, please advise on the steps for the same.

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 you find this response useful, kindly consider selecting 'Accept As Solution' and clicking on the 'Kudos' button.

dgandhi
All-Star
All-Star

Use below binding variables for your email notification in certification:

Certifier: ${users.email},

Certifiers manager: ${usersManager?.email},

Certifier Managers Manager: ${com.saviynt.ecm.identitywarehouse.domain.Users.get(manager?.manager).email}

manager's manager's manager might not be supported.

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.

Amar_Simha
Regular Contributor
Regular Contributor

Thank you @dgandhi , @rushikeshvartak for the details. is there any other option to include manager's manager's manager?

${com.saviynt.ecm.identitywarehouse.domain.Users.get(com.saviynt.ecm.identitywarehouse.domain.Users.get(manager?.manager).manager)}


Regards,
Rushikesh Vartak
If you find this response useful, kindly consider selecting 'Accept As Solution' and clicking on the 'Kudos' button.