DEV Community

Cover image for Send HubSpot Companies to Slack!
Lizz Parody
Lizz Parody

Posted on

1

Send HubSpot Companies to Slack!

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 here to install the integration
  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.
    Image description

  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 integration.router.post)

  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!

Check out the full blog post here

Billboard image

Monitor more than uptime.

With Checkly, you can use Playwright tests and Javascript to monitor end-to-end scenarios in your NextJS, Astro, Remix, or other application.

Get started now!

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay