Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Unanswered

Uploading Attachments for Unique Table in Business Central

Posted on by 9
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.
Categories:
  • YUN ZHU Profile Picture
    YUN ZHU 64,086 Super User 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 7,109 Super User on at
    Uploading Attachments for Unique Table in Business Central
     

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,914 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,549 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans