Loading...

When HubSpot forms capture valuable lead information, you often need those details delivered instantly to a specific inbox, whether it’s your sales team, support desk, or an external system. While HubSpot doesn’t natively email form submission data outside its notification settings, you can automate it using a custom workflow and SendGrid’s transactional API.

This guide shows you exactly how to send HubSpot form data via email using a SendGrid API key and a simple Node.js custom code action inside workflows.

Prerequisite:

  • HubSpot Developer account
  • SendGrid API Key
  • Basic Knowledge of Node.js and REST APIs

How to send Form data via Email Using Sendgrid API and Custom Code in Hubspot

Below is a detailed step-by-step guide. Let’s dive in:

Step 1: Create a HubSpot Workflow

  • Go to Automation Workflows
  • Click Create workflow-> From scratch
  • Choose Contact-based workflow
  • Set trigger to:Form submission ->Select your form
  • Save the trigger.

Step 2: Add a Custom Code Action Inside the Workflow

  • Click ‘+’ inside the workflow
  • Choose Custom Code
  • Set Language->Node.js
  • Under “Properties to pass into code”, add a property
  • Scroll to Secrets
  • Click Add Secret
  • Name it: SENDGRID_API_KEY
  • Paste your SendGrid API key
Screenshot 74

Step 3: Write Your Custom Code

Screenshot 71 1
Screenshot 72
Screenshot 73

Watch the Demo

Conclusion

By integrating HubSpot workflows with SendGrid’s reliable email API, you gain complete control over how form submissions are delivered: custom formatting, dynamic fields, conditional routing, and more. This setup ensures your team receives accurate, instant notifications without relying on HubSpot’s default email options.

Whether you’re streamlining sales alerts, support requests, demo enquiries, or onboarding workflows, this SendGrid integration keeps your communication fast, consistent, and fully automated. If your team also uses Salesforce, you can implement similar automation using custom Apex triggers or Flow integrations.

Our HubSpot Development Services help unify HubSpot-to-Salesforce data, automate alerts, and build end-to-end workflows across both platforms for higher efficiency.

No Data Found.

Related Articles
Fetch Document from Niko Health and Attach it to Salesforce Account

Integrating external healthcare platforms like Niko Health with Salesforce helps streamline document management and improve operational efficiency. In this guide, we will walk through the complete process of fetching a document from Niko Health using APIs and attaching it to a Salesforce account as a file. This step-by-step implementation is useful when you want to […]

Read More
Winter 26 Update Using LWC as Local Actions in Screen Flows

The Salesforce Winter Release 2026 introduces powerful AI-driven updates focused on automation, productivity, and smarter CRM experiences. From major enhancements in Salesforce LWC to improved Salesforce Flow local action capabilities, the release helps developers and admins build faster, more scalable Salesforce solutions. The Salesforce Winter 26 release also reflects Salesforce’s growing focus on AI-powered workflows, […]

Read More
Automation Difference Between HubSpot and Salesforce Flow

Customer Relationship Management (CRM) systems help businesses manage customer interactions, sales processes, and marketing campaigns efficiently. Two of the most popular CRM platforms used worldwide are HubSpot and Salesforce. Both platforms provide automation tools that allow businesses to automate repetitive tasks, improve efficiency, and reduce manual work. However, the automation capabilities and design of these […]

Read More
Automating Customer Approval Using Salesforce Approval Process

In many financial or compliance-based applications, organizations need a structured way to review and approve important documents or financial data before they are finalized. For example, a company implemented a Salesforce approval process to validate Customer’s ITR (Income Tax Return) details to ensure that high-income cases are reviewed by senior authorities while keeping the process […]

Read More
How to Automatically Create Messaging Consent Using Record Triggered Flow in Salesforce

Automating messaging consent in Salesforce is essential for maintaining compliance and scaling customer communication. In this guide, you’ll learn how to auto-create OPT-IN Messaging Consent records using a Record-Triggered Flow, eliminating manual work while ensuring accurate, real-time consent capture. If you’re searching for a reliable way to automate consent tracking in Salesforce without Apex and […]

Read More
How We Built a Structured Prospecting System Using HubSpot’s Prospecting Agent

Outbound prospecting doesn’t fail due to lack of effort, it breaks down when there is no structured system behind it. Many teams either rely heavily on manual outreach or expect automation tools to handle the entire process, often leading to inconsistent results and low-quality engagement. At HIC, we take a more balanced and scalable approach. […]

Read More
Our Location worldwide
Indian Flag India
3rd Floor, A-10, Pegasus Tower, Sector 68, Noida, Uttar Pradesh 201301 +91-1203239658
United States of America Flag USA
333 West Brown Deer Road Unit G – 366 Milwaukee WI, USA 53217 +1(262) 310-7818
United Kingdom Flag UK
7 Bell Yard, London, WC2A 2JR +44 20 3239 9428
Canada Canada
HIC Global Solutions INC
6D - 7398 Yonge St #1124 Thornhill, ON L4J 8J2 Canada +1(262) 310-7818