Error handing while use client script in zoho crm for Cannot read properties of undefined
Hi Folks, I´m using client script to get values from Accounts module to Quotes module using this piece of code
var accountrecord = ZDK.Apps.CRM.Accounts.fetchById(account.id);
if (accountrecord._Rating == null) {
do someting;
}
In the console I'm getting this error message when the account record is in a middle of an appoval process and the script stop to work.
Cannot read properties of undefined (reading '_Rating')
Anyelse know how can I handling this type of errors in order to baypass the line when it ocurr? In other hand is common that zoho crm block this records when an approbal process is working ?
Access your files securely from anywhere
Zoho Developer Community
Deliver unforgettable customer experiences
Deliver unforgettable customer experiences
New to Zoho Marketing Plus?
Everything you need to run your marketing
New to Zoho Marketing Plus?
Everything you need to run your marketing
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho TeamInbox Resources
Zoho DataPrep Resources
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Qntrl Resources
Zoho Creator Resources
Zoho Campaigns Resources
Zoho CRM Resources
Zoho Show Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.