我正在使用Microsoft PowerApps和Microsoft Flow.我试图弄清楚如何从PowerApps进行API调用,并将结果(状态和正文)返回到我的应用程序中的文本框等字段.
I am playing around with Microsoft PowerApps and Microsoft Flow. I am trying to figure out how to make API calls from PowerApps and return the results(Status and Body) to a field such as a text box in my app.
我可以通过Flow发出HTTP请求,并将它们放在静态文件中,例如excel电子表格...等.我还可以从PowerApps控件(例如按钮)进行调用,但是我真正想使用的只是将它返回到excel文件之类的东西,而实际上我确实想将其返回到文本框"或文本区域".
I can make the HTTP requests through Flow and put them in a static file such as an excel spreadsheet...etc. I can also make the calls from a PowerApps control such as a button but all I know how to do with it is return it to something like an excel file, when really I want to return it to a Text Box or Text Area.
推荐答案今天,您无法从PowerApp访问原始HTTP状态/正文.调用任意" HTTP端点的方法是使用可以使用Swagger描述的自定义API.我写了一个有关如何调用Azure函数的快速博客,该博客显示了如何熟练地调用API:"> powerapps.microsoft/en-us/blog/using-azure-functions-in-powerapps/
Today you cannot access the raw HTTP status/body from a PowerApp. The way to call "arbitrary" HTTP endpoints is to use Custom APIs that you can describe using Swagger. I wrote a quick blog on how to call Azure functions that shows how to craft a swagger to call the API: powerapps.microsoft/en-us/blog/using-azure-functions-in-powerapps/
如果您可以弄清楚您要构建的特定方案以查看是否还有其他方法,那可能会很好,但是想到的一个选择是构建一个自定义API,该URL接收URL并在服务器端执行HTTP请求并返回对象中的值,然后您可以在PowerApps中轻松访问该对象.
Might be good if you could clarify the specific scenario you are trying to build to see if there are other ways, but one option that comes to mind is to build a custom API that receives the URL and on the server-side performs the HTTP request and returns the values in an object that then you can easily access in PowerApps.
更多推荐
使用PowerApps进行Rest API调用
发布评论