How to save a list in organization variable in Zoho CRM?

How to save a list in organization variable in Zoho CRM?

I have tried to read this documentation about setting organization variable. I set this code in deluge function

  1. // create a list
  2. listVar=list();
  3. listVar.add("Harry");
  4. listVar.add("Charles");

  5. // save the list to org variable
  6. valueMap = Map();
  7. valueMap.put("apiname","myList");
  8. valueMap.put("value", listVar);
  9. zoho.crm.invokeConnector("crm.set",valueMap);

  10. // get the list from org variable
  11. value = zoho.crm.getOrgVariable("myList");
  12. info "myList is " + value;


but it seems that I can't save the list, because I got the null value in return like this



what went wrong?

I am not sure about this one line

  1. valueMap.put("apiname","myList");
especially the 'apiname'. I just copy paste the code from documentation. but unfortunately the docs is not clear enough. it is said

" You can find the information about the API name of the custom variable in the following places: "

In a Vertical solution: Click Company Settings in the left pane and click Org Settings.
In an Extension: Click Custom Properties in the left pane. "

I don't understand. I can ony find 'Company Details'
in Zoho CRM settings