Open ibbibrahim opened 2 years ago
It is 2 years later and this is still an error I run into and I find others all over the internet are running into. Any movement on this to report? I have widgets that are 95% complete but I can't release because of this error.
After digging into the ZohoEmbededAppSDK.min file my issue appears to be that the uniqueID
is undefined
. Trying to read through min file is making it difficult to figure out why this is not happening. Anyone have an idea why/when uniqueID
should be getting set?
facing same issue
After digging into the ZohoEmbededAppSDK.min file my issue appears to be that the
uniqueID
isundefined
. Trying to read through min file is making it difficult to figure out why this is not happening. Anyone have an idea why/whenuniqueID
should be getting set?
Hi @N00nDay after a week of digging, i found the issue on my side is because the URL does not contain the "serviceOrigin=https://crm.zoho.com&frameorigin=https://crm.zoho.com"
After digging into the ZohoEmbededAppSDK.min file my issue appears to be that the
uniqueID
isundefined
. Trying to read through min file is making it difficult to figure out why this is not happening. Anyone have an idea why/whenuniqueID
should be getting set?Hi @N00nDay after a week of digging, i found the issue on my side is because the URL does not contain the "serviceOrigin=https://crm.zoho.com&frameorigin=https://crm.zoho.com"
This was over a month ago. Can you refresh my memory on what URL you are referring to?
I figured out how to get this to work in production but running locally I am still experiencing this issue so hopefully this can resolve it.
When the embedded app loads inside zoho extension iFrame, the page will show the document source url as "{yourAppUrl}?serviceOrigin=https://crm.zoho.com&frameorigin=https://crm.zoho.com" .. if any redirection happens on your application, make sure the query params for serviceOrigin and frameorigin are added back .
i was breaking my head for over a week now, until i saw your comment about uniqueID , where i found the check for frameorigin and serviceOrigin.
Hope this helps you
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.
var reqObj = { url: 'https://desk.zoho.com/api/v1/contacts', headers: { 'Content-Type': 'application/json', orgId: '787386987' }, type: 'GET', data: { }, postBody: {}, connectionLinkName: "zohodeskconn", responeType: "arraybuffer"
} ZOHODESK.request(reqObj).then(res => { console.log('API RESPONSE: ', res); }, (error) => { // Implement your logic here console.log('API RESPONSE: Failed ' ); })
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