Upload a File to the "Attachments" Section of an Incident

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Please sign in to see details of an important advisory in our Customer Advisories area.

Upload a File to the "Attachments" Section of an Incident

L0 Member

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:

BowenAguero_0-1702310406529.png

1 accepted solution

Accepted Solutions

L2 Linker

@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

View solution in original post

1 REPLY 1

L2 Linker

@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

  • 1 accepted solution
  • 660 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!