FlowmageDocs

Download attachment

BetaReads data

Fetches one Carerix document's contents as base64.

Settings

SettingWhat it is
ConnectionRequiredThe Carerix connection the step signs in with.
Attachment idThe _id of the document. The List attachments node answers one. A large file arrives about a third bigger than it is on disk, because base64 is wider than bytes — a run whose parse limit is smaller than that refuses it.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `carerix`)
attachmentIdtext

Output

FieldType
nameFile namestring
contentTypestring
base64File contents (base64)string
sizeSize in bytesnumber
attachmentThe attachment recordobject
Sample output, and the expression for each field
  • attachment
    • _id"9001"
    • _kind"CRAttachment"
    • label"CV"
  • base64"QUJD"
  • contentType"application/pdf"
  • name"cv-ada-lovelace.pdf"
  • size2048

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": {
    "attachmentId": "",
    "connection": "<connection id>"
  },
  "label": "Download attachment",
  "type": "carerix.downloadAttachment",
  "version": 1
}