frappe_get_doc
Retrieve a single Frappe document by its doctype and name, returning all fields and values. Ideal for fetching specific records like Sales Invoices or Customers.
Instructions
Retrieve a single document (doctype record) by its doctype and document name. Returns all fields and values of the document. Common use cases: fetch a Sales Invoice by its number, get Customer details, load an Item record, or retrieve any saved document by its unique name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The unique document name or ID to retrieve (e.g. 'SINV-00001', 'CUST-00001', 'ITEM-00001', 'Administrator'). This is typically the `name` field shown in the Frappe list view or document form. | |
| doctype | Yes | The target DocType name (e.g. 'Sales Invoice', 'Customer', 'Item', 'Sales Order', 'Purchase Order', 'User'). Case-sensitive and must match the DocType exactly as defined in Frappe. |