James PRO icon

James PRO

Read and write data in James PRO

File → Get Many

AI-generated

Summary

Retrieves multiple files from James PRO, supporting filtering, pagination, and field selection.

Inputs

  • fields — Comma-separated list of fields to return (e.g., id,name).
  • include — Related information to include when supported by the endpoint.
  • returnAll — Whether to fetch all results by paging through the API response (enables pagination).
  • limit — Maximum number of records to return per page. Supports offset syntax (e.g., 200,100).
  • page — Page number to request when Return All is disabled. Default is 1.
  • filterJson — JSON object converted to filter[column]=value query parameters (e.g., {"name":"Test"}).
  • returnBodyOnly — Whether to return the James PRO response body instead of the full response envelope. Default is true.

Output shape

A list of items, each representing a file record.

When Return All is enabled, the node pages through results using the API's 'next' cursor. The actual shape of the file object depends on the 'fields' and 'include' parameters.

Examples

Example 1: Fetch the first 30 files with their IDs and names.

Resource: File, Operation: Get Many, Limit: 30, Fields: id,name

Example 2: Retrieve all files, applying a filter to match a specific name.

Resource: File, Operation: Get Many, Return All: true, Filter JSON: {"name":"Invoice 2024"}

Example 3: Retrieve a specific page of results with additional related information.

Resource: File, Operation: Get Many, Page: 2, Include: details

Links

Discussion