Hi there,
I'm trying to get all the records from the Leads module in a standalone function like this :
- leads = zoho.crm.getRecords("Leads");
- for each lead in leads
- {
- info lead;
- //id = lead.get("id");
- //oldBCICase = lead.get("BCI_Case");
- //details = {"BCI_Case_n":oldBCICase};
- //zoho.crm.updateRecord("Leads",id,details);
- }
- return "";
The thing is that the console log with info doesn't pop up when i click on save and execute script.
When i did the same thing with the Accounts module it worked perfectly.
Any suggestion ?