Call Method

erpnext.call_method
ActionCRM & salesconnection required

Calls the ERPNext API with the connection's credentials.

Call any whitelisted server method by its dotted path — the escape hatch for endpoints this family does not wrap.

Connection

Required
Yes — the node will not save without one
Auth type
API key
Providers
ERPNext
Secret shape
{"api_key": "…", "api_secret": "…"}
Config it needs
base_url, doctype
Resolved by
config.connection_id, else node.connection_id

Configuration

4 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
method
The method's dotted path, as ERPNext registers it.
stringYes——erpnext.stock.get_item_details.get_item_details
http_method
Which verb to call it with. Frappe restricts write methods to POST and PUT.
stringNoPOSTone of "GET", "POST", "PUT", "DELETE"—
params
Arguments to send in the query string. Lists and objects are JSON-encoded, which is how Frappe reads them.
objectNo———
body
Arguments to send as the JSON request body. Ignored for GET.
objectNo———

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "http_method": "POST",
  "method": "erpnext.stock.get_item_details.get_item_details"
}

Output

One shape.

result

FieldTypeExample
method
The dotted path that was called.
string—
http_method
The verb it was called with.
string—
message
Whatever the method returned, unwrapped from Frappe's message envelope.
any—
{
  "http_method": "",
  "message": null,
  "method": ""
}

See Call Method run in a workflow.

In a technical demo we add the ERPNext connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.