Table 6244 Sust. Assessment Requirement

Sustainability, Microsoft.Sustainability.CRM

src/Apps/W1/Sustainability/app/src/CRM/SustAssessmentRequirement.Table.al238 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 6244 "Sust. Assessment Requirement"{    Caption = 'Assessment Requirement';    ExternalName = 'msdyn_assessmentrequirement';    TableType = CRM;    Description = 'Captures information for a specific assessment requirement';    DataClassification = CustomerContent;    fields    {        field(1; AssessmentRequirementId; Guid)        {            ExternalName = 'msdyn_assessmentrequirementid';            ExternalType = 'Uniqueidentifier';            ExternalAccess = Insert;            Description = 'Unique identifier for entity instances';            Caption = 'Assessment Requirement';        }        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 Assessment Requirement';            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 Assessment Requirement';            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[850])        {            ExternalName = 'msdyn_name';            ExternalType = 'String';            Description = 'Name';            Caption = 'Name';        }        field(37; Assessment; Guid)        {            ExternalName = 'msdyn_assessment';            ExternalType = 'Lookup';            Description = 'Assessment';            Caption = 'Assessment';            TableRelation = "Sust. Assessment".AssessmentId;        }        field(38; RequirementStatus; Option)        {            ExternalName = 'msdyn_requirementstatus';            ExternalType = 'Picklist';            Description = 'Requirement status';            Caption = 'Requirement Status';            InitValue = Draft;            OptionMembers = Draft,SubmittedForApproval,Completed;            OptionOrdinalValues = 419550000, 419550001, 419550002;        }        field(40; StandardRequirement; Guid)        {            ExternalName = 'msdyn_standardrequirement';            ExternalType = 'Lookup';            Description = 'Standard requirement';            Caption = 'Standard Requirement';            TableRelation = "Sust. Standard Requirement".StandardRequirementId;        }        field(48; AssessmentName; Text[100])        {            FieldClass = FlowField;            CalcFormula = lookup("Sust. Assessment".Name where(AssessmentId = field(Assessment)));            ExternalName = 'msdyn_assessmentname';            ExternalType = 'String';            ExternalAccess = Read;        }        field(50; StandardRequirementName; Text[830])        {            FieldClass = FlowField;            CalcFormula = lookup("Sust. Standard Requirement".Name where(StandardRequirementId = field(StandardRequirement)));            ExternalName = 'msdyn_standardrequirementname';            ExternalType = 'String';            ExternalAccess = Read;        }    }    keys    {        key(PK; AssessmentRequirementId)        {            Clustered = true;        }        key(Name; Name)        {        }    }    fieldgroups    {        fieldgroup(DropDown; Name)        {        }    }}