and more in a single search tool across platforms. Read the announcement here. |
01/10/2024 04:15 AM
Hi Team,
We want to trigger email notification to different email address based on the endpoint name the task (New Account/Add Access) has been created for, we have tagged the email template at the endpoint level to trigger on task creation.
In the "To" field we tried with below, but its not working.
<% if (task?.endpoint == 'App1') print "xyz@dev.com" else print "abc@dev.com" %>
${task?.endpoint == 'App1' ? 'xyz@dev.com' : ''}
could you please help on this, how can we fetch the endpoint name in the "To" field of the template?
Thanks
Solved! Go to Solution.
01/10/2024 04:48 AM
try task?.endpoint.endpointname
01/10/2024 04:57 AM
@Ajit Try
${task.endpoint.endpointname}
${endpointDisplayName}
01/10/2024 08:11 PM
<%if (task.endpoint.endpointname== 'ABCD') print "" else print "${user.email},${requestor.email}" %> |
01/10/2024 08:33 PM - edited 01/10/2024 08:34 PM
Thanks a lot! everyone -task?.endpoint.endpointname worked