Zoho crm v2 api call getRecords

Zoho crm v2 api call getRecords

Hi there,

I'm trying to get all the records from the Leads module in a standalone function like this :
  1. leads = zoho.crm.getRecords("Leads");
  2. for each  lead in leads
  3. {
  4. info lead;
  5. //id = lead.get("id");
  6. //oldBCICase = lead.get("BCI_Case");
  7. //details = {"BCI_Case_n":oldBCICase};
  8. //zoho.crm.updateRecord("Leads",id,details);
  9. }
  10. 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 ?