Hubspot how to continue if "Zero results" on Deal Search?

Describe the problem/error/question

I am trying to search if a hubspot deal exists, if so, update it, if not, then create one. I cannot figure out how to branch to the “create” when the search does not show any results for existing deals.

What is the error message (if any)? None

Please share your workflow

## Information on your n8n setup
- **n8n version:** Cloud

Hey @Jonathan_Sheehan,

Welcome to the community :cake:

Have you checked the Always Output Data option under the nodes settings? That should then give you an empty output and you can check if a key exists in the if node to work out if it is a create or not.

Thanks @Jon!

I am a longtime user of Integromat but like several things about n8n better as I start to use it.

I have Always output data on, but it still says only one item comes out? A few screenshots below. Any idea what I’m missing?

I will need to set up a Hubspot account to have a proper play :slightly_smiling_face:

Is the node set to execute once?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.