{"title":"Codeunit 4600 SOA Document Events, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/4600-soa-document-events/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-30","object":{"type":"codeunit","id":4600,"name":"SOA Document Events","app":"Sales Order Agent","url":"https://jonas-paprotka.de/ref/codeunit/4600-soa-document-events/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/4600-soa-document-events/source/","path":"src/Apps/W1/SalesOrderAgent/app/src/Integration/SOADocumentEvents.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:4590":{"name":"SOA Billing","url":"https://jonas-paprotka.de/ref/codeunit/4590-soa-billing/"},"codeunit:8703":{"name":"Feature Telemetry","url":"https://jonas-paprotka.de/ref/codeunit/8703-feature-telemetry/"},"codeunit:4400":{"name":"SOA Setup","url":"https://jonas-paprotka.de/ref/codeunit/4400-soa-setup/"},"table:1173":{"name":"Document Attachment","url":"https://jonas-paprotka.de/ref/table/1173-document-attachment/"}},"procs":[{"name":"OnChangeSalesHeader","line":23,"kind":"procedure","access":"local","params":1,"steps":[[30,"ext","codeunit",4590,"LogOrderModified",2],[32,"ext","codeunit",4590,"LogQuoteModified",2],[33,"call","AddAttachmentsToDocument",1]]},{"name":"AddAttachmentsToDocument","line":37,"kind":"procedure","access":"local","params":1,"steps":[[59,"call","CopyAttachmentToDocument",2],[65,"ext","codeunit",8703,"LogUsage",4],[65,"ext","codeunit",4400,"GetFeatureName",0]]},{"name":"CopyAttachmentToDocument","line":70,"kind":"procedure","access":"local","params":2,"steps":[[92,"call","LogSkippedAttachment",2],[98,"call","LogSkippedAttachment",2],[108,"call","CopyToDocument",3]]},{"name":"LogSkippedAttachment","line":113,"kind":"procedure","access":"local","params":2,"steps":[[122,"ext","codeunit",8703,"LogError",6],[122,"ext","codeunit",4400,"GetFeatureName",0]]},{"name":"CopyToDocument","line":125,"kind":"procedure","access":"local","params":3,"steps":[[130,"ext","table",1173,"SaveAttachmentFromStream",3]]}]}