05/29/2023 01:20 PM
Hi Team,
We are using below email template.
The request#: ${requestid} for ${user.firstname} ${user.lastname} has been completely or partially rejected for: ${endpointDisplayName}.
Please contact your manager if you have questions about why this access has been denied. If you have other questions or need help with the IT Service Desk.
Thank you,
${endpointDisplayName} is not working we are getting an error as below
we are using ${endpointDisplayName} as it is from the documentation.
could we use any other variable to get the endpoint displayname?
What could be the issue why ${endpointDisplayName} is not working?
Best Regards,
Aditya Chadde
05/29/2023 03:13 PM
${endpoints} use this variable
05/29/2023 07:52 PM
Hi @rushikeshvartak,
We are using it but we have test endpoint name and real display name so if we are using this test endpoint name is coming so to get the endpoint display name we are using ${endpointDisplayName} but it is not working
Best Regards,
Aditya chadde
05/29/2023 07:57 PM
Since variable is not exposed you need to use variable suggested above
05/29/2023 08:08 PM
Ok, but this is an issue rushikesh.
We have Menulink Test as an endpoint name so in every email it is showing Menulink test instead of Menulink. Since it's dev so it's fine for now.
05/29/2023 08:10 PM
Best practice is to use same same as display name and endpoint name
Try below script in email body and see if your issue resolves
${this.binding.variables.each {k,v -> println "$k = $v" + "<" + "br" + ">"}}
05/29/2023 08:12 PM
Ok, thank you
I will try this and confirm.
Best Regards,
Aditya Chadde