Repair Store Application
repair_store_appRepair an installed Store or company application by reinstalling its installed version from the repository without uninstalling it, preserving customized files and waiting for a confirmed result.
Instructions
Repair an installed Store or company application (the platform's Repair Application): reinstall its installed version from the application repository, without uninstalling it, and wait for the result. Files that were customized on the instance are kept (listed as skipped). Trust only a result that says Repaired: it requires the tracker to succeed and a new upgrade history to be written. Refused for an application developed on this instance, an inactive one, or one that contains plugins. Only when the user asked for a repair; it runs whatever the application's install runs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | The installed application: its scope (e.g. sn_grc) or its sys_store_app sys_id. | |
| instance | No | The ServiceNow instance auth alias to connect to. This is the alias configured via `snc configure` (e.g., "myinstance", "prod", "test"). The user will typically refer to this by name when saying things like "on my myinstance instance". If not provided, falls back to the SN_AUTH_ALIAS environment variable. | |
| load_demo_data | No | Also load the application's demo data. Refused when it has none. | |
| timeout_minutes | No | How long to wait for the repair. Default 30. Progress is reported while waiting; a client that does not reset its timeout on progress may give up first, and the repair then keeps running: check sys_execution_tracker. |