{"title":"Codeunit 9989 Word Template Field Selection, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/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":9989,"name":"Word Template Field Selection","app":"System Application","url":"https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/","path":"src/System Application/App/Word Templates/src/WordTemplateFieldSelection.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":{"table:9989":{"name":"Word Template Field","url":"https://jonas-paprotka.de/ref/table/9989-word-template-field/"},"codeunit:9981":{"name":"Word Template Custom Field","url":"https://jonas-paprotka.de/ref/codeunit/9981-word-template-custom-field/"},"codeunit:9987":{"name":"Word Template","url":"https://jonas-paprotka.de/ref/codeunit/9987-word-template/"},"page:9992":{"name":"Word Templates Field Selection","url":"https://jonas-paprotka.de/ref/page/9992-word-templates-field-selection/"}},"procs":[{"name":"SetExcludedFields","line":21,"kind":"procedure","params":3,"steps":[[29,"write",9989,"DeleteAll"],[42,"write",9989,"Insert"]]},{"name":"SetIncludeFields","line":46,"kind":"procedure","params":4,"steps":[[54,"write",9989,"Modify"],[66,"write",9989,"Insert"]]},{"name":"GetCustomTableFields","line":82,"kind":"procedure","params":1,"steps":[[88,"ext","codeunit",9981,"SetCurrentTableId",1],[89,"ext","codeunit",9987,"OnGetCustomFieldNames",1],[90,"ext","codeunit",9981,"GetCustomFields",1]]},{"name":"GetSupportedTableFields","line":97,"kind":"procedure","params":1,"steps":[[104,"call","IsFieldSupported",1]]},{"name":"SelectDefaultFieldsForTable","line":109,"kind":"procedure","params":3,"steps":[[117,"write",9989,"DeleteAll"],[129,"write",9989,"Insert"]]},{"name":"CalculateNoSelectedFields","line":157,"kind":"procedure","params":2,"steps":[[170,"ext","codeunit",9981,"SetCurrentTableId",1],[171,"ext","codeunit",9987,"OnGetCustomFieldNames",1],[172,"ext","codeunit",9981,"GetCustomFields",1]]},{"name":"GetAllTableFields","line":183,"kind":"procedure","params":2,"steps":[[192,"write",9989,"DeleteAll"],[198,"call","IsFieldSupported",1],[202,"write",9989,"Insert"],[207,"ext","codeunit",9981,"SetCurrentTableId",1],[208,"ext","codeunit",9987,"OnGetCustomFieldNames",1],[209,"ext","codeunit",9981,"GetCustomFields",1],[215,"write",9989,"Insert"]]},{"name":"ApplyChangesTo","line":219,"kind":"procedure","params":3,"steps":[[223,"write",9989,"DeleteAll"],[230,"write",9989,"Insert"]]},{"name":"CopyExcludeFields","line":234,"kind":"procedure","params":3,"steps":[[245,"write",9989,"Modify"],[249,"call","SelectLegacyDefaultFieldsForTable",2]]},{"name":"ShowFieldSelection","line":252,"kind":"procedure","params":2,"steps":[[256,"ext","page",9992,"SetTemporaryFieldSelection",2],[261,"ext","page",9992,"ApplyChangesTo",1]]},{"name":"SelectLegacyDefaultFieldsForTable","line":264,"kind":"procedure","access":"local","params":2,"steps":[[272,"write",9989,"DeleteAll"],[282,"call","IsFieldSupported",1],[286,"write",9989,"Insert"]]}]}