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.