Active Asset has Expired PM Schedules Alert
Once an asset record is saved in Asset Edit, and the asset has a status of Active (or In-Use), this alert checks to see if any PM schedules associated with this asset have an Unscheduled Type code. If the condition is True, upon executing a Save command, TMS will warn you with a pop-up window.
To create an alert, follow these steps:
- Go to Setup > General > Alerts and select the Assets module.
- Click the New button under the Alerts section.
-
In the Alert Create Wizard, enter the following information:
- Event Type: Record Save
- Title: Active Asset with expired PM Schedule
- Description: When an Active/In-Use asset is saved, TMS checks all associated PM schedules for the Type Code of Unscheduled. If any are found, an alert appears.
-
Click Next.
-
On the SQL screen, enter the following:
- SQL: SELECT vAssets.AssetNumber, vPMSchedules.NextDueDate, vAssets.StatusCode FROM vAssets INNER JOIN vPMSchedules ON vAssets.IDAsset = vPMSchedules.IDAsset where (vPMSchedules.NextDueDate < getDate()) AND (vAssets.StatusCode = 'Activ' or vAssets.StatusCode = 'INUSE') AND ('{vAssets.IDAsset}' = vAssets.IDAsset) AND (vPMSchedules.TypeCode = 'U')
- Condition Operator: Equal to
- Condition Value: 1
- Click Next to continue.
- On the Message screen, enter the following: {vAssets.StatusCode} Asset {vAssets.AssetNumber} have {Recordcount} PM(s) that need their Next Due Date(s) updated.
- Check the See All box.
- Click Finish to create the alert.