Hi there,
I am new to Power Automate.
I'm trying to build a flow that
1. Opens outlook
2. Navigates to my calendar
3. Selects File > Print (by default, my printer is AdobePDF)
4. Enter filename for the PDF, and directory in which I want it to be saved.
5. Go ahead and save the file
The flow works fails after pressing the "print button". The flow fails to enter the filename / directory. Instead is says: Failed to write in textbox (failed to get window)
I have tried to include "get window" and "focus window" to ensure that PowerAutomate is looking at the specific "File Save As" window. I have also tried selecting UI element (title of the window). The error message persists.
Can anyone advise on how to resolve this issue?
I provide screenshots of my process (including a screenshot of the saved pop-up window).
Best
Travis
Detailed error details below:
Exception of type 'Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Exceptions.WindowNotFoundException' was thrown.: Microsoft.Flow.RPA.Desktop.Modules.SDK.ActionException: Failed to write in textbox (failed to get window) ---> Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Exceptions.WindowNotFoundException: Exception of type 'Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Exceptions.WindowNotFoundException' was thrown.
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Proxy.RemoteAutomationRuntimeProxy.HandleResult[T](Func`2 func)
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Actions.PopulateTextFieldInWindow.<>c__DisplayClass17_0.<Execute>b__0(IAutomationRuntime r)
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.UIAutomationActionBase.PerformAutomation(Action`1 action, UIControl control)
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Actions.PopulateTextFieldInWindow.Execute(ActionContext context)
--- End of inner exception stack trace ---
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Actions.PopulateTextFieldInWindow.Execute(ActionContext context)
at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)