Set Panel State

The Salesforce Set Panel State building block expands or collapses UI sections (such as menus or panels) in a Salesforce application. It is automatically created when you interact with expandable elements during recording using the Salesforce Fusion Recorder. This block works only in browser windows launched using the Login block or within the current Salesforce recording session.

image-20260209-155220.png

Note: The layout shown in some documentation is part of the Elegance Design, introduced in Leapwork 2025.3. Earlier versions may display a different layout.

Quick-start

  1. Drag Set Panel State onto the canvas.

  2. Connect the block in the flow and specify the basic parameters required for this block to operate: State.

  3. Run the flow when it’s ready.

Building block parameters

Parameters
  • Block header: Shows the current title of the Set Panel State block. You can rename it by double-clicking the header and typing a new title. The green input connector triggers the block when the flow reaches it, and the green output connector triggers when the panel has been expanded or collapsed successfully.

  • State: Determines whether the target panel should be Expand or Collapse. The value is captured during recording, but you can switch it to control the intended UI state at runtime.

  • Fail: Triggers if the panel element cannot be located within the configured timeout period, so the flow can follow an alternative path or take corrective action.

  • Default timeout: Controls whether the block uses a fixed, local timeout or the flow’s default timeout. If the checkbox is not selected, the block uses the value in Timeout (sec) (default 10 seconds unless changed manually). If the checkbox is selected, the block uses the Default timeout configured in the flow settings.

  • Timeout (sec): Sets the maximum time (in seconds) the block waits for the panel element to appear before giving up and triggering Fail. This is separate from the case global timeout in Settings.

Resources

Topic

Description

Flows FAQ

Common questions about creating, running, and managing flows in Leapwork.

Flows Troubleshooting

Guidelines and solutions for identifying and fixing issues that occur when building or running flows in Leapwork.

Salesforce FAQ

Frequently asked questions about Salesforce

Salesforce Fusion Recorder

How to use the Salesforce Fusion Recorder