SuperOps icon

SuperOps

Interact with the SuperOps MSP GraphQL API

Ticket → Download Attachment

AI-generated

Summary

Retrieves and stores a specific attachment file from a SuperOps ticket conversation or note as a binary file.

Inputs

  • ticketId (required) — Numeric SuperOps ticket ID.
  • attachmentModule (required) — Type of attachment to download (Ticket Conversation Attachment or Ticket Note Attachment).
  • conversationId — ID of the conversation that owns the attachment. Required if attachmentModule is TICKET_CONVERSATION_ATTACHMENT.
  • noteId — ID of the note that owns the attachment. Required if attachmentModule is TICKET_NOTE_ATTACHMENT.
  • fileName (required) — Stored file name from the Attachment metadata (the 'fileName' field).
  • outputBinaryPropertyName — Name of the binary field to store the downloaded file under (defaults to 'data').

Output shape

A single record with a binary file and metadata (ticketId, fileName, size, contentType).

The binary data is stored in the field specified by 'outputBinaryPropertyName'.

Examples

Example 1: Download a conversation attachment

Set attachmentModule to Ticket Conversation Attachment, provide ticketId and conversationId, and specify the fileName from the attachment metadata.

Example 2: Download a note attachment

Set attachmentModule to Ticket Note Attachment, provide ticketId and noteId, and specify the fileName from the attachment metadata.

Links

Discussion