Filter contacts by associations to a custom object?

Hi Community, first time poster here and would appreciate some help!

I’m working on a custom object setup with:

  1. Contacts (default HubSpot object)
  2. Registrations (custom object) - like an “event ticket” with many of its own properties.
  3. Events (custom object) - webinars, conferences, etc
  4. Sessions (custom object) - breakouts, keynotes, etc

The Registrations object links each Contact to an Event (for webinars, conferences, etc. (since the standard Marketing Event object was too limited for our needs). Now, I want to create a Contact List that effectively finds all contacts who have:

  • A Registration record that’s associated with …
  • An Event record where a certain property (e.g., target_audience equals “VIP” or event_typeequals “seminar”.

If I were using SQL, it’d look something like:

SELECT DISTINCT c.*
FROM contacts c
JOIN registrations r ON c.id = r.contact_id
JOIN events e ON r.event_id = e.id
WHERE e.target_audience = 'X';

However, in HubSpot’s list builder or report builder, I can get to Contact → Registration, but can’t seem to filter across two levels of associations (i.e., from Contact → Registration → Event). I’ve tried the usual route of filters, but the list/report builder stops at the Registration level.

Attempts/Insights So Far

  • HubSpot Support suggested creating custom properties on the Registration, but that doesn’t solve the underlying need to filter by the Event’s property.
  • Advanced Reporting: Also doesn’t seem to be able to chain associations in a single report to check any Event property.
  • The only other way I could think of was to copy data from events into registrations via a workflow or sync properties, but workflows may be prone to sync issues and the native sync properties don’t support multiple objects (only most recently created or first created) and so therefore isn’t transferrable to our secondary problem of Registrations --> Sessions that can be related to many.

My Question
Has anyone successfully built a list or report that references a secondary association (such as Contacts → Registrations → Events)?

  • Are there workarounds or best practices (custom-coded workflows, ops hub features, or specialized reporting) that can achieve this?
  • Any other creative solutions or steps I might have missed?

For reference, we have HubSpot marketing enterprise.

Thank you!

-Matthew

Hi @MatthewF,

The best way to work around this limitation is to use lists in HubSpot, in my opinion. For example, if you want contacts associated to registrations associated to events, you would first create a registrations-based lists that filters for registrations matching your filter criteria and additionally the association to events matching your filter criteria. Once saved, in a next step, you could then build a list of contacts associated to events which are members of the previously created list.

Previously, HubSpot didn’t support list creation / list membership filtering on all objects, but that should work now. Can you try?

Best regards

Hey Karsten,

I found another way: if both custom object and contacts are associated to a company, use a workflow with the company trigger to bring them together. This way you can for example send emails to contacts who are associated to a company, which has an association with a custom object with seperate filters (for example an custom object list membership).

Hi @JHeijmink5, thank you for sharing this with the HubSpot Community!

To help @MatthewF, could you let us know which property you’d use to trigger the workflow and what actions you’d include?

Thanks so much,
Bérangère

Thank you, @karstenkoehler that achieves the cross-object join! However, are you aware of either (1) any other way to do this we could test, or (2) if there are any open feature requests I can upvote related to solving this problem?

We will have many events and sessions, and it could become intense to maintain manually or even programatically, and more importantly could quickly use up our allowed contact lists allowance. For example, this Spring alone we’ll have 20+ events each with around 10-20 sessions, meaning we’d go through 200-400 lists to get Contact --> Registrations --> Sessions.

Thanks again!

@MatthewF neither, unfortunately. You could submit your own in the HubSpot Ideas section of the community: https://community.hubspot.com/t5/HubSpot-Ideas/idb-p/HubSpot_Ideas

I used company property object as a trigger because in my case, both the custom object as the contact object were connected to the company object.

But I figured out something else. You can set this association in the Data Management tab > Data Model > Edit data model. there you can connect the right property types/objects to eachother, so you don’t need a workaround.