FlowmageDocs

Download file

BetaReads data

Downloads a file attached to an AFAS Profit dossier item.

Settings

SettingWhat it is
ConnectionRequiredThe AFAS Profit connection the step signs in with.
File idRequiredThe file's GUID, from a GetConnector over Bestanden bij dossier.
File nameRequiredThe file's ORIGINAL name in AFAS Profit — a name of your own is refused.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `afas-profit`)
fileIdtext
fileNametext

Output

FieldType
nameFile namestring
contentTypestring
base64File contents (base64)string
sizeSize in bytesnumber
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
}