How to get ID of the CRM record created in Client Script
Hi!
How to get ID of the CRM record created in Client Script?
New record created successfully, but I can't get data from the var resp:
var module = new ZDK.Apps.CRM.Contacts();
module.Name = "Test Name";
...
var resp = module.create();
log(resp);
//in log: [Object Array]
log(resp['ID']);
//in log: undefined
log(resp.id);
//in log: undefined
resp.forEach((acc, i) => {
log(acc);
log(i);
//in log:
//[Object CRMResponses]
//0
});
I tried to get data from CRMResponses object, but looks like it's empty
Thank you so much in advance!
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.