【发布时间】:2021-01-31 18:45:41
【问题描述】:
我正在尝试从 RPC 动态呈现 collection 的 spec(规范)。无法让它工作。这里我附上了'module->mappable parameters'和'remote procedure->communication'的代码。
模块 -> 可映射参数
[
{
"name": "birdId",
"type": "select",
"label": "Bird Name",
"required": true,
"options": {
"store": "rpc://selectbird",
"nested": [
{
"name": "variables",
"type": "collection",
"label": "Bird Variables",
"spec": [
"rpc://birdVariables"
]
}
]
}
}
]
远程程序 -> 通信
{
"url": "/bird/get-variables",
"method": "POST",
"body": {
"birdId": "{{parameters.birdId}}"
},
"headers": {
"Authorization": "Apikey {{connection.apikey}}"
},
"response": {
"iterate":{
"container": "{{body.data}}"
},
"output": {
"name": "{{item.name}}",
"label": "{{item.label}}",
"type": "{{item.type}}"
}
}
}
提前致谢。
【问题讨论】:
标签: json automation integromat integromat-apps