ERPNext HRMS icon

ERPNext HRMS

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

Frappe Method → Get Many

AI-generated

Summary

List multiple documents of a specified ERPNext/Frappe HRMS resource, applying optional filters, selecting fields, sorting, and limiting the results.

Inputs

  • API Version — Select the Frappe REST API version to use (v1 or v2) for the request.
  • Resource (required) — Select the HRMS resource type to query documents from, such as Employee, Attendance, Expense Claim, etc.
  • Fields — Specify which fields to return as a comma-separated list or JSON array string, e.g., "name,employee_name,status".
  • Filters JSON — Provide Frappe filters as JSON array or object to filter documents, e.g., [["status","=","Active"]] or {"employee":"HR-EMP-0001"}.
  • Return All — Choose whether to return all matching documents (up to 1000 per API limits) or limit the number of documents returned.
  • Limit — Set the maximum number of documents to return when 'Return All' is false (1-1000).
  • Order By — Define the sorting order of the returned documents, e.g. "modified desc".

Output shape

a JSON array of documents matching the specified filters and fields, with pagination handled if 'Return All' is enabled.

If 'Return All' is true, the node makes multiple paged requests to accumulate all documents up to API limits. Fields and filters must be JSON-parseable if given as strings. Errors for unsupported resources or invalid parameters are thrown.

Links

Discussion