Skip to main content

Notifications

Community site session details

Community site session details

Session Id : PSsHx75ToYGSgFIM6gNuZl
Power Automate - General Discussion
Unanswered

Execute python script from Power Automate Flow

Like (2) ShareShare
ReportReport
Posted on 6 May 2020 01:38:31 by 6

How does one execute Python script from within a Flow ? 

  • WebPortal Profile Picture
    2,278 on 03 Jul 2024 at 21:59:07
    Re: Execute python script from Power Automate Flow

    Have you tried an HTTP request action with Pythonanywhere?

    It should be possible.

  • lorentzyeung Profile Picture
    4 on 29 May 2024 at 07:27:17
    Re: Execute python script from Power Automate Flow

    same reason to be here. 

  • psa2 Profile Picture
    5 on 29 May 2024 at 00:52:33
    Re: Execute python script from Power Automate Flow

    Hello me too just checking if any recent update so one can execute python script from cloud flow or even directly in Power Apps. 

  • lorentz Profile Picture
    7 on 07 May 2024 at 12:11:28
    Re: Execute python script from Power Automate Flow

    sorry i know this is a 4 years old thread, but i am just pushing my luck and see if there is any updated answer for it.

     

  • aj0 Profile Picture
    22 on 15 Mar 2023 at 04:14:39
    Re: Execute python script from Power Automate Flow

    asdf

  • Daninel Profile Picture
    2 on 04 Aug 2021 at 08:36:36
    Re: Execute python script from Power Automate Flow

    Hi VswaldB ,

    I think costa86 is using Power Automate Desktop rather than Power Automate cloud fow.

    In PAD it's rather easy to excute python script. You can use the way as mentioned by costa86 or if it's just simple script you can also chooose action "Run Python script" by directly input your codes there.

     

  • VswaldB Profile Picture
    24 on 26 May 2021 at 08:23:41
    Re: Execute python script from Power Automate Flow

    Thanks a lot for your help, but I can't seem to find an action called "run power shell script"...do you by any chance know where I did wrong?

     

  • costa86 Profile Picture
    6 on 26 May 2021 at 08:12:20
    Re: Execute python script from Power Automate Flow

    No need for that. The python script runs locally, being executed by power shell solely.

    1.Create a variable, let us say "x", and store the path to your python script in it.

    2.Use the "run power shell script" action, and type "python %x%" inside it.

  • VswaldB Profile Picture
    24 on 26 May 2021 at 07:46:50
    Re: Execute python script from Power Automate Flow

    you mean using Azure Automation? or what connector do you use, do you have an exemple maybe?

  • costa86 Profile Picture
    6 on 20 May 2021 at 11:26:48
    Re: Execute python script from Power Automate Flow

    Use "run powershell script" instead, then type "python %pyFile%" (no quotes) in it.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,026 Most Valuable Professional

Leaderboard