and more in a single search tool across platforms. Read the announcement here. |
06/22/2022 12:19 AM - last edited on 06/22/2022 08:48 AM by Dave
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.]
Solved! Go to Solution.
06/22/2022 04:23 AM - last edited on 06/22/2022 08:50 AM by Dave
<% 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.]
06/22/2022 11:20 AM
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"%>
06/22/2022 05:25 AM
Hi Abhishek,
Thank you for reaching out to us,
Please refer to the below sample and please correct your query accordingly: