The Set Toggle Button block is used to change the state of toggle switches in Salesforce applications. These controls are commonly used to enable or disable settings, such as activating notifications or turning a feature on or off.
The block is created automatically when you interact with a toggle element while using the Salesforce Fusion Recorder. It also supports toggle actions inside grid elements, so you can automate switches that appear in tabular views.
This block works only in browser sessions launched using the Salesforce Login block or within an active Salesforce recording session.
Fully expanded, the Set Toggle Button block shows the following properties:
Note: The screenshot on this page uses the Elegance Design, introduced in 2025.3. If you are using an earlier version, your layout may look different.
Quick-start
-
Start the Salesforce Fusion Recorder and record your scenario. When you interact with a toggle in the Salesforce UI, the recorder automatically inserts a Set Element Toggle block into the recording flow.
-
Save and close the Fusion Recorder so the recorded flow, including the Set Element Toggle block, is converted into a Studio flow, and optionally adjust parameters such as Toggle state and Default timeout.
-
Run the flow from Studio when it’s ready.
Building block parameters
Resources
|
Topic |
Description |
|---|---|
|
Common questions about creating, running, and managing flows in Leapwork. |
|
|
Guidelines and solutions for identifying and fixing issues that occur when building or running flows in Leapwork. |
|
|
Frequently asked questions about Salesforce |
|
|
How to use the Salesforce Fusion Recorder |