CDM/schemaDocuments/Sustainability/IndustryClassification.1.0....

1121 строка
40 KiB
JSON

{
"jsonSchemaSemanticVersion": "1.1.0",
"imports": [
{
"corpusPath": "cdm:/core/cdsConcepts.1.0.1.cdm.json"
},
{
"corpusPath": "OrganizationalProfile.1.0.cdm.json"
}
],
"definitions": [
{
"entityName": "IndustryClassification",
"extendsEntity": "CdmEntity",
"displayName": "Industry classification",
"description": "Combination of the Industry parent-level industry classification and the Subindustry child-level industry classification, both defined on the company profile.",
"sourceName": "msdyn_industryclassification",
"exhibitsTraits": [
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Combination of the Industry parent-level industry classification and the Subindustry child-level industry classification, both defined on the company profile."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Industry classification"
]
]
}
}
]
},
{
"traitReference": "is.CDM.entityVersion",
"arguments": [
{
"name": "versionNumber",
"value": "1.0"
}
]
}
],
"hasAttributes": [
{
"attributeGroupReference": {
"attributeGroupName": "attributesAddedAtThisScope",
"members": [
{
"name": "industryclassificationId",
"sourceName": "msdyn_industryclassificationid",
"sourceOrdering": 1,
"description": "Unique identifier for entity instances",
"displayName": "IndustryClassification",
"isNullable": false,
"purpose": "identifiedBy",
"dataType": "entityId",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "systemrequired"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Unique identifier for entity instances"
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"IndustryClassification"
]
]
}
}
]
},
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"msdyn_industryclassificationid"
]
}
]
},
{
"name": "createdOn",
"sourceName": "createdon",
"sourceOrdering": 2,
"description": "Date and time when the record was created.",
"displayName": "Created on",
"isNullable": true,
"purpose": "hasA",
"dataType": "dateTime",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Date and time when the record was created."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Created on"
]
]
}
}
]
}
]
},
{
"name": "modifiedOn",
"sourceName": "modifiedon",
"sourceOrdering": 4,
"description": "Date and time when the record was modified.",
"displayName": "Modified on",
"isNullable": true,
"purpose": "hasA",
"dataType": "dateTime",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Date and time when the record was modified."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Modified on"
]
]
}
}
]
}
]
},
{
"name": "statecode",
"sourceName": "statecode",
"sourceOrdering": 25,
"description": "Status of the IndustryClassification",
"displayName": "Status",
"isNullable": false,
"purpose": "representsStateWith",
"dataType": {
"dataTypeReference": "listLookup",
"appliedTraits": [
{
"traitReference": "does.haveDefault",
"arguments": [
{
"entityReference": {
"explanation": "The constantValues below correspond to the attributes of the 'listLookupValues' entityShape which are: {languageTag, displayText, attributeValue, displayOrder}",
"entityShape": "listLookupValues",
"constantValues": [
[
"en",
"Active",
"0",
"1"
],
[
"en",
"Inactive",
"1",
"2"
]
]
}
}
]
}
]
},
"projections": {
"operations": [
{
"$type": "addSupportingAttribute",
"condition": "virtual",
"supportingAttribute": {
"explanation": "This attribute 'statecode_display' is added to the 'IndustryClassification' entity to provide the localized display text for the value of the listLookup attribute 'statecode'",
"name": "statecode_display",
"purpose": "hasA",
"dataType": "localizedDisplayText",
"isReadOnly": true
}
}
]
},
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "systemrequired"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Status of the IndustryClassification"
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Status"
]
]
}
}
]
},
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"statecode"
]
}
]
},
{
"name": "statuscode",
"sourceName": "statuscode",
"sourceOrdering": 27,
"description": "Reason for the status of the IndustryClassification",
"displayName": "Status reason",
"isNullable": true,
"purpose": {
"purposeReference": "representsCorrelatedStatusWith",
"appliedTraits": [
{
"traitReference": "is.correlatedWith",
"arguments": [
"statecode"
]
}
]
},
"dataType": {
"dataTypeReference": "listLookup",
"appliedTraits": [
{
"traitReference": "does.haveDefault",
"arguments": [
{
"entityReference": {
"explanation": "The constantValues below correspond to the attributes of the 'listLookupCorrelatedValues' entityShape which are: {languageTag, displayText, attributeValue, displayOrder, correlatedValue}",
"entityShape": "listLookupCorrelatedValues",
"constantValues": [
[
"en",
"Active",
"1",
"1",
"1"
],
[
"en",
"Inactive",
"2",
"2",
"2"
]
]
}
}
]
}
]
},
"projections": {
"operations": [
{
"$type": "addSupportingAttribute",
"condition": "virtual",
"supportingAttribute": {
"explanation": "This attribute 'statuscode_display' is added to the 'IndustryClassification' entity to provide the localized display text for the value of the listLookup attribute 'statuscode'",
"name": "statuscode_display",
"purpose": "hasA",
"dataType": "localizedDisplayText",
"isReadOnly": true
}
}
]
},
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Reason for the status of the IndustryClassification"
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Status reason"
]
]
}
}
]
},
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"statuscode"
]
}
]
},
{
"name": "importSequenceNumber",
"sourceName": "importsequencenumber",
"sourceOrdering": 30,
"description": "Sequence number of the import that created this record.",
"displayName": "Import sequence number",
"isNullable": true,
"purpose": "hasA",
"dataType": "integer",
"maximumValue": "2147483647",
"minimumValue": "-2147483648",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Sequence number of the import that created this record."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Import sequence number"
]
]
}
}
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumValue",
"value": "2147483647"
},
{
"name": "minimumValue",
"value": "-2147483648"
}
]
}
]
},
{
"name": "overriddenCreatedOn",
"sourceName": "overriddencreatedon",
"sourceOrdering": 31,
"description": "Date and time that the record was migrated.",
"displayName": "Record created on",
"isNullable": true,
"purpose": "hasA",
"dataType": "dateTime",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Date and time that the record was migrated."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Record created on"
]
]
}
}
]
}
]
},
{
"name": "timeZoneRuleVersionNumber",
"sourceName": "timezoneruleversionnumber",
"sourceOrdering": 32,
"description": "For internal use only.",
"displayName": "Time zone rule version number",
"isNullable": true,
"purpose": "hasA",
"dataType": "integer",
"maximumValue": "2147483647",
"minimumValue": "-1",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"For internal use only."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Time zone rule version number"
]
]
}
}
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumValue",
"value": "2147483647"
},
{
"name": "minimumValue",
"value": "-1"
}
]
}
]
},
{
"name": "UTCConversionTimeZoneCode",
"sourceName": "utcconversiontimezonecode",
"sourceOrdering": 33,
"description": "Time zone code that was in use when the record was created.",
"displayName": "UTC conversion time zone code",
"isNullable": true,
"purpose": "hasA",
"dataType": "integer",
"maximumValue": "2147483647",
"minimumValue": "-1",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Time zone code that was in use when the record was created."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"UTC conversion time zone code"
]
]
}
}
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumValue",
"value": "2147483647"
},
{
"name": "minimumValue",
"value": "-1"
}
]
}
]
},
{
"name": "name",
"sourceName": "msdyn_name",
"sourceOrdering": 34,
"description": "The Name attribute is currently not used.",
"displayName": "Name",
"isNullable": true,
"purpose": "hasA",
"dataType": "string",
"maximumLength": "100",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "applicationrequired"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"The Name attribute is currently not used."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Name"
]
]
}
}
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumLength",
"value": "100"
}
]
}
]
},
{
"name": "industrynum",
"sourceName": "msdyn_industrynum",
"sourceOrdering": 35,
"description": "Contains the mapping to the industry classification code in the form of a range.",
"displayName": "Industry number",
"isNullable": true,
"purpose": "hasA",
"dataType": "string",
"maximumLength": "10",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "applicationrequired"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Contains the mapping to the industry classification code in the form of a range."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Industry number"
]
]
}
}
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumLength",
"value": "10"
}
]
}
]
},
{
"name": "industryname",
"sourceName": "msdyn_industryname",
"sourceOrdering": 36,
"description": "Name of the industry.",
"displayName": "Industry name",
"isNullable": true,
"purpose": "hasA",
"dataType": "string",
"maximumLength": "200",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "applicationrequired"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Name of the industry."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Industry name"
]
]
}
}
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumLength",
"value": "200"
}
]
}
]
},
{
"name": "organizationalprofile",
"sourceName": "msdyn_organizationalprofile",
"sourceOrdering": 37,
"description": "Unique identifier for Organizational Profile associated with Industry Classification.",
"displayName": "Organizational profile",
"isNullable": true,
"purpose": "hasA",
"dataType": "entityId",
"entity": {
"source": "OrganizationalProfile",
"operations": [
{
"$type": "replaceAsForeignKey",
"condition": "referenceOnly",
"reference": "organizationalprofileId",
"replaceWith": {
"name": "organizationalprofile",
"dataType": "entityId",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "applicationrequired"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Unique identifier for Organizational Profile associated with Industry Classification."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Organizational profile"
]
]
}
}
]
},
{
"traitReference": "is.CDS.lookup",
"arguments": [
{
"name": "style",
"value": "single"
}
]
}
]
}
}
]
}
},
{
"name": "subindustryid",
"sourceName": "msdyn_subindustryid",
"sourceOrdering": 38,
"description": "Subindustry classification code.",
"displayName": "Subindustry ID",
"isNullable": true,
"purpose": "hasA",
"dataType": "string",
"maximumLength": "10",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "applicationrequired"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Subindustry classification code."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Subindustry ID"
]
]
}
}
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumLength",
"value": "10"
}
]
}
]
},
{
"name": "subindustryname",
"sourceName": "msdyn_subindustryname",
"sourceOrdering": 39,
"description": "Name of the subindustry.",
"displayName": "Subindustry name",
"isNullable": true,
"purpose": "hasA",
"dataType": "string",
"maximumLength": "200",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "applicationrequired"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Name of the subindustry."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Subindustry name"
]
]
}
}
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumLength",
"value": "200"
}
]
}
]
}
],
"exhibitsTraits": [
{
"traitReference": "is.CDM.attributeGroup",
"arguments": [
{
"entityReference": {
"entityShape": "attributeGroupSet",
"constantValues": [
[
"/Sustainability/IndustryClassification.1.0.cdm.json/IndustryClassification/hasAttributes/attributesAddedAtThisScope"
]
]
}
}
]
}
]
}
}
]
}
],
"documentVersion": "1.0"
}