{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":46441,"path":"service-management-for-the-enterprise/planned-maintenance-family/r_InstallWServMgmtPlanMaint.md","title":"Installed with SM Planned Maintenance","bundle":null,"doc_type":null,"release":"australia","body":"\n# Installed with SM Planned Maintenance\n\nThe SM Planned Maintenance core plugin also includes demo data.\n\n## Tables installed with SM Planned Maintenance\n\n<table id=\"table_u5j_fry_dt\"><thead><tr><th>\n\nTable\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nMaintenance Plan Record\\[sm\\_m2m\\_maint\\_plan\\_to\\_record\\]\n\n</td><td>\n\nRelates a maintenance schedule to a record in the system \\(from a document ID\\). Also contains information about the last time or value the schedule was run for the record and the next time or value when the schedule will run.\n\n</td></tr><tr><td>\n\nSchedule Template\\[sm\\_m2m\\_schedule\\_template\\]\n\n</td><td>\n\nRelates a maintenance schedule to service management templates.\n\n</td></tr><tr><td>\n\nMaintenance Plan\\[sm\\_maint\\_plan\\]\n\n</td><td>\n\nDefines a maintenance plan, including which table and records the plan applies to.\n\n</td></tr><tr><td>\n\nMaintenance Schedule\\[sm\\_schedule\\]\n\n</td><td>\n\nDefines a schedule that is part of a maintenance plan. A schedule can be duration, meter, condition, or script based.\n\n</td></tr></tbody>\n</table>## Roles installed with SM Planned Maintenance\n\n|Role title \\[name\\]|Description|\n|-------------------|-----------|\n|plan\\_maint\\_admin|Administrator for planned maintenance.|\n\n## Script includes installed with SM Planned Maintenance\n\n|Script include|Description|\n|--------------|-----------|\n|PlannedMaintenanceUtils|Utilities for planned maintenance.|\n|PlannedMaintenanceAjax|AJAX entry points into PlannedMaintenanceUtils.|\n\n## Client scripts installed with SM Planned Maintenance\n\n<table id=\"table_wtf_krf_w3\"><thead><tr><th>\n\nClient script\n\n</th><th>\n\nTable\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nUpdate field display - trigger type chg\n\n</td><td>\n\nMaintenance schedule\\[sm\\_schedule\\]\n\n</td><td>\n\nUpdates the fields displayed on the maintenance schedule form based on the trigger type selected.\n\n</td></tr><tr><td>\n\nUpdate field display - repetition chg\n\n</td><td>\n\nMaintenance schedule\\[sm\\_schedule\\]\n\n</td><td>\n\nUpdates the fields displayed on the maintenance schedule form based on the repetition selected.\n\n</td></tr><tr><td>\n\nUpdate table when type changes\n\n</td><td>\n\nMaintenance plan\\[sm\\_maint\\_plan\\]\n\n</td><td>\n\nUpdates the **table** field based on the selected models \\(for model-based plans\\).\n\n</td></tr><tr><td>\n\nValidate the every field\n\n</td><td>\n\nMaintenance schedule\\[sm\\_schedule\\]\n\n</td><td>\n\nVerifies that the **every** field is a positive number; else it defaults to 1.\n\n</td></tr><tr><td>\n\nUpdate table when models change\n\n</td><td>\n\nMaintenance plan\\[sm\\_maint\\_plan\\]\n\n</td><td>\n\nUpdates the **table** field based on the selected models \\(for model-based plans\\).\n\n</td></tr></tbody>\n</table>## Business rules installed with SM Planned Maintenance\n\n<table id=\"table_ngl_zwx_dt\"><thead><tr><th>\n\nBusiness rule\n\n</th><th>\n\nTable\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nUpdate maintenance plan record\n\n</td><td>\n\nService Order\\[sm\\_order\\]\n\n</td><td>\n\nUpdates the maintenance records \\[sm\\_m2m\\_maint\\_plan\\_to\\_record\\] once a service order is closed.\n\n</td></tr><tr><td>\n\nUpdate m2m schedule records\n\n</td><td>\n\nMaintenance schedule\\[sm\\_schedule\\]\n\n</td><td>\n\nRecalculates the next value or next run time when **meter** or **duration** fields change.\n\n</td></tr><tr><td>\n\nActive changes\n\n</td><td>\n\nMaintenance Plan Record\\[sm\\_m2m\\_maint\\_plan\\_to\\_record\\]\n\n</td><td>\n\nHandles changes to the active flag for a maintenance plan record.\n\n</td></tr><tr><td>\n\nActive insert\n\n</td><td>\n\nMaintenance Plan Record\\[sm\\_m2m\\_maint\\_plan\\_to\\_record\\]\n\n</td><td>\n\nHandles changes to the active flag for a maintenance plan record.\n\n</td></tr><tr><td>\n\nActive changes\n\n</td><td>\n\nMaintenance schedule\\[sm\\_schedule\\]\n\n</td><td>\n\nHandles changes to the active flag for a maintenance schedule.\n\n</td></tr><tr><td>\n\nActive changes\n\n</td><td>\n\nMaintenance plan\\[sm\\_maint\\_plan\\]\n\n</td><td>\n\nHandles changes to the active flag for a maintenance plan.\n\n</td></tr><tr><td>\n\nActive Insert\n\n</td><td>\n\nMaintenance schedule\\[sm\\_schedule\\]\n\n</td><td>\n\nHandles changes to the active flag for a maintenance schedule.\n\n</td></tr><tr><td>\n\nApply plan to new records\n\n</td><td>\n\nMaintenance plan\\[sm\\_maint\\_plan\\]\n\n</td><td>\n\nUpdates the business rule for applying a plan to new records whenever the **Apply to new records** field changes.\n\n</td></tr></tbody>\n</table>## Scheduled jobs installed with SM Planned Maintenance\n\n|Scheduled jobs|Description|\n|--------------|-----------|\n|Planned Maintenance Nightly Run|Builds maintenance requests based on active maintenance plans.|\n\n**Parent Topic:**[Activate Planned Maintenance](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/service-management-for-the-enterprise/planned-maintenance-family/t_ActivatePlanMaint.md)\n\n"}}