ERPNext HRMS icon

ERPNext HRMS

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

Attendance → Get Many

AI-generated

Summary

Retrieve multiple Attendance documents from the ERPNext system applying optional filters, field selection, ordering, and pagination.

Inputs

  • API Version (required) — Choose the Frappe REST API version to use for retrieving Attendance documents (v1 or v2).
  • Fields (required) — Specify the comma-separated fields to return or provide a JSON-style list. Defaults to ["name"] if not specified.
  • Filters JSON (required) — Apply Frappe filters as JSON to restrict which Attendance records are retrieved. Accepts either a JSON array of filter conditions or an object with key-value pairs.
  • Return All (required) — Boolean to determine whether to retrieve all matching records (up to 1000) or limit the results.
  • Limit — Maximum number of Attendance documents to return when 'Return All' is false. Must be between 1 and 1000; defaults to 50.
  • Order By (required) — Define the ordering of the returned Attendance records, using Frappe order syntax (e.g., 'modified desc'). Defaults to 'modified desc'.

Output shape

a list of Attendance document objects containing the specified fields

If 'Return All' is true, the node paginates internally to collect up to 1000 matching records. The output is always a JSON array of Attendance records. Errors for individual input items appear in their corresponding output items if 'Continue On Fail' is enabled.

Examples

Example 1: List the first 50 Attendance documents with employee names and status fields where status equals 'Present' ordered by modified date descending.

Set API Version to 'v1', Fields to 'name,employee_name,status', Filters JSON to [["status","=","Present"]], Return All to false, Limit to 50, and Order By to 'modified desc'.

Links

Discussion