Set Dropdown

The Set Element Dropdown building block selects a value from a dropdown menu in a Salesforce application (including dropdowns inside grid/table views). It is automatically created when you select a dropdown value while recording with the Salesforce Fusion Recorder. This block works only in browser sessions launched using the Salesforce Login block or within an active Salesforce recording session.

image-20260209-162300.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. Start a recording session using the Salesforce Fusion Recorder.

  2. Log in to Salesforce using the Salesforce Login block.

  3. Interact with a dropdown menu in the application (e.g., select a value).

  4. Stop the recording and save the automatically generated blocks, including Set Dropdown.

  5. Run the flow when it’s ready.

Building block parameters

Parameters
  • Block header: The green input connector triggers the block when the flow reaches it. The green output connector triggers when the dropdown value has been selected successfully. The block title (for example “Set Title Dropdown”) can be renamed by double-clicking it and typing a new title.

  • Text: Selects the value to choose from the dropdown list. During recording, the available options are fetched from the dropdown element in the UI, and the field shows the same list so you can pick a predefined value.

  • Fail: Triggers if the target dropdown element cannot be found within the configured timeout, so the flow can branch into fallback or error-handling logic.

  • 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: The maximum time the block waits for the dropdown (and its options) to become available 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