APIs & Integrations

chrisstout
Participant

Create Workflow with an Extension not adding field values anymore

I am having a few problems with Workflow Extensions.

 

We have been using a Workflow Extension for a few months now, but it recently seems to have stopped working correctly.

 

The Workflow is created and the Extension is attached but the values passed in to the Workflow are no longer being put in to the Extension fields.

 

Below is an example request and response:-

 

Request
=======

POST

https://api.hubapi.com/automation/v3/workflows?hapikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

{
"type": "DRIP_DELAY",
"description": "Test Workflow Desc 8",
"name": "Test Workflow 8",
"enabled": true,
"segmentCriteria": [
[{
"withinTimeMode": "PAST",
"form": "Test Form2",
"filterFamily": "FormSubmission",
"operator": "HAS_FILLED_OUT_FORM"
}]
],
"actions": [{
"type": "EXTENSION",
"extensionInstanceVersion": 0,
"extensionDefinitionVersion": 0,
"metadata": {
"pak": {
"value": "3179497528085653",
"type": "STATIC_VALUE"
},
"meid": {
"value": "56182",
"type": "STATIC_VALUE"
},
"email": {
"propertyName": "email",
"type": "OBJECT_PROPERTY"
},
"lastname": {
"propertyName": "lastname",
"type": "OBJECT_PROPERTY"
},
"firstname": {
"propertyName": "firstname",
"type": "OBJECT_PROPERTY"
}
},
"extensionDefinitionId": xxx
}]
}


Response
========

{
"migrationStatus": {
"portalId": xxxxxx,
"flowId": xxxxxxxx,
"workflowId": xxxxxxxx,
"migrationStatus": "EXECUTION_MIGRATED",
"platformOwnsActions": true,
"lastSuccessfulMigrationTimestamp": null
},
"updatedAt": 1580914877908,
"insertedAt": 1580914877998,
"internalStartingListId": xxxx,
"isSegmentBased": true,
"creationSource": {
"sourceApplication": {
"source": "DIRECT_API"
},
"createdAt": 1580914877908
},
"updateSource": {
"sourceApplication": {
"source": "DIRECT_API"
},
"updatedAt": 1580914877908
},
"segmentCriteria": [
[
{
"filterFamily": "FormSubmission",
"withinTimeMode": "PAST",
"operator": "HAS_FILLED_OUT_FORM",
"form": "Test Form2"
}
]
],
"goalCriteria": [],
"reEnrollmentTriggerSets": [],
"triggerSets": [],
"description": "Test Workflow Desc 8",
"type": "DRIP_DELAY",
"enabled": true,
"id": xxxxxxxx,
"portalId": xxxxxxx,
"name": "Test Workflow8",
"actions": [
{
"type": "EXTENSION",
"extensionInstanceVersion": 1,
"extensionDefinitionVersion": 0,
"metadata": {},
"extensionId": xxxxxxxx,
"extensionDefinitionId": xxx,
"actionId": xxxxxxxxxx,
"stepId": 1
}
],
"metaData": {
"triggeredByWorkflowIds": [],
"contactListCounts": {
"enrolledListCount": 0,
"activeListCount": 0,
"completedListCount": 0,
"succeededListCount": 0,
"startingListCount": 0,
"startingListDoneProcessing": false
},
"succeededListId": 6163,
"contactListIds": {
"active": 6161,
"completed": 6162,
"succeeded": 6163,
"enrolled": 6160
}
},
"validation": {
"source": "API",
"actionIdErrorMap": {},
"actionIdWarningMap": {},
"actionIdInfoMap": {},
"stepIdErrorMap": {},
"stepIdWarningMap": {},
"eventAnchorErrors": [],
"errorsWithoutFrontendCounterpart": [],
"triggerErrors": {},
"branchErrors": {},
"branchWarnings": {},
"branchInfo": {},
"triggerSetWarnings": {},
"miscellaneousWarnings": [],
"fatalErrors": [],
"enrollmentWarnings": [],
"enrollmentErrors": [],
"miscellaneousErrors": []
}
}

 

There are no errors. A 200 result code is returned.

 

The Workflow is created with the extension attached but the values for :-

 

pak
meid
email
lastname
firstname

 

are missing.

 

This has worked in the past (specifically it definitely worked up to 7th January 2020 but seems to have stopped working at some point since).

 

Does anyone know if anything changed since the 7th January 2020 relating the Workflows and Extensions via the API?

 

Thanks

0 Upvotes
1 Reply 1
WendyGoh
HubSpot Employee
HubSpot Employee

Create Workflow with an Extension not adding field values anymore

Hey @chrisstout,

 

It doesn't appear that there's been a change relating to the Workflows and Extensions via the API since 7th Jan. That said, in order for me to further troubleshoot this, can you share with me with the following:

1. The developer portal ID that your app is created on

2. The app id/name that you create your workflow extension on

3. The portal ID that you created the workflow on

0 Upvotes