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
Employee → Cancel
AI-generatedSummary
Cancel a submitted Employee document in ERPNext HRMS using the specified API version and document name.
Inputs
- API Version (required) — Select the Frappe REST API version (v1 or v2) to use for the cancel request.
- Document Name (required) — Provide the unique identifier of the Employee document to cancel.
Output shape
The confirmation message or response returned by the ERPNext API after performing the cancel action on the specified Employee document.
The operation returns the response.message if present, otherwise the full response object from the API. It cancels a submitted document by first retrieving it and then invoking the cancel method via API. Errors will throw unless 'Continue On Fail' is enabled.
Examples
Example 1: Cancel a submitted Employee document with name HR-EMP-0001 using API version v1
Set API Version to 'v1', Document Name to 'HR-EMP-0001', and Resource to 'Employee', Operation to 'Cancel'.