Is there a way to include all the entitlement owners in the approval workflow email template?

avinashR
New Contributor
New Contributor

Hi Team.

We need to include all the entitlement owners in the workflow email template.

FYI, I have tried to the below expression but it is returning empty.

Approvers names - ${allApprovers.collect{it.username}}

3 REPLIES 3

Enakshi
Saviynt Employee
Saviynt Employee

It will return empty as the request is not approved yet. 

Hope the request is going to all the entitlement owners. So, could you try ${assignee.username} ?

avinashR
New Contributor
New Contributor

but ${assignee.username}  this will only return sinlgle owner username.

For instance if  a entitlement has 3 owners then I need all the 3 usernames in same email.

This is missing functionality of product hence it wont be possible

Try below

${Users.get(${accessItems.find{it.ae.size()}.collect{it.ae.find{(it.approveby.toString())}}.find{it.approveby.toString()}[0]}).email}