Table 5068 Salutation, source in 29

Source29

src/Layers/W1/BaseApp/CRM/Setup/Salutation.Table.al49 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.CRM.Setup;

table 5068 Salutation
{
    Caption = 'Salutation';
    DataClassification = CustomerContent;
    LookupPageID = Salutations;

    fields
    {
        field(1; "Code"; Code[10])
        {
            Caption = 'Code';
            ToolTip = 'Specifies the salutation code.';
            NotBlank = true;
        }
        field(2; Description; Text[100])
        {
            Caption = 'Description';
            ToolTip = 'Specifies the description of the salutation.';
        }
    }

    keys
    {
        key(Key1; "Code")
        {
            Clustered = true;
        }
    }

    fieldgroups
    {
    }

    trigger OnDelete()
    var
        SalutationFormula: Record "Salutation Formula";
    begin
        SalutationFormula.SetRange("Salutation Code", Code);
        SalutationFormula.DeleteAll();
    end;
}