--- id: set-variable title: Set variable --- This action allows you to create a variable and assign a `value` to it. :::info You can also trigger actions from the **JavaScript code**. Check it out [here](/docs/how-to/run-actions-from-runjs). :::
![ToolJet - Action reference -Set variable](/img/actions/setvar/setvar.png)