Platform Event Callbacks

Platform Event Callbacks

Marketplace supports callbacks for extension's events. Developer can subscribe to the supported events and when the extension event is triggered, callbacks are invoked.

Supported Platform Event Callback's are,
  1. onInstall
  2. onZohoAuthorise
  3. onTPAAuthorise
  4. onTPARevoke
  5. onUpdate
  6. onConfigParamAdd
  7. onConfigParamDelete
  8. onUninstall

Sample plugin-manifest.json
  1. ...
  2. "callbackListener":{
  3.         "onZohoAuthorise": "https://zohodeskapp.com/authorized.php%22,
  4.         "onConfigParamAdd": "https://zohodeskapp.com/adjustfiler.php%22,
  5.         "onUninstall": "https://zohodeskapp.com/revokeWebhook.php%22
  6. },
  7. ...

Subscribing to the Events

Extension manifest's callbackListener property is used for declaring the callbacks for the extension's events. To subscribe to an event, specify the callback URL in the manifest for the callbackListener's respective event.

Event Callback Request

Whenever the extension event occurs, the callback URL is triggered with security parameters which can be used to call the authenticated APIs.

Sample Event Callback Request
URL             :     manifest.callbackListener.{eventName}
RequestMethod   :     POST
RequestHeaders  :     HASH
Content-Type    :     application/json
RequestBody     :     JSONObject in #EVENT_CALLBACK_PAYLOAD_FORMAT format.

EVENT_CALLBACK_URL
https://zohodeskapp.com/authorized.php 

EVENT_CALLBACK_HEADERS
  1. {
  2.     "HASH"            : "xxxxxxxxx"

EVENT_CALLBACK_PAYLOAD_FORMAT
  1. {
  2.     "event"            : "onZohoAuthorise",
  3.     "orgId"            : 387238,
  4.     "securityContext"  : "2398deio3qwnx3c9xwi3nc3njkh9jfico"
  5. }

#EVENT_CALLBACK_PAYLOAD_FORMAT


Events

onInstall
onInstall will be triggered when the customer installs an extension. The developer can subscribe to the event with the URL and perform his logic. 
Example Usage
Creating a Third party resource once the customer installs the extension.

onZohoAuthorise
Once the end user installs the extension, he needs to authorize the desk & TPA (say jira). onZohoAuthorise will be triggered when the customer authorize the DESK. The developer can subscribe to the event with the URL and perform his logic. 
Example Usecase
Creating a Zoho Desk webhook once the desk authorization is completed.

onTPAAuthorise
The event will be triggered once the user authorize the Third party app. 
Example Usecase
Subscribing or creating a webhook in third party service.

onTPARevoke
The event will be triggered once the user revoke the Third party app authorization.
Example Usecase
Revoking or deleting the added webhooks in the third party services.

onUpdate
The event will be triggered when the user upgrade the extension.
Example Usecase
Adding or Updating config params.

onConfigParamAdd
The event will be triggered when the customer adds configuration params in the extension. 
Example Usecase
In jira extension, when customer adds configuration params such as domain, jiraAuthKey , developer shall create a jira webhook against the jira account.

onConfigParamDelete
The event will be triggered when the customer adds configuration params in the extension. 
Example Usecase
In jira extension, when customer deletes configuration params such as domain, jiraAuthKey , developer shall delete jira webhook in the jira account.

onUninstall
The event is triggered when customer uninstall the extension.
Example Usecase
Operations to be performed during un-installation such as deleting webhooks.


    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

                                                                                                      • Pricing using a subscription management platform

                                                                                                        This guide will help you with the following: Create Pricing Plans in the Developer Console Setup in Zoho Subscriptions Add Plans in Zoho Subscriptions Create Add-ons Create Webhooks Add a Custom Field Create a Broker Application Subscription APIs The ...
                                                                                                      • Event APIs

                                                                                                        The following APIs help you incorporate custom functionalities in your extension when certain events occur in your help desk portal. Ticket Events You can configure extensions to receive information when an event, such as adding a comment to a ticket ...
                                                                                                      • HIPAA Compliance with Zoho Developer - Vertical Solutions Platform

                                                                                                        ZohoDeveloper - Vertical Solutions Platform is currently available in developer.zoho.com and developer.zoho.eu and is expected to release in developer.zoho.in and in developer.zoho.com.au.  The Health Insurance Portability and Accountability Act ...
                                                                                                      • CRM Platform Modules and Fields

                                                                                                        You can use API to integrate with the following standard modules: API support is not available for the Forecasts module. You must use the API format given the above table. If you use "leads" for "Leads" module or "purchaseorders" for "Purchase ...
                                                                                                      • Connections

                                                                                                        Connections enable you to connect to any of your native Vertical solution or third-party or other Zoho services using OAuth 2.0 authorization. It abstracts the entire OAuth2.0 authorization flow and keeps your code simple, clean, and crisp. Once the ...
                                                                                                        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