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
How to Integrate Authorization Records Between NikoHealth and Salesforce Using MultiSync Made Easy

Authorizations are one of the most important components of the healthcare revenue cycle. They help providers track payer approvals, authorized units, approved amounts, HCPCS codes, and authorization periods before services are delivered or billed. When authorization data is managed across different platforms, keeping records updated manually can become difficult. A proper Healthcare CRM Integration helps […]

Read More
How to Integrate Google Gemini Vertex AI with Salesforce Using Named Credentials

Generative AI is transforming how businesses automate workflows, generate content, and improve productivity. By integrating Google Gemini Vertex AI with Salesforce, developers can build AI-powered CRM experiences directly inside Salesforce applications. Using Salesforce Named Credentials and External Credentials, businesses can securely authenticate with Google Vertex AI APIs without hardcoding authentication tokens or secrets in Apex […]

Read More
How to Integrate Insurance Records Between NikoHealth and Salesforce

Keeping insurance records synchronized between NikoHealth and Salesforce helps reduce manual work and keeps your data accurate across both platforms. In this guide, we’ll show you how to set up the NikoHealth integration using MultiSync Made Easy. Before proceeding further, make sure: NikoHealth is already authorized with Salesforce. Patient synchronization is already configured. The Insurance […]

Read More
How to Integrate Patient Records Between NikoHealth and Salesforce

Managing patient data across systems often becomes complex for healthcare teams who need real-time accuracy and seamless updates. This guide helps you solve that by showing how to integrate and synchronize Patient records between NikoHealth and Salesforce using MultiSync Made Easy.  Related Guide: How to Integrate NikoHealth with Salesforce Using MultiSync Made Easy In this […]

Read More
Post Patient Data from NikoHealth Using Postman

Before building a Salesforce integration with NikoHealth, it is often useful to test APIs directly from Postman. This helps verify authentication, understand API responses, and test create/update operations before writing any code. In this guide, we will: Generate an Access Token using Client Credentials. Authorize NikoHealth APIs in Postman. Retrieve Patient information from NikoHealth. Create […]

Read More
Salesforce Web Console Beta A Unified Browser Based IDE for Faster Development

Salesforce Web Console (Beta) is a browser-based development environment that allows developers to write Apex code, run queries, debug applications, and manage metadata directly within their org. It is designed as a modern alternative to older tools such as Developer Console and Workbench. The Salesforce Web Console is available directly inside Salesforce and does not […]

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