FSM Program
In Field Service Management (FSM), FSM Program creates service work from configured rules. Project rules plan cases for a service schedule. Case rules create the tasks needed to perform that work. Programs are commonly used for maintenance contracts and can also support a single planned service.
Program operates through project, case, and CRM task records. Its calculated schedule and background processing help distinguish planned work from records already created.
How It Works
A project Program has two stages. FSM calculates the required cases from the project's type, dates, and applicable rules. When a case is created, applicable case rules can request one or more tasks linked to that case.
The stages are related, but automatic generation is not guaranteed. Each stage requires its own matching rules. Generated work still needs normal scheduling and assignment.
The following diagram shows the related project-to-case and case-to-task generation stages:
Case rules can also operate on cases outside a project Program. These cases include those generated by FSM Case and Task Recurrence. In that combination, Recurrence creates the case series and Program creates the child tasks.
The standard configuration contains no predefined Program schedule. Applicable rules must be configured before Program creates work. A project rule can create the next required case or missing cases within a rolling horizon. It can also create all planned cases through the project's end. Task creation requires applicable case rules. Creating a case does not by itself guarantee a task.
Generated tasks enter the normal Schedule Board and FSM Mobile flows, subject to their usual access and selection rules. The parent cases represent the service occurrences. Their child tasks are the work to schedule and perform. Program can carry configured assignment values into generated records. It does not automatically select an available technician or resolve scheduling conflicts.
In a maintenance contract, an administrator defines the rules and an operations manager supplies the project's service dates and context. Program processing generates the required service records. A scheduler assigns and schedules the tasks, and technicians perform the tasks in FSM Mobile. Completion and case closure can then request assessment of the next service occurrence.
Prerequisites
The two generation paths have different requirements:
-
Project to case: The project needs a Field Service Project Type (
custentity_nx_project_type), Start Date (startdate), and either End Date (enddate) or a usable Program Create Until (custentity_nx_program_create_until) value. Applicable project rules must define the cases to create. -
Case to task: For background task creation, the case needs a Case Type (
custevent_nx_case_type), Field Service Start Date (custevent_nx_start_date), and applicable case rules. Rules can select by Case Type, linked Project Type, or both. -
Record creation: Required values and relationships must satisfy the destination record's requirements. Rules that use asset, customer, or other related data depend on that data being available.
For supported settings and setup examples, see Configuring FSM Program.
Key Behaviors
This section describes how the feature responds to different conditions and actions.
The read-only Program subtab combines calculated rows with matched existing cases. Matching uses chronological order and Case Type rather than an exact date match. For column meanings and a matching example, see FSM Program Planned Rows and Case Matching.
Project dates bound the initial schedule. Rules can create the next required case, missing cases within a rolling horizon, or all planned cases. For date boundaries, creation timing, and shifting examples, see FSM Program Dates and Case Creation.
Changes to Contracted Service
Recommended practice: Treat a change to the contracted service frequency, pattern, or terms as a separate Program. End the original Program at the agreed changeover and create a project for the revised terms. Keep completed service work linked to the original project and preserve its original service pattern. The project type and rules for the revised terms must support those terms without rewriting rules still used by the original project.
For example, consider a 10-year annual service contract that changes to monthly service after year three. Start the monthly Program for the revised terms from the agreed effective date. Changing the original project to monthly service and retaining its original start can recalculate monthly occurrences across the earlier years. Those earlier periods can appear to have missing cases even though the annual obligations were fulfilled, and existing cases can match different calculated rows.
At the changeover, review remaining cases, tasks, and processing requests. Confirm that service obligations are covered one time, with no unintended gap or overlap. A status labeled Closed does not necessarily make the old project inactive for Program. Shortening its End Date does not remove every existing future case. It also does not guarantee that missing historical work cannot be created. When ending the old Program, use the account's configured Program status classifications. Review the removal consequences in the Inactive Projects section in this topic. Retained cases can still request missing tasks independently of the project's inactive classification.
Existing Tasks
Case rules can create one task or a sequence of tasks at configured offsets and intervals from the case's Field Service Start Date.
Case rules match existing tasks by chronological order and Task Type, using the same next-record matching approach as project cases. The rules then create missing tasks and retain the matched tasks' existing values.
Changing case rules or dates does not update or delete existing tasks through this path. It can change the calculated matches and which additional tasks are considered missing.
Inactive Projects
Configured project status IDs determine when a project is inactive for Program processing. The inactive classification is separate from a status label such as Closed.
An inactive project stops Program case creation. Existing matched Program cases can be selected for removal when their case statuses are also classified as removable.
Removing a qualifying case first requests deletion of all tasks linked to that case, regardless of Task Type or status. Changing the inactive or removable status classifications can therefore affect existing service work.
Record Interactions
The following table describes each record's role in Program and its effects.
|
Record |
Role in Program |
Important Effect |
|---|---|---|
|
Project |
Supplies the type, dates, and context for a case schedule. |
Generated cases link to the project through their Company relationship. The Program subtab displays the calculated schedule and matched cases. |
|
Case |
Represents a planned service occurrence and supplies context for task generation. |
Applicable case rules create child tasks. FSM-managed case closure can request the next project Program work. |
|
CRM task |
Represents work to schedule and perform. |
Generated tasks link to their case and Company. Existing matching tasks are retained. Tasks linked to a case selected for Program deletion are included in its deletion request. |
|
Asset and customer |
Supply service context and values used by configured rules. |
Data is carried to generated records when the applicable rules and mappings specify it. |
|
Field Service Configuration |
Stores Program rules and mapping definitions. |
Applicable configuration supplies both generation paths. |
Rules can carry a project's asset and service description into a case. The rules can also use case values or related project data to populate a task's assignee, skill, or work details. These values are supplied when generating the record. Program does not continuously synchronize these values after a source value changes.
Program initially supplies the project's time zone to generated cases and the case's time zone to generated tasks. A project can obtain its time zone from an asset through normal FSM record processing. However, an existing project's time zone can differ from the asset's. Configured output values and normal record processing can affect the final saved values.
For field definitions, see FSM Project Record, FSM Case Record, and FSM CRM Task Record.
Processing Model and Lifecycle
This section explains when processing occurs and what can affect its progress and results.
A saved project request assesses case additions and removals. A saved case request assesses missing child tasks. Case closure can request project processing when the assessment finds eligible changes.
Requests, calculated rows, and completed executions do not establish that every expected record exists. An active, unrecovered Program error can exclude the project and its linked cases from further assessment. For request triggers, closure requirements, completion evidence, and error effects, see FSM Program Processing and Case Closure.
Configuration
Program configuration determines which project and case types participate and which records are generated. It also defines the date pattern, creation timing, and values carried between records. The configuration also controls the status classifications used for inactive-project removal.
For supported properties, defaults, units, mappings, and JSON examples, see Configuring FSM Program. Preserve the record relationships and required destination values when changing rules.
Case Types for Program and Recurrence
Recommended practice: Use distinct case types for cases created by a project Program and cases created by Recurrence. Program matches participating cases linked to a project by order and Case Type, without excluding cases created by Recurrence. A recurring case of a participating type can occupy a planned Program row and change which other cases appear to be missing. Avoid configuring both features to create cases for the same service obligation.
A dedicated Recurrence Case Type can still use Program case rules to create its child tasks. In that arrangement, Recurrence creates the case series and Program creates the tasks. Keep that Case Type separate from the types created by the project Program.
Projects Created from a Case
Recommended practice: If a project type used with Program is available through the case's New Project selection, require the linked project's Field Service Project Type. Apply this requirement before every matching case-to-task rule runs, including broader rules. Rules that also allow a missing Project Type can run before the project is linked.
The case is initially saved against its customer. A later callback creates the project and links the case to it. Rules that allow the initial state can request tasks before that link and the related project data are available. Tasks created at that point can retain interim values. Program retains existing matching tasks rather than updating those tasks when the case's project changes.
The New Project type selection alone does not satisfy the requirement. Program uses the resolved linked Project Type, rather than the selection on the case form. The standard New Project choices exclude types explicitly referenced by project-to-case rules. When this creation flow is used, save the case's Update Program request after the project link is established. Linking alone does not guarantee task generation.
Limitations and Constraints
Program and Recurrence provide different lifecycle behavior. Recurrence's series-editing, propagation, and instance-deletion controls do not automatically apply to a project Program.
Program matching is based on order and type. It does not provide an exact-date duplicate check or a complete reconciliation of every case or task related to a project. Case-rule processing does not automatically revise existing tasks after a rule change.
A calculated row, saved request, or completed script execution is insufficient on its own to establish successful record generation.
Related Processes and Procedures
These procedures explain how to view Program information and use Program with Recurrence:
-
Viewing the Program on a Project in NetSuite explains how to open and read the Program subtab.
-
Recurring Cases with Program explains how to use Recurrence to create cases and Program to create their child tasks.