是否可以使用Microsoft Flow自动执行Python脚本? [英] Is it possible to automate the execution of a Python script using Microsoft Flow?
问题描述
我想基于某些触发器使用Microsoft-Flow执行python代码段.有没有办法做到这一点?
I want to execute a snippet of python code based on some trigger using Microsoft-Flow. Is there a way to do this?
基本上,我正在探索Powerapps和Microsoft-Flow.我在powerapp中有数据,我可以在那里进行基本操作.但是,我希望每当用户按下powerapp中的按钮时执行python脚本,然后再次在powerapp上显示结果.
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.
推荐答案
从理论上讲,您可以使用Azure Functions.您需要执行的步骤如下:
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.
这篇关于是否可以使用Microsoft Flow自动执行Python脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!