Skip to main content

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.

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