Associate Contact With Custom Object Through Workflow
SOLVE
Hi there, I have a custom object titled "on-demand training". These are recorded pieces of e-learning that are available for purchase. I'm looking to create a workflow where:
1. Customer requests/purchases on-demand training
2. They are emailed a confirmation
3. Sent a link to a CMS/Membership web page titled "my trainings"
4. On that page it will show them all of the training that they have requested/purchased.
--
I know how to create this from a development standpoint, however, I'm unsure how to automate associating the contact with the custom object; this is a necessary step to be able to create the page and display the CRM Association.
To achieve this after both records have been created already, you would need custom code actions in workflows, only available in Operations Hub Professional. If you do go down that route, this Library For Programmable Automation 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!
Karsten Köhler HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer
I'm a little late to the party but have you heard of Associ8? It lets you automatically create associations between objects based on parameters you set. There's some documentation showing how it works here.
Let me know if you have any questions! I'd be happy to talk with you about it in more detail.
Associate Contact With Custom Object Through Workflow
SOLVE
Hello Thank you for sharing. I find the process of editing custom code to be a little intimidating. Can you maybe share what parts I would need to edit with my custom objects information?
Associate Contact With Custom Object Through Workflow
SOLVE
There is actually a more elegant solution to this.
Set a unique field inside your Custom Object, amke sure it is set to be unique.
Then set a unqiue id for the record you are trying to conenct, and now add this as a hidden field (prefilled witht he unqiue id) on the form that someobe fills in
Not sure if this is still a priority for you or not, it has been a while. As others have noted, the only options currently for creating associations in Workflows are using Operations Hub and custom coding a solution, or using a third-party app.
Insycle (full disclosure, I work there) allows for you to associate contacts, companies, deals, and custom objects, in bulk, using any field in your database as a matching field. You can also manage primary associations/labels/child-parent associations with Insycle.
Then you can schedule that template to run on a set schedule in Insycle (such as every Friday) or add an Insycle Recipe directly into your HubSpot Workflows. That way, you can ensure your associations are set immediately after new data hits your database and before you begin to engage with them.
To achieve this after both records have been created already, you would need custom code actions in workflows, only available in Operations Hub Professional. If you do go down that route, this Library For Programmable Automation 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!
Karsten Köhler HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer
Associate Contact With Custom Object Through Workflow
SOLVE
Currently there is no way to automatically associate and existing contact record with an existing custom object record through workflows unless you use the custom code action (requires Operations Hub Professional).
BUT, you can associate a new record to the contact through the "Create record" workflow action. You could try creating a new record using the "on-demand training" custom object for each contact that purchases on-demand training and then put them in a list to keep track of the contacts. If you have a property in your custom object that indicates which training they bought, you could keep track and report on which trainings have been bought by who.
✔️ Was I able to help answer your question? Help the community by marking it as a solution.