Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/04/2024 08:20 PM
Hi,
There is user manager campaign running for Access Verification Only.
We are sending the report of campaign using run time analytics to a person via email. We have a requirement where we want to send some details in email like
Sub: Campaign report for <Application name>
Body:
Total Access:
Certified:
No Response:
Revoked:
Attached the report query.
Query is giving expected output but cannot map Application name and other details in email.
I get error as:
groovy.lang.MissingPropertyException: No such property: ANALYTICSDATA for class: SimpleTemplateScript106104 at SimpleTemplateScript106104.run(SimpleTemplateScript106104.groovy:8) at com.saviynt.ecm.analytics.AnalyticsESService.notifyEmailToOwner(AnalyticsESService.groovy:2663) at com.saviynt.ecm.analytics.AnalyticsESService.emailAction(AnalyticsESService.groovy:16541) at com.saviynt.ecm.analytics.AnalyticsESService.doFileArchivalAndSendEmail(AnalyticsESService.groovy:14717) at com.saviynt.ecm.analytics.AnalyticsESService$_runControl_closure210_closure318.doCall(AnalyticsESService.groovy:14550) at com.saviynt.ecm.analytics.AnalyticsESService$_runControl_closure210.doCall(AnalyticsESService.groovy:14549) at java.lang.Thread.run(Thread.java:750) |
I have referred a post Solved: Print the content of the analytics in the email bo... - Saviynt Forums - 85171 but still getting error.
08/04/2024 09:03 PM
08/04/2024 09:18 PM
Advanced HTML: True
To: ${userEmail}
CC: <personal email>
Sub: ACCESS CERTIFICATION ${ANALYTICSDATA.APPLICATION} AUDIT Report
Body:
<table>
<tr>
<th>
APPLICATION
</th>
</tr>
<%int count=Integer.parseInt( "${ANALYTICSDATA.APPLICATION.size()}");for(int i=0;i<count;i=i+1){%>
<tr><td>
${ANALYTICSDATAMAP.'APPLICATION'[i]}
</td>
</tr><%}%>
</table>
Report configuration:
08/04/2024 09:22 PM
that should be fine. Your report should be static and not dynamic . Your report needs input as campaign name that should be static
08/04/2024 09:43 PM
I changed the query and hard coded campaign name in where condition.
Tried SELECT 'admin' as username / SELECT 'admin' as 'username'
Still getting error below:
08/04/2024 09:46 PM
It should be USERNAME not username
08/04/2024 11:57 PM
@Kaustubh yes it should be username dont pass alias name
example:
SELECT u1.username, 'admin' as 'username1' from users u1