Programmable Automation Use Cases
The definitive library for programmable automation use cases in HubSpot's Operations Hub
DiscoverDeduplicate Contact
Format International Phone Numbers
Archive or Delete Contacts
Create Deals Based on Contract Length
Associate a Contact's Deals to Their Company
Complete All Tasks of a Closed Deal
Associate a Contact to a Company
Turn a Full Name into a First and Last Name
Add a Date Suffix
Format U.S. Phone Numbers
Look Up Data in an External Database
Validate Email Address Through a Validation Service
Enrich your Company Data with a Business Intelligence Service
Enrolling a Custom Object’s Associations in Another Workflow
Weighted Lead Rotation
Dynamically Update a Salesforce Campaign
Count High-Value Line Items on a Deal

Ready to build a friction-free customer experience?
Check out Operations Hub, HubSpot's newest Hub that gives you a unified toolset that connects apps, cleans customer data, and automates business processes under one central CRM platform.
Learn MoreCopyright © 2025 HubSpot Inc.
Look Up Data in an External Database
Discover
Storing all of the user interactions on your platform in an external database? This custom code action can be used to integrate your CRM with your database. Its code will check whether a HubSpot contact exists in that database. The outcome of the code action can then be used to run all kinds of automations. For instance, when a contact converts on a form, you can have HubSpot check whether a contact uses your platform, and if they don’t, you can have it create a trial account for them. If they do, you can have it sync back their user information straight to their HubSpot contact record. Created by: Jack Coldrick, HubSpot
Discover