Schedule and call the OOTB asset reports generation and store it in dam location | Community
Skip to main content
Adobe Employee
February 25, 2024
Solved

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

  • February 25, 2024
  • 1 reply
  • 715 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by narendragandhi

Hi @sateeshre2 

 

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.

 

 I hope this helps to decide on approach. 


Thanks

Narendra

1 reply

narendragandhi
Community Advisor
narendragandhiCommunity AdvisorAccepted solution
Community Advisor
February 26, 2024

Hi @sateeshre2 

 

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.

 

 I hope this helps to decide on approach. 


Thanks

Narendra

Adobe Employee
February 26, 2024

Thanks for the info. @narendragandhi  

I tested using postman and it is working.