high impactPROJECTSSJS / WSProxy

A WSProxy Retrieve Is Not “All Rows” Just Because It Returned Results

Metadata extraction succeeds but silently misses objects after the first response page.

Context Pack →Open Workspace →
Trust & provenancePROJECT
Evidence tierPROJECTOfficial sources2Other sources0Last verifiedNot recorded

Evidence tier describes my hands-on relationship with the content. Official sources describe platform contracts/documentation. Production observations should not automatically be treated as official limits.

Why it bites

WSProxy retrieve responses expose HasMoreRows and RequestID. Full retrieval requires paging with getNextBatch().

What to check
  1. Is HasMoreRows true?
  2. Does your loop continue using the previous RequestID?
  3. Do you record counts to detect unexpected truncation?
Make it cheaper next time
  1. Build pagination as a reusable helper.
  2. Log retrieved counts and validate against a known environment sample.
wsproxypaginationmetadatassjs
Sources / verification