PowerApps |自定义连接器|缺少动态内容
我创建了一个自定义连接器,我正在添加PowerApps和Power Automate。自定义连接器中有一个名为“ getDetails”的动作,可以从端点获取详细信息。端点的响应是动态的。
终点的示例响应:
{
"data": {
//Some Dynamic Content
}
}
招摇文件响应定义:
get:
responses:
default:
description: default
schema:
type: object
properties:
data: {type: object, description: data} <---- Since dynamic properties in "data" at run time
问题:
现在,当我在Power Automate中使用自定义连接器时,我将获得数据属性以及动态内容。但是,当我在PowerApps中使用此自定义连接器时,我会获得空数据属性。缺少动态内容。
I have created a custom connector which I am adding in PowerApps and Power Automate. There is one action named "GetDetails" in custom connector to fetch details from an endpoint. Response from an endpoint is dynamic.
Sample response from end point:
{
"data": {
//Some Dynamic Content
}
}
Swagger file response definition:
get:
responses:
default:
description: default
schema:
type: object
properties:
data: {type: object, description: data} <---- Since dynamic properties in "data" at run time
Question:
Now when I use custom connector in Power Automate I get data property along with dynamic content. But when I use this custom connector in PowerApps I get empty data property. Dynamic content is missing.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您说“ ...当我在PowerApps中使用此自定义连接器...”时,您如何使用?很可能您正在使用类似的内容创建一个集合:
您可以尝试在
clearcollect
语句中添加。
,以查看架构是否需要另一个“级别”。这被称为“点符号”。只是添加一个“。”。对于探索不同的模式级别可能是很大的帮助。编辑1
hm。如果您已经测试了响应并使用Power Automate(或Postman等)进行了验证,那么我唯一能想到的是:
clearCollect()中删除
语句。json()
函数从示例中导入
请求
动词
,标题
和示例JSONbody
When you say "...when I use this custom connector in PowerApps...", how are you using it? Likely, you're creating a Collection using something like:
You can try adding a
.
to theClearCollect
statement to see if the schema needs another "level". This is known as "dot notation". Just adding a "." can be a big help for exploring the different schema levels.EDIT 1
Hm. If you've tested the response and validated using Power Automate (or Postman, etc.), the only things I can think of are:
JSON()
function from yourClearCollect()
statement.Import from sample
underRequest
Verb
,Headers
and a sample JSONBody