6

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.

vishnu priya
  • 117
  • 1
  • 2
  • 9
  • You will need to provide a bit more details like: Where is your python code located? What is the input and output of your trigger and what do you want to do within the trigger? etc – Chris Chen Oct 12 '17 at 20:36
  • @ChrisChen I have edited my question in order to provide more details on what I am trying to do. As of now, I have code in my local, I am not sure where should I store it. I tried Azure ML but I guess there is no connector for Azure ML and PowerApp also. – vishnu priya Oct 12 '17 at 20:46
  • Have you consider setting up OpenAPI connector? https://powerapps.microsoft.com/en-us/tutorials/register-custom-api/ – Chris Chen Oct 26 '17 at 20:15

1 Answers1

5

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.

Meneghino
  • 971
  • 6
  • 13