FlowmageDocs

Upload a file

BetaChanges data

Attaches a file to AFAS Profit through an UpdateConnector.

Settings

SettingWhat it is
ConnectionRequiredThe AFAS Profit connection the step signs in with.
UpdateConnectorThe UpdateConnector the file is attached through, e.g. KnSubject.
File nameRequiredThe file's name, extension included. Pick the file, then paste its base64 below.
File contentsRequiredBase64 of the file — {{ file("invoice.pdf").base64 }}. Multipart uploads over the "Use fixed IP address" lane are unverified; leave that toggle off for this node.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `afas-profit`)
connectortext, by default "KnSubject"a value from the vendor's own list
fileNametexta file name, listed in `requires.files`
contentBase64textits `{{ }}` must give a string

Output

FieldType
responseAFAS Profit response bodyobject
Sample output, and the expression for each field
  • response{}

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>",
    "connector": "KnSubject",
    "contentBase64": "<file contents>",
    "fileName": "<file name>"
  },
  "label": "Upload a file",
  "type": "afas.uploadFile",
  "version": 1
}