Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Carerix connection the step signs in with. |
| Attachment id | The _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
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `carerix`) |
attachmentId | text |
Output
| Field | Type |
|---|---|
nameFile name | string |
contentType | string |
base64File contents (base64) | string |
sizeSize in bytes | number |
attachmentThe attachment record | object |
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
}