Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Zendesk connection the step signs in with. |
| File nameRequired | The name Zendesk stores, extension included. Pick the file, then paste its contents below. |
| Media type | What kind of file this is. Zendesk stores it as given, and a wrong value breaks preview and playback in the agent's browser. |
| File contentsRequired | Base64 of the file — {{ file("name").base64 }}. Zendesk caps an attachment at 50 MB, and this run's own parse limit is usually the tighter one. |
| Add to an earlier upload | The value an earlier Upload attachment node answered. Fill it in to put this file in the same set, so one comment carries both. A set can be used for 60 minutes. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `zendesk`) |
name | texta file name, listed in `requires.files` |
contentType | text, by default "application/octet-stream" |
contentBase64 | textits `{{ }}` must give a string |
attachmentSet | text |
Output
| Field | Type |
|---|---|
attachmentSetPaste this into Attachment tokens | string |
attachment | object |
attachmentId | string |
contentUrlWhere the file can be downloaded | string |
Sample output, and the expression for each field
- attachment
- file_name"crash.log"
- id5
- attachmentId"5"
- attachmentSet"set-abc"
- contentUrl"https://acme.zendesk.com/attachments/token/set-abc/?name=crash.log"
Errors
When a step of this node stops a run, the run page shows a code. Look it up:
Example step
The step as a flow file holds it. Replace each value in <…>.
{
"config": {
"attachmentSet": "",
"connection": "<connection id>",
"contentBase64": "<file contents>",
"contentType": "application/octet-stream",
"name": "<file name>"
},
"label": "Upload attachment",
"type": "zendesk.uploadAttachment",
"version": 1
}