# Associate Contact With Custom Object Through Workflow

**URL:** <https://community.hubspot.com/t/associate-contact-with-custom-object-through-workflow/41682>\
**Category:** Lists, Lead Scoring & Workflows\
**Tags:** workflows, object\
**Created:** [August 2, 2021, 7:23pm UTC](https://community.hubspot.com/t/associate-contact-with-custom-object-through-workflow/41682 "2021-08-02T19:23:21Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [August 3, 2021, 3:31am UTC](https://community.hubspot.com/t/associate-contact-with-custom-object-through-workflow/41682/3 "2021-08-03T03:31:05Z")

</div>

Hi @cives,

There are two ways to approach this.

To achieve this after both records have been created already, you would need [custom code actions](https://knowledge.hubspot.com/workflows/use-custom-code-actions-in-workflows) in workflows, only available in Operations Hub Professional. If you do go down that route, this [Library For Programmable Automation](https://community.hubspot.com/t5/HubSpot-Community-Blog/The-Definitive-Use-Case-Library-For-Programmable-Automation-In/ba-p/466236) has snippet relating to associating objects which you could take as inspiration.

Looking at your steps, you might also create the custom object via a contact-based workflow (via the “Create record” action in the right sidebar). In that case HubSpot will automatically associate both objects. That would be the only way that HubSpot can currently automatically establish the association, out of the box.

Let me know if you have any follow-up questions!

---

_[View the full topic](https://community.hubspot.com/t/associate-contact-with-custom-object-through-workflow/41682)._
