Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/05/2024 04:23 AM
Hi All,
We have configured Actionable email for new user identity from workflow. But as the user identity is not present in EIC, in the mail it is not fetching requested user firstname and lastname and showing null. Can someone please help what can we include in the mail template in place of ${user.firstname} ${user.lastname}.
Thanks.
Solved! Go to Solution.
08/05/2024 06:03 AM - edited 08/05/2024 06:05 AM
@swagat please can confirm how mail triggering via rule and share rule configuration screenshot
how creating first and lastname via global config initial setup?
08/05/2024 07:47 AM
Hi @Raghu ,
Thank you for your response. We are triggering the mail through Manager workflow process. We have added the actionable mail to the workflow and whenever we are creating any user using "Create User Form" the email is triggering through "Email History Job (EmailHistoryJob)" job.
08/05/2024 06:35 PM
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:
08/06/2024 12:31 AM - edited 08/06/2024 12:32 AM
Thanks for your suggestion @rushikeshvartak . But still we are getting Null value in email after adding below code in Email Body :
${this.binding.variables.each {k,v -> println "$k = $v" + "" + "br" + ">"}}
Also there is some other things showing in email which are not required. Please find the screenshot below :
08/06/2024 01:11 AM
Hi @swagat , as the user profile is still not created it is not able to fetch the requested for first name and last name.
08/06/2024 03:42 AM
Hi @NM ,
Yes that is understandable, But we want to send approval email on the user profile creation. Can't we use any other dynamic attribute to populate first name and last name?
Thanks
08/06/2024 05:48 AM - edited 08/06/2024 05:49 AM
You can use dynamic attribute and show on email dynamic attribute will be stored in accessItems
{accessItems.findAll{it.request_access_attrss.size()}.collect{it.request_access_attrss.findAll{!it.attributeName.toString().equalsIgnoreCase('ENT_BY_RULE_ADD'))}.collect{it.attributeName.toString() + ':' +it.attributeValue}.join('###')}} | Obtains all the dynamic attributes in the request. |
${accessItems.collect{ it.request_access_attrss.find{it.attributeName.toString().equalsIgnoreCase('Location')}.collect{it.attributeValue}}.get(0)} ${accessItems.collect{ it.request_access_attrss.find{it.attributeName.toString().equalsIgnoreCase('Location')}.collect{it.attributeValue}}} where, Location is the dynamic attribute name. |
08/07/2024 04:00 AM
${accessItems.collect{ it.request_access_attrss.find{it.attributeName.toString().equalsIgnoreCase('DA')}.collect{it.attributeValue}}.get(0)} worked for me.
Thanks @rushikeshvartak