Please add an event handler in Document Attachment Mgmt codeunit, function CopyAttachment to be able to skip the CopyAttachment function entirely. We need this to be able to Make Order/Invoice/... when using Azure Blob Storage.
procedure CopyAttachments(var FromRecRef: RecordRef; var ToRecRef: RecordRef)
var
FromDocumentAttachment: Record "Document Attachment";
ToDocumentAttachment: Record "Document Attachment";
FromFieldRef: FieldRef;
ToFieldRef: FieldRef;
FromDocumentType: Enum "Incoming Document Type";
FromLineNo: Integer;
FromNo: Code[20];
ToNo: Code[20];
ToDocumentType: Enum "Incoming Document Type";
ToLineNo: Integer;
begin
PLEASE ADD EVENT HANDLER RIGHT HERE TO BE ABLE TO SKIP THIS PROCEDURE WITH IF ISHANDLED THEN EXIT.
FromDocumentAttachment.SetRange("Table ID", FromRecRef.Number);
if FromDocumentAttachment.IsEmpty() then
exit;
case FromRecRef.Number() of
DATABASE::Customer,
DATABASE::Vendor,
DATABASE::Item:
Comments
Great idea! This would be helpful.
Category: Development
Business Central Team (administrator)
Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future. Best regards, Business Central Team