Webhooks

Webhooks

The guide will help you with the following:

  1. Set up Webhooks
  2. Use Webhooks
  3. Business Scenario 1- Calculate Sales commissions in Zoho Creator App 
      3. Refer Error Codes 
  1. HTTP Status Codes 
  2. Custom Errors 
Webhooks facilitates communication with third-party applications by sending instant web notifications every time an event occurs in your Zoho CRM (or Vertical CRM). With Webhooks, you can configure HTTP URLs and associate them in workflow rules to automate the entire notification process. For general information about Webhooks, please refer to  webhooks.org .
 

Scenarios

  1. After closing a potential in your CRM, you can push the customer information to any third-party accounting software and automatically generate an Invoice for the Customer.
  2. You can add subscribers to the mailing list in Email Marketing software (e.g. MailChimp) based on leads or contacts collected from your Website using your CRM's Web forms.
  3. You can trigger SMS reminders to field sales reps about customer meetings, demos and other events.
  4. You can generate an estimate in your accounting software as soon as the opportunity stage is changed from Prospecting to Price Quote.
 

Target Audience

  1. CRM Users with Manage Workflow permissions
  2. Programmers with REST API skills

List of Fields in Webhook

Field Name
Description
Data type
Maximum Limit
Name
Specify name of the webhook
Text
Alphanumeric(50)
Description
Add description for the webhook
Text
200 characters
URL to Notify
Specify the REST API URL of the third-party application.
URL
200 characters
Method
Select type of API Method - POST or GET. By default, system selects POST method.
Radio Button

Module

Choose one of the Zoho CRM modules.
Supported Modules:
  1. CRM primary module, such as leads, accounts, contacts, potentials, etc.
  2. Events and Tasks
Note: You can not set up webhooks for Call Logs and Notes modules.
Picklist

Append Entity Parameters

Specify the Parameter Name and corresponding Parameter Value. This is the request parameters sent while triggering the webhook notification to third-party application.

Supported Modules:
  1. CRM primary modules
  2. User
  3. Organization
String 
3000 characters
Append Custom Parameters
Specify the CRM Parameter Name and corresponding Value for the webhook.  This is also the request parameters sent while triggering the webhook. The name and the value are as configured. This key/value pair is mainly used to send the Auth tokens, security tokens, etc.
String

Preview URL
Preview the complete webhook URL to be notified to the third-party application.
Text
Read-only

Set Up Webhooks

Setting up Webhooks includes the following three steps:
  1. Create a webhook.
  2. Associate webhook to a workflow rule.
  3. Test webhook integration.

To create a webhook
  1. Log in to Zoho Developer console and click Extensions for Zoho CRM.
  2. Select the extension you'd like to modify and click Edit.
  3. Click Automate in the left pane of the Extension Details page and click Workflow.
  4. Click Webhooks tab at the top of the page and click Configure Webhook.
  5. In the Configure Webhook page, specify all necessary parameters.
  6. Click Save.


To associate webhook to a workflow rule
  1. Log in to Zoho Developer console and click Extensions for Zoho CRM.
  2. Select the extension you'd like to modify and click Edit.
  3. Click Automate in the left pane of the Extension Details page and click Workflow.
  4. Click Rules tab at the top of the page.
  5. In the Workflow Rules page, click the Create Rule.
  6. In the New Rule page, specify workflow rule parameters.
  7. Under Instant Actions, select the webhooks to be triggered.
  8. Click Associate.



To test the webhook integration
  1. Add test data in your CRM according to your workflow rule criteria.
  2. In your application, check for the data received from your CRM via webhook notification.
  3. If there is an error or data mismatch, modify your webhook settings in your CRM.
  4. Continue this test until you obtain the required data from CRM to your Application.

Important Notes

  1. You can associate up to 6 (1 Instant Action and 5 Time-Based Actions) webhooks per workflow rule.
  2. You can transfer data for a maximum of 10 CRM fields from your CRM to third-party applications using webhook.
  3. You cannot retrieve data from other Apps to your CRM using webhooks.
  4. You must update the API ticket regularly according to limits in third-party applications.
  5. You will not receive any email notification, if the Webhook integration stopped functioning due to any issue in third-party API.
  6. If there is any failure in the process, Webhook will send a notification first, and your CRM system will send a second notification after 15 min. Thereafter, the system will not send any Webhook notifications for that particular workflow trigger.
  7. If you exceed the maximum count per day, the system will not send remaining Webhook notifications to third-party applications and will notify the failure to Administrator.
  8. In the URL to Notify field, if you want to specify a port number, please note that only 80 or 443 port numbers are supported.
  9. Data will be sent in the following standard format for Date and Date Time fields to third-party applications:
    1. Date: yyyy-MM-dd
    2. Date Time: yyyy-MM-dd hh:mm

Business Scenario 1

Calculate Sales Commission in Zoho Creator App upon closing an Opportunity in Zoho CRM.
 

Purpose

Sales Managers and the Payroll team can use the Sales Commission app to calculate the compensation for your Sales Reps according to a pre-defined formula set by your organization (for example, flat 2% of the closed contract or sales amount). This application helps you to reduce manual entries, minimize errors and save time while calculating commission for your Sales Reps. Additionally, Sales Reps can track their monthly commissions in a central location.
 

Pre-requisite

  1. Account in Zoho Creator Application
  2. Permission to access Zoho API
  3. Familiarity with Zoho Creator

Procedure

  1. Create the Sales Commission App in Zoho Creator (Refer Zoho Creator Tutorial on Creating Apps )
  2. Configure webhook in CRM 
  3. Set up Workflow Rule 
  4. Test your webhook integration 

Step 1: Create Sales Commissions App in Zoho Creator

In Zoho Creator, create the Sales Commission App with following fields:
  1. Sales Rep
  2. Potential Name
  3. Customer Name
  4. Opportunity Amount
  5. Type of Business: New Business or Existing Business
  6. Closing Date
  7. Sales Commission


To create an Application in Zoho Creator refer to the  online help  

Step 2: Configure Webhook

Select the following Fields from the Potentials module while setting up user-defined parameters:
  1. Potential Name
  2. Closing Date
  3. Type
  4. Record Owner
  5. Amount
In Webhook, specify the following details:

URL to Notify:

      1. https://creator.zoho.com/api/xml/write -  POST method

User-defined Parameters (XML or JSON)
  1. <ZohoCreator>
  2.     <applicationlist>
  3.         <application name='sales-commissions'>
  4.             <formlist>
  5.                 <form name='Commissions'>
  6.                     <add>
  7.                         <field name='Name'>
  8.                             <value> ${Potentials.Potential Name} </value>
  9.                         </field>
  10.                         <field name='Closed_Amount'>
  11.                             <value> ${Potentials.Amount} </value>
  12.                         </field>
  13.                         <field name='Closing_Date'>
  14.                             <value> ${Potentials.Closing Date} </value>
  15.                         </field>
  16.                         <field name='Customer_Name'>
  17.                             <value> ${Accounts.Account Name} </value>
  18.                         </field>
  19.                         <field name='Type_of_Business'>
  20.                             <value> ${Potentials.Type} </value>
  21.                         </field>
  22.                         <field name='Sales_Rep'>
  23.                          <value> ${Potentials.Potential Owner} </value></field>
  24.                     </add>
  25.                 </form>
  26.             </formlist>
  27.         </application>
  28.     </applicationlist>
  29. </ZohoCreator>


Note:
  1. In the above XML string, name represents the field in Zoho Creator App and the value for data is to be pushed from CRM.
  2. <applicaton name> is the name of the application that contains the form in Zoho Creator. Get your application name from the Application Settings tab of Zoho Creator.
  3. <form name> is the name of the form where you edit records in Zoho Creator. Get your form name from the Form Settings of your Zoho Creator account.
  4. Ensure that the date format in the Creator app is in yyyy-MM-dd format. You can change the date format from the Application Settings of your Zoho Creator account.
Custom Parameters
Parameters
Description
authtoken*
Specify authtoken from your creator account. Refer to the  Creator Help  for more details.
zc_ownername*
Specify the application owner's name of your creator account. 

Note
To retrieve data from other apps to Zoho Creator, you must specify the username and authtoken of Zoho API. To generate Zoho API information, refer to the  Online Help

Step 3 : Setup Workflow Rule

Follow these steps in the Workflow Rule page:
1. Set up workflow criteria as:
  1. Type is New Business
  2. Stage is Closed Won
2. Select the webhook as an instant action.
3. Save workflow rule.


Workflow Rule Criteria




Associate Webhook to Workflow Rule

Step 4: Test your Integration

  1. Add a test potential in CRM with Type and Stage fields as a New Business and Closed Won respectively. While entering test data, ensure that Amount, Closing Data, Record Owner, Account Name and Potential Name are also entered.
  2. Open your Sales Commission App in Zoho Creator and check for the CRM data. 
    If you've not received any data, modify the webhook configuration and continue testing. After successful testing, remove test entries and roll-out this integration to your CRM users.

Refer Error Codes

When execution of webhook fails, one of the following error messages are displayed in Zoho CRM:
 

HTTP Status Codes

  1. 400 Bad Request - Often missing a required parameter.
  2. 401 Unauthorized - No valid Auth Token provided.
  3. 402 Request Failed - Parameters were valid but request failed.
  4. 404 Not Found - The requested item doesn't exist.
  5. 500, 502, 503, 504 Server errors - Something went wrong on third-party application.
  6. Error Code 1 - Temporarily not able to connect to the API server. You need to check API server logs, firewalls settings for our requests sent from CRM.

Custom Errors

  1. Internal process failure - When the webhook is not executed due to errors in processing the webhook.
  2. Day limit reached - When the company reached the maximum limit for the day.








    Zoho CRM Training Programs

    Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

    Zoho CRM Training
      Redefine the way you work
      with Zoho Workplace

        Zoho DataPrep Personalized Demo

        If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

        Zoho CRM Training

          Create, share, and deliver

          beautiful slides from anywhere.

          Get Started Now


            Zoho Sign now offers specialized one-on-one training for both administrators and developers.

            BOOK A SESSION











                                        You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                            Manage your brands on social media

                                              Zoho Desk Resources

                                              • Desk Community Learning Series


                                              • Digest


                                              • Functions


                                              • Meetups


                                              • Kbase


                                              • Resources


                                              • Glossary


                                              • Desk Marketplace


                                              • MVP Corner


                                              • Word of the Day


                                                Zoho Marketing Automation

                                                  Zoho Sheet Resources

                                                   

                                                      Zoho Forms Resources


                                                        Secure your business
                                                        communication with Zoho Mail


                                                        Mail on the move with
                                                        Zoho Mail mobile application

                                                          Stay on top of your schedule
                                                          at all times


                                                          Carry your calendar with you
                                                          Anytime, anywhere




                                                                Zoho Sign Resources

                                                                  Sign, Paperless!

                                                                  Sign and send business documents on the go!

                                                                  Get Started Now




                                                                          Zoho TeamInbox Resources



                                                                                  Zoho DataPrep Resources



                                                                                    Zoho DataPrep Demo

                                                                                    Get a personalized demo or POC

                                                                                    REGISTER NOW


                                                                                      Design. Discuss. Deliver.

                                                                                      Create visually engaging stories with Zoho Show.

                                                                                      Get Started Now









                                                                                                          • Related Articles

                                                                                                          • Automation - Setting Up Webhooks

                                                                                                            This guide will help you with the following: Set up Webhooks Use Webhooks Business Scenario 1- Calculate Sales commissions in Zoho Creator App Refer Error Codes HTTP Status Codes Custom Errors Webhooks facilitates communication with third-party ...
                                                                                                          • Webhooks in Vertical Solutions

                                                                                                            Webhooks in Vertical Solutions enable integration with external applications by sending real-time web notifications, along with relevant data, whenever specified events occur in the solution. By setting up HTTP URLs and linking them to workflow ...
                                                                                                          • Extension Webhook

                                                                                                            Marketplace supports Extension Webhook , which will allow a market place app to create extension specific desk webhooks. Extension webhook access is restricted to the extension app alone so that the normal user can't make any changes on these ...
                                                                                                          • Automation - Workflow Rules

                                                                                                            This guide will help you with the following: Create Workflow Rules Part 1 - Specify the basic details of the rule  Part 2 - Configure the execution criteria  Part 3 - Set the rule criteria  Part 4 - Associate instant and/or time based actions ...
                                                                                                          • Workflow Rules

                                                                                                            The guide will help you with the following: Create Workflow Rules  Part 1 - Specify the basic details of the rule  Part 2 - Configure the execution criteria  Part 3 - Set the rule criteria  Part 4 - Associate instant and/or time based actions ...
                                                                                                            Wherever you are is as good as
                                                                                                            your workplace

                                                                                                              Resources

                                                                                                              Videos

                                                                                                              Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                              eBooks

                                                                                                              Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                              Webinars

                                                                                                              Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                              CRM Tips

                                                                                                              Make the most of Zoho CRM with these useful tips.



                                                                                                                Zoho Show Resources