I have a Shopify store that sends order information to Hubspot. The shopify data does NOT have company information because I’m not on the Shopify Plus plan.
Order objects, when created in HubSpot autoamtically by when a csutomer places and order via Shopify, DO properly associate an associated contact object.
The Company object that the Contact object is assocaited with, however, does NOT associate to the order object.
Goal:
Create an automation that does the follwing: When an Order object is created, use the Contact object associated to auto assocaite the associated Company.
Note - I alreayd have created a duplicate deal pipeline that recreates the orders and then associates the companies. that works fine there but this doesnt allow me to view a company record and see the orders placed by that company on it. So id much nrather NOT using the work around created here.
You can definitely automate this — HubSpot just doesn’t do it by default for Shopify orders.
Since the Order → Contact association already exists, you just need a workflow that looks up the Contact’s Company and attaches it to the Order. Here’s the simplest approach:
How to auto-associate the Company with the Order
Create an Order-based workflow.
Trigger: Order is created (or “Order Date is known”).
Add a step to copy the Company ID from the associated Contact.
Use the action: Copy property value
From: Contact → “Associated company ID” (or “Company ID”)
To: Order → a custom property on the Order to store this temp value
Use the action “Create association.”
Object A: Order
Object B: Company
Choose: Use property value → the custom property you saved the company ID into
Save & turn on the workflow.
This will automatically associate every new Order with the same Company as the Contact who placed it.
Why this works
HubSpot doesn’t natively chain associations (Contact → Company does not automatically imply Company → Order), so the workflow bridges that gap using the ID. This content appears to be created with the help of AI tools and might be of low relevance or could contain incorrect information.
Hi @ADane4 - I thought the same thing when I got started, as I had successfully done this in the past in another workflow with deals.
However - there is on key issue; there is NO “create association” action avaialbe in an Order based workflow for some reason. (That, or I dont have an up to date beta or something)
Any ideas? (See screenshot) Is there a way to do this in reverse? Company > assiated to contact >has orders associated > pin those to company?
Hi @winsorcm and thank you so much for getting back to us!
I understand you’re looking to automatically associate a company with an order in HubSpot, based on the contact already linked to that order. Please feel free to clarify if I’ve missed anything.
Let’s invite our fantastic experts for their advice: Hi @danmoyle, @trevordjones and @Josh do you have any tips or recommendations for @winsorcm, please?
Thank you, and wishing you a wonderful day!
Bérangère
@winsorcm the Create Association functionality is part of Data Hub (fka Operations Hub) I believe. The other option is to use a third‑party association tool like Insycle, which I believe can automatically associate Orders to Contacts and Companies on a schedule based on matching rules.
In Shopify-integrated hubs, this behavior is expected:
Shopify → HubSpot brings Order → Contact associations automatically
But Shopify does not send any Company information
Therefore, HubSpot does not create or auto-associate Companies to Orders
To achieve your goal (Order → Contact → Company association), you can absolutely automate this — but only if you have Operations Hub Professional, because you need custom object association actions.
Steps:
Go to Automation → Workflows
Create a Custom Object Workflow → Order-based workflow
Enrollment trigger:
Order create date is known
(This means the order has just been created)
Add action: Custom Code
Get the Contact associated with the Order using code
From the Contact, get the Company ID using “associated companies”
Using that Company ID, call the API to associate the Company → Order