Actions77
- Employee Actions
- Attendance Actions
- Employee Checkin Actions
- Expense Claim Actions
- Holiday List Actions
- Leave Allocation Actions
- Leave Application Actions
- Salary Slip Actions
- Shift Assignment Actions
- Custom DocType Actions
- Frappe Method Actions
Leave Allocation → Cancel
AI-generatedSummary
Cancel a submitted Leave Allocation document in ERPNext HRMS by specifying its document name and optionally the API version to use.
Inputs
- API Version — Select the Frappe REST API version to use for the request, either v1 (stable) or v2 (Frappe v16). Defaults to v1.
- Document Name (required) — The unique name (ID) of the Leave Allocation document to cancel.
Output shape
a JSON response with the cancellation confirmation message from ERPNext or API error details if the cancellation fails
Returns the confirmation message or raw response from the ERPNext API. Requires that the specified document is currently submitted and cancellable. Errors will be returned as node execution errors unless 'Continue on Fail' is enabled.
Examples
Example 1: Cancel a submitted Leave Allocation document
Set Resource to Leave Allocation, Operation to Cancel, specify the Document Name of the submitted leave allocation to cancel, and optionally set API Version to v1 or v2. When executed, the operation calls the ERPNext API to cancel that document, returning confirmation.