{"title":"Table 5062 Attachment, events","url":"https://jonas-paprotka.de/ref/table/5062-attachment/events/","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":"table","id":5062,"name":"Attachment","app":"Base Application","versions":"17-29","url":"https://jonas-paprotka.de/ref/table/5062-attachment/","json":"https://jonas-paprotka.de/ref/table/5062-attachment.json"},"aspect":"events","total":13,"rows":[{"name":"OnBeforeRunAttachment","sig":"(var Record Segment Line, Text[260], Boolean, Boolean, Boolean, var Boolean)","named":"(var SegLine: Record \"Segment Line\"; WordCaption: Text[260]; IsTemporary: Boolean; IsVisible: Boolean; Handler: Boolean; var iSHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":{"state":"Pending","reason":"Replaced with event OnBeforeShowAttachment.","tag":"20.0"},"range":"17-22","first":17,"last":22,"obsoleteSince":19,"spans":[{"from":17,"to":18,"named":"(var SegLine: Record \"Segment Line\"; WordCaption: Text[260]; IsTemporary: Boolean; IsVisible: Boolean; Handler: Boolean; var iSHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null},{"from":19,"to":19,"named":"(var SegLine: Record \"Segment Line\"; WordCaption: Text[260]; IsTemporary: Boolean; IsVisible: Boolean; Handler: Boolean; var iSHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":{"state":"Pending","reason":"Replaced by event OnBeforeShowAttachment","tag":"19.0"}},{"from":20,"to":22,"named":"(var SegLine: Record \"Segment Line\"; WordCaption: Text[260]; IsTemporary: Boolean; IsVisible: Boolean; Handler: Boolean; var iSHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":{"state":"Pending","reason":"Replaced with event OnBeforeShowAttachment.","tag":"20.0"}}]},{"name":"OnBeforeExportAttachmentToServerFile","sig":"(var Record Attachment, Text, var Boolean, var Boolean)","named":"(var Attachment: Record Attachment; ExportToFile: Text; var Result: Boolean; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"17-29","first":17,"last":29,"obsoleteSince":null,"spans":[{"from":17,"to":29,"named":"(var Attachment: Record Attachment; ExportToFile: Text; var Result: Boolean; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnBeforeImportAttachmentFromServerFile","sig":"(var Record Attachment, Text, var Boolean, var Boolean)","named":"(var Attachment: Record Attachment; ImportFromFile: Text; var Result: Boolean; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"17-26","first":17,"last":26,"obsoleteSince":null,"spans":[{"from":17,"to":26,"named":"(var Attachment: Record Attachment; ImportFromFile: Text; var Result: Boolean; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnRunAttachmentOnBeforeWordManagementRunMergedDocument","sig":"(var Record Attachment, var Boolean)","named":"(var Attachment: Record Attachment; var Handler: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":{"state":"Pending","reason":"The event is no longer referenced as the code path calls .Net that is not supported on non-Windows client types. If needed, request a new event in ShowAttachment procedure.","tag":"20.0"},"range":"17-22","first":17,"last":22,"obsoleteSince":20,"spans":[{"from":17,"to":19,"named":"(var Attachment: Record Attachment; var Handler: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null},{"from":20,"to":22,"named":"(var Attachment: Record Attachment; var Handler: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":{"state":"Pending","reason":"The event is no longer referenced as the code path calls .Net that is not supported on non-Windows client types. If needed, request a new event in ShowAttachment procedure.","tag":"20.0"}}]},{"name":"OnBeforeShowAttachment","sig":"(var Record Segment Line, Text, var Boolean)","named":"(var SegLine: Record \"Segment Line\"; WordCaption: Text; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"18-20","first":18,"last":20,"obsoleteSince":null,"spans":[{"from":18,"to":20,"named":"(var SegLine: Record \"Segment Line\"; WordCaption: Text; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnAfterCopyAttachmentAsFile","sig":"(var Record Attachment, var Record Attachment)","named":"(var FromAttachment: Record Attachment; var ToAttachment: Record Attachment)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"19-29","first":19,"last":29,"obsoleteSince":null,"spans":[{"from":19,"to":29,"named":"(var FromAttachment: Record Attachment; var ToAttachment: Record Attachment)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnBeforeShowAttachment","sig":"(var Record Segment Line, Text, var Boolean, var Record Attachment)","named":"(var SegLine: Record \"Segment Line\"; WordCaption: Text; var IsHandled: Boolean; var Attachment: Record Attachment)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"21-29","first":21,"last":29,"obsoleteSince":null,"spans":[{"from":21,"to":29,"named":"(var SegLine: Record \"Segment Line\"; WordCaption: Text; var IsHandled: Boolean; var Attachment: Record Attachment)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnShowAttachmentOnAfterCalcAttachmentFile","sig":"(var Record Attachment)","named":"(var Attachment: Record Attachment)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"21-29","first":21,"last":29,"obsoleteSince":null,"spans":[{"from":21,"to":29,"named":"(var Attachment: Record Attachment)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnBeforeOpenAttachment","sig":"(var Record Attachment, var Text[260], Boolean, Code[10], var Boolean)","named":"(var Attachment: Record Attachment; var Caption: Text[260]; IsTemporary: Boolean; LanguageCode: Code[10]; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"23-29","first":23,"last":29,"obsoleteSince":null,"spans":[{"from":23,"to":29,"named":"(var Attachment: Record Attachment; var Caption: Text[260]; IsTemporary: Boolean; LanguageCode: Code[10]; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnBeforeWizSaveAttachment","sig":"(var Record Attachment, var Boolean)","named":"(var Attachment: Record Attachment; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"23-29","first":23,"last":29,"obsoleteSince":null,"spans":[{"from":23,"to":29,"named":"(var Attachment: Record Attachment; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnBeforeWizEmbeddAttachment","sig":"(var Record Attachment, Record Attachment, var Boolean)","named":"(var Attachment: Record Attachment; FromAttachment: Record Attachment; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"23-29","first":23,"last":29,"obsoleteSince":null,"spans":[{"from":23,"to":29,"named":"(var Attachment: Record Attachment; FromAttachment: Record Attachment; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnBeforeConstDiskFileName","sig":"(var Record Attachment, var Text)","named":"(var Attachment: Record Attachment; var DiskFileName: Text)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"25-29","first":25,"last":29,"obsoleteSince":null,"spans":[{"from":25,"to":29,"named":"(var Attachment: Record Attachment; var DiskFileName: Text)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnBeforeImportAttachmentFromServerFile","sig":"(var Record Attachment, Text, var Boolean, Boolean, Boolean, var Boolean)","named":"(var Attachment: Record Attachment; ImportFromFile: Text; var Result: Boolean; IsTemporary: Boolean; Overwrite: Boolean; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"(var Attachment: Record Attachment; ImportFromFile: Text; var Result: Boolean; IsTemporary: Boolean; Overwrite: Boolean; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]}]}