APIs & Integrations

Anonymous
Nicht anwendbar

Connect an App in Workflows

lösung

In the API documentation, the only reference to adding application actions to workflows is under "workflow extensions," where it says this can only be done for contact-based workflows. However, in my demo instance I see that all other workflow types also have the option to "connect an app" when creating an action - how do we make actions from our application accessible in all workflow types?

1 Akzeptierte Lösung
IsaacTakushi
Lösung
HubSpot Employee
HubSpot Employee

Connect an App in Workflows

lösung

Hi, there.

 

At this time, the public Workflow Extensions API can only create actions for contact-based flows.

 

The Asana task actions you see in company, deal, ticket, and quote-based flows are the first "platform flows" we have experimented with, but they will not be the last.

 

At some point in the future, I would expect platform flows to support webhook extensions as well, however I can't offer a concrete timeline.

 

Follow the HubSpot Developer Changelog for all relevant news!

Isaac Takushi

Associate Certification Manager

Lösung in ursprünglichem Beitrag anzeigen

3 Antworten
IsaacTakushi
Lösung
HubSpot Employee
HubSpot Employee

Connect an App in Workflows

lösung

Hi, there.

 

At this time, the public Workflow Extensions API can only create actions for contact-based flows.

 

The Asana task actions you see in company, deal, ticket, and quote-based flows are the first "platform flows" we have experimented with, but they will not be the last.

 

At some point in the future, I would expect platform flows to support webhook extensions as well, however I can't offer a concrete timeline.

 

Follow the HubSpot Developer Changelog for all relevant news!

Isaac Takushi

Associate Certification Manager
IP8
Teilnehmer/-in

Connect an App in Workflows

lösung

Do you have an update on adding a custom workflow action for non-contact based flows? We need to add a custom action to Deal and Ticket workflows. Do you have a procedure to allow us to list our app in "connect an app" list?

0 Upvotes
rajnishpatel
Mitglied

Connect an App in Workflows

lösung

Hi @IsaacTakushi ,

Our team is working on an Integration app for the HUBSPOT. We are getting an error while creating custom workflow action. We have followed the exact process as mentioned in this documentation:

https://legacydocs.hubspot.com/docs/methods/workflow-extensions/workflow-extensions-overview

 

But we are continuously getting "HTTP 404 ERROR Resource not found".

 

we are using this php code:

 

<?php

$url = 'https://api.hubapi.com/automationextensions/v1/definitions?hapikey=eu1-e63e-276d-46f7-8079-47bbdc7b5...';
$data = '{
"integrationAppId":407547,
"extensionName": "Kaleyra SMS1",
"webhookUrl": "https://kaleyra-webhooks.free.beeceptor.com",
"dataUrl":"https://mocki.io/v1/86500b02-73e6-4c04-abad-d1fc4f926ce9",
"fieldMetadata": [
{
"label": "Email",
"key": "email",
"fieldType": "TEXT",
"values": [
{
"type": "STATIC_VALUE",
"allowsMergeTags": true
}
]
},
{
"label": "Mobile Number",
"key": "phone_number",
"fieldType": "TEXT",
"values": [
{
"type": "STATIC_VALUE",
"allowsMergeTags": true
}
]
},
{
"label": "DLT ID",
"key": "DLT_key",
"fieldType": "TEXT",
"values": [
{
"type": "STATIC_VALUE",
"allowsMergeTags": true
}
]
},
{
"label": "Message",
"key": "message",
"fieldType": "TEXTAREA",
"values": [
{
"type": "STATIC_VALUE",
"allowsMergeTags": true
}
]
}
]
}';

 

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_ENCODING, "");
curl_setopt($ch, CURLOPT_MAXREDIRS, 10);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);

$headers = array();
$headers[] = 'Content-Type: application/json';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$result = curl_exec($ch);

if (curl_errno($ch))
{
echo 'Error:' . curl_error($ch);
}

curl_close($ch);

echo $result;

 

Thank you for the help