← Zoho Inventory + Discord Webhook integrations

Send Message with Discord Webhook API on New Item from Zoho Inventory API

Pipedream makes it easy to connect APIs for Discord Webhook, Zoho Inventory and 1000+ other apps remarkably fast.

Trigger workflow on
New Item from the Zoho Inventory API
Next, do this
Send Message with the Discord Webhook API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜

Trusted by 500,000+ developers from startups to Fortune 500 companies

Adyen logo
Brex logo
Carta logo
Checkr logo
Chameleon logo
DevRev logo
LinkedIn logo
Netflix logo
New Relic logo
OnDeck logo
Replicated logo
Scale AI logo
Teamwork logo
Warner Bros. logo
Xendit logo

Developers Pipedream

Getting Started

This integration creates a workflow with a Zoho Inventory trigger and Discord Webhook action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the New Item trigger
    1. Connect your Zoho Inventory account
    2. Configure Polling Interval
    3. Select a Organization
    4. Optional- Configure Maximum Results
  3. Configure the Send Message action
    1. Connect your Discord Webhook account
    2. Configure Message
    3. Optional- Configure Thread ID
    4. Optional- Configure Username
    5. Optional- Configure Avatar URL
    6. Optional- Configure Include link to workflow
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, source-available components from Pipedream's GitHub repo. These components are developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Trigger

Description:Emit new event each time a new item is created in Zoho Inventory
Version:0.0.2
Key:zoho_inventory-new-item

Zoho Inventory Overview

The Zoho Inventory API gives developers the ability to build innovative and
dynamic applications that enable businesses to manage the selling, buying, and
organizing of inventory. With this API, developers can tailor their
applications with the features to enable businesses to make the most of their
inventory.

The Zoho Inventory API has many features, including:

  • Creation and management of vendors, customers, and items
  • Ability to keep track of inventory stock in warehouses, sale orders, and
    purchase orders
  • Automation of sales, purchases, and warehousing operations
  • Ability to manage taxes, currency exchange rates, ships, carriers, and more
  • Access to real-time reports on sale and purchase orders

With the Zoho Inventory API, you can create the following applications:

  • Customized e-commerce website for customers
  • Inventory management system for warehouses
  • Dynamic order processing and invoicing system
  • Automated purchasing system for vendors
  • Robust billing system for customers
  • Mobile app for sales and inventory tracking
  • Real-time reporting system for analyzing sales and purchases
  • Comprehensive e-commerce platform that integrates with other apps

Trigger Code

import common from "../common/base.mjs";

export default {
  ...common,
  key: "zoho_inventory-new-item",
  name: "New Item",
  description: "Emit new event each time a new item is created in Zoho Inventory",
  version: "0.0.2",
  type: "source",
  dedupe: "unique",
  methods: {
    ...common.methods,
    getResourceFn() {
      return this.zohoInventory.listItems.bind(this);
    },
    getResourceType() {
      return "items";
    },
    generateMeta(item) {
      return {
        id: item.item_id,
        summary: `New Item ${item.name}`,
        ts: Date.parse(item.created_time),
      };
    },
  },
};

Trigger Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
Zoho InventoryzohoInventoryappThis component uses the Zoho Inventory app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
N/Ahttp$.interface.httpThis component uses $.interface.http to generate a unique URL when the component is first instantiated. Each request to the URL will trigger the run() method of the component.
Polling Intervaltimer$.interface.timer

Pipedream will poll the Zoho Inventory API on this schedule

OrganizationorganizationstringSelect a value from the drop down menu.
Maximum ResultsmaxResultsinteger

The maximum number of results to return at one time.

Trigger Authentication

Zoho Inventory uses OAuth authentication. When you connect your Zoho Inventory account, Pipedream will open a popup window where you can sign into Zoho Inventory and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Zoho Inventory API.

Pipedream requests the following authorization scopes when you connect your account:

ZohoInventory.settings.READZohoinventory.FullAccess.all

About Zoho Inventory

Inventory Management | Online Inventory Software

Action

Description:Send a simple message to a Discord channel
Version:0.3.1
Key:discord_webhook-send-message

Discord Webhook Overview

With Discord's Webhook API, you can create applications that send messages to
Discord channels automatically. For example, you could create a bot that sends
a message to a channel every time a new blog post is published, or a message to
a channel when someone joins your Discord server.

Here are some ideas for what you could build using the Discord Webhook API:

  • A bot that sends a message to a channel when a new blog post is published
  • A bot that sends a message to a channel when someone joins your Discord
    server
  • A bot that sends a message to a channel when a new product is added to your
    online store

Action Code

import common from "../send-message-common.mjs";

export default {
  ...common,
  key: "discord_webhook-send-message",
  name: "Send Message",
  description: "Send a simple message to a Discord channel",
  version: "0.3.1",
  type: "action",
  props: {
    ...common.props,
  },
  async run({ $ }) {
    const {
      message,
      avatarURL,
      threadID,
      username,
      includeSentViaPipedream,
    } = this;

    try {
      // No interesting data is returned from Discord
      await this.discordWebhook.sendMessage({
        avatarURL,
        threadID,
        username,
        content: includeSentViaPipedream
          ? this.appendPipedreamText(message)
          : message,
      });
      $.export("$summary", "Message sent successfully");
    } catch (err) {
      const unsentMessage = this.getUserInputProps();
      $.export("unsent", unsentMessage);
      throw err;
    }
  },
};

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
Discord WebhookdiscordWebhookappThis component uses the Discord Webhook app.
Messagemessagestring

Enter a simple message up to 2000 characters. This is the most commonly used field. However, it's optional if you pass embed content.

Thread IDthreadIDstring

If provided, the message will be posted to this thread

Usernameusernamestring

Overrides the current username of the webhook

Avatar URLavatarURLstring

If used, it overrides the default avatar of the webhook. Note: Consecutive posts by the same username within 10 minutes of each other will not display updated avatar.

Include link to workflowincludeSentViaPipedreamboolean

Defaults to true, includes a link to this workflow at the end of your Discord message.

Action Authentication

Discord Webhook uses OAuth authentication. When you connect your Discord Webhook account, Pipedream will open a popup window where you can sign into Discord Webhook and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Discord Webhook API.

Pipedream requests the following authorization scopes when you connect your account:

webhook.incomingemailidentify

About Discord Webhook

Use this app to send messages to a channel using Discord's incoming webhooks

More Ways to Connect Discord Webhook + Zoho Inventory

Send Message (Advanced) with Discord Webhook API on New Contact from Zoho Inventory API
Zoho Inventory + Discord Webhook
 
Try it
Send Message With File with Discord Webhook API on New Contact from Zoho Inventory API
Zoho Inventory + Discord Webhook
 
Try it
Send Message with Discord Webhook API on New Contact from Zoho Inventory API
Zoho Inventory + Discord Webhook
 
Try it
Send Message (Advanced) with Discord Webhook API on New Invoice from Zoho Inventory API
Zoho Inventory + Discord Webhook
 
Try it
Send Message With File with Discord Webhook API on New Invoice from Zoho Inventory API
Zoho Inventory + Discord Webhook
 
Try it
New Contact from the Zoho Inventory API

Emit new event each time a new contact is created in Zoho Inventory

 
Try it
New Invoice from the Zoho Inventory API

Emit new event each time a new invoice is created in Zoho Inventory

 
Try it
New Item from the Zoho Inventory API

Emit new event each time a new item is created in Zoho Inventory

 
Try it
New Sales Order from the Zoho Inventory API

Emit new event each time a new sales order is created in Zoho Inventory

 
Try it
Create Contact with the Zoho Inventory API

Create a new contact in Zoho Inventory. See the docs here

 
Try it
Create Sales Order with the Zoho Inventory API

Create a new sales order in Zoho Inventory. See the docs here

 
Try it
Send Message with the Discord Webhook API

Send a simple message to a Discord channel

 
Try it
Send Message (Advanced) with the Discord Webhook API

Send a simple or structured message (using embeds) to a Discord channel

 
Try it
Send Message With File with the Discord Webhook API

Post a message with an attached file

 
Try it