FSM Customer Model Reference

Note:

This reference is intended for administrators and developers who work with Customer model mappings and eligibility settings.

This model represents customer. Its eligibility settings work with the Asset model's settings to determine the Customer and Asset combinations available on supported FSM forms. For related Asset model settings, see FSM Asset Model Reference.

Standard default structure (JSON fragment):

          {
  "models/customer": {
    "prototype": {
      "record": "customer",
      "map": {
        "contact": "contactprimary.internalid|",
        "email": "email",
        "phone": "phone",
        "assets": "formulatext:''",
        "id": "internalid"
      },
      "defaults": {},
      "assets": {
        "array": true,
        "asset": {
          "all": true,
          "record": "customrecord_nx_asset",
          "filters": [
            "custrecord_nx_asset_customer",
            "anyof",
            "${ customer.id }"
          ]
        }
      }
    }
  }
} 

        

The prototype.map.currency mapping is "currency" when Multiple Currencies is enabled. It is omitted from this fixed-value fragment.

The following table describes the Customer model's asset selection mapping, fallback search, and record defaults, including standard values and dependencies.

Property

Purpose

Standard Value

Effect and Dependencies

prototype.map.assets

Controls which Assets can be selected for work against this customer.

"formulatext:''"

An empty value defers to the assets search collection. A customer field mapping can return eligible asset IDs. Literal true removes the model eligibility restriction. Literal false supplies no eligible Assets.

prototype.assets

Defines the search used to find permitted assets when the mapped value is blank.

array: true collection with an asset search for customrecord_nx_asset, filtered by custrecord_nx_asset_customer using ${ customer.id }. all: true.

Finds assets owned by the selected customer. Custom searches must return Asset IDs. Tags use the named customer context.

prototype.defaults

Supplies default attributes when a Customer model is created.

{}

No explicit Customer model defaults.

Other standard mappings are contact: "contactprimary.internalid|", email: "email", and phone: "phone". Currency is mapped when Multiple Currencies is enabled.

The model also looks up customer Item pricing for time bills and consumables. Its pricing method is part of product processing. It is not a customer function-override recipe. Pricing depends on the enabled NetSuite pricing features and customer data. For supported relationship configuration, see FSM Customer and Asset Eligibility Configuration.

Additional Information

Related Topics

General Notices