使用PowerApps进行Rest API调用

编程入门 行业动态 更新时间:2024-10-09 17:30:48
本文介绍了使用PowerApps进行Rest API调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在使用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调用

本文发布于:2023-11-28 06:06:13,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1641229.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:PowerApps   Rest   API

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!