Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The AFAS Profit connection the step signs in with. |
| File idRequired | The file's GUID, from a GetConnector over Bestanden bij dossier. |
| File nameRequired | The file's ORIGINAL name in AFAS Profit — a name of your own is refused. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `afas-profit`) |
fileId | text |
fileName | text |
Output
| Field | Type |
|---|---|
nameFile name | string |
contentType | string |
base64File contents (base64) | string |
sizeSize in bytes | number |
Sample output, and the expression for each field
- base64""
- contentType"application/pdf"
- name"invoice.pdf"
- size0
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": {
"connection": "<connection id>",
"fileId": "<file id>",
"fileName": "<file name>"
},
"label": "Download file",
"type": "afas.downloadFile",
"version": 1
}