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 / Create a Desktop Flow ...
Power Automate
Suggested Answer

Create a Desktop Flow (PAD flow) using an API or programmatic approach

(1) ShareShare
ReportReport
Posted on by 2

Hi Team,

I am currently working on automating Power Automate Desktop (PAD) flows and exploring options to create and execute flows programmatically.

Objective

I am trying to:

  • Create a Desktop Flow (PAD flow) using an API or programmatic approach

  • Similar to how we can create/manage Cloud flows via API


What I have achieved so far

  • I am able to successfully:

    • Create and manage Cloud flows using available APIs


Current Challenge

  • I am not able to find any API or method to:

    • Create a Desktop flow (PAD flow) programmatically

    • Import or register a flow using a script or API (e.g., from a .robin file)

    • Dynamically generate flows for automation/testing scenarios


Additional Context

  • I explored:

    • PAD CLI (PAD.Console.Host.exe) → supports only execution, not creation

    • Saving .robin scripts locally → not recognized as flows in PAD

    • Local folders (Documents\Power Automate\Desktop\Flows) → unclear structure and no official way to inject flows

    • Cloud vs Local desktop flows → both appear UI-managed only


Use Case

  • I am building an automation/testing framework (WISPR-based) where:

    • Test steps are generated dynamically

    • Ideally, a new PAD flow (or equivalent) should be created and executed per test case


Questions

  1. Is there any official API or SDK to create/manage Desktop flows programmatically?

  2. Is there any supported way to:

    • Import flows into PAD (beyond manual UI or ZIP import)?

    • Convert scripts (e.g., Robin) into PAD flows?

  3. What is the recommended architecture for dynamic automation scenarios like this?

    • Should we always use a single reusable PAD flow with dynamic inputs instead?


Current Understanding

From my research, it appears that:

  • Desktop flows are UI-managed and not API-driven

  • The recommended approach might be:

    • Cloud flow (API trigger) → Run Desktop flow → Pass dynamic inputs

However, I would like confirmation or guidance on best practices.


Environment Details

  • Power Automate: Premium plan enabled

  • PAD installed with machine runtime connected

  • Environment: Default (Dataverse-backed)

  • OS: Windows


Any guidance, documentation references, or recommended patterns would be greatly appreciated.

Thanks in advance!

Regards,
Gaurav Patel

I have the same question (0)
  • Suggested answer
    Sunil Kumar Pashikanti Profile Picture
    2,084 Moderator on at
     
    1. Is there any official API or SDK to create/manage Desktop flows programmatically?
    No. Only execution, listing, schema, and status APIs exist.
    No creation/import API is published or hinted at.
     
    2.1 Is there a supported way to import flows into PAD (beyond manual UI or ZIP import)?
    No.
    Import requires the UI or Power Automate portal.
    No API supports importing desktop flows.

    2.2 Can scripts (.robin) be converted into PAD flows?
    Not anymore.
    ROBIN support was for legacy migration only.
    PAD cannot register or consume new robin scripts.

    3. What is the recommended architecture for dynamic automation scenarios like this?
         Use ONE reusable PAD flow with dynamic input
         Orchestrate via Cloud flows
         Pass instructions, not flow definitions
         Avoid trying to generate flows dynamically
    This aligns with Microsoft’s API capabilities and guidance.

    You’ve already discovered the same conclusion Microsoft expects:
    Desktop flows cannot currently be created, imported, or modified programmatically.
    For dynamic scenarios, the best practice is:
          Build one parametric, reusable PAD flow, and
          Use cloud flows or external engines to generate the data/steps it should execute.
     
     
     
    ✅ If this answer helped resolve your issue, please mark it as Accepted so it can help others with the same problem.
    👍 Feel free to Like the post if you found it useful.
  • Suggested answer
    CU05050430-0 Profile Picture
    Microsoft Employee on at
    Hello,

    I am not Microsoft Employee. Since I am using developer account my profile feathered as microsoft employee.
     
    I created a similar tool using the SDK provided by Microsoft. If you're a Microsoft partner, you can download the required SDK and build your own tool.  
     
    Once you downloaded the required SDK then you integrate with nuget packages in visual studio and you can build the require complete migration tool.
     
    Thanks,
    Deenuji

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 922

#2
Valantis Profile Picture

Valantis 837

#3
Haque Profile Picture

Haque 534

Last 30 days Overall leaderboard