Copyright (c) 2022, ZOHO CORPORATION PRIVATE LIMITED
All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
DialerActive - Triggered everytime softphone window is toggled
Dial - Triggered when Call icon inside ZohoCRM is clicked
PageLoad - Triggered When ever an entity Page (Detail page) is loaded
HistoryPopState - Triggered when browser back is invoked in WebTab Widget with custom widget params
Example
/*
* Subscribe to the EmbeddedApp onPageLoad event before initializing
*/
ZOHO.embeddedApp.on("PageLoad",function(data)
{
console.log(data);
//Custom Bussiness logic goes here
})
ZOHO.embeddedApp.on("HistoryPopState",function(data){
console.log(data);
// Custom business logic code goes here.
})
/*
* initializing the widget.
*/
ZOHO.embeddedApp.init();
It would appear that the Dial listener is no longer working with our integration as of 0.9.3. It would appear that the events are being raised, but the listeners are missing after we have registered them.
Hello,
I want to request information from my third-party app and view it within my app. So I load my app in iframe in widget.html and load the js sdk of zoho in my app.I get the instance of zohodesk within my app but unable to get the response of the request Api and get the parentWindow reference error.
ZohoDeskClientSDK.min.js:1 Uncaught Error: Parentwindow reference not found.
at v (ZohoDeskClientSDK.min.js:1:3908)
at Object.f [as SendEvent] (ZohoDeskClientSDK.min.js:1:3666)
at i.fetch (ZohoDeskClientSDK.min.js:1:5401)
at Object.request (ZohoDeskClientSDK.min.js:1:6982)
at :12:10
I dont know if this function is being used anywhere but this code can freeze up someone`s browser.
Please use something along the lines of:
await new Promise((res) => setTimeout(res,timeout_here))
I'm developing a telephony widget and this method doesn't work as the doc says:
ZOHO.embeddedApp.on("PageLoad",function(data)
{
console.log(data);
//Custom Bussiness logic goes here
})
ZOHO.embeddedApp.init();
I want to receive this event every time I navigate to an entity, but I only get this event when the telephony widget is loaded the first time. If I navigate to other entities once the widget's been initialized I don't receive the event.
I do not see any way to have the SDK in the widget make use of the new v2.1 API. When inspecting the browser console while running a widget, and using the META APIs, I can see that the v2 APIs are being called.
Is there a way to make requests through this SDK using the newer API versions (v2.1, or even v3)?
Hey,
I'm building an extension for zoho crm. I have passed all the needed data to ZOHO.CRM.HTTP.post(reqBody) method [even logged the request] but when it hits the api the
methods body is empty.
I have referred the below link for the method format https://s3-us-west-2.amazonaws.com/zohocrm-widget/help/v0.9.1/ZOHO.CRM.HTTP.html#.post
Please help me with this issue, Thank you
I have made an extension using Zoho Developer but cannot get the Telephony icon to appear after I install the app. It works fine in the sandbox but the widget doesn't get retrieved for our production Zoho CRM account.
when i try to call this function getting error can help?
ZSDK.js:314 Uncaught Error: Parentwindow reference not found.
at PostMessage (ZSDK.js:314)
at Object.TriggerEvent (ZSDK.js:222)
at Object.TriggerEvent [as Trigger] (ZSDK.js:464)
at newRequestPromise (ZohoCrmHelper.js:39)
at manipulateUI (ZohoCrmHelper.js:289)
at Object.open (ZohoCrmHelper.js:5154)
at primo.php:18175
I am not sure if anyone is actively looking at these right now. A question for those of us that are working with things like React, Angular, Node etc... Do you have any intentions of giving us things like an NPM package with this or is it outside the scope of your current development line?
My use case is using React to create widgets, but I'm sure there are other developers that would like to work on your stack that could use some helpers along the way.
In Zoho-Js-Sdk, Function for getting all record of a module i.e getAllRecords() is only returning the data object in resolved promises. In some cases info object is also required which is containing per_page, page, count, etc.
Hello, I have an issue as title, I use method GetAllUsers but data return do not containt my custom fields. But when I use method GetUser it work with my custom fields. Can you please help me
I build out Zoho CRM extensions using modern JavaScript frameworks (Angular, React, Vue), and prefer to do all my work in TS. Is there any hope that Typings for TS are on the roadmap?
Which return modules[0] with search_layout_fields (current displaying business card) and business_card_fields.
This method return current module metadata and more fields than what I'm using with SDK to get fields for module.
I have one Zoho CRM extension which makes use of this library. It works perfectly in many browsers, but not in Safari 10.1 and 11.2.
Apparently, the event PageLoad never triggers on Safari, for there are no errors reported. I also tried to debug this, but I never got to the callback function passed as listener for this event.