Actions11
Download Attachment
AI-generatedOverview
This node operation downloads an attachment from a specified ticket in ManageEngine ServiceDesk Plus. It allows users to either save the downloaded file to a specified path or retrieve the file data as a base64-encoded string if no path is provided. This is useful for automating the retrieval of ticket attachments for further processing or storage.
Use Case Examples
- Automatically download attachments from support tickets for backup or analysis.
- Retrieve attachments to include in automated reports or notifications.
Properties
| Name | Meaning |
|---|---|
| Ticket ID | ID of the ticket from which to download the attachment. |
| Attachment ID | ID of the specific attachment to download. |
| Download Path | Optional file path where the downloaded attachment should be saved. If not provided, the file data is returned as base64. |
Output
JSON
success- Indicates if the download operation was successful.ticketId- The ID of the ticket from which the attachment was downloaded.attachmentId- The ID of the downloaded attachment.downloadPath- The file path where the attachment was saved (if specified).fileData- Base64-encoded file data of the attachment (if no download path was specified).message- Status message about the download operation.
Dependencies
- Requires an API key credential for ManageEngine ServiceDesk Plus to authenticate requests.
Troubleshooting
- Ensure the Ticket ID and Attachment ID are correct and exist in the ServiceDesk Plus system.
- If specifying a download path, ensure the path is writable and the directory exists or can be created.
- Check network connectivity and API token validity if requests fail with authentication or connection errors.
- Error messages typically include the reason for failure, such as permission denied, file not found, or invalid IDs.