Program Configuration (JSON)
You configure the Program feature in the Field Service Management (FSM) configuration JSON stored on the Field Service Configuration record in NetSuite. To do this, go to Field Service > Administration > Configuration. This opens the Field Service Configuration record, where you can edit the JSON configuration.
Program logic is defined in the FSM configuration's program section. The program section determines:
-
Projects that will create Case and Task records
-
Associated behavior of those records
-
Data that will be set on those records
The program section includes the following areas:
-
projectmap - Defines special fields, formulas, and joins on the Project record that can then be accessed by the Project rules to set data on the Case.
-
projectrules - Array of objects specifying which Cases and Case data will be created for a particular Project.
-
casemap - Defines special fields, formulas, and joins on the Case that can then be accessed by the case rules to set data on the Task.
-
caserules - Array of objects specifying which Tasks and Task data will be created for a particular Case.
The following code snippet is an example of Program configuration.
"program": {
"projectmap": {
"projectassets": "custentity_nxc_project_assets[array]"
},
"projectrules": [{
"//": "PM Annual",
"project": [3],
"case": {
"type": 3,
"custevent_nx_case_asset": "${project.custentity_nx_asset}",
"custevent_nxc_case_assets": "${project.projectassets}",
"details": "comments"
},
"interval": 12,
"unit": "month",
"create": true
}],
},
"casemap": {
"taskassignee": "company.custentity_nxc_task_assignee",
"starttime": "company.custentity_nxc_program_start",
"endtime": "company.custentity_nxc_program_task_end",
"fsointernalid": "company.custentity_nxc_fso_id",
"fsojobtype": "company.custentity_nxc_fso_job_type"
},
"caserules": [{
"project": [13,12,11,10,9,8,7,6],
"case": [1],
"task": {
"type": 101
}
},{
"project": 103,
"case": [102],
"task": {
"type": 111,
"start": "${supportcase.starttime}",
"end": "${supportcase.endtime}",
"assigned": "${supportcase.taskassignee}",
"custevent_nxc_fso_link": "${supportcase.fsointernalid}",
"custevent_nxc_fso_job_type": "${supportcase.fsojobtype}"
}
}]
},
The Program feature won't work unless the required Program configuration is in place.