How to Get All the Calendar Events in Alfresco

How to Get All the Calendar Events in Alfresco     

  1. var results = search.selectNodes("workspace://SpacesStore""descendant::*[hasAspect('ia:docFoldered')]");  
  2. logger.log("Total rows " + results.length);  
  3. for (var i = 0; i < results.length; i++) {  
  4.  var node = results[i];  
  5.  var nodename = node.name;  
  6.  logger.log(nodename);  
  7. }   
Hope this helps someone.
Next Recommended Reading Configure Alfresco User Quota and Usage