Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Running python scripts in PowerAutomate



I am an intern responsible for digitising the processes of a business based in the UK. Right now, I am working on registering details of a new employee into a Sharepoint list. The flow I envisage is as follows:

1. An employee submits a FastField form(a service we use to capture inputs) on their personal device

2. FastFields detects a change and updates a Sharepoint list with the new employee details

3. PowerAutomate detects an update to the list and makes an update to the employee details Excel file

4. Once an update is made to the Excel file, powerAutomate runs a python script that interfaces with FastField's API to make some changes to FastField forms(these changes are irrelevant to the question)


I have already done the first 3 processes from the above. I am hitting major snags on the last step(no. 4) as PowerAutomate cannot run Python scripts. I was thinking of using Azure's virtual machines and make it run the python script. The way it connects to PowerAutomate is through a connector and gets triggered whenever an update is made to the excel file. 



So, from the picture above, after step labelled 2, I'd like the python script to execute. Is there a neat way to do this? Is Azure the best way to go?

I am just an intern and this is how i thought I could automate their process... so if you have a different suggestion as to the flow, please advise as well. 


Very grateful for your answers!


Solution Sage
Solution Sage

Hi @Hm20,

You are correct in your assumptions. You can not run python script in power automate.

To run Python i would suggest you to look at Azure Functions.

You can call these Azure Functions with an HTTP Action in Power Automate.


Please click Accept as Solution if it resolved your problem or give it a Thumbs Up if it helped you in anyway this will allow other people to search correct solutions effectively.



Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (5,440)