Page 5334 CRM Option Mapping, source in 29

Source29

src/Layers/W1/BaseApp/Integration/Dataverse/CRMOptionMapping.Page.al56 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.Integration.Dataverse;

page 5334 "CRM Option Mapping"
{
    ApplicationArea = Suite;
    UsageCategory = Lists;
    Caption = 'Dataverse Option Mapping';
    AdditionalSearchTerms = 'CDS Option Mapping, Common Data Service Option Mapping';
    Editable = false;
    PageType = List;
    ShowFilter = false;
    SourceTable = "CRM Option Mapping";
    SourceTableView = sorting("Integration Table ID", "Integration Field ID", "Option Value");

    layout
    {
        area(content)
        {
            repeater(Group)
            {
                field("Record"; RecordIDText)
                {
                    ApplicationArea = Suite;
                    Caption = 'Record';
                    ToolTip = 'Specifies the record in Business Central that is mapped to the option value in Dataverse.';
                }
                field("Option Value"; Rec."Option Value")
                {
                    ApplicationArea = Suite;
                }
                field("Option Value Caption"; Rec."Option Value Caption")
                {
                    ApplicationArea = Suite;
                }
            }
        }
    }

    actions
    {
    }

    trigger OnAfterGetRecord()
    begin
        RecordIDText := Format(Rec."Record ID");
    end;

    var
        RecordIDText: Text;
}