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

Specify the manager of the person who created the user in the email template.

JPMac
Regular Contributor
Regular Contributor

The follow is data model of example.

===

username : xxx

createdby : yyy

===

We create user via registration form, and user's information are above.

And when user is created, task is created for createaccount.

After completing this task for creating an account, I want to send an email to the user (createdby) who created the user in registrationform.
So I use the following email template, but the email is not sent.

JPMac_0-1702552131354.png

 

How do I specify when sending an email to my createdby user?

5 REPLIES 5

Rajesh-R
Saviynt Employee
Saviynt Employee

@JPMac  - Could you try the following:

${com.saviynt.ecm.identitywarehouse.domain.Users.get(user?.createdBy).email} 

Thanks
Rajesh Ramalingam
Saviynt India

Manu269
All-Star
All-Star

@JPMac 

Can you print all variables available in email template using below code

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

Regards
Manish Kumar
If the response answered your query, please Accept As Solution and Kudos
.

KK
Regular Contributor
Regular Contributor

@Rajesh-R @Manu269 
Thanks.
I set to email as ${com.saviynt.ecm.identitywarehouse.domain.Users.get(user?.createdBy).email}, 
and enter ${this.binding.variables.each {k,v -> println "$k = $v" + "<" + "br" + ">"}}) to email body, but email is not sent to createdby user.
Is there any other ideas?

Best Regards,

Just keep below in email body and share output received 

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


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

Rajesh-R
Saviynt Employee
Saviynt Employee

@KK

Can you just try to send a simple content in the body.?


Thanks
Rajesh Ramalingam
Saviynt India