FSM Program Configuration Reference
The following table lists Program properties, record settings, defaults, and effects.
|
Property or Setting |
Location |
Accepted Value |
Default |
Effect |
|---|---|---|---|---|
|
|
|
Project rule array |
|
All matching rules contribute planned cases. The standard configuration supplies no schedule. |
|
|
|
Case rule array |
|
All matching rules contribute tasks. A case alone doesn't guarantee tasks. |
|
|
|
Field maps |
Asset and customer mappings. Case mappings also include assignee. |
Supplies values available as |
|
|
|
Named related-data definitions |
Related asset and customer. Case data also loads the linked project, including its type. |
Supplies additional named data for template tags. Preserve the linked project lookup when case rules use Project Type or project data. |
|
|
|
Project status-ID array |
|
Stops case creation and enables removal assessment for qualifying cases. |
|
|
|
Case status-ID array |
|
Classifies cases removable under an inactive project. |
|
Field Service Project Type |
Project |
Project Type ID |
No Program type supplied by the rules. |
Required for Project-to-Case calculation and selection of applicable project rules. |
|
Start Date |
Project |
Date |
Existing record value. |
Sets the required lower boundary for initial occurrences and anchors the pattern when Program Start Date is empty. |
|
End Date |
Project |
Date |
Existing record value, optional when a usable rolling horizon is supplied. |
Upper boundary for initially calculated occurrences, taking precedence over the rolling horizon as that boundary. |
|
Program Start Date, also labeled Field Service Start Date |
Project |
Date |
Project Start Date when empty. |
Anchors the schedule pattern without removing the Project Start Date lower boundary. |
|
Program Create Until |
Project |
Nonnegative integer. A value of |
Empty in the supplied field definition. |
Supplies a rolling creation horizon and can supply the calculation end when Project End Date is absent. |
|
Field Service Time Zone |
Project: |
FSM Time Zone record ID |
Supplied through normal record processing. |
Initial time zone sourcing and rolling horizon calculation. |
|
Field Service Update Program |
Project: |
Checkbox |
Existing record value. |
Saved project requests assess case additions and removals. Saved case requests assess missing child tasks. |
Program initially carries the project's value to generated cases and the case's value to generated tasks. The project's time zone determines the rolling horizon. If the project's time zone is empty, calculation uses the time zone preference of the person running the process.
Use internal IDs for types and statuses from your account. Don't assume that labels or IDs have the same meaning across accounts. Project statuses outside projectInactive are active for Program calculation. A status labeled Closed is not automatically inactive. The caseInactive property controls removal under an inactive project, rather than disabling task generation on that case.
A project needs its type and Start Date. It also needs End Date or a positive usable Program Create Until value, even for one occurrence. For background Case-to-Task processing, a case needs a Case Type, Field Service Start Date, and applicable rules. An asset or customer is needed when required by the chosen rules, related-data definitions, or destination record.
Use forms that expose the required record fields. Add account-specific source and destination fields to the appropriate records and forms before referencing those fields in rules, with compatible field types and access. Form layouts in examples are illustrative, rather than requirements for a particular custom form. For shared editing, merge, and activation instructions, see FSM Configuration.
Default JSON
The following JSON fragment shows the standard defaults for all eight Program properties. Other model mappings and record defaults remain inherited. The empty rule arrays supply no schedule.
{
"program": {
"projectRules": [],
"caseRules": [],
"projectInactive": [
3
],
"caseInactive": [
1
],
"projectMap": {
"asset": "custentity_nx_asset[integer]",
"customer": "custentity_nx_customer[integer]"
},
"caseMap": {
"asset": "custevent_nx_case_asset[integer]",
"customer": "custevent_nx_customer[integer]",
"assigned": "assigned[integer]"
},
"projectData": {
"asset": {
"record": "customrecord_nx_asset",
"filters": ["internalid", "anyof", "${ project.asset || 0 }"],
"map": {}
},
"customer": {
"record": "customer",
"filters": ["internalid", "anyof", "${ project.customer || 0 }"],
"map": {}
}
},
"caseData": {
"asset": {
"record": "customrecord_nx_asset",
"filters": [
["internalid", "anyof", "${ supportcase.asset || 0 }"],
"and",
["formulatext:ROWNUM", "is", "1"]
],
"result": 0,
"map": {}
},
"customer": {
"record": "customer",
"filters": [
["internalid", "anyof", "${ supportcase.customer || 0 }"],
"and",
["formulatext:ROWNUM", "is", "1"]
],
"result": 0,
"map": {}
},
"project": {
"record": "job",
"filters": [
["internalid", "anyof", "${ supportcase.company || 0 }"],
"and",
["formulatext:ROWNUM", "is", "1"]
],
"result": 0,
"map": {
"type": "custentity_nx_project_type"
}
}
}
}
}
Related Data Lookups
The names under projectData and caseData become template contexts when the corresponding rules run. These contexts are separate from the current record's project or supportcase inputs.
The following table summarizes lookup results and configuration dependencies.
|
Definition |
Lookup and Result Shape |
Configuration Dependency |
|---|---|---|
|
|
Searches the mapped asset or customer ID on the project. Returns an array of search results because |
Keep the project's |
|
|
Searches the mapped asset or customer ID on the case, using the standard filter for the first row. The |
Keep the case's |
|
|
Searches |
Supplies the linked Project Type for case rule conditions and linked project data for task outputs. Preserve the record, filters, result position, and |
The filters use 0 when the mapped relationship ID is missing. A customer in the case's Company field doesn't supply a resolved project. The linked project search must return a project for project.type to be available.
An empty configured map doesn't indicate that every field on the related record is loaded. Program can add a missing direct-field mapping to an existing named data definition when a rule tag references that field. Aliases, formulas, joins, and formatted values still require compatible explicit mappings. Changing a lookup to return an array instead of a single object, or the reverse, changes the tag paths for its result. For reusable search and mapping syntax, see FSM Searches and Field Mapping.