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
Resident Rockstar
Resident Rockstar

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
Resident Rockstar
Resident Rockstar

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

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
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Users online (1,843)