问题描述
我正在为具有特定于个人用户的动态字段的平台构建 Zapier 应用。
我的 API 使用 GET 请求返回此响应:
[
{
"title": "003 Best Selling Book","id": "d86cbdf41be958336f1221a2211c3f65","date": "03/25/2021"
},{
"id": "b844eaa3da5c476ab7337e83775777e0","title": "002 Best Selling Book","date": "03/26/2021"
}
]
Zapier 成功收到响应
但它只显示 JSON 数组中的第一项。
Only one object in my array shown.
当我去测试我的触发器时,它只显示我阵列中的一个对象并给我一个缺失值!错误。
有人知道如何解决这个问题吗?
我正在尝试设置一个动态下拉类型并使用触发器来获取填充触发器的 JSON 对象。
我尝试在 Zapier Github 或 Stackoverflow 上的其他地方或网络上寻找示例代码,这些代码显示了 Zapier Actions、Zapier 触发器和 Zapier Dynamic Dropdowns 的示例 JSON 响应,但找不到任何。
解决方法
根据 the docs,您返回的 JSON 需要 name
和 id
属性。