> 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/validate-appointment-template-fit.md). Agents can also search and read this documentation through its [MCP server](https://kb.theloops.io/~gitbook/mcp).

# Validate Appointment Template Fit

Read-only: reads one appointment template, its slot items and usage rules, optional booking request context, and SLA violation checks to return a FIT / FIT\_WITH\_WARNINGS / NOT\_FIT verdict with evidence.

| Business area                          | Action type |
| -------------------------------------- | ----------- |
| Field Service and Workforce Scheduling | Read-only   |

## Overview

Appointment booking in IFS Cloud Service Scheduling uses an appointment template (SvcschApptTemplate) to decide how appointment slots are generated and offered: whether the appointment is "to Start" or "to Complete" (AppointmentMode), which time zone the slot clock runs in (TimeZone), how many hours must pass before the first offer (MinimumDelay), the window length (ApptWindowLength), the number of slots offered (NoOfSlots), the weekdays allowed (AvailabilityPattern), and which time-of-day slot items and slot usage rule sets apply.

The IFS Cloud integration reads appointment templates and booking requests to evaluate template fit before slot offers.

## How it works

{% stepper %}
{% step %}
Resolve template ID. If missing but ActivityId is given, call Get Booking Request Context and use ApptTempId.
{% endstep %}

{% step %}
Get Appointment Template. If not found, stop.
{% endstep %}

{% step %}
Get Template Slot Items and Get Template Slot Usage Rules.
{% endstep %}

{% step %}
If ActivityId is available, Get Booking Request Context. Otherwise ask the user for mode, time zone, dates and duration.
{% endstep %}

{% step %}
Compute earliest candidate slot from MinimumDelay and slot items.
{% endstep %}

{% step %}
If ActivityId is available, Check Slot Against Sla for the candidate.
{% endstep %}
{% endstepper %}

## Key capabilities

* Read one appointment template with all fit-relevant attributes (mode, time zone, delay, window, slots, weekdays, base time pattern, blocking, auto request, rounding, utilization multiplier).
* Read the template's time-of-day slot items (SlotStartTime, SlotEndTime, SlotUsageWindowStart/End) through the template array.
* Read attached slot usage rule sets and their rules (utilization and free-time limits).
* Read one appointment booking request: mode, SLA start/end, activity duration, period, state and template in use.
* Check a candidate slot against the SLA with the IFS function GetAppCompViolatesSla / GetBooleanViolatesSla.
* Apply a deterministic fit rule set (mode, time zone, delay vs SLA, window vs duration, slot count and validity, weekday coverage).
* Return a verdict with evidence table, blockers and the next permissible business step.
* Explain template configuration in plain language for non-administrators.

## Requirements

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

| Component | Projection                        |
| --------- | --------------------------------- |
| SVCSCH    | SvcschAppointmentTemplateHandling |
| SVCSCH    | SvcschAppointmentBookingHandling  |

## Version compatibility

| Projection                        | Supported IFS Cloud releases |
| --------------------------------- | ---------------------------- |
| SvcschAppointmentTemplateHandling | 24R2, 25R1, 25R2, 26R1, 26R2 |
| SvcschAppointmentBookingHandling  | 24R2, 25R1, 25R2, 26R1, 26R2 |

## Known limitations

* Read-only: does not create, update, or delete IFS Cloud data.
