Best answer

HubSpot "Get Contact" fails with multiple contacts associated with deal

  • 7 February 2024
  • 13 replies
  • 68 views

Badge

I have a Zap setup to find the Associated Contact on a Deal to then map the Contact fields (First Name, Last Name, Email) to Pandadoc. It works fine except when there are multiple Contacts associated with the Deal.

If there are multiple Contacts associated with the Deal, the Zap fails and the message is given: “Object not found. objectId are usually numeric.”

With multiple Contacts, when Get Contact runs, the output is “951,3201” with 951 being the ID of Contact #1, and 3201 being the ID of Contact #2.

Keep in mind, some Deals have only 1 Contact, others have multiple. All I really need is 1 contact to be found and mapped later in the Zap (when sending on the Pandadoc contract).

How do I setup the Zap to work in both scenarios (1 or Multiple Contacts associated with the Deal)?

icon

Best answer by natashas 12 April 2024, 19:54

View original

13 replies

Userlevel 7
Badge +14

Hi @tomspaghetti 

You can use the Looping app to iterate thru 1+ items: https://zapier.com/apps/looping/help

Badge

Thanks Troy. I looked into that but was not successful figuring it out. Can you provide the steps for how to make it work?

Userlevel 7
Badge +14

@tomspaghetti 

To give us full context, post screenshots with how your updated Zap steps are outlined and configured.

Badge

Here’s a screenshare walkthrough.

Userlevel 7
Badge +14

@tomspaghetti 

Add this Zap action: Looping - Create Loop from Line Items as a step between 2 & 3.

Help: https://zapier.com/apps/looping/help

 

Badge

Hi Troy, I tried this before I even posted to this forum, but was unable to set it up properly. Could you please a detailed step-by-step process to set up the Loop step? 

Badge

Here are the fields required for the Loop. Can you explain how to utilize each field? Thanks!

 

Badge

i got it, thank you. Here’s my final setup:

 

Userlevel 7
Badge +14

@tomspaghetti 

Did you review the help article for using Looping in Zaps?

https://zapier.com/apps/looping/help

 

Make sure to review the field description for guidance. (more)

You would map the returned HubSpot Contact IDs.

 

Userlevel 1

I am having the same exact issue, could someone post the solution to this? 

Userlevel 7
Badge +14

@natashas 

Looping help: https://zapier.com/apps/looping/help

Map line item data variables into the Looping step.

Then map the variables out from the Looping step to following action steps.

If you still need help, it might be best to post your own topic and includes screenshots of your Zap steps.

Userlevel 1

Thank you for the quick response. I went through the documentation and was able to create the loop. However, it was never clear in the documentation how to loop works in subsequent steps (where I ran into issues with the “Get Contact in Hubspot”. That said, I would like to share the solution that worked for me:

 

I figured it out watching this video:

 

Another thing to keep in mind is, you need to end a loop if you want to continue your Zaps using filters, otherwise the looping will continue happening in subsequent steps.

 

Userlevel 7
Badge +6

That’s an amazing news @natashas! A huge thanks to Troy for lending a hand here.

Additionally, thank you for sharing the solution that worked for you. This will be helpful to our Community members.

If you have any other questions, please don’t hesitate to reach out to the Community. We’re always happy to help! 🤗

Reply