Skip to main content
Version: 4.61

setValueToUserSetting

Stores the provided value to a userSetting storage of the application.

note

UserSettings are stored within the device's persistent storage and will not be removed when the application is closed.

Field Configurations​

KeyTypeDescriptionDefault Value
"params" (required)Objectundefinednull

Parameters​

KeyTypeDescriptionDefault Value
"async"BooleanSpecifies whether the action should perform asynchronously.null
"key" (required)StringThe name of the user setting.null
"value" (required)StringThe value of the user setting.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 user setting with assigned static value.​

Goal: Create a user setting named "favoriteSeason" and assing it the value "summer"

Key and value have to be assigned within the params object of the action.

{
"type": "setValueToUserSetting",
"params": {
"key": "favoriteSeason",
"value": "summer"
}
}

Result:

The user setting "favoriteSeason" has been set with the value "summer"