09/15/2022 08:05 AM
Hi Team,
I am looking for a binding variable to fetch the the rejector's displayname in the reject access email template which is suppose to get trigger to the user once his/her access gets rejected.
I tried to achieve it using ${allRejectors.collect{it.username}.join(',')} but it is providing the username of the requestor as well along with the rejector.
09/15/2022 08:17 AM
${allRejectors.collect{it.displayName}.join(',')}
09/15/2022 08:26 AM
Hi Rushikesh,
I tried with the expression you mentioned earlier itself, but it is providing the displayname of the requestor along with the rejector. But my requirement is to get the displayname of the rejector only.
09/15/2022 09:11 AM
${this.binding.variables.each {k,v -> println "$k = $v" + "<" + "br" + ">"}}
Try below logic in email template to get exact variable used in email template