0

我已经像这个示例一样创建了我的工作流扩展: https ://developers.hubspot.com/docs/methods/workflow-extensions/workflow-extensions-overview

我的要求: https ://api.hubapi.com/automationextensions/v1/definitions?hapikey=9eaca983-wewerwee-1232-bc56-aqwe231231&applicationId=181313

有内容:

{
    "integrationAppId": 181313,
    "extensionName": "sss_v4",
    "webhookUrl": "https://webhook.site/83dfb75e-2fa3-4ae7-8c98-7461305b0b03",
    "fieldMetadata": [
        {
            "label": "Appointment Summary",
            "key": "appointment_title",
            "fieldType": "TEXT",
            "values": [
                {
                    "type": "STATIC_VALUE",
                    "allowsMergeTags": true
                }
            ]
        },
        {
            "label": "Requested Appointment Date",
            "key": "appointment_date",
            "fieldType": "DATE",
            "values": [
                {
                    "type": "OBJECT_PROPERTY"
                }
            ]
        },
        {
            "label": "Appointment Notes",
            "key": "appointment_notes",
            "fieldType": "TEXTAREA",
            "values": [
                {
                    "type": "STATIC_VALUE",
                    "allowsMergeTags": true
                }
            ]
        }
    ]
}

结果是:

{
    "id": 283,
    "latestVersion": 0,
    "integrationAppId": 181313,
    "extensionName": "sss_v4",
    "version": 0,
    "webhookUrl": "https://webhook.site/83dfb75e-2fa3-4ae7-8c98-7461305b0b03",
    "dataUrl": null,
    "fieldMetadata": [
        {
            "key": "appointment_title",
            "label": "Appointment Summary",
            "values": [
                {
                    "allowsMergeTags": true,
                    "type": "STATIC_VALUE",
                    "options": []
                }
            ],
            "fieldType": "TEXT",
            "required": true
        },
        {
            "key": "appointment_date",
            "label": "Requested Appointment Date",
            "values": [
                {
                    "type": "OBJECT_PROPERTY"
                }
            ],
            "fieldType": "DATE",
            "required": true
        },
        {
            "key": "appointment_notes",
            "label": "Appointment Notes",
            "values": [
                {
                    "allowsMergeTags": true,
                    "type": "STATIC_VALUE",
                    "options": []
                }
            ],
            "fieldType": "TEXTAREA",
            "required": true
        },
        {
            "key": "appointment_title",
            "label": "Appointment Summary",
            "values": [
                {
                    "allowsMergeTags": true,
                    "type": "STATIC_VALUE",
                    "options": []
                }
            ],
            "fieldType": "TEXT",
            "required": true
        },
        {
            "key": "appointment_date",
            "label": "Requested Appointment Date",
            "values": [
                {
                    "type": "OBJECT_PROPERTY"
                }
            ],
            "fieldType": "DATE",
            "required": true
        },
        {
            "key": "appointment_notes",
            "label": "Appointment Notes",
            "values": [
                {
                    "allowsMergeTags": true,
                    "type": "STATIC_VALUE",
                    "options": []
                }
            ],
            "fieldType": "TEXTAREA",
            "required": true
        }
    ],
    "lambdas": {}
}

但是当我去应用程序时,我可以看到工作流中使用我命名的任何扩展名。

请你帮我解决这个问题。

4

1 回答 1

0

我也遇到了同样的问题,因为 HubSpot Workflow Extensions 是经过大量研发后新推出的功能,我必须了解其中一些要点

要创建 HubSpot 工作流扩展,我们必须创建一个应用程序,因为您已经创建了应用程序(根据您提供的上述字段),您的应用程序 ID 将为“181313”

创建应用程序后,我们需要在我们的开发者帐户中安装它

这是您的 App ID:181313,您需要在您使用的任何开发者帐户中安装该应用程序。您可以从此处查看如何在 HubSpot 开发人员帐户中安装应用程序如何在 HubSpot 中安装应用程序

我们需要一个 OAuth 访问令牌来安装应用程序,我们可以创建 OAuth 访问令牌,如本文档中所述创建 OAuth 访问令牌本文档中提到的 URL 将返回一个访问代码,我们需要我们的客户端 ID 来启动 OAuth 身份验证

安装应用程序后,您可以在集成 >> 应用程序中找到您的应用程序

在此处输入图像描述

现在我们必须使用 Workflow extensions API 创建工作流扩展,要了解如何创建,请查看此链接Creating HubSpot Workflow Extensions

创建扩展程序后,我们可以在“选择操作”菜单上选择您的扩展程序。我创建了三个示例扩展,您可以在下图中检查这些扩展

在此处输入图像描述

基于业务逻辑,我们可以创建任意数量的扩展。扩展会触发我们在创建工作流时给出的特定操作的网络挂钩。我们可以使我们的自定义扩展返回静态数据,或者我们可以将任何联系人属性附加到它

如需更多参考,请查看以下链接:HubSpot Workflow Extensions

于 2019-01-18T10:39:10.780 回答