web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Business Central forum

Document attachments in Business Central Extension

(0) ShareShare
ReportReport
Posted on by 305

Hi All,

I am developing  an extension for my Business Central tenant. I have a requirement to upload and download documents (such as Excel sheets, word docs, etc.) in the extension (typically inside a fact box).

I went through the material available on the internet for doing this but it is not sufficient for my purpose. Please help me to reach the requirement using AL in VS Code.

Thanks in advance.

Khudeja Husain

Categories:
  • ManishS Profile Picture
    86 on at

    Isn't incoming document workable.

  • khudeja Profile Picture
    305 on at

    Thanks for responding. However, that doesn't meet my requirement. I need to integrate the attachments functionality in my extension page. How can this be achieved using AL code?

  • Amit Bansal Profile Picture
    55 on at
  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Khudeja Husain,

    Unfortunately, in Extensions it becomes fiddly when it is necessary to upload or download File Attachments. The build-in functions of Codeunit “File Mgt.” and Table “Attachment” are not allowed to be used in Extension development. Therefor it is necessary to create own functions. The code below works in every browser.

    Please check this link

    [View:https://www.hannesholst.com/blog/technology/business-central-how-to-upload-and-download-file-attachments-in-extensions/:750:50]

    It will be help full.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans