ERPNext HRMS icon

ERPNext HRMS

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

Leave Application → Get

AI-generated

Summary

Retrieve a specific Leave Application document from ERPNext by its unique document name using the selected API version.

Inputs

  • API Version — Choose between v1 (/api/resource) and v2 (/api/v2/document) of the Frappe REST API to use for the request.
  • Document Name (required) — The unique name or ID of the Leave Application document to fetch.

Output shape

a single Leave Application document object

Returns the full JSON data of the specified Leave Application document. Uses the ERPNext API version selected in the input. Throws an error if the document is not found or if the API request fails.

Examples

Example 1: Fetch a Leave Application document by its ID

Set Resource to 'Leave Application', Operation to 'Get', specify the Document Name (e.g., 'LA-0001'), and optionally choose API Version (default is 'v1').

Links

Discussion