Skip to main content
Question

Automatically Retrieve and Process Files Attached to a Case

  • Oct 9, 2026 11:52 AM UTC
  • 1 reply
  • 86 views

stutib
Forum|alt.badge.img

I am working on a use case in Google SecOps SOAR where I want to automatically retrieve files attached to a case and submit them to an external platform for further analysis.

We are using the get_attachments function from the Siemplify SDK to retrieve attachments associated with a case. However, we have noticed that this function retrieves attachments added through case comments but does not seem to return attachments added by other actions.

For example, suppose an action adds a file attachment when it is executed within a case. The attachment is visible in the result of that action. Later, when another action runs on the same case and uses the get_attachments function from the Siemplify SDK, the attachment added by the previous action is not returned. However, attachments added through case comments are returned successfully.

Our goal is to retrieve files associated with a case, regardless of whether they were added through case comments or by other actions, so that we can use them in subsequent automation steps.

Is there a way to retrieve attachments added by actions in the case?

1 reply

hzmndt
Staff
Forum|alt.badge.img+12
  • Staff
  • Oct 15, 2026 5:28 AM UTC

​@stutib 
 

The reason siemplify.get_attachments() (and the Marketplace FileUtilities -> Get Attachment action) does not return those files is that Google SecOps SOAR stores Case Wall Evidence and Action Result Attachments as two different Case Wall activity types:

  1. Case Wall Evidence (type: 4 / CASE_EVIDENCE): Added manually via the Case Wall + Evidence button or via siemplify.add_attachment(file_path). This is the only type returned by siemplify.get_attachments().
  2. Action Result Attachments (type: 3 / CASE_ACTION): Added by playbook actions via siemplify.result.add_attachment(title, filename, base64_contents) (like in your screenshot). These are stored as Base64 strings inside that specific action execution's ScriptResult (scriptResultEntityData[].attachments) rather than as Case Evidence blobs.

Depending on whether you control the upstream action or are pulling from a commercial integration, here are the 3 verified ways to retrieve and process those files automatically:

Option 1: Retrieve Action Result Attachments (type: 3) in a Downstream Custom Action

Option 3: Save as Case Wall Evidence (type: 4) so siemplify.get_attachments() Works