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!
- Click Install the integration to get started
- Create an account or login to Fusebit
- You will be redirected to the Fusebit web editor with already most of the code you need.
- Now, let’s fetch HubSpot companies, we can do this with one line of code:
const companies = await hubspotGetCompanies(ctx);
in line 16 (insideintegration.router.post
) - 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). - 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
tocompanies: companies.length
and that’s it!
Run the Integration
Click on Run
and authorize your Slack account and HubSpot account.
And you will receive the slack message below with the number of companies you have in HubSpot.
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.