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


I am try to open SAP GUI by using UI FLOWs but can not open. does anyone know how to open? 

Community Support
Community Support

As known issue, some of unsupported application types are there. Please check it.


And more, WinAutomation ( is available with Power Automate license newly. Please try it also!

New Member

Similar question at for controlling SAP using the SAP GUI Scripting API.


You can do this using two different methods.  Both require that you use the RPA/RDA software WinAutomation, which is now owned my Microsoft, to create a process.  The final flow will call your WA process through a gateway to the machine it's running on (you probably need special permissions to create that).


Method 1 - Create a process all within WA.  I don't recommend this (for any RPA software) because you lose some control.  To get around not being able to record opening SAP, you need to record keystrokes and run commands (wnd+R, {ENTER}, etc... don't use your mouse at all until you have a session open), then the macro recorder will grab window handles.  Always maximize everything.  Once your WA process is finished, you'll call it in your UI Flow and use your gateway credentials.


Method 2 (preferred) - Handle all of your SAP automation using the COM API.  Search for "SAP GUI Scripting API" for a reference.  You can write everything in a VBScript or create a console application in Visual Studio (or use any method that can interface with COM -- Autohotkey, Python, almost anything).  Once you've got your SAP automation script ready, call THAT using WinAutomation.


I hope this is helpful.  This is theory from me, I haven't created a working flow yet because I don't have permission to create the necessary gateway connection to the virtual machine.  Let us know if you get it to work!


Bonus tip -- you can automate the SAP GUI from many places, including Office.  Years ago, I created an Access tool for a customer inventory solution and wrote procedures in VBA to open and transact in SAP using this method.  It's amazing.  If you use Autohotkey (or something similar), you can have it "listen" for a key combination, then run a VBScript to attach to and automate an open SAP screen (or create a fresh session).  For example, we created several scripts to run routine transactions for our customer service dept.  If they needed to transfer an item from one "customer" to another, they'd just price WND + SHIFT + T in their SAP screen (after having entered the important data), and the script would process the remainder of the steps for them, log info into a txt file, etc.  All the user needed to do was take a sip of their coffee.

Helpful resources

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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Users online (2,331)