是否可以使用Microsoft Flow自动执行Python脚本? [英] Is it possible to automate the execution of a Python script using Microsoft Flow?

查看:159
本文介绍了是否可以使用Microsoft Flow自动执行Python脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想基于某些触发器使用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:

  1. 创建Azure函数
  2. 使用Python作为语言创建API定义
  3. 将定义导出到PowerApps/Flow
  4. 将该功能作为数据添加到您的应用中来源
  5. 将函数添加到Flow
  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.

这篇关于是否可以使用Microsoft Flow自动执行Python脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆