Skip to main content

removeDataSource

Removes data source from a database table.

Field Configurations

KeyTypeDescriptionDefault Value
"params" (required)Objectundefinednull

Parameters

KeyTypeDescriptionDefault Value
"async"BooleanSpecifies whether the action should perform asynchronously.null
"error"StringEvent to be fired if action failed.null
"success"StringEvent to be fired if action is successfull.null
"table" (required)StringThe name of the database table.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: Create a removeDataSource action

Goal: Remove a data source from the database table called "bookings"

table, success and error keys have to be assigned within the params object of the action.

{
"type": "removeDataSource",
"params": {
"table": "bookings",
"success": "removeSourceSuccess",
"error": "removeSourceError"
}
}

Result:

The data source for database table "bookings" has been removed.