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:

The program section includes the following areas:

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}"
            }
         }]
   }, 

        
Note:

The Program feature won't work unless the required Program configuration is in place.

Related Topics

General Notices