Table 6251 Sust. Unit
src/Apps/W1/Sustainability/app/src/CRM/SustUnit.Table.al234 lines, Copyright (c) Microsoft Corporation. MIT
// ------------------------------------------------------------------------------------------------// Copyright (c) Microsoft Corporation. All rights reserved.// Licensed under the MIT License. See License.txt in the project root for license information.// ------------------------------------------------------------------------------------------------namespace Microsoft.Sustainability.CRM;using Microsoft.Integration.D365Sales;table 6251 "Sust. Unit"{ Caption = 'Unit'; ExternalName = 'msdyn_unit'; TableType = CRM; Description = 'Unit of measure.'; DataClassification = CustomerContent; fields { field(1; UnitId; Guid) { ExternalName = 'msdyn_unitid'; ExternalType = 'Uniqueidentifier'; ExternalAccess = Insert; Description = 'Unique identifier for entity instances'; Caption = 'Unit'; } field(2; CreatedOn; DateTime) { ExternalName = 'createdon'; ExternalType = 'DateTime'; ExternalAccess = Read; Description = 'Date and time when the record was created.'; Caption = 'Created On'; } field(3; CreatedBy; Guid) { ExternalName = 'createdby'; ExternalType = 'Lookup'; ExternalAccess = Read; Description = 'Unique identifier of the user who created the record.'; Caption = 'Created By'; TableRelation = "CRM Systemuser".SystemUserId; } field(4; ModifiedOn; DateTime) { ExternalName = 'modifiedon'; ExternalType = 'DateTime'; ExternalAccess = Read; Description = 'Date and time when the record was modified.'; Caption = 'Modified On'; } field(5; ModifiedBy; Guid) { ExternalName = 'modifiedby'; ExternalType = 'Lookup'; ExternalAccess = Read; Description = 'Unique identifier of the user who modified the record.'; Caption = 'Modified By'; TableRelation = "CRM Systemuser".SystemUserId; } field(6; CreatedOnBehalfBy; Guid) { ExternalName = 'createdonbehalfby'; ExternalType = 'Lookup'; ExternalAccess = Read; Description = 'Unique identifier of the delegate user who created the record.'; Caption = 'Created By (Delegate)'; TableRelation = "CRM Systemuser".SystemUserId; } field(7; ModifiedOnBehalfBy; Guid) { ExternalName = 'modifiedonbehalfby'; ExternalType = 'Lookup'; ExternalAccess = Read; Description = 'Unique identifier of the delegate user who modified the record.'; Caption = 'Modified By (Delegate)'; TableRelation = "CRM Systemuser".SystemUserId; } field(16; OwnerId; Guid) { ExternalName = 'ownerid'; ExternalType = 'Owner'; Description = 'Owner ID'; Caption = 'Owner'; } field(21; OwningBusinessUnit; Guid) { ExternalName = 'owningbusinessunit'; ExternalType = 'Lookup'; ExternalAccess = Read; Description = 'Unique identifier for the business unit that owns the record'; Caption = 'Owning Business Unit'; TableRelation = "CRM Businessunit".BusinessUnitId; } field(22; OwningUser; Guid) { ExternalName = 'owninguser'; ExternalType = 'Lookup'; ExternalAccess = Read; Description = 'Unique identifier for the user that owns the record.'; Caption = 'Owning User'; TableRelation = "CRM Systemuser".SystemUserId; } field(23; OwningTeam; Guid) { ExternalName = 'owningteam'; ExternalType = 'Lookup'; ExternalAccess = Read; Description = 'Unique identifier for the team that owns the record.'; Caption = 'Owning Team'; TableRelation = "CRM Team".TeamId; } field(25; StateCode; Option) { ExternalName = 'statecode'; ExternalType = 'State'; ExternalAccess = Modify; Description = 'Status of the Unit'; Caption = 'Status'; InitValue = " "; OptionMembers = " ",Active,Inactive; OptionOrdinalValues = -1, 0, 1; } field(27; StatusCode; Option) { ExternalName = 'statuscode'; ExternalType = 'Status'; Description = 'Reason for the status of the Unit'; Caption = 'Status Reason'; InitValue = " "; OptionMembers = " ",Active,Inactive; OptionOrdinalValues = -1, 1, 2; } field(29; VersionNumber; BigInteger) { ExternalName = 'versionnumber'; ExternalType = 'BigInt'; ExternalAccess = Read; Description = 'Version Number'; Caption = 'Version Number'; } field(30; ImportSequenceNumber; Integer) { ExternalName = 'importsequencenumber'; ExternalType = 'Integer'; ExternalAccess = Insert; Description = 'Sequence number of the import that created this record.'; Caption = 'Import Sequence Number'; } field(31; OverriddenCreatedOn; Date) { ExternalName = 'overriddencreatedon'; ExternalType = 'DateTime'; ExternalAccess = Insert; Description = 'Date and time that the record was migrated.'; Caption = 'Record Created On'; } field(32; TimeZoneRuleVersionNumber; Integer) { ExternalName = 'timezoneruleversionnumber'; ExternalType = 'Integer'; Description = 'For internal use only.'; Caption = 'Time Zone Rule Version Number'; } field(33; UTCConversionTimeZoneCode; Integer) { ExternalName = 'utcconversiontimezonecode'; ExternalType = 'Integer'; Description = 'Time zone code that was in use when the record was created.'; Caption = 'UTC Conversion Time Zone Code'; } field(34; Name; Text[100]) { ExternalName = 'msdyn_name'; ExternalType = 'String'; Description = 'The name of the custom entity.'; Caption = 'Name'; } field(35; BaseUnit; Guid) { ExternalName = 'msdyn_baseunit'; ExternalType = 'Lookup'; Description = 'The base or primary unit of the unit group that the entity belongs to.'; Caption = 'Base Unit'; TableRelation = "Sust. Unit".UnitId; } field(36; ConversionFactor; Decimal) { AutoFormatType = 0; ExternalName = 'msdyn_conversionfactor'; ExternalType = 'Decimal'; Description = 'Conversion factor to convert to the base unit.'; Caption = 'Conversion Factor'; } field(37; IsBaseUnit; Boolean) { ExternalName = 'msdyn_isbaseunit'; ExternalType = 'Boolean'; Description = 'Indicates whether the unit is the base unit for the associated unit group.'; Caption = 'Is Base Unit'; } field(39; ShouldValidateCreate; Boolean) { ExternalName = 'msdyn_shouldvalidatecreate'; ExternalType = 'Boolean'; Description = 'Describes whether the plugin should run validations on create of a unit record. For internal use only.'; Caption = 'Should Validate Create'; } field(42; BaseUnitName; Text[100]) { FieldClass = FlowField; CalcFormula = lookup("Sust. Unit".Name where(UnitId = field(BaseUnit))); ExternalName = 'msdyn_baseunitname'; ExternalType = 'String'; ExternalAccess = Read; } } keys { key(PK; UnitId) { Clustered = true; } key(Name; Name) { } } fieldgroups { fieldgroup(DropDown; Name) { } }}