PSA Data Export guide

Export Autotask Ticket Attachments and Match Each File to Its Note

At a glance

Query attachments by ticket ID to discover the files and links. Keep the note, time-entry and parent-attachment IDs returned with each row. Retrieve each uploaded file by its attachment ID and check the saved bytes before counting it as a file in the archive.

  • Find the ticket ID
    Service Desk → Search → Tickets. Use the Autotask API steps below to retrieve the original files.
On this page
Published · Updated

Start with the original ticket ID

Using an API identity authorized for the ticket and its attachments, query TicketAttachments with an equality filter on ticketID. Follow the result pages. Autotask documents that this query can include attachments on the ticket’s notes and time entries. Capture id, ticketID, ticketNoteID, timeEntryID and parentAttachmentID where supplied, plus the filename, type and reported size. Keep the ticket ID used for discovery alongside the returned fields. Autotask’s attachment query change and relationship-field table

If a nested item supplies only a parent-attachment ID, look up that parent and follow the relationship back to its ticket, note or time entry. Record unresolved parents for follow-up. A second query scoped to a note may return an ID already discovered from the ticket. Keep one archive entry per attachment ID within the account, with both discovery paths. Two distinct IDs with the same filename each need their own entry. Autotask’s TicketNoteAttachments entity and nesting rules

Retrieve the file and preserve the relationship

  1. Classify the entry. Autotask distinguishes uploaded documents, file links, folder links and URLs. Keep the target of a link as a reference and label its outcome. Autotask’s guide to working with attachments
  2. For an uploaded item, request its data by ID using the attachment entity’s documented GET URL for your API zone, for example TicketNoteAttachments/{id} for a note attachment. The query identifies candidates. The individual response supplies the file data. Apigrate’s client example instead calls its own TicketAttachments.get(ticketID, attachmentID) wrapper and reads the base64 payload from the response. Autotask entity URLs · Apigrate’s pinned retrieval example
  3. Decode the base64 data to a file under a unique path such as 7021/902/screenshot.png. Compare the number of saved bytes against the reported fileSize when available. Open the saved file and confirm the contents match its parent. Record missing data, denied access, a size mismatch or an unreadable file separately.

Export Autotask attachments with their original ticket links

BackupPSA can help scope an Autotask attachment export that links each downloaded file to its ticket, note or time entry.

What you can export
Ask for a sample that includes files from a ticket, a note and a time entry. Open each file and check that its original ID and parent are recorded in the delivery.
How to get started
Use your work email to request a quote. If the export requires API access, ask your Autotask administrator to arrange read permissions and the required credentials.
Request an assisted Autotask export

Reconcile one ticket against the saved files

Illustrative manifest. Ticket 7021 concerns a display fault. The ticket query and the note query both return attachment 902. A time entry has a different image with the same filename.

Attachment ID Ticket Note or time entry Filename or target Type Reported / saved bytes Outcome
901 7021 Ticket itself service-order.pdf Uploaded file 18,432 / 18,432 PDF opens to the service order
902 7021 Note 510 screenshot.png Uploaded file 4,112 / 4,112 Fault visible, found by two queries
903 7021 Time entry 65 screenshot.png Uploaded file 4,208 / 4,208 Repaired display visible
904 7021 Note 511 Supplier status page External URL — / — Link only

Expect four distinct entries, three files and one link. If the before and after images open to the same picture, inspect the saved paths for an overwrite. If 902 has 3,900 saved bytes, retain its ID and failed outcome, retrieve it again with the authorized account, and recheck before delivering the archive.

Moving or exporting your data? Request a migration assessment.

Need the surrounding ticket records?

Plan the Autotask data export