Updated TOPdesk Get Attachment Action with New Output Options

:bullseye: Goal

With the release of TOPdesk library v1.7.0, the Get Attachment action has been updated to improve usability, handle large files more gracefully, and provide more flexible output options.

:toolbox: When to Use

  • When retrieving attachments from TOPdesk incidents & Operator Changes & Operator Changes Activity.

  • When you need to either:

    • Get a list of download links from the API, or

    • Save files directly to Mate Drive for further automation.

:rocket: What’s New in v1.7.0

:counterclockwise_arrows_button: Changes

  • :cross_mark: Removed old base64 file content outputs (less efficient, harder to manage).

  • :white_check_mark: Added Output Type Selection with two options:

    1. Array of Download Links → returns attachment links from the TOPdesk API.

    2. Save to Mate Drive → stores files in a specified folder path in Mate Drive. Output includes file paths for downstream use.

  • :straight_ruler: Added 60MB file size limit: attachments larger than 60MB are skipped automatically to avoid flow breaks.

:warning: Important Note

Since attachments can now be saved in Mate Drive, remember to add a “Delete from Mate Drive” action at the end of your automation to keep storage clean.

:gear: Architecture / Flow

  • Connector: TOPdesk → Get Attachment

  • Output:

    • Option 1: [ { "downloadUrl": "...", "fileName": "..." } ]

    • Option 2: [ { "file_content": "mate:/attachments/...", "file_name": "..." } ]

  • Next Step: Optional cleanup with Delete from Mate Drive.

:white_check_mark: Output Examples

Option 1 – Array of Download Links

[
  {
    "description": null,
    "downloadUrl": "/tas/api/incidents/id/11111111-2222-3333-4444-555555555555/attachments/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/download",
    "entryDate": "2025-01-15T14:45:30.000+0000",
    "fileName": "test_document.docx",
    "id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
    "invisibleForCaller": false,
    "operator": {
      "id": "99999999-8888-7777-6666-555555555555",
      "name": "API, DemoUser"
    },
    "person": null,
    "size": 123456
  }
]

Option 2 – Save to Mate Drive

[
  {
    "entry_date": "2025-02-18T11:20:45.000+0000",
    "file_content": "C:\\Program Files\\DemoApp\\repository\\11111111-2222-3333-4444-555555555555\\dummy_document.docx",
    "file_name": "dummy_document.docx"
  }
]

:magnifying_glass_tilted_right: Troubleshooting

  • If attachments above 60MB do not appear → check logs; they are automatically skipped.

  • If saving to Mate Drive fails → verify the Storage Folder Path exists (mate:/attachments by default).

  • Always ensure Delete from Mate Drive is included if files should not persist.

:light_bulb: Best Practices

  • Prefer download links if you only need references to files.

  • Use Mate Drive only if the automation requires file manipulation.

  • Clean up files with Delete from Mate Drive at the end of flows.

  • Keep folder paths structured (e.g., mate:/attachments/incidents).

:link: Related

1 Like