Click HERE to see how Saviynt Intelligence is transforming the industry. |
07/29/2024 07:22 AM
Hi Saviynt family,
I need to refer back to, or 'access' certain values from the Analytics report data in my email template. I tried using ANALYTICSDATA.'USERNAME'[i] and ANALYTICSDATA.'firstname'[i] but they don't seem to work.
Can someone suggest what I might be missing? Attaching the Email Template below.
Hi,
Please find data table below :
<table>
<tr><th>Username</th><th>First Name</th><th>Account End Date</th></tr>
<%int count=Integer.parseint(“${ANALYTICSDATA.Application.size()}”); for(int i=0;i<count;i=i+1){%>
<tr><td>${ANALYTICSDATA.'USERNAME'[i]}</td><td>${ANALYTICSDATA.'firstname'[i]}</td><td>${ANALYTICSDATA.'enddate'[i]}</td></tr><%}%>
</table>
Thank you!
07/29/2024 07:29 AM
Your email To should be ${userEmail} and SQL query should have column alias as usename
Please share report and email template config screenshot if still facing issue after validating above
07/29/2024 08:09 AM - edited 07/29/2024 08:11 AM
Sure, please find the Analytics Query, Report config and Email Template below :
Analytics Report Query:
Analytics Report Config:
Email Template:
07/29/2024 08:22 AM
07/29/2024 10:29 AM - edited 07/29/2024 10:33 AM
@amanmalakar007 please flow below article it will help u.
query remove for username alias , want use other username
example :
select u.username,u.username as 'username1',u.email as 'email' from user u