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 / Best Practices for Des...
Power Automate
Answered

Best Practices for Desktop Automation

(1) ShareShare
ReportReport
Posted on by 36
Hi Everyone,
 
I am venturing into Power Automate desktop, which will include automating downloads from a website which will involve signing in, selecting a few different submenus, then downloading a file and moving it from downloads in a specific folder. Are there any best practices or materials I can refer too?
 
Thank You!
I have the same question (0)
  • Verified answer
    Riyaz_riz11 Profile Picture
    4,048 Super User 2026 Season 1 on at
    Hi,
     

    Step 1: Launch Browser and Navigate to Website

    1. Action: Launch new Chrome/Edge/Firefox instance

      • URL: your target website

    2. Action: Populate text field on web page

      • Fill in username/password fields.

    3. Action: Press button on web page

      • Sign in to the site.

     Step 2: Navigate Through Submenus

    1. Use Click link on web page or Click UI element in window to navigate through menus.

    2. Use Wait for web page content or Delay between actions to ensure elements are loaded.

     Step 3: Download the File

    1. Locate the download button or link.

      • Use Click link on web page to trigger the download.

      • Alternatively, use Invoke web service if you can get a direct download URL with credentials.

    2. Set default browser download path beforehand or configure browser to ask where to save.

     Step 4: Wait for Download to Finish

    1. Use a loop like:

      While File Does Not Exist
      • Use File Exists action to check if the expected file is in the Downloads folder.

      • Add Delay to wait for a few seconds in each loop.

     Step 5: Move the Downloaded File

    1. Action: Move file

      • From: Downloads

      • To: Desired folder

      • Optionally rename the file dynamically using date/time or metadata.

    Best Practices

     1. Secure Credentials

    • Use Windows Credential Manager or PAD's "Get Secure Credential" instead of hardcoding.

     2. Use Reliable Waits

    • Prefer Wait for element to appear over static delays.

    • Always check if elements exist before clicking.

     3. Organize File Downloads

    • Use timestamp-based folders or filenames to avoid overwriting.

    • Create subfolders using Create Folder dynamically.

     4. Add Logging

    • Use Write to text file or Log message actions for troubleshooting.

     5. Error Handling

    • Wrap critical actions in Try-Catch blocks.

    • Use On block error for retries or alternate flows.

     

    Helpful Learning Resources

    If I have answered your question, please mark it as the preferred solution ✅ . If you like my response, please give it a Thumbs Up 👍.
    Regards,
    Riyaz

  • Suggested answer
    eetuRobo Profile Picture
    4,484 Super User 2026 Season 1 on at
    To add to @'s post I would maybe check some tutorials from Anders Jensen or other PAD youtubers to see how they build such flows. For example: https://www.youtube.com/watch?v=wm7B_N2eSYY or https://www.youtube.com/watch?v=sDclQ7MgVtY

    Here is new learn.microsoft page about how to build Build readable and maintainable flow scripts: https://learn.microsoft.com/en-us/power-automate/guidance/desktop-flow-coding-guidelines/build-readable-flow-scripts

     
  • AS-02061918-0 Profile Picture
    36 on at
    Thank You!
     
    Do you all have any knowledge of setting up unattended mode through entra id? I am having difficulty understanding the document.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard