Skip to main content
Version: 4.64

loadLocalData

Loads data from a local file. The result is available under 'data'.

Field Configurations​

KeyTypeDescriptionDefault Value
"params" (required)Objectundefinednull

Parameters​

KeyTypeDescriptionDefault Value
"async"BooleanSpecifies whether the action should perform asynchronously.null
"dataEncoding" (required)StringThe encoding for the data.null
"fileName" (required)StringThe name of the file to load the data from.null
"onError"StringEvent that will be fired if the loading was successfull.null
"onErrorType"OnErrorTypeType of event that will be fired on error.null
"onSuccess"StringEvent that will be fired if the loading was successfull.null
"onSuccessType"OnSuccessTypeType of event that will be fired on success.null

Inherited​

From Base Action

Base Action

Field Configurations

KeyTypeDescriptionDefault Value
"dynamicParams"ObjectDynamic params to retrieve data from a specific context e.g. a userSetting.null
"leadingDelimiter"StringThe leading mustache delimiter to use.null
"params"Object,ArrayObject containing the properties of the action.null
"trailingDelimiter"StringThe trailing mustache delimiter to use.null
"type"StringType name of the action.null

Examples​

Example 1: Loads a PDF as a base 64 string​

Show ExampleHide Example

Goal: The base 64 of the PDF is availabe as a parameter.

Loads the given file as an encoded string into the parameters.

{
"type": "loadLocalData",
"params": {
"dataEncoding": "base64",
"fileName": "voucher.pdf",
"onSuccess": "pdfData",
"onSuccessType": "return"
}
}