Skip to main content
Version: 4.64

importTable

Imports one or multiple tables to the app that have been previously save as a JSON file using the exportTable 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" (required)Objectundefinednull
"trailingDelimiter"StringThe trailing mustache delimiter to use.null
"type" (required)StringType name of the action.null

Parameters​

KeyTypeDescriptionDefault Value
"async"BooleanSpecifies whether the action should perform asynchronously.null
"type"ImportTableTypeDetermines how the table date should be inserted."replace"

Examples​

Example 1: Import tables​

Show ExampleHide Example

Import a file that contains a set of tables previously exported from the app using the exportTable actions.

{
"type": "importTable",
"params": {
"type": "replace",
"onErrorType": "breakingEvent",
"onError": "importTableError",
"onSuccessType": "return"
}
}

Make sure the type param is set correctly when importing the tables to avoid accidentially overwriting existing data.