FlowmageDocs

Upload attachment

BetaChanges data

Uploads a file to Zendesk so a comment can carry it.

Settings

SettingWhat it is
ConnectionRequiredThe Zendesk connection the step signs in with.
File nameRequiredThe name Zendesk stores, extension included. Pick the file, then paste its contents below.
Media typeWhat kind of file this is. Zendesk stores it as given, and a wrong value breaks preview and playback in the agent's browser.
File contentsRequiredBase64 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 uploadThe 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
KeyValue
connectiontexta connection id from `requires.connections` (provider `zendesk`)
nametexta file name, listed in `requires.files`
contentTypetext, by default "application/octet-stream"
contentBase64textits `{{ }}` must give a string
attachmentSettext

Output

FieldType
attachmentSetPaste this into Attachment tokensstring
attachmentobject
attachmentIdstring
contentUrlWhere the file can be downloadedstring
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
}