Showing 14 blocks

file: attach to document

In pins

flow
file
the file to add into the selected field
guid
_meta.guid of the document to add this file to.
document
Yes
v10.0.18
storage
storage this document is located in
Filepath (optional)
Defines an alternate filepath to be used. By default the file will be saved under /storage/code/file or /storage/guid/file. Should not include the filename

Out pins

flow
success
state of the execution, false may indicate this document was not found

file: build CSV

In pins

flow
filename
header
values
options (optional)

Out pins

flow
CSV file

file: build PDF

In pins

flow
filename
The name this file should get and be seen as by the user.
header (optional)
The header that will be rendered on the PDF.
Header Height (px) (optional)
The height the header will receive in the PDF.
content
footer (optional)
The footer that will be rendered on the PDF.
Footer Height (px) (optional)
The height the footer will receive in the PDF.

Out pins

flow
PDF file
Success
Error (optional)

file: Download

In pins

flow
host
Could be a FTP or HTTP(s) host. e.g. ftp://username:password@host/file.pdf

Out pins

flow
success
file
Array of files retrieved from endpoint
headers
HTTP Response Headers
error (optional)

file: elseif

If.. then.. else if.. default..


In pins

default
else if
then

Out pins

file

file: generate from value

Generates a file from the given value.


In pins

flow
filename
The name of the file.
extension
The extension of the file, e.g. pdf.
data
The contents of the file, e.g. JSON, XML or CSV data.

Out pins

flow
success (optional)
File succesfully created?
file
Output file.

file: get

Use a custom provided file.

custom, upload

In pins

Out pins

file

file: if

If.. then.. else..

branch

In pins

true
false
boolean

Out pins

file

file: multiple

Merge an array of files together.

concat

In pins

file
file

Out pins

file

file: parse CSV

Parse a CSV file into an array of objects.


In pins

flow
file
File to parse as CSV.
separator (optional)
,
The seperator used to split values on a row.
Has headers (optional)
false
Indicates if the CSV has headers or not, we will use the headers to create objects using these keys if true is given.
Custom headers (optional)
has_headers
Array of headers to be used in case has_headers is set to false.

Out pins

flow
array
error (optional)

file: parse MT940

Parse a MT940 defined XML file into an array of statements.


In pins

flow
file
The MT940 file to be parsed.

Out pins

flow
statements
An array of objects containing the parsed statements of the provided MT940 file.

file: parse XML

Parse a XML file into an object with XML attributed data.


In pins

flow
file
File to parse as XML.

Out pins

flow
XML object

response: Reply as File

In pins

flow
connection
code
HTTP Status Code to return on this response.
Headers (optional)
Custom HTTP Headers to set, Array of Objects [{ key: Value, value: Value }]
root
Root directory for relative filenames. Access to files will be restricted to this folder and its subfolders. Make sure the filepath does not contain the root. This should not be dynamic due to security reasons.
Filepath

Out pins

flow
connection

file: Upload

In pins

flow
host
Could be a FTP or HTTP(s) host. e.g. ftp://username:password@host/file.pdf
file

Out pins

flow
success
error (optional)