ERPNext HRMS icon

ERPNext HRMS

Work with ERPNext/Frappe HRMS v15-v16 documents and methods

Frappe Method → Get

AI-generated

Summary

Call a whitelisted Frappe method via the ERPNext REST API by specifying its full dotted path and passing JSON-formatted arguments.

Inputs

  • API Version — Choose between API version v1 (/api/method) or v2 (/api/v2/method) to call the Frappe method.
  • Method Name (required) — Full dotted path of the whitelisted Frappe method to call (e.g., 'frappe.client.get_value').
  • Arguments JSON — JSON object containing arguments passed as the request body to the specified method.

Output shape

a single JSON object representing the method call response, typically containing a 'message' field or the raw response data

The output is the response from the Frappe method call returned as JSON. If the method returns a message field, it is returned; otherwise, the entire response is returned. Errors are thrown as failures unless 'Continue On Fail' is enabled.

Links

Discussion