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

How to trigger email when a specific entitlement is selected on the form.

Abhishek
New Contributor III
New Contributor III

Hello Everyone,

I want to trigger an email for a selective entitlement when requested from the form.

I have attached one email template in the workflow itself and tried using object in "TO" field as :

<% if(task?.entitlement_valueKey == 1060229) print "xxxxxxxxx.xxxxx@wipro.com"%> but it doesn't work?

Can you please tell what is wrong or how it can be achieved?

Thanks

Abhishek Gupta

[This post has been edited by a moderator to remove personally identifiable information (email addresses) to abide by the Saviynt Community Terms of Use and Participation Guidelines.]

3 REPLIES 3

Abhishek
New Contributor III
New Contributor III

<% if(task?.entitlement_valueKey?.entitlement_value == 'CN=NA-SG-PAM-AD-Prod-DC-Admins,OU=PAM-Roles,OU=ENT,DC=na,DC=xerox,DC=org') print "xxxxxxxxx.xxxxx@wipro.com"%>

above condition worked and email was triggered to user for specific entitlement request.

[This post has been edited by a moderator to remove personally identifiable information (email addresses) to abide by the Saviynt Community Terms of Use and Participation Guidelines.]

use Entitlement Customproperty or contains logic

You can also store email address in customproperty of endpoint/entitlement to avoid changing email template n number of times.

<% if(task?.entitlement_valueKey?.entitlement_value.contains('PAM')) print "xxxxxxxxx.xxxxx@wipro.com"%>

 

<% if(task?.entitlement_valueKey?.entitlement_value.contains(customproperty1)) print "xxxxxxxxx.xxxxx@wipro.com"%>


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

Belwyn
Saviynt Employee
Saviynt Employee

Hi Abhishek, 

Thank you for reaching out to us, 

Please refer to the below sample and please correct your query accordingly:

<% if (task?.tasktype == 3 && task?.endpoint.endpointname.equalsIgnoreCase("EndpointC") && user?.employeeType != 'Employee') 
print "${manager?.email}" 
%>
 
Let us know if that helped.
Regards, 
Belwyn.