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