Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to automate the execution of a Python script using Microsoft Flow?

I want to execute a snippet of python code based on some trigger using Microsoft-Flow. Is there a way to do this?

Basically I am exploring on Powerapps and Microsoft-Flow. I have data in powerapp, I can do basic operations there. But, I want to execute a python script whenever a user press button in the powerapp and display the result on powerapp again.

like image 419
vishnu priya Avatar asked Oct 12 '17 20:10

vishnu priya


People also ask

Can you automate a Python script?

To automate a Python script on Windows, we have to follow two steps: Create a bat file that executes our file in Python. Automate the execution of our bat file with Task Scheduler.

How do I automate a Python script in Windows?

In order to schedule the Python script using the Windows Scheduler: Open the Windows Control Panel and then click on the Administrative Tools. Double-click on the Task Scheduler, and then choose the option to 'Create Basic Task…' Type a name for your task (you can also type a description if needed), and then press Next ...

Is Microsoft Flow Power Automate?

We renamed Microsoft Flow to Power Automate in 2019, and we now have an updated URL that will further increase the reliability of your Power Automate experience, and more easily enable shared experiences across Power Platform in the future.


1 Answers

In theory you can do with Azure Functions. The steps you need are the following:

  1. Create an Azure function
  2. Create the API definition using Python as the language
  3. Export the definition to PowerApps/Flow
  4. Add the function to your app as a data source OR
  5. Add the function to Flow

It is still a little bit experimental, but you should be able to make it work.

like image 152
Meneghino Avatar answered Oct 18 '22 03:10

Meneghino