- 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.
12-11-2023 08:01 AM
Hello all!
I have an automation in which I'm trying to upload a file to the "Attachments" section of the current incident.
I can upload the file to the war room, but I would also like to move the file to the attachments section of the incident so that user's can easily access it.
My Current Implementation:
log_content = log_buffer.getvalue()
log_buffer.close()
demisto.results(fileResult("results.csv", log_content))
I want the file to show up here:
12-12-2023 07:19 AM
@BowenAguero,
To upload a file as an attachment, it will require the DemistoAPI integration to be set up.
Once the integration is running, you can run this command in your automation or directly in the playbook as a task.
!demisto-api-multipart uri="/incident/upload/<incident_id>" entryID=<artifact_entry_id>
Thanks
12-12-2023 07:19 AM
@BowenAguero,
To upload a file as an attachment, it will require the DemistoAPI integration to be set up.
Once the integration is running, you can run this command in your automation or directly in the playbook as a task.
!demisto-api-multipart uri="/incident/upload/<incident_id>" entryID=<artifact_entry_id>
Thanks
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!