Я создал свое расширение рабочего процесса, как в этом примере: 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": {}
}
Но когда я иду в приложение, я могу видеть любое расширение в рабочем процессе с именем, которое я назвал.
Пожалуйста, помогите мне решить эту проблему.