ERPNext HRMS icon

ERPNext HRMS

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

Leave Application → Get Many

AI-generated

Summary

Retrieve multiple Leave Application documents from ERPNext HRMS using specified query options.

Inputs

  • API Version — Select Frappe REST API version to use (v1 or v2). Defaults to v1.
  • Fields — Comma-separated list or JSON-style list of fields to retrieve from each document. Defaults to ["name"].
  • Filters JSON — JSON object or array to filter the documents by properties, e.g. [["status","=","Active"]] or {"employee":"HR-EMP-0001"}.
  • Return All — Boolean to return all documents matching filters and fields without limit. Defaults to false.
  • Limit — Maximum number of documents to return if Return All is false. Value between 1 and 1000. Defaults to 50.
  • Order By — String to specify sorting order of results, e.g. "modified desc". Defaults to "modified desc".

Output shape

a list of Leave Application documents as JSON objects

If Return All is false, the output list contains up to Limit documents. If true, fetches all available documents in paginated requests with chunk sizes of Limit. Returned fields correspond to user-specified Fields parameter.

Links

Discussion