{"title":"Codeunit 5825 Marketing Text, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/5825-marketing-text/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":5825,"name":"Marketing Text","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/5825-marketing-text/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/5825-marketing-text/source/","path":"src/Layers/W1/BaseApp/Inventory/MarketingText/MarketingText.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:2000000132":{"name":"Entity Text","url":"https://jonas-paprotka.de/ref/table/2000000132-entity-text/"},"codeunit:2010":{"name":"Entity Text","url":"https://jonas-paprotka.de/ref/codeunit/2010-entity-text/"},"page:5836":{"name":"Copilot Marketing Text","url":"https://jonas-paprotka.de/ref/page/5836-copilot-marketing-text/"},"page:5839":{"name":"Modify Marketing Text","url":"https://jonas-paprotka.de/ref/page/5839-modify-marketing-text/"}},"procs":[{"name":"EditMarketingText","line":13,"kind":"procedure","params":1,"steps":[[29,"write",2000000132,"Insert"],[35,"write",2000000132,"Insert"],[44,"write",2000000132,"Modify"]]},{"name":"BuildFacts","line":95,"kind":"procedure","access":"local","params":2,"steps":[[107,"call","AddItemAttributeFacts",2]]},{"name":"CreateWithCopilot","line":110,"kind":"procedure","access":"internal","params":3,"steps":[[119,"ext","codeunit",2010,"CanSuggest",0],[120,"ext","codeunit",2010,"OnRequestEntityContext",7],[121,"ext","page",5836,"SetItemFacts",1],[122,"ext","page",5836,"SetTone",1],[123,"ext","page",5836,"SetTextFormat",1],[124,"ext","page",5836,"SetPromptMode",1],[127,"ext","codeunit",2010,"UpdateText",2],[127,"ext","page",5836,"GetMarketingText",0],[128,"write",2000000132,"Modify"]]},{"name":"OnRequestEntityContext","line":136,"kind":"procedure","access":"local","params":7,"steps":[[160,"call","BuildFacts",2]]},{"name":"OnEditEntityTextWithTriggerAction","line":175,"kind":"procedure","access":"local","params":4,"steps":[[195,"run","page",5839],[197,"call","CreateWithCopilot",3]]}]}