Skip to main content

Create Maintenance Plans

Learning Objectives

After completing this unit, you’ll be able to:

  • Create maintenance plans that automate periodic maintenance visits for customers.
  • Create work types.
  • Create maintenance work rules.
  • Associate an asset with a maintenance plan.

What Are Maintenance Plans?

Ursa Major Solar’s customers are loving their new solar panel systems. (The lower energy bills don’t hurt either.) However, the company knows that its work isn’t over when a system is installed. Solar panel systems work best when they’re checked regularly by a knowledgeable field service technician. To ensure that any issues are found early, Ursa Major provides one year of monthly preventive maintenance visits after a solar panel system installation. But who’s going to create the work orders for those monthly visits?

Enter maintenance plans! A maintenance plan lets you define the maintenance schedule for one or more assets and generate multiple work orders for future maintenance visits. With the click of a button, all work orders for a solar panel system’s monthly maintenance visits are ready to go.

Set Up a Maintenance Plan

Let’s create a maintenance plan for one year of monthly maintenance visits for the Solar Panel System 6000 asset. Here’s a suggested process.

  1. Create a work type that standardizes your field service work during the solar panel maintenance service appointment.
  2. Create a maintenance plan for asset.
  3. Define the condition for service visits using a maintenance work rule.
  4. Associate the asset with the maintenance plan.
  5. Generate work orders used to schedule each service appointment.

Create a Work Type

Work types are templates for defining jobs, such as job duration or required skills. Since our maintenance plan involves servicing solar panels, let’s create a work type for solar panel maintenance.

Note

Don’t see a field that’s mentioned in this unit? Go to the Object Manager in Setup and add it to the Maintenance Plan page layout.

  1. From the App Launcher, find and select Work Types.
  2. Click New and enter the following details:
    • Work Type Name: Solar Maintenance
    • Estimated Duration: 1
    • Duration Type: Hours
    • Auto-Create Service Appointment: Checked
  3. You can add required skills, products, and knowledge articles to work types, but let's keep it simple for now. New work type window with fields completed.
  4. Leave the other fields blank and click Save.

Start a Maintenance Plan

Create a year-long monthly maintenance plan for DreamHouse Realty’s new solar panel system.

  1. From the App Launcher, select Maintenance Plans.
  2. Click New and enter the following details. (For detailed information about these fields, see Create Multiple Maintenance Schedules.)
    • Work Type: Solar Maintenance
    • Account: DreamHouse Realty
    • Start Date: 1st of the next month
    • End Date: One year after the start date.
    • Work Order Generation Method: One work order per asset.
    • Maintenance Window Start (Days): 3
    • Maintenance Window End (Days): 3
    • Generation Timeframe: 12
    • Generation Timeframe Type: Months
    • Date of the first work order in the next batch: Same as the Start Date
    • Generation Horizon (Days): 3
    • Maintenance Plan Title: One Year Solar Maintenance
  3. Leave the rest of the fields blank, and click Save.

Add a Maintenance Work Rule

Add a maintenance work rule to your new maintenance plan to create recurring maintenance schedules. You can create calendar-based, usage-based, and criteria-based maintenance work rules.

You want to schedule monthly visits for the Solar Panel 6000, so use a calendar-based criteria. If necessary, you can define multiple calendar-based maintenance work rules. For example, one for monthly maintenance visits and a second for a more extensive yearly maintenance visit. We keep it simple here and define one.

  1. In your One Year Solar Maintenance maintenance plan, select the Related tab. Find the Maintenance Work Rules section and click New.
  2. Enter the following details.
    • Maintenance Work Rule Title: Monthly Solar Maintenance
    • Maintenance Work Rule Type: Calendar-based
    • Work Type: Solar Maintenance
    • Maintenance Plan: MP-0001
    • Sort Order: 1
    • Date of the first work order in the next batch: Same as the Start Date in the maintenance plan
    • Recurrence Period: Months
    • Frequency: 1
    • Recurring on: Date and 1
    • After occurrences: 12
    • Leave the other fields blank.
    • Note: When creating a work rule with a Recordset Criteria, choose Criteria-Based as your Maintenance Work Rule Type. Then select or enter your Work Type, Maintenance Plan, Sort Order, and Date of the first work order. Finally, you choose an existing Recordset Criteria, such as Hot Water Heater Processed 10,000 Gallons.New maintenance work rule dialog with the values filled in.
  3. Click Save.

To learn more about the other fields, see Maintenance Plan Fields.

You can also generate floating work orders. Floating work orders are created based on when the last work order was completed. For example, let’s say that a monthly solar panel service is scheduled for June 1, but it doesn’t get completed until June 8. A floating work order is scheduled a month after the actual completion date, on July 8. With a fixed schedule, the next work order is scheduled for July 1.

We used a calendar-based criteria in our example, but here are examples of criteria- and usage-based work rules.

Criteria-Based Work Rule 

Choose one or more criteria that trigger a maintenance visit. (For more information, see Create Criteria-Based Maintenance.)

  • If the temperature of a solar panel reaches 185° Fahrenheit (85° Celsius) and the efficiency of the solar panel drops below 10%, that’s a problem. Schedule a maintenance visit.
  • Create two Recordset Filter Criteria. One on the Internal Temperature field (greater than 185) and the other on the Efficiency field (less than 10%). When those field values are reached or exceeded, it triggers a Field Service visit to make sure the panel isn’t damaged or in a bad location.
  • Finally, create a criteria-based maintenance work rule and select your newly created recordset filter criteria.

New Recordset Filter Criteria dialogue for a maintenance work rule with conditions set for Temperature greater than 185 and Efficiency less than 0.10.

Usage-Based Work Rule 

Choose one or more usage criteria that trigger a maintenance visit. (For more information, see Create Usage-Based Maintenance).

  • After a solar hot water heater processes 10,000 gallons, it’s time to check and change the sacrificial anode.
  • Create a Recordset Filter Criteria on the Gallons Processed field (more than 10,000). When that value is reached, it triggers a Field Service visit to replace the anode.
  • Finally, create a criteria-based maintenance work rule and select your newly created recordset filter criteria.

New Recordset Filter Criteria dialogue for a maintenance work rule with conditions set for the Usage Field of Gallons Processed with a frequency of 10000.

Since maintenance plans are often used to carry out terms in a service contract, you can link a maintenance plan to a service contract using the Service Contract lookup field. This field is only visible if entitlement management is enabled.

Well done! You’ve defined DreamHouse Realty’s preventive maintenance schedule. Now let’s associate the maintenance plan with the asset that it’s meant to cover.

Associate Maintenance Assets

You can associate a maintenance plan with one or more assets by creating maintenance assets, which are records that represent the relationship between the asset and the plan. 

When you add maintenance assets to a plan, a few neat things happen:

  • For each maintenance date, if you select one work order per asset, then one work order is created for each maintenance asset. If your plan covers three assets and provides for monthly maintenance visits, three work orders are created for each month of maintenance.
  • Maintenance assets inherit their maintenance plan’s work type, but you can choose a different work type for the maintenance asset. For example, if you want a particular asset’s work orders to include a required product, you can create a special work type for that maintenance asset.
  • Maintenance assets inherit their maintenance plan’s Date of the first work order in the next batch. You can update it on the maintenance asset (for example, if the customer has asked for a visit to be postponed). This field auto-updates on each maintenance asset whenever a new batch of work orders is generated.
  • Maintenance assets inherit their maintenance plan’s maintenance work rules. You can override them for specific assets by adding maintenance work rules to the asset. For example, an older solar panel needs more frequent maintenance than newer ones at the same site.

Let’s add DreamHouse’s solar panel system to their maintenance plan.

  1. From the One Year Solar Maintenance maintenance plan, in the Maintenance Assets related list, click New.
  2. In the Asset field, select Solar Panel System 6000.
  3. Leave the Work Type and Date of the first work order in the next batch fields blank. They auto-populate when you save.New maintenance asset window with fields completed
  4. Click Save.

Your plan now covers one customer asset!

Well done! You’ve defined DreamHouse Realty’s preventive maintenance schedule by creating a maintenance plan and associating it with an asset. Now let’s see how you can use it to generate work orders. 

Resources

Share your Trailhead feedback over on Salesforce Help.

We'd love to hear about your experience with Trailhead - you can now access the new feedback form anytime from the Salesforce Help site.

Learn More Continue to Share Feedback