Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Schedule and call the OOTB asset reports generation and store it in dam location

Avatar

Employee

Hi All,

We have a requirement to store the asset reports which are available OOTB in the custom dam location. I know we have the option to schedule it manually from the report console but I want my schedular to call the asset report generation and store in the dam location.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @SateeshRe 

 

You can make a POST call to http://localhost:4502/libs/dam/gui/content/reports/generatereport.export.json to generate the reports programmatically.

 

In the response, it sends the sling job ID which you can use to find the complete path where the report is generated under /var/dam/reports. You can then copy the generated CSV from the default path to the custom path under DAM. I have not looked at the implementation to see if the default report path would be configurable.

 

narendragandhi_0-1708917944799.png

 I hope this helps to decide on approach. 


Thanks

Narendra

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi @SateeshRe 

 

You can make a POST call to http://localhost:4502/libs/dam/gui/content/reports/generatereport.export.json to generate the reports programmatically.

 

In the response, it sends the sling job ID which you can use to find the complete path where the report is generated under /var/dam/reports. You can then copy the generated CSV from the default path to the custom path under DAM. I have not looked at the implementation to see if the default report path would be configurable.

 

narendragandhi_0-1708917944799.png

 I hope this helps to decide on approach. 


Thanks

Narendra