Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

print endpointname in email using if else

cgowda
New Contributor III
New Contributor III

Hi Experts,

We have a runtime analytics(report of active accounts assigned to terminated users) to trigger emails with attachment to application owner.

Case1: We have to print email address in TO field using if else, i tried below one but didn't trigger email

<% if(endpoint.endpointname=="Active Directory") print "abc@gmail.com"
else print "" %>

Case2: We have to print application name using if else in body of the template, i tried below one but didn't trigger email

<% if(endpoint.endpointname=="Active Directory") print "Active Directory"
else print "application" %>

please suggest if you know any other way to trigger

Regards,

Chandan Gowda

3 REPLIES 3

rushikeshvartak
All-Star
All-Star

Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

indra_hema_95
Regular Contributor III
Regular Contributor III

Hi @cgowda can you try this once?

<% if(${ANALYTICSDATA.'Application'[0]}=="Active Directory") print "abc@gmail.com"
else print "" %>

Regards,

Indra

stalluri
Valued Contributor II
Valued Contributor II

@cgowda 

${ANALYTICSDATA.'APPLICATION'[]}  This will work.


Best Regards,
Sam Talluri
If you find this a helpful response, kindly consider selecting Accept As Solution and clicking on the kudos button.