Fetch Many Records (Batch Read)
hudu_fetch_manyFetch up to 20 records across mixed Hudu resources in one call, replacing multiple sequential single-record reads. Validates all items first and returns per-item results.
Instructions
Fetch up to 20 single records across MIXED resources in ONE call — the batch form of the single-record reads (it collapses N sequential hudu_read calls into one). items is a CLOSED array of 1-20 entries; each entry is EXACTLY { resource, id, fields? } — no other keys. resource is one of the 22 bare-id resources; assets (company-scoped get) and the download resources (photos, public_photos, uploads, exports, s3_exports) are NOT fetchMany-shaped (no derived field set) and are refused pre-request with a pointer at the resource's own read operations. id is a NUMERIC non-negative vendor id — a string identifier is resolveAny territory, refused pre-request. fields (optional, 1 or more) is a CLIENT-SIDE projection of exact vendor field names, checked pre-request against the resource's derived field set. Duplicate { resource, id } items are INDEPENDENT requests (each issues its own GET and row; no dedup). Items are fetched sequentially through each resource's own get (no in-SDK fan-out); partial failure is PER-ITEM — one failed item never aborts the rest. ALL items are validated before any request (a violation is a CONFIG_ERROR naming every problem, ZERO wire). Read-only: it can issue no write; no dry run applies to reads.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | 1-20 items, each exactly { resource, id, fields? }. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Items that fetched a record. | |
| failed | Yes | Items that failed (a miss or a vendor fault) — the typed error is on the item row. | |
| results | Yes | One outcome per input item, in input order: { resource, id, found, value, error? }. |