Loading...
New Winner – Cross-Border Excellence | Payoneer India 2026 Check out
Featured Recognized by Salesforce; Proven by impact! Check out

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
How to Create an AI Sales Email Template in Salesforce Using Prompt Builder

Writing sales emails for every prospect takes time, especially when each message needs to reflect the contact’s role, company, and business requirements. Generic emails often miss that personal connection. Salesforce Prompt Builder helps sales representatives create personalised email drafts using information already available in Contact and Account records. Instead of writing every message from scratch, […]

Read More
Building a Multi-Stage Quote Approval Workflow in Salesforce

When a Quote needs approval before it can be finalized, businesses may need one or more people to review it. In Salesforce, this process can be managed through an Approval Process, which helps ensure that each Quote reaches the right approver. In this implementation, the goal was to create a dynamic, multi-stage approval process forSalesforce […]

Read More
SAP BTP to Salesforce REST API Integration: A Step-by-Step Guide

Connecting SAP applications with Salesforce can help businesses keep customer information and business processes aligned across both platforms. SAP Business Technology Platform (SAP BTP) provides an integration layer for exchanging data between these systems without building a separate connection for every application. In this example, SAP Integration Suite acts as middleware and sends JSON data […]

Read More
How to Automate Lead Qualification in GoHighLevel Using the Gemini API

GoHighLevel workflows can capture lead details and trigger webhooks, but evaluating each prospect against service fit, budget, and purchase readiness requires additional logic. Connecting an AI model makes this evaluation part of the automated process. With Gemini, submitted lead information can be assessed against predefined scoring criteria to generate a qualification status, score, reason, and […]

Read More
How to Connect Claude with Notion Using a Custom Connector

Claude becomes more useful when it can access information stored in external platforms such as Notion. This connection helps users retrieve relevant business documents without manually uploading them into Claude. A custom connector built with the Model Context Protocol (MCP) allows Claude to communicate with Notion through a dedicated server. It can search pages and […]

Read More
How to Configure Volume and Attribute-Based Discounts Using Pricing Procedures in Revenue Cloud Advanced

Revenue Cloud helps businesses automate product pricing and manage discounts according to their sales requirements. Salesforce Revenue Cloud supports structured pricing calculations, allowing organizations to apply pricing rules consistently across supported sales transactions. Revenue Cloud Advanced (RCA) provides pricing capabilities that help businesses manage product prices, volume discounts, and attribute-based adjustments. Pricing procedures bring these […]

Read More
Our Location worldwide
Indian Flag India
7th Floor, A-10, Pegasus Tower, Sector 68, Noida, Uttar Pradesh 201301 +91-1203669505
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
CA Flag Canada
HIC Global Solutions INC
6D - 7398 Yonge St #1124 Thornhill, ON L4J 8J2 Canada +1(262) 310-7818