Hubspot无法创建工作流程扩展

时间:2018-12-29 08:31:18

标签: hubspot hubspot-crm

我已经像以下示例一样创建了工作流程扩展: 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": {}
}

但是当我进入应用程序时,我无法看到工作流程中任何以我命名的扩展。

请帮助我解决这个问题。

1 个答案:

答案 0 :(得分:0)

我也遇到了同样的问题,因为经过大量的研发,HubSpot Workflow Extensions是一项新引入的功能,我已经了解了其中的一些要点

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

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

这是您的应用程序ID:181313,您需要使用您使用的任何开发者帐户安装该应用程序。您可以从此处How to install an app in HubSpot

检查如何在HubSpot Developer帐户中安装应用程序

我们需要一个OAuth访问令牌来安装该应用,我们可以按照本文档此处Creating OAuth Access Token的方式创建OAuth访问令牌。本文档中提到的URL将返回访问代码,我们需要我们的客户ID进行初始化OAuth身份验证

安装应用程序后,您可以在Integrations >> Apps

中找到您的应用程序

enter image description here

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

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

enter image description here

基于业务逻辑,我们可以创建任意数量的扩展。扩展在我们创建工作流程时执行的特定操作上触发了一个Web挂钩。我们可以进行自定义扩展以返回静态数据,也可以向其添加任何contact属性

有关更多参考,请检查以下链接:HubSpot Workflow Extensions