{"title":"Codeunit 5070 Custom Word Template Fields, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/5070-custom-word-template-fields/points/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"codeunit","id":5070,"name":"Custom Word Template Fields","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/5070-custom-word-template-fields/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/5070-custom-word-template-fields/source/","path":"src/Layers/W1/BaseApp/CRM/Contact/CustomWordTemplateFields.Codeunit.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"codeunit:9981":{"name":"Word Template Custom Field","url":"https://jonas-paprotka.de/ref/codeunit/9981-word-template-custom-field/"},"codeunit:9983":{"name":"Word Template Field Value","url":"https://jonas-paprotka.de/ref/codeunit/9983-word-template-field-value/"},"table:5050":{"name":"Contact","url":"https://jonas-paprotka.de/ref/table/5050-contact/"}},"procs":[{"name":"OnGetCustomFieldNames","line":19,"kind":"procedure","access":"local","params":1,"steps":[[21,"ext","codeunit",9981,"GetTableID",0],[22,"ext","codeunit",9981,"AddField",1],[23,"ext","codeunit",9981,"AddField",1]]},{"name":"OnGetCustomRecordValues","line":28,"kind":"procedure","access":"local","params":1,"steps":[[34,"ext","codeunit",9983,"GetRecord",0],[38,"call","TryGetSalutation",3],[39,"ext","codeunit",9983,"AddFieldValue",2],[40,"call","TryGetSalutation",3],[41,"ext","codeunit",9983,"AddFieldValue",2]]},{"name":"TryGetSalutation","line":46,"kind":"procedure","access":"local","params":3,"steps":[[51,"ext","table",5050,"GetSalutation",2],[53,"ext","table",5050,"GetSalutation",2]]}]}