Building a Ring Central Telephony Widget

Building a Ring Central Telephony Widget

A RingCentral widget embedded inside Zoho CRM allows users to perform various activities. A CRM user can:
  1. Load the telephony dial pad as an iframe in the Zoho CRM interface by using the telephone icon at the bottom right corner of the screen.
  2. Make a call from Zoho CRM, by using the telephone icon near the Phone or Mobile field that points to a particular record.
  3. Record the call and view the recording in a Google Drive related list.
The guide will help you with the following:
  1. Set up a Connected App
  2. Embed a Telephony widget
  3. Integrate Google Drive
  4. Create Customized Components
  5. Test an Application

Import the Zoho JS SDK

To import the Zoho JS SDK, please visit the link https://github.com/ZohoDevelopers/RingCentralWidget, download and extract it to your path.

Initialising the framework and Registering for Call Center Events
To use the embedded app framework, you will have to register for appropriate events (Dial, Dialer Active) where contextual data has to be passed from Zoho CRM. Registering for the appropriate event means defining the function that will be performed when a certain event is triggered by your embedded application. The events are:
  1. Dialer Active - Triggered every time when the softphone window is toggled
  2. Dial - Triggered every time when Call icon inside the zohoCRM is clicked.
These events can be triggered by including the following code snippet into your source code.
  1. ZOHO.embeddedApp.on("DialerActive",function(){
  2. console.log("dialer Active");
  3. })
  4. ZOHO.embeddedApp.on("Dial",function(data){
  5. console.log("Number Dialed with data");
  6.         console.log(data);})
The code to initialize SDK is,
  1. ZOHO.embeddedApp.init()
The code to invoke an API is
  1. ZOHO.CRM.INTERACTION.getPageInfo().then(function(data){
  2. console.log(data);
  3. });

Authentication Support

To build a RingCentral widget with Zoho CRM, organization specific authentication is required. Two types of authentication mechanisms are used here.
  1. Custom variables authentication - To upload the recorded call information either in Google Drive or as a CRM attachment, two custom variables are created.
  2. Authentication using OAuth2.0 - To Create a Google Drive Connector with the required APIs.

Set up a Connected App

  1. Create an extension using the Zoho Developer Console and  name the extension as "RingCentral".
  2. Click Connected Apps located in the left pane of the Extension Details page.
  3. Enter the following information in the Connected Apps page:,
    1. Connected App Name : RingCentralWithRL
    2. Description : A short description about the connected app.
    3. Choose Hosting : select the Server side application.
    4. Specify Base URL : https://s3-us-west-2.amazonaws.com/production-widget/RingCentralWithRL/v1/html/
  4. Click Save. A Connected App is created.


Embed a Telephony widget

  1. Click Telephony in the left pane of the Extension details page.
  2. Call Center Name : Ring Central
  3. Start URL : https://s3-us-west-2.amazonaws.com/production-widget/RingCentralWithRL/v1/html/Main.html
  4. Click Save. The Telephony Widget is created.


Integrate Google Drive

  1. Navigate to the Extension Details located in the left pane and create the organization specific custom variables.
  2. Click CRM Connectors to set up a connector in the Zoho Developer Console.
  3. Create a Google Drive Connector and associate it to your extension with the required APIs.

Create Customized Components

  1. Create a custom field named "GdriveFolderID" in the Leads module to store an auto-generated folder ID whenever a lead record is created. 
  2. Create a Related List Widget "Recordings" in the Leads Module to store the recorded call information.

Test an Application

  1. Click Test Your Extension located in the top right corner of the Zoho Developer Console.
  2. Create a new lead record in the Sand Box with all the mandatory details and contact phone numbers in the appropriate fields.
  3. Click Save. You can view the GdriveFolderID value that is in the process of getting auto generated.
  4. Initiate a call by clicking the Telephone Icon.
  5. Log in to your Ring central account by providing an authorized phone number and password.
  6. A phone dialer opens and a call is initiated.


  7. Add short notes after the call to know the status of the call.

      8. If the call recorder is enabled during the call, then a recordling list is created as a Related list




    Access your files securely from anywhere

      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

                                                                                                              • Widget Support

                                                                                                                This guide helps you with the following: Embed a Telephony Widget  Create a Web Tab‌  Create a Related List  Create a Custom Button  Create a Settings Widget  Create a Business Card Widget  Sometimes, you may want to include features in your Zoho CRM ...
                                                                                                              • Widget Support

                                                                                                                This guide will help you with the following: Embed a Telephony Widget  Create a Web Tab‌  Create a Related List  Create a Custom Button  Create a Getting Started Widget  Create a Business Card Widget  Sometimes, you may want to include features in ...
                                                                                                              • Building a Zillow - Related List Widget

                                                                                                                A Zillow widget embedded inside Zoho CRM allows users to obtain various pieces of information about properties in the US. With a Zillow widget, a CRM user can: Get complete property details by entering the property address as input information. View ...
                                                                                                              • Building a Google Drive - Related List Widget

                                                                                                                Embedding a Google Drive widget inside Zoho CRM as a Related list allows a user to accomplish three tasks, Fetch files from Google Drive and show them as a related list in the record's detail page in CRM. Upload any document from Zoho CRM to a Google ...
                                                                                                              • Building a Client Side Application

                                                                                                                This guide will help you with the following: Create a Connected App Internal Hosting  External Hosting  Create the "Helloworld" Widget  Setup the files structure for "HelloWorld" Widget  Register the Event Listeners  This guide will furnish you with ...
                                                                                                                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