Zendesk Batch Attachments
Action for adding multiple URL-based attachments to a Zendesk ticket as a non-public comment.
Description
This action allows you to:
- Upload multiple attachments to a Zendesk ticket using file URLs
- Add a comment along with the attachments
- All comments are set as non-public by default
- Files are automatically named based on their URL if no name is provided
Inputs
| Name | Type | Description | Required | 
|---|---|---|---|
| Ticket ID | String | ID of the Zendesk ticket to update | Yes | 
| File URLs | String | Single URL or comma-separated list of URLs to attach | Yes | 
| Body Comment | String | Text content for the ticket comment | Yes | 
| Zendesk Token | Credentials | Your Zendesk API token | Yes | 
| Zendesk Username | Credentials | Your Zendesk email with /token | Yes | 
| Zendesk Subdomain | Credentials | Your Zendesk subdomain (from your Zendesk URL) | Yes | 
Outputs
| Name | Type | Description | 
|---|---|---|
| Success | Boolean | Indicates if the operation completed successfully | 
| Attachments Processed | Number | Count of attachments successfully added to the ticket | 
Example Usage
{
  "ticket": "12345",
  "fileURLs": ["https://example.com/file1.pdf", "https://example.com/file2.jpg"],
  "bodyComment": "Attached are the requested files",
  "token": "YOUR_ZENDESK_TOKEN",
  "username": "[email protected]/token",
  "subdomain": "your-subdomain"
}
Error Handling
- Success is trueonly if all files are uploaded and the comment is posted
- If any file fails to upload, the action returns success: falsewith an error message
- Each successful file upload is counted in attachments_processed
Updated 11 months ago
