> 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/maintenance-and-asset-management/create-object-repair-work-order.md). Agents can also search and read this documentation through its [MCP server](https://kb.theloops.io/~gitbook/mcp).

# Create Object Repair Work Order

Gates, validates and (after explicit approval) creates a repair work order for one equipment object via CreateRepairAction.

| Business area                    | Action type                                |
| -------------------------------- | ------------------------------------------ |
| Maintenance and Asset Management | Updates IFS Cloud data after user approval |

## Overview

When an asset needs repair, the planner opens the equipment object in the Equipment Object Navigator and uses Register Work → New Repair Work Order. That command opens the New Repair Work Order assistant, and its Finish button calls the projection action CreateRepairAction.

IFS Cloud validates equipment repair context and creates repair work orders through the repair assistant action.

## How it works

{% stepper %}
{% step %}
Get Repair Candidate Object: evaluate command gates.
{% endstep %}

{% step %}
Check Open Work On Object for duplicates.
{% endstep %}

{% step %}
Validate Repair WO Inputs (org, part info, site date).
{% endstep %}

{% step %}
Preview payload. On approval call Create Repair Work Order once with approvaltoken.
{% endstep %}

{% step %}
Verify Repair Work Order by WoNo.
{% endstep %}
{% endstepper %}

## Key capabilities

* Resolves the object (site + object ID) and confirms that it is an equipment object visible to the user.
* Applies the IFS eligibility gates: command gate, assistant object picker rules and PL/SQL mandatory fields.
* Detects open work orders on the same object to prevent duplicate repair work.
* Validates the maintenance organization against the site (GetMainOrgLovFunction), and derives part/serial (GetPartInfo) and the site date (GetSiteDate).
* Builds the exact CreateRepairAction payload and shows it as a human-readable preview.
* Executes only after explicit approval, exactly once, with an idempotency guard.
* Reads back the new work order and confirms its state, object and directive.
* Explains blocked cases with the IFS rule that blocked them (scrapped, reserved serial, object level, missing org).

{% 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                             |
| --------- | -------------------------------------- |
| EQUIP     | EquipmentObjectNavigatorHandling       |
| WO        | CreateRepairWorkOrderAssistantHandling |

## Version compatibility

| Projection                             | Supported IFS Cloud releases |
| -------------------------------------- | ---------------------------- |
| EquipmentObjectNavigatorHandling       | 24R2, 25R1, 25R2, 26R1, 26R2 |
| CreateRepairWorkOrderAssistantHandling | 24R2, 25R1, 25R2, 26R1, 26R2 |

## Known limitations

* Read-only: does not create, update, or delete IFS Cloud data.
* Write paths require explicit user confirmation or authorization where configured.
