Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @Ashwin_Raju ,
You can trigger the ACS AEM Commons Report Builder using the Event Service in AEM. You can achieve this by creating a custom event handler that listens for specific events and then initiates the report building process within the ACS Report Builder.
Implementation Steps:
Hope it helps!
-Tarun
Hi @Ashwin_Raju ,
You can trigger the ACS AEM Commons Report Builder using the Event Service in AEM. You can achieve this by creating a custom event handler that listens for specific events and then initiates the report building process within the ACS Report Builder.
Implementation Steps:
Hope it helps!
-Tarun
Never tried but it should be achievable using the ReportExecutor API provided by ACS AEM Commons.
Reports are stored under /var/acs-commons/reports. Retrieve the report configuration resource (e.g., /var/acs-commons/reports/my-report/config).
Resource reportConfig = resourceResolver.getResource("/var/acs-commons/reports/my-report/config")
Adapt the configuration resource to your ReportExecutor implementation. The executor type is defined in the report's reportExecutor property.
ReportExecutor executor = reportConfig.adaptTo(MyCustomReportExecutor.class);
executor.setConfiguration(reportConfig); // Apply config
Use the getAllResults() method to fetch results. Process them as needed (e.g., export to CSV, inject into services).
ResultsPage results = executor.getAllResults();
results.getResults().forEach(result -> {
// Process each result (e.g., Resource, Node)
});
References:
@Ashwin_Raju Just checking in — were you able to resolve your issue?
We’d love to hear how things worked out. If the suggestions above helped, marking a response as correct can guide others with similar questions. And if you found another solution, feel free to share it — your insights could really benefit the community. Thanks again for being part of the conversation!
Views
Replies
Total Likes
Views
Likes
Replies