02/14/2023 08:29 AM
Hi All,
There is 1 requirement to add the Endpoint name and Endpoint description in the campaign create email template.
I tried with below binding variables, but emails will not get triggered .
${endpoint.endpointname}
${endpoint.description}
${endpoints.endpointname}
${endpoints.description}
Please let me know if I can try with any other variables .
Solved! Go to Solution.
02/14/2023 08:35 AM
I don't think endpoint details are exposed for campaign create notification as per documentation
You can validate by using below code in email template to see what variables are exposed
${this.binding.variables.each {k,v -> println "$k = $v" + "<" + "br" + ">"}}
02/17/2023 12:30 AM
Thank you for the above document , I tried with ${campaign.endpointids} variable which gives the endpoint , however requirement is to get the the endpoint name when tried with ${campaign.endpointname} it doesn't trigger the email since in campaign table I don't find endpoint name.
Please let me if any suggestions.
02/17/2023 05:19 AM
Please share the output of below variable
${this.binding.variables.each {k,v -> println "$k = $v" + "<" + "br" + ">"}}
In to hardcord your email. Enable Advanced CSS and in body just paste above and share the output
02/17/2023 06:06 AM
Its not exposed, you need loop over endpointids which are comma separated
02/21/2023 03:11 AM
@rushikeshvartak I have tried with this below syntax , please let me know if you were referring for this.
02/28/2023 11:58 PM
Hi All,
I even tried with below variables , but no luck . Let me know if there is any other approach to get the endpoint name in campaign templates.
03/01/2023 03:56 PM
Try below variables
EndpointName:
${def res = ''; campaign.endpointids?.split(',')?.eachWithIndex{ num, idx -> res = res + com.saviynt.ecm.identitywarehouse.domain.Endpoints.get(num)?.endpointname + ', ';}; return res;}
Description:
${def res = ''; campaign.endpointids?.split(',')?.eachWithIndex{ num, idx -> res = res + com.saviynt.ecm.identitywarehouse.domain.Endpoints.get(num)?.description + ', ';}; return res;}
03/02/2023 04:03 AM
Hi Saathvik,
Thank you so much, above variables worked successfully printing the Endpoint Name and Description.
Regards,
Swetha
03/02/2023 06:03 AM
Thanks @Swetha for confirming that they are working. If your issue is resolved can you close the thread by marking the respective response as solution so that it will help others who are having same issue.
03/02/2023 06:21 AM
@uthra_rahul Can you please keep a note on this thread.
We would need your help in accommodating the information on documentation portal.