A RingCentral widget embedded inside Zoho CRM allows users to perform various activities. A CRM user can:
- 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.
- Make a call from Zoho CRM, by using the telephone icon near the Phone or Mobile field that points to a particular record.
- Record the call and view the recording in a Google Drive related list.
The guide will help you with the following:
- Set up a Connected App
- Embed a Telephony widget
- Integrate Google Drive
- Create Customized Components
- Test an Application
Import the Zoho JS SDK
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:
- Dialer Active - Triggered every time when the softphone window is toggled
- 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.
- ZOHO.embeddedApp.on("DialerActive",function(){
- console.log("dialer Active");
- })
- ZOHO.embeddedApp.on("Dial",function(data){
- console.log("Number Dialed with data");
- console.log(data);})
The code to initialize SDK is,
The code to invoke an API is
- ZOHO.CRM.INTERACTION.getPageInfo().then(function(data){
- console.log(data);
- });
Authentication Support
To build a RingCentral widget with Zoho CRM, organization specific authentication is required. Two types of authentication mechanisms are used here.
- Custom variables authentication - To upload the recorded call information either in Google Drive or as a CRM attachment, two custom variables are created.
- Authentication using OAuth2.0 - To Create a Google Drive Connector with the required APIs.
Set up a Connected App
- Create an extension using the Zoho Developer Console and name the extension as "RingCentral".
- Click Connected Apps located in the left pane of the Extension Details page.
- Enter the following information in the Connected Apps page:,
- Connected App Name : RingCentralWithRL
- Description : A short description about the connected app.
- Choose Hosting : select the Server side application.
- Specify Base URL : https://s3-us-west-2.amazonaws.com/production-widget/RingCentralWithRL/v1/html/
- Click Save. A Connected App is created.
- Click Telephony in the left pane of the Extension details page.
- Call Center Name : Ring Central
- Start URL : https://s3-us-west-2.amazonaws.com/production-widget/RingCentralWithRL/v1/html/Main.html
- Click Save. The Telephony Widget is created.
Integrate Google Drive
- Navigate to the Extension Details located in the left pane and create the organization specific custom variables.
- Click CRM Connectors to set up a connector in the Zoho Developer Console.
- Create a Google Drive Connector and associate it to your extension with the required APIs.
Create Customized Components
- Create a custom field named "GdriveFolderID" in the Leads module to store an auto-generated folder ID whenever a lead record is created.
- Create a Related List Widget "Recordings" in the Leads Module to store the recorded call information.
Test an Application
- Click Test Your Extension located in the top right corner of the Zoho Developer Console.
- Create a new lead record in the Sand Box with all the mandatory details and contact phone numbers in the appropriate fields.
- Click Save. You can view the GdriveFolderID value that is in the process of getting auto generated.
- Initiate a call by clicking the Telephone Icon.
- Log in to your Ring central account by providing an authorized phone number and password.
- A phone dialer opens and a call is initiated.
- 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