list_documents
Retrieve ERPNext documents by type with filtering, sorting, and pagination options to manage data efficiently.
Instructions
List documents of a given DocType with optional filtering, sorting and pagination.
Args: doctype: ERPNext DocType name (e.g. "Sales Order", "Customer") fields: List of field names to return. Defaults to ["name"]. filters: JSON string of filters, e.g. '{"status": "Open"}' or '[["status","=","Open"]]' or_filters: JSON string of OR filters order_by: Sort expression, e.g. "creation desc" limit_start: Pagination offset limit_page_length: Number of records to return (max 100)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doctype | Yes | ||
| fields | No | ||
| filters | No | ||
| or_filters | No | ||
| order_by | No | ||
| limit_start | No | ||
| limit_page_length | No |