Skip to main content

setTablePollingState

Changes the polling state of a table to retrieve data from the provided source.

Field Configurations

KeyTypeDescriptionDefault Value
"params" (required)Objectundefinednull

Parameters

KeyTypeDescriptionDefault Value
"async"BooleanSpecifies whether the action should perform asynchronously.null
"state" (required)StringThe name of the state.null
"table" (required)StringThe name of the 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 setTablePollingState action

Goal: Create a setTablePollingState that is applying state "active" to the database table "chatMessages".

table and state keys have to be assigned within the params object of the action.

{
"type": "setTablePollingState",
"params": {
"table": "chatMessages",
"state": "active"
}
}

Result:

A setTablePollingState action that applies state "active" to the DB table "chatMessages" is created.