> For the complete documentation index, see [llms.txt](https://kb.theloops.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.theloops.io/agentstudio/skills-library/field-service-and-workforce-scheduling/cancel-service-appointment-with-impact-check.md). Agents can also search and read this documentation through its [MCP server](https://kb.theloops.io/~gitbook/mcp).

# Cancel Service Appointment with Impact Check

Cancels one service request task appointment after reading context, SLA and schedule impact, gate checks, and explicit user approval.

| Business area                          | Action type                                |
| -------------------------------------- | ------------------------------------------ |
| Field Service and Workforce Scheduling | Updates IFS Cloud data after user approval |

## Overview

On the Request Task Scheduling page, "Cancel Appointment" (ReqCancelAppointmentCommand, clone of CancelAppointmentCommand in wrktsk/model/wrktsk/WorkTaskCommands.fragment) is enabled when CancelAppointmentAllowed = "TRUE" and calls CancelAppointment(TaskSeq). On the server (Svcsch\_Appt\_Booking\_Util\_API.Cancel\_Appointment) the cancel is refused if any work assignment has been sent to mobile (TASK\_TRANSFERRED\_TO\_MOBILE), if an assignment is WORKSTARTED, PENDINGCOMPLETION, COMPLETED or INCOMPLETED (WORK\_ASSIGNMENT\_RESTRICTED), or if a booking request is in progress (BOOKING\_IN\_PROGRESS). Otherwise it cancels the booking and removes the appointment activity.

IFS Cloud reads task and booking data and cancels appointments when approved.

## How it works

{% stepper %}
{% step %}
Get Appointment Context (taskseq).
{% endstep %}

{% step %}
Assess Cancellation Impact (taskseq).
{% endstep %}

{% step %}
Check Cancel Gate (taskseq). If BLOCKED, stop.
{% endstep %}

{% step %}
User approval then Cancel Appointment (taskseq, approved=true).
{% endstep %}

{% step %}
Verify Appointment Cancelled (taskseq).
{% endstep %}
{% endstepper %}

## Key capabilities

* Read the task's appointment window, mode and booking state.
* Read customer, request and task state context.
* Read SLA commitments for the task with due date, status and scheduling relevance.
* Read the scheduling allocation and work assignments (mobile transfer, assignment states).
* Mirror the IFS cancel gates before calling the server.
* Produce a plain-language impact statement (customer, SLA risk, schedule).
* Cancel one appointment only after explicit approval.
* Verify the result and suggest the next step (rebook, inform customer).

{% hint style="info" %}
This skill keeps a human in the loop. It previews every change and updates IFS Cloud only after a user approves it.
{% endhint %}

## Requirements

The following IFS Cloud components and projections must be available, with permission sets that grant access to each projection.

| Component | Projection          |
| --------- | ------------------- |
| REQMGT    | RequestTaskHandling |

## Version compatibility

| Projection          | Supported IFS Cloud releases |
| ------------------- | ---------------------------- |
| RequestTaskHandling | 25R2, 26R1, 26R2             |

## Known limitations

* Write paths require explicit user confirmation or authorization where configured.
