Codeunit 5070 Custom Word Template Fields
Source AL, 57 lines
src/Layers/W1/BaseApp/CRM/Contact/CustomWordTemplateFields.Codeunit.allines 10 to 25 of 57, Copyright (c) Microsoft Corporation. MIT
codeunit 5070 "Custom Word Template Fields"{ Access = internal; var FormalSalutationTxt: Label 'Formal Salutation', Locked = true; InformalSalutationTxt: Label 'Informal Salutation', Locked = true; [EventSubscriber(ObjectType::Codeunit, Codeunit::"Word Template", 'OnGetCustomFieldNames', '', false, false)] local procedure OnGetCustomFieldNames(WordTemplateCustomField: Codeunit "Word Template Custom Field") begin if WordTemplateCustomField.GetTableID() = Database::Contact then begin WordTemplateCustomField.AddField(FormalSalutationTxt); WordTemplateCustomField.AddField(InformalSalutationTxt); end; end;