FSM Activity Base Model Reference

Note:

This reference is intended for administrators and developers who work with shared Activity model mappings and sourcing behavior.

The models/activity model provides shared mappings and sourcing behavior inherited by the CRM Task and Project Task models. The Case model also reuses selected sourcing behavior. This model is separate from the Field Service Activity record used by automatic service time tracking, which supports CRM Tasks only.

Standard default structure (JSON fragment):

          {
  "models/activity": {
    "prototype": {
      "record": "activity",
      "map": {
        "name": "title",
        "company": "company",
        "project": "formulatext:nvl2(nullif({company.internalid}, {custevent_nx_customer.internalid}), {company.internalid}, '')|",
        "status": "status",
        "priority": "priority",
        "message": "message",
        "type": "custevent_nx_task_type",
        "customer": "custevent_nx_customer",
        "asset": "custevent_nx_task_asset",
        "address": "custevent_nx_address",
        "latitude": "custevent_nx_latitude",
        "longitude": "custevent_nx_longitude",
        "timezone": "custevent_nx_time_zone",
        "id": "internalid"
      },
      "defaults": {}
    }
  }
} 

        

The following table describes the activity model's shared settings.

Property

Purpose

Standard Value

prototype.record

Base activity record identity.

"activity"

prototype.map.name

Activity title.

"title"

prototype.map.company, prototype.map.customer, prototype.map.asset

Company, FSM customer, and Asset relationships.

"company", "custevent_nx_customer", "custevent_nx_task_asset"

prototype.map.type, prototype.map.status, prototype.map.priority, prototype.map.message

Activity classification and details.

"custevent_nx_task_type", "status", "priority", "message"

prototype.map.address, prototype.map.latitude, prototype.map.longitude, prototype.map.timezone

Service location and time zone.

"custevent_nx_address", "custevent_nx_latitude", "custevent_nx_longitude", "custevent_nx_time_zone"

prototype.defaults

Supplies default model attributes on creation. Additional application paths are described in this entry.

{}

The standard model recognizes both customers and projects in the Company field. It keeps the company, customer, project, and Asset relationships consistent. Project Task narrows the Company relationship to a project. Preserve these relationships when extending a derived model. For location geocoding configuration, see Configuring FSM Service Locations and Geocoding.

Activity defaults are applied during initialization and validation when a type or Asset is present. Non-Boolean defaults fill an empty model value. Boolean defaults can replace it. Use the record-specific entry when changing Task or Case defaults.

Additional Information

Related Topics

General Notices