Unable to Use Dynamic Contact ID in HubSpot Deal Association (n8n) - (Associated Vid Names or IDs)

Hello,

My workflow receives data from a webhook, then creates a contact, and after that creates a deal.

I need to associate the newly created contact with the deal, but I’m unable to insert the dynamic ID value from the HubSpot contact created in the previous node.

When I click on “Expression,” nothing happens, as if the field is not accessible or not enabled.

Has anyone experienced the same issue? If so, how did you solve it?

Thank you.

This is a known UI limitation. Use an HTTP Request node instead: PUT https://api.hubapi.com/crm/v4/objects/deals/{dealId}/associations/contacts/{contactId} with your HubSpot private app token as Bearer auth. Reference the contact ID with {{ $('Create Contact').item.json.id }}.