我如何在不使用Power Automate中迭代Power应用程序中的JSON对象

发布于 2025-01-28 13:56:40 字数 419 浏览 6 评论 0原文

我的电源应用程序中有一个带有Microsoft Graph API的自定义连接器,并且我有一个请求和Graph Explorer的响应,现在我的问题是我无法在Power Apps表中迭代对象。

OnSelect代码: updateContext({getrols:graph_demo.getrols()})

/a>

API响应的视图

I have a custom connector with microsoft graph api in my power apps and i have a request and a response with graph explorer, now my problem is they i can't iterate the object in my power apps table.

OnSelect code:
UpdateContext({getrols:graph_demo.GetRols()})

Issue shown in PowerApps

View of API Response

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

幽蝶幻影 2025-02-04 13:56:40

您可以尝试在公式的末尾添加.value。然后,您可能会将.approles添加到.value中以进入嵌套的JSON。

如有疑问,请将添加到您的公式中,并利用Intellisense探索您的响应模式。

类似:clearCollect(Corols,Graph_demo.getrols()。value.Approles)

,尝试使用画廊显示响应而不是列表框。将Gallery 项目属性设置为Colrols

You may try adding .value to the end of your formula. You'd likely then add .appRoles to .value to get into the nested JSON.

When in doubt, add a . to your formula and leverage the IntelliSense to explore your response schema.

Something like: ClearCollect(coRols, graph_demo.GetRols().value.appRoles)

Also, try using a Gallery to show the response instead of a ListBox. Set the Gallery Items property to colRols.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文