D365 Set Element Dropdown

The Set Dropdown block is used to select a value from a dropdown list inside a Dynamics 365 Finance & Operations (D365 F&O) web application. It is automatically generated when the user selects a value during a D365 recording session using the Fusion Recorder.

This block supports selecting values either by visible text or by index position, making it adaptable to dropdowns with stable labels or dynamic content. It works with both standard dropdowns and combo boxes, and supports static selections as well as dynamic inputs from other blocks.

Note: This block only works in browser windows launched using the Login block or within an active D365 recording session.

Fully expanded, the D365 Set Element Dropdown block shows the following properties:

image-20251120-102325.png

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

  1. Launch the D365 Fusion Recorder and interact with a dropdown or combo box to automatically generate this block.

  2. Set how the dropdown should be selected by choosing Set value by (Text or Index).

  3. Enter a fixed value or connect the input dynamically using Text or index-based input.

  4. Save the recording to place the block onto the canvas with your configuration.


Building block parameters

Parameters
  • Set value by
    Specifies the method for selecting the dropdown value. You can choose one of the following:

    • Text: Matches the exact visible label in the dropdown. Ideal when values are consistent and known.

    • Index: Selects based on the item’s position. For example, 1 selects the first item. Useful for dynamic content where labels may vary.

    When using Index, you can enter multiple values (e.g., 1;3;5 for combo boxes), and the block supports both static input and dynamic values via connectors.

  • Text
    Defines the value to select in the dropdown. This field is populated automatically during recording and shows the available options. You can also type in a value or link it to a token or another block.

  • Fail
    Triggers if the dropdown cannot be found or the value cannot be set within the timeout. Use this to implement error handling or conditional branching.

  • Source element
    Optionally scopes the block to operate within a specific UI container. This is useful when similar dropdowns exist in different sections of a form.
    In Early Access versions, this setting may not be user-editable.

  • Browser window
    Specifies the browser instance in which the dropdown resides.
    In Early Access, only a single browser window is supported, so this field is static.

  • Default timeout
    Allows the block to use the default timeout value defined in the flow settings. If not selected, a manual timeout value must be provided (see below).

  • Timeout
    Specifies how long to wait for the dropdown element to be found before triggering the Fail connector. If Default timeout is unchecked, the default is 10 seconds unless modified.

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.

Fusion Recorder FAQ

Frequently asked questions about Fusion Recorder