FlowmageDocs

Upload attachment

BetaChanges data

Adds a document or CV to Carerix.

Settings

SettingWhat it is
ConnectionRequiredThe Carerix connection the step signs in with.
File nameRequiredThe name Carerix stores and offers the document under, extension included.
Contents (base64)RequiredThe file itself, as base64 — {{ file("cv.pdf").base64 }} from the file store, or the output of the Download attachment node. Carerix accepts 10 MB per request and base64 is a third wider than the bytes, so anything over 7 MB is refused here.
LabelWhat Carerix shows the document as. Empty uses the file name.
Owner idtext
Document type codeThe code of the Carerix document type, looked up by code rather than by id — for example cv or contract.
Other fieldsAny other CRAttachmentRequest field, by name — docs.carerix.io/graphql has the full list. Dates are yyyy-MM-dd HH:mm:ss in Amsterdam time, and a list value is set by its code with a _lookup.
List-value languageWhich language Carerix answers its list values (statuses, types, results) in. It does not translate the data.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `carerix`)
fileNametext
contentBase64text
labeltext
ownerUserIdtext
typeNodeValuetext
extraFieldsobject (any keys), by default {}
language"" or "DUTCH" or "ENGLISH" or "FRENCH" or "GERMAN" or "HUNGARIAN" or "ITALIAN" or "POLISH" or "PORTUGUESE" or "SPANISH"

Output

FieldType
attachmentIdNew attachment idstring
attachmentobject
Sample output, and the expression for each field
  • attachment
    • _id"9001"
    • _kind"CRAttachment"
    • downloadName"cv-ada-lovelace.pdf"
  • attachmentId"9001"

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": "<contents (base64)>",
    "extraFields": {},
    "fileName": "<file name>",
    "label": "",
    "language": "",
    "ownerUserId": "",
    "typeNodeValue": ""
  },
  "label": "Upload attachment",
  "type": "carerix.uploadAttachment",
  "version": 1
}