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 :
Small and medium business | Business Central, N...
Answered

Post to Document Attachment / Custom Table via API

(8) ShareShare
ReportReport
Posted on by 19
Hi Everyone,

Can someone help with the code of a custom API to upload a attachment to the table "1173 - Document Attchament"? The payload will be:
Id(if of my custom table), fileName, fileExtension, contentBase64.

The idea here is, once a record are created in the custom table, have a api to post attchaments.
 
I was able to put the card page and list page to display the controls to exibht the attachments, notes and links and supporting submit attachments via BC UI.

Thank You.
I have the same question (0)
  • Verified answer
    YUN ZHU Profile Picture
    99,086 Super User 2026 Season 1 on at
    Hi, hope the following helps. There is an example of uploading an attachment.
    Dynamics 365 Business Central: Using OData V4 unbound action (Codeunit API?) to communicate and exchange data seamlessly
     
    Thanks.
    ZHU
  • Suggested answer
    Sohail Ahmed Profile Picture
    11,169 Super User 2026 Season 1 on at
    Hope this will give you a hint to achieve your goal. There is an example of uploading an attachment via API
     
     
     
     
    ✅ Mark the checkbox below if this answer helped you.
  • Suggested answer
    Mansi Soni Profile Picture
    8,951 Super User 2026 Season 1 on at
  • Suggested answer
    Sumit Singh Profile Picture
    11,757 Super User 2026 Season 1 on at

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,005 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,148 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 557 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans