web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to execute PAD as ...
Power Automate
Unanswered

How to execute PAD as Administrator when it is called from Power Automate cloud flow

(0) ShareShare
ReportReport
Posted on by 12

We have PAD which perform certain action on Sage300 application. Sage300 application is run as administrator. PAD also developed with Run as Administrator. But when we are calling PAD from Cloud flow in attended mode. It gets executed in normal mode. Hence not able to capture any UI element of Sage300 application. 

Can someone pls help in how to execute PAD as Administrator when it is called from Power Automate cloud flow

  • Gematria Profile Picture
    222 on at

    If the user you use for your connections have Admin rights it should be fine. Make sure to double check that, if you haven't already 🙂

     

    If that is in order, you could try setting UIFlowService.exe in your PAD folder (usually found in C:\Program Files (x86)\Power Automate Desktop) to run as admin. Haven't tried this myself, but might be worth a shot. Make sure to reboot the Machine afterwards.

     

    I had issues capturing UI elements of an Oracle application when running unattended, and I sorted this by setting 

    Microsoft.Flow.RPA.UIFlowService.ScreenDefaultResolutionEnabled to true

    In the UIFlowService.exe.config - might also be worth a shot.

  • alokbgs Profile Picture
    12 on at

    Thanks @Gematria  for your response. The credential which we are using to connect to machine have Admin right. But we are getting below error when try to run UIFlowService as administrator

     

    alokbgs_0-1649325174395.png

     

  • Gematria Profile Picture
    222 on at

    Hi.

    You wont be able to run it directly as Admin because its a Windows Service, but if you right click -> properties -> compatibility -> run as administrator, then reboot the Machine and try it out 🙂

     

    Again, not sure if it will solve your specific issue, but doesn't hurt to try.

    It could also be some Group Policy settings/Security settings on your device that doesn't allow the uiflowservice proper access.

     

    Could you perhaps share a bit of your code as well as the exact fault you are experiencing?

  • alokbgs Profile Picture
    12 on at

    Sage300 application is run as administrator and PAD not able to capture UI elements when not run as administrator. So we run PAD as Administrator and capture the UI element. It is just 2 step PAD to login to Sage300 application. When we run PAD manually it is working fine. But when we call it from cloud flow it fails to find the UI element. 

  • yoko2020 Profile Picture
    495 on at

    @alokbgs 

     

    I also have same issue long time ago from January 2021, and they have not fix this after almost 1 year.

    Just pray the developer will fix this issue, currently there is no solution for this.

     

  • alokbgs Profile Picture
    12 on at

    @yoko2020 , is this known PAD issue and MS aware of same. Any idea?

  • tyago14 Profile Picture
    2 on at

    Hi,

     

    I was having the same problem, I disabled UAC completely from windows and it worked

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 229 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 223 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 136 Super User 2026 Season 2

Last 30 days Overall leaderboard