I am working in Business Central v25 (GB) and want to add the new Doc. Attachment List Factbox to my Item Journal Line table and page. My issue is with adding attachments:
I can only get file uploads to work using a codeunit that leverages the older Document Attachment Factbox,
But this approach now triggers a deprecation warning:
Page 'Document Attachment Factbox' is marked for removal. Reason: The "Document Attachment FactBox" has been replaced by "Doc. Attachment List Factbox", which supports multiple file uploads. Tag: 25.0.
Question:
Has anyone successfully implemented file upload/add attachment functionality using the new Doc. Attachment List Factbox on a custom table or page (e.g., Item Journal Line)?
- How should the events and
RecordRef handling be set up to allow uploads?
- Are there any working AL code samples or guidance on replacing the old FactBox functionality?
Any examples or best practices for this scenario would be greatly appreciated!