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 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
How to Connect Salesforce with Claude AI Using an MCP Server

Claude AI can make working with Salesforce CRM data much easier. Instead of manually opening records, building reports, or writing SOQL queries, teams can ask Claude questions in plain English and get answers from their Salesforce org. With Salesforce MCP, users can explore CRM information through a conversational interface, helping them find relevant details with […]

Read More
How to Set Up Salesforce Claudeforce Using the Headless 360 MCP Server

Setting up Salesforce Claudeforce requires more than simply connecting Salesforce with Claude. The process involves beta access, the Salesforce Headless 360 MCP Server, an External Client App, plugin configuration, and user-level permissions. Each part of the setup is important because Claude needs controlled access to Salesforce data and actions while still following the user’s existing […]

Read More
How to Extract Data from PDFs Using OCR.space API in Salesforce

Many times it’s crucial to extract information from documents such as loan statements, invoices, applications, identity documents, and scanned forms. When the information is stored as an image or scanned PDF, it cannot be directly read and used as regular text. This is where Salesforce OCR becomes useful. Optical Character Recognition can convert text from […]

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