If cannot create new contact from form, update existing contact

I feel like I am so close to resolving this issue, but I’m not sure there is a solution.

We use a HubSpot form to collect finance onboarding information (address, accounts payable contact, invoice references - does not include payment details). This form actually collects up to 4 different contacts:

- Account Payable Contact

- Purchasing/Procurement Contact

- Senior/Management Contact

- details of the person who filled out the form if not on the form already.

Forms will only auto create 1 contact. To get around this issue, I created a set of properties on the contact object to house the details of the additional contacts on the form (e.g. Purchasing First name, Purchasing Last name, Senior Fin First name, etc). I then use a workflow to create new contacts using those additional properties from the contact who submitted the form.

The issue I have is when the workflow cannot create the additional contact - becaue the contact already exists. (This is common for us becaue our sales people often deal with the same contacts as our finance team does).

For the contact created by the form - this is easy. I have a value equals branch based on the workflow actions final success - which picks up when an action is not completed and moved to the next action.

I then have an if/then branch, that checks if the existing contact’s Job Title, Phone Number, etc are ‘known’ and if not - uses the data from the form to update the existing contact. The existing contact in this case is the contact who submitted the form.

However - when I use a workflow to create contacts from the custom properties in the contact who submitted the form - the if/then branch doesn’t work, because - the ‘contact’ that gets updated is the contact that submits the form (not the additional contact that didn’t get created).

Once the value equals branch on the workflow has failed a step (ie; cannot create contact because it already exists), I need a way to then update the contact that has the email address of the ‘puchasing email’ and ‘senior finance email’ properties saved to the contact that submitted the form.

I tried creating a new workflow with "if contact email address = x, then update xyz from … " - but I need to identify the contact that submitted the form in order to get the puch/senior fin contact details.

In a nutshell, within the existing workflow (where the contact based trigger is the contact that submitted the form) if a contact can’t be created because it already exists - update the existing contact that has email address from ‘x’ field.

We have Sales Professional, but only marketing starter - so I can’t display existing contact data on the form.

TIA

Hi @FMaher,

Thank you for the detailed description. As far as I can tell, this is not possible within regular workflows. It would require coding (custom code actions in Operations Hub Professional) or third-party solutions (Zapier).

With custom code actions, you could look up and update other contacts in a workflow.

Best regards!