{"title":"Codeunit 4311 Agent Task Msg. Builder Impl., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/4311-agent-task-msg-builder-impl/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":4311,"name":"Agent Task Msg. Builder Impl.","app":"System Application","url":"https://jonas-paprotka.de/ref/codeunit/4311-agent-task-msg-builder-impl/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/4311-agent-task-msg-builder-impl/source/","path":"src/System Application/App/Agent/Interaction/Internal/AgentTaskMsgBuilderImpl.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:4300":{"name":"Agent Task Impl.","url":"https://jonas-paprotka.de/ref/codeunit/4300-agent-task-impl/"},"codeunit:4308":{"name":"Agent Message Impl.","url":"https://jonas-paprotka.de/ref/codeunit/4308-agent-message-impl/"},"table:2000000274":{"name":"Agent Task File","url":"https://jonas-paprotka.de/ref/table/2000000274-agent-task-file/"}},"procs":[{"name":"Create","line":94,"kind":"procedure","params":1,"steps":[[102,"call","VerifyMandatoryFieldsSet",0],[104,"call","SanitizeMessage",1],[105,"ext","codeunit",4300,"AddMessage",5],[116,"ext","codeunit",4308,"SetIgnoreAttachment",1],[117,"ext","codeunit",4308,"AddAttachment",3],[121,"ext","codeunit",4300,"SetTaskStatusToReadyIfPossible",1]]},{"name":"AddAttachment","line":147,"kind":"procedure","params":5,"steps":[[155,"write",2000000274,"Insert"],[158,"write",2000000274,"Modify"]]},{"name":"AddAttachment","line":192,"kind":"procedure","params":3,"steps":[[209,"call","GetContentTypeFromFilename",1]]},{"name":"UploadAttachment","line":217,"kind":"procedure","params":0,"steps":[[226,"call","AddAttachment",3],[226,"call","GetContentTypeFromFilename",1]]},{"name":"GetAttachments","line":242,"kind":"procedure","params":1,"steps":[[249,"write",2000000274,"Insert"]]}]}