Showing results for 
Search instead for 
Did you mean: 
New Member

Dynamic UI Element (Use variable) Desktop

Ok short but sweet. how the heck do you use a variable in the selector builder?, it seems not to parse it and is unable to find window.  To replicate


-Create a desktop flow

-Open a blank Excel doc

-Capture something from toolbar and click it

-Try running - runs fine

-create a variable with your workbook name (Book1)

-Now alter the UI element to use name and process

-Alter name to be contains with the value as your variable i.e. %MyWorkBookName%

-the connector should look like this:

:desktop > window[Name*="%ExcelWorkBookName%"][Process="EXCEL"]

-Now save it

-Try running - watch in amazement as it cant find the window


Any help appreciated!The story is I have many excel docs which have repeatable actions - i want 1 subflow per action that i can just pass workbook name to...


That siad i would love to call a different flow (not sub flow) although seems not possible in desktop, and even if it was the above issue still makes it impossible to have a modular approach!



Helpful resources

MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,160)