Expand/collapse tree node in window Action(Power Automate Desktop)
This action expands or collapses a node in the tree view that selects a file directory.
How to use
Drag "Expand/collapse tree node" from "UI automation" under "Actions".

Set parameters.

Parameter
UI element
Specify the expansion/collapse target.
The following pops up when you click on the input field.
If you have already registered a UI element, select the object,If not registered, click the "Add UI element" button.

Hover the mouse over the menu item you wish to select when the next window appears.

When you hover the mouse over it, it will be surrounded by a red frame.
Then hold down the Ctrl key and click.

The input field should appear as shown in the following figure (the text will vary depending on the UI element you have selected).

Folders Path
This parameter works even if blank.
It is used to expand a UI element and open a folder further down (specified by a / delimiter).
For example, specifying "Pictures/Screenshots" will open up to the Screenshotsbelow the Pictures.

Use regular expression
This parameter works even if blank.
Turn ON if you want to use regular expressions for folder paths.

There is a wide variety of regular expressions, but the most commonly used ones are listed below.
Tegular expression | Target |
---|---|
* | All Folders. |
Test* | Folders whose name begins with Test. |
*Test | Folders whose name ends with Test. |
*Test* | Folders with Test in the name. |
Test | Only folders with the name Test (only one result). |
Operation
Expand or collapse UI elements.

For those who want to learn Power Automate Desktop effectively
The information on this site is now available in an easy-to-read e-book format.
Or Kindle Unlimited (unlimited reading).

You willl discover how to about basic operations.
By the end of this book, you will be equipped with the knowledge you need to use Power Automate Desktop to streamline your workflow.
Discussion
New Comments
No comments yet. Be the first one!