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 run Python from...
Power Automate
Suggested Answer

How to run Python from PAD and return a result reliably?

(0) ShareShare
ReportReport
Posted on by

Hi, I’m working on an automation scenario where Power Automate Desktop (PAD) handles actions such as opening files, updating a value, refreshing them, and saving/closing.

At specific points, I want PAD to call a Python script that:

  • reads certain values from those files,
  • performs some logic or checks,
  • then returns a simple pass/fail or similar result back to PAD
    so that PAD can decide whether to continue or stop the automation.

As I'm new to this, I want to understand:

Is the pattern PAD - run Python - return result - PAD continues supported/recommended?
  1. What is the best method for PAD to run Python and capture the output (e.g., command line, output files, exit codes)?
  2. Are there any limitations around PAD interacting with files while Python reads them?
  3. Has anyone implemented a flow where PAD handles the file interactions and Python handles the logic/verification?

Just looking for guidance on whether this type of PAD + Python handoff is technically feasible and stable.

Thanks in advance!

I have the same question (0)
  • Suggested answer
    Vahid Ghafarpour Profile Picture
    817 on at

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard