Skip to main content
Version: 4.64

saveDataLocally

Saves data as a local file.

Field Configurations​

KeyTypeDescriptionDefault Value
"params" (required)Objectundefinednull

Parameters​

KeyTypeDescriptionDefault Value
"async"BooleanSpecifies whether the action should perform asynchronously.null
"data" (required)StringThe encoded data.null
"dataEncoding" (required)StringThe encoding of the data.null
"fileName" (required)StringThe name of the file to save the data at.null
"onError"StringEvent that will be fired if the saving was successfull.null
"onErrorType"OnErrorTypeType of event that will be fired on error.null
"onSuccess"StringEvent that will be fired if the saving 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: Saves a base 64 encoded PDF​

Show ExampleHide Example

Goal: The PDF can be used in a pdf layer.

Saves the data, which is encoded in the given encoding, as a local file.

{
"type": "saveDataLocally",
"params": {
"data": "{{pdfData}}",
"dataEncoding": "base64",
"fileName": "voucher.pdf"
}
}