Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

The Entity System Configuration object contains system configuration settings for a specific entity

 

 

Entity Object Formats

JSON Format
{
  "AllowMobileCreateOrder": false,
  "CloudElements": {
    "CustomerID": "",
    "Email": "",
    "Enabled": false,
    "Modules": {
      "{ModuleID}": {
        "Enabled": true,
        "ID": "",
        "Key": "",
        "Name": "QuickBooks Online",
        "Token": ""
      }
    },
    "Name": "",
    "UserID": "",
    "UserSecret": ""
  },
  "DefaultCulturalIdentifer": "en",
  "EnableMobileApplication": true,
  "ExportNotifications": {
    "Authentication": {
      "URL": "",
      "Headers": [
        {
          "Name": "",
          "Value": ""
        }
      ],
      "Request": {
        "audience": "",
        "client_id": "",
        "client_secret": "",
        "grant_type": "client_credentials"
      },
      "Type": "OAuth2"
    },
    "Notifications": {
      "Activity": {
        "Enabled": false,
        "URL": "",
        "Headers": [
          {
            "Name": "",
            "Value": ""
          }
        ]
      },
      "Audit": {
        "Enabled": false,
        "URL": "",
        "Headers": [
          {
            "Name": "",
            "Value": ""
          }
        ]
      },
      "InventoryTransfer": {
        "Enabled": false,
        "URL": "",
        "Headers": [
          {
            "Name": "",
            "Value": ""
          }
        ]
      },
      "InventoryUsage": {
        "Enabled": false,
        "URL": "",
        "Headers": [
          {
            "Name": "",
            "Value": ""
          }
        ]
      },
      "LoadInventory": {
        "Enabled": false,
        "URL": "",
        "Headers": [
          {
            "Name": "",
            "Value": ""
          }
        ]
      },
      "StockLevelRecommendation": {
        "Enabled": false,
        "URL": "",
        "Headers": [
          {
            "Name": "",
            "Value": ""
          }
        ]
      },
      "TimeEntry": {
        "Enabled": false,
        "URL": "",
        "Headers": [
          {
            "Name": "",
            "Value": ""
          }
        ]
      },
      "WorkOrder": {
        "Enabled": false,
        "URL": "",
        "Headers": [
          {
            "Name": "",
            "Value": ""
          }
        ]
      }
    }
  },
  "ExtUserAuth": {
    "Enabled": false,
    "AuthEndpoint": "https://sm-dev.hostedservicepower.com/mock/3rdPartyjwt"
  },
  "Invoice": {
    "EmailFrom": "sender@servicemobility.com",
    "EmailSender": {
      "SourceArn": "",
      "FromArn": "",
      "ReturnPathArn": ""
    }
  },
  "Invoicing": true,
  "JMSExpirationInDays": 30,
  "MaxLoginAttempts": 3,
  "PasswordResetLength": 10,
  "PayByLink": {
    "ID": "1002",
    "MerchantID": "CAAF8BFE-65AD-466C-A513-CC7854D4E90D",
    "UserID": "rahulmetha",
    "Passcode": ""
  },
  "Payment": {
    "GatewayID": "1001",
    "MerchantID": "CAAF8BFE-65AD-466C-A513-CC7854D4E90D",
    "UserID": "apiUser",
    "Passcode": ""
  },
  "RestApi": {
    "AuthorizationHeaders": [
      {
        "Name": "",
        "Value": ""
      }
    ],
    "AssetModels": {
      "AuthorizationHeaders": [
        {
          "Name": "",
          "Value": ""
        }
      ],
      "URL": "https://sm-dev.hostedservicepower.com/mock/Assets/{0}/Models"
    },
    "AssetHistory": {
      "AuthorizationHeaders": [
        {
          "Name": "",
          "Value": ""
        }
      ],
      "Criteria": "{\"and\":[{\"==\":[{\"$expression\":\"$substring(Assets[0].Model,0,6)\"},\"{{$substring(Asset.Model,0,6)}}\"]},{\"==\":[{\"$expression\":\"Assets[0].SerialNum\"},\"{{Asset.SerialNum}}\"]}]}",
      "URL": ""
    },
    "BookJob": {
      "AuthorizationHeaders": [
        {
          "Name": "",
          "Value": ""
        }
      ],
      "URL": "https://sm-dev.hostedservicepower.com/crm/api/BookJobMock/{0}"
    },
    "EstimateHistory": {
      "AuthorizationHeaders": [
        {
          "Name": "",
          "Value": ""
        }
      ],
      "Criteria": "{\"and\":[{\"==\":[{\"$expression\":\"$substring(Assets[0].Model,0,6)\"},\"{{$substring(Assets[0].Model,0,6)}}\"]},{\"==\":[{\"$expression\":\"Assets[0].SerialNum\"},\"{{Assets[0].SerialNum}}\"]}]}",
      "URL": "https: //sm-dev.hostedservicepower.com/mock/Account/{0}/Location/{1}/EstimateHistory"
    },
    "IVR": {
      "AuthorizationHeaders": [
        {
          "Name": "",
          "Value": ""
        }
      ],
      "URL": "https://sm-dev.hostedservicepower.com/IVRMock/{0}"
    },
    "PartsOrdering": {
      "AuthorizationHeaders": [
        {
          "Name": "",
          "Value": ""
        }
      ],
      "URL": "https://sm-dev.hostedservicepower.com/partsOrderingMock"
    },
    "SiteHistory": {
      "AuthorizationHeaders": [
        {
          "Name": "",
          "Value": ""
        }
      ],
      "Criteria": "{\"in\":[{\"var\":\"Location.Address.AddrLine1\"},\"{{Location.Address.AddrLine1}}\"]}",
      "URL": ""
    },
    "SearchAppts": {
      "AuthorizationHeaders": [
        {
          "Name": "",
          "Value": ""
        }
      ],
      "URL": "https://sm-dev.hostedservicepower.com/crm/api/SearchApptsMock"
    }
  },
  "Scheduler": {
    "Host": null,
    "DBUser": null,
    "UserName": null,
    "Password": null,
    "DispatchExportTran": false,
    "IntegrationEnabled": false,
    "ExternalObjectName": null
  },
  "StockLevelRecommendation": {
    "ExpiryCheckEnabled": false,
    "ExpirationTime": 540
  },
  "SupportEmailAddress": "support@servicemobility.com",
  "SupportedCountries": "USA",
  "SSO": {
    "Enabled": false,
    "UsePKCEFlow": false
  },
  "TemplatePrefix": "",
  "TokenClaims": {
    "ExpirationTime": 5400,
    "ExpiryDeadband": 0
  },
  "WorkOrder": {
    "ClosedOverride": false,
    "GenerateHashKey": {
      "Enabled": true,
      "KeyFunctions": {
        "AccountNum": "$uppercase(\"A-\" & $string(Location.Contacts[0].LastName) & \"|\" & $string(Location.Address.Zip))",
        "LocationNum": "$uppercase(\"L-\" & $string(Location.Contacts[0].LastName) & \"|\" & $string(Location.Address.Zip))"
      }
    },
    "GenerateIncompleteOrderInvoice": true,
    "OnlyAllowProductCatalogParts": "true",
    "SendScheduleChangeNotification": false,
    "SkipDeletedWOExport": true,
    "UseSystemTaxRates": false
  }
}

Entity Object Properties

(info) Required properties are in bold.

PropertyTypeDescription
_tstringIdentifies the document type and will always be set to entitySysConfig
_vstringIdentifies the version of the document structure
AllowMobileCreateOrderboolean

Identifies if the mobile worker can create a work order.

Valid values are:

  • true - The mobile worker can create a work order
  • false - The mobile worker can not create a work order

Default value is false

DefaultCulturalIdentiferstring

The default language code identifier associated with entity.

Default value is en

JMSExpirationInDaysinteger

Identifies ActiveMQ message's expiration value.

Default value is 30

PasswordResetLengthinteger

Identifies the length of reset password

Default value is 10

SupportEmailAddressstring

Identifies ServiceMobility/Nexus customer care email address

Default value is support@servicemobility.com

SupportedCountriesstring

Identifies comma separated list of entity supported countries.

Default value is USA

Invoiceobject

This object contains settings which support emailing invoice to the customer

PropertyTypeDescription
EmailFromstring

The FROM email address

Default value is donotreply@servicemobility.com

EmailSenderobject

Identifies configuration settings for cross-account/delegate sender's identity information

PropertyTypeDescription
SourceArnstringCross-account/delegate sender's Amazon Resource Name (ARN) for email's Source
FromArnstringCross-account/delegate sender's Amazon Resource Name (ARN) for email's From address
ReturnPathArnstringCross-account/delegate sender's Amazon Resource Name (ARN) for email's ReturnPath parameter

3.33.0

Invoicingboolean

Identifies setting for Invoicing feature. The flag value determines support for invoice generation.

Default value is true

PartsOrderingobject

Identifies settings for Parts Ordering feature.

PropertyTypeDescription
EntityServiceURIstring

PartsOrdering REST API endpoint

Default value is https://sm-qa.hostedservicepower.com/partsOrderingMock

EntityServiceAccessKeystring

PartsOrdering REST API access code

Default value is rbGlqax1#b

Paymentobject

This object contains payment gateway information for processing payments

PropertyTypeDescription
GatewayIDstring

Identifies payment gateway ID for an entity

Default value is 1001

MerchantIDstring

Identifies payment gateway Merchant ID for an entity

Default value is 10012

MerchantKeystring

Identifies payment gateway merchant key for an entity

Default value is C22A63EE-2E7A-4ACE-96AC-0958DC8D953F

ExtUserAuthobject

This object contains settings for allowing third-party authentication for mobile workers

PropertyTypeDescription
AuthEndpointstring

Third-party Authentication service REST API endpoint

Default value is ""

Enabledboolean

Flag to enable third-party authentication for all mobile workers within an entity

Default value is false

RestApiobject

Identifies settings for entity hosted REST API

PropertyTypeDescription
Hoststring

Identifies host and port address for REST API

Default value is localhost:3000

Protocolstring

Identifies protocol for REST API. The valid values are http or https.

Default value is https

AuthorizationHeaderobject

Identifies HTTP header name and value for REST API authentication

PropertyTypeDescription
Namestring

Identifies HTTP header name for authentication.

Default value is null

Valuestring

Identifies HTTP header value for authentication.

Default value is null

3.35.0

AssetModelsstring

Identifies Asset Model Number Verification REST API endpoint

Default value is /mock/Assets/{0}/Models

3.33.0

AssetHistorystring

Identifies Asset History REST API endpoint

Default value is null

3.32.0

BookJobstring

Identifies book job REST API endpoint

Default value is /crm/api/BookJobMock/{0}

EstimateHistorystring

Identifies Account Location Work Order Estimate History REST API endpoint

Default value is /mock/Account/{0}/Location/{1}/EstimateHistory

3.34.0

IVRstring

Identifies IVR REST API endpoint

Default value is /IVRMock/{0}

PartsOrderingstring

Identifies parts ordering REST API endpoint

Default value is /partsOrderingMock

3.35.0

SearchApptsstring

Identifies search appointment REST API endpoint

Default value is /crm/api/SearchApptsMock

SiteHistorystring

Identifies Site History REST API endpoint

Default value is null

3.32.0


Schedulerobject

Contains ServiceScheduling integration settings for the entity

PropertyTypeDescription
Hoststring

Scheduler instance host

Default value is null

DBUserstring

Scheduler instance DB User (Catalog)

Default value is null

UserNamestring

Identifies user name for scheduler

Default value is null

Passwordstring

Identifies password for scheduler

Default value is null

DispatchExportTranboolean

Flag to enable auto creation of new Export Transaction upon dispatching a new job

Default value is false

IntegrationEnabledboolean

Flag to enable integration with ServiceScheduling for an entity

Default value is false

ExternalObjectNamestring

External object name for scheduler technician

Default value is null

WorkOrderobject

Identifies settings for Work Order module for the entity

PropertyTypeDescription
ClosedOverrideboolean

Indicates the ability to accept mobile application transactions after work order has been closed from back office

Default value is false

OnlyAllowProductCatalogPartsboolean

Ability to only allow product catalog parts for in a work order. The valid values are "true" or "false"

Default value is true

SendScheduleChangeNotification
boolean

Indicates the ability to send work order dispatch and schedule change notification SMS

Default value is false

3.26.0

SkipDeletedWOExportboolean

Identifies a flag to exclude deleted work order transactions from Work Order Export REST API

Default value is false


  • No labels