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

Announcements

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
    101,995 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,177 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
    10,176 Super User 2026 Season 1 on at
  • Suggested answer
    Sumit Singh Profile Picture
    11,797 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May 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,371 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,806 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,371

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans