问题
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.
回答1:
In theory you can do with Azure Functions. The steps you need are the following:
- Create an Azure function
- Create the API definition using Python as the language
- Export the definition to PowerApps/Flow
- Add the function to your app as a data source OR
- Add the function to Flow
It is still a little bit experimental, but you should be able to make it work.
来源:https://stackoverflow.com/questions/46718344/is-it-possible-to-automate-the-execution-of-a-python-script-using-microsoft-flow