如何基于Integromat应用程序中的另一个查询响应来创建动态输入参数?

问题描述

我正在实现一个具有端点的API,该端点返回对象(例如公司,潜在客户等)的自定义字段的列表。 创建销售线索时,用户应该能够在硬编码字段旁边输入自定义字段。 如何在模块的可映射参数中动态完成此操作?

解决方法

您可以创建一个RPC(通过API获取动态输入字段的过程)并将其与静态参数结合起来,如下例所示:

适用参数:

[
    {
        "name": "id","type": "uinteger","label": "Static parameter"
    },"rpc://getDynamicFields"
]

参考:https://docs.integromat.com/apps/structure-blocks/expect#rpc

如何创建RPC,您可以在这里找到:https://docs.integromat.com/apps/app-structure/rpcs#fields-rpc