Email logging filter issue

I have an issue with indescriminate email logging on our Deal pages/records.
At our company, the ‘service provider’ is included as an associated contact on each deal along with the client, so we can run reports on our service providers and check things like bandwidth, etc.
The problem is this: because the service providers are on the deal, ANY email between the service provider and the deal owner gets logged to the deal -- even if it’s an email about an entirely different deal/client or an unrelated internal communication.
What I need is some sort of filter: only log emails between the deal owner and associated contacts who don’t have the ‘service provider’ association label.
Otherwise, a service provider can work with 20-30 clients at once, and (because it’s best practice to Cc the deal owner on every client email), email threads for 20-30 clients end up on every single deal -- making the email log an absolutely mess to use.

Hi @Josh1826,

It’s currently not possible, as far as I know, to specify activity association defaults based on association labels. You could request so from the product team here: https://community.hubspot.com/t5/HubSpot-Ideas/idb-p/HubSpot_Ideas

For now, this would require a custom code action and some dev work based on the Engagements API (available in Operations Hub Professional and Enterprise).

Without the above, you’re limited to these general activity association rules. Set up automatic associations for records and activities

… + changing logged activities manually.

Best regards!

Thanks for the reply, Karsten.
I’m actually trial-ing Data Hub Pro (which I think is the renamed or possibly revamped Operations Hub), so I do have access to custom code. We’re not yet sure if we’re sticking with Data Hub -- working to see what it offers -- so do you happen to know if any custom code developed would remain active if we didn’t continue with Data Hub Pro?
No worries if not. Appreciate the response either way, and I’ve logged this as a feature request as you suggested.

Hey @Josh1826 - thanks so much for following-up here!
Re-tagging @karstenkoehler to see if he has any insight on these additional questions.
Shane, Senior Community Moderator

@STierney I’d be surprised if custom code actions continued to work after a trial. I would assume assume that these actions in workflows are then skipped and throw an error in the workflow actions log.