Send HubSpot Companies to Slack!

Hero Image

There are hundreds of data integrations you can do between HubSpot and Slack. One of them is to send the number of HubSpot companies to a Slack channel.

With just a few steps and lines of code, you can easily create it!

  1. Click Install the integration to get started
  2. Create an account or login to Fusebit
  3. You will be redirected to the Fusebit web editor with already most of the code you need.HubSpot Slack Snippet
  4. Now, let’s fetch HubSpot companies, we can do this with one line of code: const companies = await hubspotGetCompanies(ctx);
    in line 16 (inside
  5. Send the new message to Slack with
    await slackSendMessage(ctx,You have ${companies.length} companies in HubSpot)
    in line 19 (or any other message of your preference).
  6. In addition to sending the message directly within Slack you can also send it in the response body. Change what’s inside of the ctx.body to companies: companies.length and that’s it!

Run the Integration

Click on Run and authorize your Slack account and HubSpot account.

HubSpot Slack Run Integration

And you will receive the slack message below with the number of companies you have in HubSpot.

HubSpot Slack Run Integration

You can also do a similar process to search your HubSpot contacts, send slack notifications (in a private or public channel), search for a new company, and other HubSpot Slack Integration.

Before you go…

Fusebit allows you to integrate HubSpot CRM with multiple platforms, including Google Sheets, Microsoft Teams, GitHub, and also create tasks from external platforms, fetch deals assigned to a team member, receive HubSpot Notifications in real time, send HubSpot conversations to Slack, and many other integrations with the power of code.


Most Recent

29 November 2022
How to Run Deno on AWS Lambda

Learn how to run Deno in a serverless environment.

21 November 2022
How to Receive Updates from Salesforce in Your Deno Application

Learn how to connect a Deno application to the Salesforce API and query for leads/contacts and display them in your application.

26 October 2022
5 Deno Runtime Projects You Should Try

Highlights a number of projects out there using Deno that developers should watch and try.