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.

3
  • 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 Commented Oct 12, 2017 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. Commented Oct 12, 2017 at 20:46
  • Have you consider setting up OpenAPI connector? powerapps.microsoft.com/en-us/tutorials/register-custom-api Commented Oct 26, 2017 at 20:15

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Hi. Last 2 links are broken.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.