Set Variable action

Note: On the Details tab of the Action, select Set Variable as the action type. Add the JavaScript on the Settings tab.

You can add JavaScript to set or get data from another Converse interaction in the same tenant (company account), and to manipulate that data. You can also use this action type to reformat the data returned by a REST call that is not in the right format. For more information see Valid JSON formats.

For more information, see:

Debugging your code

On the Set Variable tab, you can debug your code by using statements similar to this. These will appear in the log:

log("some text", context.myvariable)