ERPNext HRMS icon

ERPNext HRMS

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

Attendance → Cancel

AI-generated

Summary

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'.

Links

Discussion