Python · pagination · TOON output
fetch_all_system_notes.py
Pulls every systemNote record from your account
(1M+ rows on a typical NetSuite tenant), walks past
Chartstone’s 500K-per-call cap with id-range
pagination, and writes the combined result as a single TOON
document for cheap LLM consumption.
Demonstrates: id-range cursor, maxRows for
sampling, capReached handling, manual TOON
encoding, defensive HTTP timeouts. Pure stdlib — no
third-party packages.