How to count Sales emails received per deal in HubSpot workflows?

Hi Community,

I am facing an issue while trying to count the total number of sales emails received per deal, similar to how it is tracked at the contact level using the Recent Sales Email Reply Date property. Here is the scenario:

  • A single contact can have multiple deals associated with it.
  • When I send an email to a contact from a deal card and the contact replies, the reply is logged on both the deal and the contact card, while the other deals remain unaffected.
  • I am managing all deals separately, and I want to count all sales emails received for each deal individually.

To achieve this, my approach was:

  • If the contact’s Recent Sales Email Reply Date matches a deal’s Sales Activity Date, then that should count as a sales email received for that deal.
  • I want to increment a counter property on the deal each time this condition is met.

However, I am unable to add this as a trigger condition in my workflow (i.e., Recent Sales Email Reply Date = Deal Sales Activity Date).

  • I also tried using a calculation property to compare the dates, but it is not working as expected.

I would really appreciate guidance or best practices on how to set up a workflow that accurately counts sales emails per deal, taking into account multiple deals associated with the same contact.

Thank you in advance for your help!

Hi @ENadeem,

We have discussed this in a few threads before already: As you have already found out, this is currently not possible with the out-of-the-box features in HubSpot. Neither is there a default property, nor is it possible to reliably have a number property increase via calculation or workflow.

If you want this behavior, you would have to look into the HubSpot API and build an app that updates the deal with the count of associated emails. As of now, I don’t see a way to achieve this without development. Alternatively, leverage third-party automation like Make, Zapier, n8n to achieve the same.

There is always the route of simply visualizing this information in reports – in a custom report builder configuration, simply pull in deals and activities, then visualize the count of activities with type email.

You could also request this from the product team. Sharing the Idea you created (thanks @ENadeem)
“Allow Counting of Sales Emails Received Per Deal” so that others can upvote it and add their use cases on it.

Best regards

do you think this is achieveable using legacy app?

@ENadeem yes, that’s what I was suggesting – either via legacy app or the new apps.

  • Configure a custom number property on the deal object
  • Use the Engagements API to fetch associated sales emails
  • Count email engagements for each deal
  • Use the CRM Deals API to PATCH the deal
  • Run this via a scheduled job (cron) or webhook trigger (deal updated → recalc)