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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to Run python comm...
Power Automate
Answered

How to Run python commands in power automate desktop?

(0) ShareShare
ReportReport
Posted on by 178

Hi all, Please explain the steps how to run python in power automate desktop?

I have the same question (0)
  • Verified answer
    Riyaz_riz11 Profile Picture
    3,878 Super User 2025 Season 2 on at

    Hi @Ezhilvannan_V ,

    Ahammad_Riyaz_0-1647859535025.png

    Here working folding defines you need to pass working folder.

    in the dos command you need to provide python file name.py and if you required to pass any inputs you can pass after passing filename.

     

    Regards

    Ahammad Riyaz

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

     

  • VJR Profile Picture
    7,635 on at

    @Ahammad_Riyaz , request you to please wait for the original poster before marking as solution.

     

    Hi @Ezhilvannan_V 

     

    There is a direct action to run python script.

    VJR_0-1647863520651.png

     

     

    In the above code, output is stored in the output variable called PythonScriptOutput.

    VJR_1-1647863592689.png

     

     

  • Ezhilvannan_V Profile Picture
    178 on at

    Hi @VJR 

    I am the one accept the solution , I was tested from my end and its working for me, it is not accepted by @Ahammad_Riyaz  🙂

  • VJR Profile Picture
    7,635 on at

    Okay, looks like you do not want to use a direct approach given by Power Automate Desktop. 😊

    Please remember solutions marked as answer will be used by many members landing on this page and may not see the feature given by PAD. Hence my request.

    Good day!

     

    And yes, my apologies to @Ahammad_Riyaz 😊

  • Riyaz_riz11 Profile Picture
    3,878 Super User 2025 Season 2 on at

    Hi @VJR ,

    I was already told last time it was happens from my end and even i told thanks as well for correcting me, but these things i was not acceptable what you told today.

    If he accepted also you are point outing me, it is unprofessional.

     

  • rifij Profile Picture
    17 on at

    Afternoon,

     

    @VJR @Ahammad_Riyaz I'm trying to run a python script in PAD for a Flow. Essentially, the script goes into an input folder that contains pdf files, does a text read for certain accounts and extract those accounts to a new pdf file while renaming and saving to output folder. I've run the script successfully in visual studio code and works as written/expected. I want to be able to add a flow by having the flow go to the output folder and retrieving the files and then sending emails to impacted parties. I tried using the "Run Python Script" in PAD, but I'm getting a syntax error after pasting the script and I'm not sure why I get that error, because i did not get the error in visual code studio.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard