JSON structure of deal-related workflow actions changed; some top-level deal action properties moved into a substructure.
// Old structure
{
//….
"actions": [
//...
{
"type": "DEAL",
"dealName": "The Deal Name",
"daysTillClose": 1,
"assignCurrent": true,
"stage": "appointmentscheduled",
"ownerId": null,
"pipeline": "default",
"amount": 1.05,
"actionId": 99999,
"stepId": 99999
}
],
//…
}
The new workflow deal action JSON structure will look like this:
// New structure
{
//...
"actions": [
//...
{
"type": "DEAL",
"properties": {
"dealname": "The Deal Name",
"closedate": 1,
"dealstage": "appointmentscheduled",
"hubspot_owner_id": {
"sourcePropertyType": "CONTACT",
"sourcePropertyName": "hubspot_owner_id"
},
"pipeline": "default",
"amount": 1.05
},
"actionId": 99999,
"stepId": 99999
}
],
//...
}
The Workflows API will begin returning the new JSON structure immediately. For the time being, the deal action properties will continue to appear as top-level fields for backwards compatibility. These top-level fields are copied from the nested fields for backwards compatibility; integrators should use the nested fields going forward. Integrators only need to be prepared for the change to workflow deal action structure; all other workflow actions will remain unchanged.
Questions? Join the discussion here or https://help.hubspot.com/.