create_document
Create new documents in Frappe Framework by specifying DocType and field values, including required fields, links, and table data.
Instructions
Create a new document in Frappe.
Args:
doctype: DocType name
values: Document field values. Required fields must be included.
For Link fields, provide the exact document name.
For Table fields, provide an array of row objects.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
doctype | Yes | ||
values | Yes |
Input Schema (JSON Schema)
{
"properties": {
"doctype": {
"title": "Doctype",
"type": "string"
},
"values": {
"additionalProperties": true,
"title": "Values",
"type": "object"
}
},
"required": [
"doctype",
"values"
],
"title": "create_documentArguments",
"type": "object"
}