Hey @zeel_sinojia , thank you! It has almost worked!
Good news is, this does seem to read all of the accounts, bad news is - it gets stuck aggregating and doesn’t seem to terminate. Any ideas on where we’re going wrong?


Have also tried these attempts, sadly no success. All read the accounts, but fail to terminate the aggregation:
TERMINATE_IF ($response.Results.size() <= 0)
$pageIndex$ = $response.CurrentPage$ + 1
$endpoint.fullUrl$ = $application.baseUrl$ + "/Api/v1/People/Search?External=false&ViewModelType=1&IsDeleted=false&SortField=lastname%2C%20firstname&SortOrder=asc&PageSize=1000&PageIndex=" + $pageIndex$
&
TERMINATE_IF ($response.Results.size() == NULL)
$pageIndex$ = $response.CurrentPage$ + 1
$endpoint.fullUrl$ = $application.baseUrl$ + "/Api/v1/People/Search?External=false&ViewModelType=1&IsDeleted=false&SortField=lastname%2C%20firstname&SortOrder=asc&PageSize=1000&PageIndex=" + $pageIndex$
&
TERMINATE_IF (NO_RECORDS == TRUE)
$pageIndex$ = $response.CurrentPage$ + 1
$endpoint.fullUrl$ = $application.baseUrl$ + "/Api/v1/People/Search?External=false&ViewModelType=1&IsDeleted=false&SortField=lastname%2C%20firstname&SortOrder=asc&PageSize=1000&PageIndex=" + $pageIndex$