Question

How do I retrieve all HubSpot deals that match an external ID?

  • 26 February 2024
  • 1 reply
  • 37 views

Hello, I currently have an external ID (Chargebee Subscription ID) that is set as one of my Hubspot Deal properties.

What I want to do: When that subscription is updated externally, then find the most recent Hubspot Deal and compare them and do some calculations, then create a new deal.

Where I’m stuck: When I use the Hubspot “Find a deal” action, it only returns one deal which is the oldest one that matches the chargebee subscription ID. How can I retrieve the Deal that was created last? My original idea was to use Find to retrieve all deals that match that ID, then check on the latest created at date but right now I only have one deal returned.


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Userlevel 7
Badge +14

Hi @inFlow 

You would likely have to use the HubSpot API: https://developers.hubspot.com/docs/api/overview

Try using one of these HubSpot Actions:

  • Custom Action
  • API Request