Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Unanswered

Uploading Attachments for Unique Table in Business Central

Posted on by 16
I am developing an extension that will have several unique tables, each with their own pages and api's. As such, I want to be able to upload an attachment for any record within any of the tables.

I'll incorporate a fact box for all of the tables that'll allow users to view the corresponding attachment for that record within that table.

Now, I have used the Document Attachment Resource to upload extensions. However, I cannot extend the Document Attachment Resource to include any unique tables.

As such, how would I go about implementing the above in Business Central.

Just to summarise: I've created the table "Example Users", and a corresponding Page "Example Users Page" and "Example Users API" . Within the page, there is a fact box that'll allow a user on BC to upload an attachment for a specific user on the "Example User Page". I want to extend this upload functionality to an API. However, I cannot use the Document Attachment Resource as it limits me to a set option of Document / Parent Types. Now, what is the best way of moving forward with this.
  • YUN ZHU Profile Picture
    YUN ZHU 73,696 Super User 2024 Season 2 on at
    Uploading Attachments for Unique Table in Business Central
    Hi, First, please refer to the following link for how to add Attachments to a custom page.
    Dynamics 365 Business Central: How to add Attachments, Links, Notes Factbox to any pages
     
    But Attachments do not have a standard API (Incoming Document does)
    If you want to use Document Attachment, this requires a custom API.
    API Page Type
    https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-api-pagetype
     
    Hope this helps.
    Thanks.
    ZHU
  • Valentin Castravet Profile Picture
    Valentin Castravet 24,822 Super User 2024 Season 2 on at
    Uploading Attachments for Unique Table in Business Central
     

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans