Creating Three Program Tasks for Each Recurring FSM Case

Use Case recurrence for the repeating service cycle and Program for the visits within each case. This example copies the technician, team, working times, and visit interval to each generated case. Program uses those values to calculate three CRM tasks.

The following simplified fragment is based on an existing account configuration. Case type 14, task type 1, and the listed custom fields are account-specific. Use the appropriate types and existing fields for your account. The fragment includes selected copied fields and one Program rule. When combining it with your configuration, retain other required field entries and Program rules. Custom arrays replace the corresponding previous arrays.

          {
  "recurrence": {
    "enabled": true,
    "caseFields": [
      "custevent_nx_assignedtechnician",
      "custevent_nxc_team[array]",
      "custevent_nxc_task_start_time[time]",
      "custevent_nxc_task_end_time[time]",
      "custevent_nxc_task_interval"
    ]
  },
  "program": {
    "caseMap": {
      "team": "custevent_nxc_team[array]",
      "starttime": "custevent_nxc_task_start_time[time]",
      "endtime": "custevent_nxc_task_end_time[time]"
    },
    "caseRules": [
      {
        "project": [
          true,
          false
        ],
        "case": [
          14
        ],
        "offset": 0,
        "interval": "${ supportcase.custevent_nxc_task_interval || 1 }",
        "unit": "day",
        "total": 3,
        "task": {
          "type": 1,
          "assigned": "${ supportcase.custevent_nx_assignedtechnician }",
          "custevent_nx_task_team": "${ supportcase.team }",
          "starttime": "${ supportcase.starttime }",
          "endtime": "${  supportcase.endtime }"
        }
      }
    ]
  }
} 

        

The settings work together as follows:

For a case dated November 1, 2026, an interval of 7 produces the dates in the following table. This example assumes no existing matching tasks.

Task

Date

Assignment and Working Times

First visit

November 1, 2026

From the copied case values

Second visit

November 8, 2026

From the copied case values

Third visit

November 15, 2026

From the copied case values

Choose the Case recurrence pattern on the case form. That pattern determines when the next case occurs. The Program interval determines the spacing of tasks within each case. The three-task count and seven-day interval don't set the case recurrence pattern. Child tasks don't require a separate recurrence pattern.

Creating a case with matching task additions requests Program processing. Existing matching tasks are retained rather than recreated or updated by a later assessment. Changing copied case values or this rule therefore doesn't rewrite already-created tasks. The Case recurrence end condition also doesn't truncate Program task dates on a retained case. For information about the combined processing and change boundaries, see FSM Case and Task Recurrence.

For Program rule-property definitions, see Configuring FSM Program Rules and Creation Timing.

Combining Case and Task Recurrence

An account can configure both caseFields and taskFields inside the same recurrence object. To combine these configurations, retain both field lists under the shared enabled: true setting. Keep the applicable Program rule. For the configurations, see Example of Copying Task Instructions and a Custom Integer Value and Creating Three Program Tasks for Each Recurring FSM Case. Each list supplies copied values for its own record type. Each recurring case or task still has its own series pattern.

Case recurrence with Program creates tasks within each case occurrence. Task recurrence creates later occurrences of a task itself. Configuring both copied-field lists doesn't automatically give Program-created child tasks an independent Task recurrence pattern. You don't need taskFields to create those Program tasks. Program rules and task defaults supply the values.

Additional Information

Related Topics

General Notices