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
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 tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (3,056)