How to get Zoho CRM parameters in a widget?

How to get Zoho CRM parameters in a widget?

I have a related list widget that is currently in the deals module of my CRM. Within that widget, I'm using HTML to try and get certain Zoho parameters but whenever I access any record, in the console I get a message that says "Uncaught ReferenceError: ZOHO is not defined"

  1.     <script>
  2.       ZOHO.embeddedApp.on("PageLoad",function(data){
  3.         console.log("Page Loaded with data");
  4.         moduleName = "Success";
  5.         console.log(data);
  6.     })
  7.     </script>
Does anyone know why ZOHO is not defined? Is there anything else I have to do in order to use this?