Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/13/2024 07:55 AM
Hi Everyone, Please can someone help me on this
We are creating a new account and add access together for an application. Once new account task is created we need to send email to enduser with account and access details assigned. We have tried couple of options to fetch the entitlement details but its not giving the results.
Please find the email which am receiving if am using any of the entitlements dynamic varaibles the email is not fetch the data from saviynt...It is printing the same as the body.
We have tried these all values
${entitlements},
${entitlement_values},
${entitlementshtmltablerows},
${entitlement},
${task?.entitlement_valueKey?.entitlement_value},
${task.entitlement_valueKey.entitlement_value},
${entitlement.value},
${entitlement_values.collect{it.toString().indexOf("(") == -1 ? it : it.toString().substring(0, it.toString().indexOf("(") -1)}.toListString().replaceAll('\\[|\\]','')},
${entitlementshtmltablerows==''?endpoint.endpointname:entitlementshtmltablerows}
OR
${requesttype=='New Account'?endpoint.endpointname:entitlementshtmltablerows},
${entitlementshtmltablerowsv2},
${allEntitlementsValues}
${entitlementshtmltablerowsv3}
09/13/2024 08:02 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 {RVkey,RVvalue -> println "$RVkey ------- $RVvalue" + "" + "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:
09/13/2024 08:13 AM - edited 09/13/2024 08:14 AM
09/13/2024 08:15 AM
Entitlement object is not exposed in template
09/13/2024 08:26 AM
Yes do i need to create a saviynt ticket?
09/13/2024 09:05 AM
Raise idea ticket
09/13/2024 09:14 AM
Hi @Ashir are you using entitlementOnly in security system?
09/13/2024 09:17 AM
09/14/2024 03:47 PM
@Ashir
If you try sending emails on a new account, you can't get entitlement values because that task for an account will not hold any entitlement values.
Create separate email templates for accounts and add/remove access.
Use this and check the output.
${this.binding.variables.each {STkey, STvalue -> println "<div style='margin-left:20px;'><strong>$STkey</strong>: $STvalue</div><br>"}}
At the Task level email template, you can't get all the entitlements in a single email. It will send separate emails for each task.
09/17/2024 07:54 AM - edited 09/17/2024 07:56 AM
Hi @stalluri
Thanks for replying...I have tested it as per your suggestion. It worked as expected But we have requested for 2 different entitlements and both entitlement types are different.
In Email it should print 2 different entitlements. Can you help me please.
Once add access completed for 2 entitlements then it should show 2 entitlements in email.
Entitlements name(Example)
1.archive---- this entitlement belong to Project entitlement type.
2.aft-account-request---- this entitlement belong to Group entitlement type.
09/17/2024 07:56 AM
It will print one of the entitlements. on which action email template is attached ?
09/17/2024 08:01 AM
Thanks for replying...As per @stalluri suggestion i have tested it..It worked for 1 entitlement value but we have another entitlement as well. We need to display both entitlements in email.
If possible please check my previous reply and please help me.
09/17/2024 08:16 AM
@Ashir
It is the product limitation.
At task level we get separate email. At request level we get combined entitlements in to one.
https://ideas.saviynt.com/ideas/EIC-I-5290 You can up-vote this idea.
09/17/2024 08:17 AM