cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Douglas_Lopes
New Member

how to use an instance of windows in another flow?

hello, I want to run a flow A, which returns the instance of an open window, after this return I want to manipulate this window in flow B

 

1 ACCEPTED SOLUTION

Accepted Solutions
MichaelAnnis
Super User
Super User

In flow A:

1). ”Get Window Title” to %SharedWindow%

2). ”Set Environment variable” %EV_SharedWindow% to %SharedWindow%

 

In flow B:

1) ”Get Environment Variable” %EV_SharedWindow%

2) “Focus Window” %EV_SharedWindow%

View solution in original post

3 REPLIES 3
MichaelAnnis
Super User
Super User

In flow A:

1). ”Get Window Title” to %SharedWindow%

2). ”Set Environment variable” %EV_SharedWindow% to %SharedWindow%

 

In flow B:

1) ”Get Environment Variable” %EV_SharedWindow%

2) “Focus Window” %EV_SharedWindow%

MichaelAnnis, thanks for the answer, I tried it the way I did but it seems that the tool has a bug when passing window instance as parameter, but passing this way %AutomationWindow.Handle%

works, does this happen to you?

I am not sure as I  not completely familiar with the properties of a window.  What I do know is you can do things during the PAD flow to change the title. For example, saving an excel file after opening it may change the window title from “Title .xlsx - Excel” to “Title.xlsx - Saved” - Excel. This may be why it didn’t work. So, if .handle is working, great.  It probably won’t change like the title would. Glad you were able to figure it out. 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (2,006)