erpnext_doc_map
Creates a mapped document from a source to target doctype in ERPNext, with dry-run and save-draft options. Freezes the save when requested.
Instructions
Generate a common mapped document, then freeze any requested save. Use call_method for other mappings.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source_doctype": "<source_doctype>",
"source_name": "<source_name>",
"target_doctype": "<target_doctype>"
},
"name": "erpnext_doc_map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| extra_args | No | ||
| save_draft | No | ||
| source_name | Yes | ||
| source_doctype | Yes | ||
| target_doctype | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||