Table 6242 Sust. Assessment
src/Apps/W1/Sustainability/app/src/CRM/SustAssessment.Table.al255 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 6242 "Sust. Assessment"{ Caption = 'Assessment'; ExternalName = 'msdyn_assessment'; TableType = CRM; Description = 'Captures information for a specific assessment'; DataClassification = CustomerContent; fields { field(1; AssessmentId; Guid) { ExternalName = 'msdyn_assessmentid'; ExternalType = 'Uniqueidentifier'; ExternalAccess = Insert; Description = 'Unique identifier for entity instances'; Caption = 'Assessment'; } 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'; 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'; 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 = 'Name'; Caption = 'Name'; } field(38; AssessmentStatus; Option) { ExternalName = 'msdyn_assessmentstatus'; ExternalType = 'Picklist'; Description = 'Assessment Status'; Caption = 'Assessment Status'; InitValue = Draft; OptionMembers = Draft,SubmittedForApproval,Completed; OptionOrdinalValues = 419550000, 419550001, 419550002; } field(40; CompanyIdentifier; Text[100]) { ExternalName = 'msdyn_companyidentifier'; ExternalType = 'String'; Description = 'Identifier of the entity preparing the report'; Caption = 'Company Identifier'; } field(41; RequirementsCreationState; Option) { ExternalName = 'msdyn_requirementscreationstate'; ExternalType = 'Picklist'; Description = 'Flag to indicate whether the process to copy over requirements from the standard, has started, succeeded or failed'; Caption = 'Requirements Creation State'; InitValue = " "; OptionMembers = " ",Succeeded,Failed; OptionOrdinalValues = -1, 419550001, 419550002; } field(44; Period; Guid) { ExternalName = 'msdyn_period'; ExternalType = 'Lookup'; Description = 'Period for assessment'; Caption = 'Period'; TableRelation = "Sust. Range Period".RangePeriodId; } field(45; Standard; Guid) { ExternalName = 'msdyn_standard'; ExternalType = 'Lookup'; Description = 'Standard'; Caption = 'Standard'; TableRelation = "Sust. Standard".StandardId; } field(48; PeriodName; Text[100]) { FieldClass = FlowField; CalcFormula = lookup("Sust. Range Period".Name where(RangePeriodId = field(Period))); ExternalName = 'msdyn_periodname'; ExternalType = 'String'; ExternalAccess = Read; } field(49; StandardName; Text[150]) { FieldClass = FlowField; CalcFormula = lookup("Sust. Standard".Name where(StandardId = field(Standard))); ExternalName = 'msdyn_standardname'; ExternalType = 'String'; ExternalAccess = Read; } } keys { key(PK; AssessmentId) { Clustered = true; } key(Name; Name) { } } fieldgroups { fieldgroup(DropDown; Name) { } }}