Click HERE to see how Saviynt Intelligence is transforming the industry. |
07/19/2024 02:49 AM
Hi,
We have created a two-level workflow: the first approval is by the manager, and the second is by the application owner. We want the approvers' names/usernames to be included in the email notification to the application owner so that the application owner can know who was the first approver of the request.
Currently, when the manager/admin approves the request, it is correctly assigned to the application owner and shown in the Saviynt UI, as illustrated in the image below.
To collect the approvers' names, we are using the "${allApprovers.collect{it.username}}" variable. However, because of this variable, the email is going to the first approver who was manager/admin instead of the application owner. And in the mail because of the "${allApprovers.collect{it.username}}"variable it is affecting the "${assignee}" variable and printing the value of approver in the assignee's section of name & email.
Below is the email image:
Below is the mail template :
To : ${assignee.email}
Hi ${assignee.firstname} ${assignee.lastname},
The first level of approval is approved by ${allApprovers.collect{it.username}}.
The user ${user.firstname} ${user.lastname} has requested for the following access :
UserName : ${user.firstname} ${user.lastname}
Account Name : ${accounts.name}
Application Name : ${endpoints}
Take an sample data :
User - Enduser9
Manager - Anna
Application Owner - Ron
So when Anna approves the request, Ron should get the mail notification but it's going to Anna only.
Please provide any possible solution.
Thanks & Regards,
Laulesha Nigade.
07/19/2024 04:08 AM
@LauleshaNigade 1 level approval approved manager then it shud go owner right
what is workflow using ? after manager did you configured Grant acces mail ?
07/19/2024 05:13 AM
We are using 2 level workflow.
start ---> manager approval ---> application owner aaproval---> grant access / reject access ----> end.
So, when manager approves the request, application owner should get the mail notification but it's going to manager only although in the UI the request is assigned to application owner itself.
This happens only when we use "${allApprovers.collect{it.username}}" variable in email template. If we don’t use that variable in email template, then all the mails go to the expected receiver.
Please provide any possible solution.
Thanks and Regards,
Laulesha Nigade.
07/19/2024 05:23 AM - edited 07/19/2024 05:27 AM
Hi @LauleshaNigade what happens inthe case of assignee in to field?
07/19/2024 05:40 AM
To collect the approvers' names, we are using the "${allApprovers.collect{it.username}}" variable. However, this variable causes the email to be sent to the first approver (the manager) instead of the application owner. Additionally, in the email, the "${allApprovers.collect{it.username}}" variable affects the "${assignee}"variable, causing it to print the value of the first approver (the manager) in the assignee's section of the name and email, which should go to the application owner.
Thanks and Regards,
Laulesha Nigade.
07/19/2024 05:45 AM
07/22/2024 04:17 AM - last edited on 07/22/2024 04:41 AM by Sunil
Hi @rushikeshvartak ,
As you suggested we used the custom assignment block with custom query but still getting the same issue.
In the email, the `${allApprovers.collect{it.username}}` variable affects the `${assignee}` variable, causing it to print the value of the first approver (the manager) in the assignee's section, instead of the application owner's name and email. When we used the `${accessapprovers}` variable, the email correctly goes to the application owner without affecting the `${assignee}` variable, but `${accessapprovers}` prints the object value instead of the usernames as showed in below image
Tried to modify the variable as below but not working
${accessapprovers.username}
${accessapprovers.collect{it.username}}
${accessapprovers?.username}
${approvedBy.username} this variable is also not working.
Is there any variable which we can use to collect the previous approvars name?
Please provide any possible solution.
Thanks and Regards,
Laulesha Nigade.
[This message has been edited by moderator to mask email address from an image]
07/22/2024 04:57 AM
This seems not exposed
refer https://ideas.saviynt.com/ideas/EIC-I-5408
07/19/2024 05:59 AM
@LauleshaNigade seems like a bug with resource owner block try once what @rushikeshvartak suggested ..