FlowmageDocs

Upload employee document

BetaChanges data

Puts a document in a HiBob employee's folder.

Settings

SettingWhat it is
ConnectionRequiredThe HiBob connection the step signs in with.
Employee idRequiredPicked from the list HiBob offers.
Folder"shared" or "confidential" or "custom"
Folder idIn Bob: Settings → Documents → your folder — the id is in the address bar. Bob's own folder-metadata endpoint arrives as a node later.
Where the file comes fromBob can download the file itself from an address it can reach. Pick that when the file is already somewhere public and the flow never needs to hold it.
Document nameRequiredThe name Bob stores it under, extension included.
Web addressBob fetches the file from here, so the address has to be one Bob can reach.
File contentsBase64 of the file — {{ file("name").base64 }}.
TagsBob accepts tags only on the address form — the upload form has no field for them.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `hibob`)
employeeIdtexta value from the vendor's own list
folder"shared" or "confidential" or "custom", by default "shared"
folderIdtextused when `folder` is "custom"
source"bytes" or "url", by default "bytes"
documentNametexta file name, listed in `requires.files`
documentUrltextused when `source` is "url"
contentBase64textits `{{ }}` must give a string; used when `source` is "bytes"
tagstextused when `source` is "url"

Output

FieldType
documentIdstring
documentDocument, as Bob answered itobject
Sample output, and the expression for each field
  • document
    • id"77"
  • documentId"77"

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>",
    "contentBase64": "",
    "documentName": "<document name>",
    "documentUrl": "",
    "employeeId": "<employee id>",
    "folder": "shared",
    "folderId": "",
    "source": "bytes",
    "tags": ""
  },
  "label": "Upload employee document",
  "type": "hibob.uploadEmployeeDocument",
  "version": 1
}