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
Attendance → Cancel
AI-generatedSummary
Cancel a submitted Attendance document in ERPNext HRMS using the specified API version and document name.
Inputs
- API Version — Select the Frappe REST API version to use for the cancel request: v1 for /api/resource (Stable) or v2 for /api/v2/document (Frappe v16). Defaults to v1.
- Document Name (required) — The unique name or ID of the Attendance document to cancel.
Output shape
A single object containing the cancel operation response message or data.
The response is the message returned by the ERPNext API after invoking the cancel action on the document. If the operation fails, the node will throw an error unless 'Continue on Fail' is enabled, in which case the error message is returned for that item.
Examples
Example 1: Cancel an Attendance record named 'ATT-0001' using API version v1.
Set resource to 'Attendance', operation to 'Cancel', select API version as 'v1', and specify Document Name as 'ATT-0001'.