Pagination in CRM related records in Deluge

Pagination in CRM related records in Deluge

In Deluge, what would be the best way to iterate over a set / list with more than 200 records?

there is only a simple example on the docs page:
  1. <response> = zoho.crm.getRelatedRecords(<relation_name>, <parent_module_name>, <record_id>, 
  2. <page>, <per_page>, <query_value>, <connection>);
    ...
  3. <list_variable> = list(); 
  4. <variable> = <response_variable>.toJsonList(); 
  5. for each <loop_variable> in <variable> 
  6.   { 
  7.     <variable1> = <loop_variable>.getJson("id"); 
  8.     <list_variable>.add(variable1); 
  9.     info <list_variable>; 
  10.   }

I have some ideas around `page` and `per_page` arguments but wonder what's the best approach in expert community? thanks!