Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/09/2024 02:56 AM
Hi Team,
We have requirement to populate the assignee manager firstname+lastname in request rejection email. The email template is attached in workflow.
With below config i can populate the assignee username, but we need to populate assignee firstname and lastname.
if(accessItems.collect{ it.request_access_attrss.find{it.attributeName.toString().equalsIgnoreCase('owner')}.collect{it.attributeValue}}.get(0).toString().replaceAll(/^\[|\]$/,'')!='') print "${accessItems.collect{ it.request_access_attrss.find{it.attributeName.toString().equalsIgnoreCase('owner')}.collect{it.attributeValue}}.get(0).toString().replaceAll(/^\[|\]$/,'')}"
if i'm using the below config, it populates the some other user firstname and lastname.
if(accessItems.collect{ it.request_access_attrss.find{it.attributeName.toString().equalsIgnoreCase('owner')}.collect{it.attributeValue}}.get(0).toString().replaceAll(/^\[|\]$/,'')!='') print "${assignee.firstname}${assignee.lastname}"
Please help me on how can we populate the assignee firstname and lastname?
TIA.
Bhargav.
08/13/2024 02:18 AM
Hello @Bhargav,
Assignee variable will work only when request is pending for approval.
Once the request is rejected, You can try with ${allRejectors.collect{it.firstname +' ' + it.lastname}}
Thanks.
08/13/2024 06:13 AM