- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Enhanced Security Measures in Place: To ensure a safer experience, we’ve implemented additional, temporary security measures for all users.
08-11-2023 06:06 AM
Hi everyone,
In our environment, we are supposed to generate reports through playbooks since we want to be able to customize the template according to the incident type. Executing the report is simple but downloading is not that simple.
I am following the api documentation https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR-API/ here
/report/{id}/{requestId}/execute
/report/{id}/latest
I am trying to download the latest report but it won't download unless I give it the full file name as
/report/criticalAndHighIncidentsReport/latest/report_Critical_and_High_incidents_1691757152936982691.pdf
I am not sure if I am missing something here. How can I download the latest report without having to provide the file name? The file name here appears to be downloaded right away on the UI but this piece of information is not available in the api.
08-14-2023 12:28 AM
Hi @EnesOzdemir, If you go down the API route, you will need to grab the file from the filesystem or you can return the file object to the warroom. Before I suggest solution for this method, have you tried using the OOTB command like
!GenerateSummaryReports ids=<incidentID> type=pdf name=<template>
!GenerateInvestigationSummaryReport
!generateGeneralReport
!generateSummaryReport
I think they all do the same thing. But have you tried these, you can specify the template name. Once the report is ready it will be added to the context.
08-11-2023 06:07 AM
forgot to mention the error I get from executing /report/criticalAndHighIncidentsReport/latest
{"id":"errDownloadLatestReport","status":400,"title":"Failed to download latest report","detail":"Failed to download latest report","error":"","encrypted":false,"multires":null}
08-14-2023 12:28 AM
Hi @EnesOzdemir, If you go down the API route, you will need to grab the file from the filesystem or you can return the file object to the warroom. Before I suggest solution for this method, have you tried using the OOTB command like
!GenerateSummaryReports ids=<incidentID> type=pdf name=<template>
!GenerateInvestigationSummaryReport
!generateGeneralReport
!generateSummaryReport
I think they all do the same thing. But have you tried these, you can specify the template name. Once the report is ready it will be added to the context.
08-14-2023 11:28 PM
@jfernandes1 genarateGeneralReport works thank you 🙂
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!