Set Variable
This method lets you update the value of a global variable used in the app.
Parameters
Parameters | type | Description |
---|---|---|
variableId | String | Unique Id of variable |
value | String or Number or Boolean | New value to variable |
payload | Object | Object with keys as variableId and its values in respective data type |
Syntax
Follow the below syntax to update a single global variable:
Follow the below syntax to update multiple variables:
Example
This command can be used to update an employee’s personal information such as their dependants, contact number, and address that could be of varied variable types.