ERPNext HRMS icon

ERPNext HRMS

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

Frappe Method → Create

AI-generated

Summary

Invoke a whitelisted Frappe method by specifying its full dotted path and passing a JSON object of arguments in the request body, using the chosen Frappe API version (v1 or v2).

Inputs

  • API Version — Select the Frappe REST API version to use for the method request (v1 or v2). Defaults to v1.
  • Method Name (required) — Specify the full dotted path of the whitelisted Frappe method to call, e.g., 'frappe.client.get_value'.
  • Arguments JSON — Provide arguments as a JSON object that will be sent as the request body to the /api/method/{method} endpoint.

Output shape

a JSON object containing the response message or data returned by the invoked Frappe method

Returns the 'message' property from the API response if present, otherwise returns the full response. Errors from the API call will raise execution errors unless 'Continue On Fail' is enabled.

Links

Discussion