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

Cannot programmatically upload and post attachments to the associated orders in MS Dynamics 365 BC from an external information system

(0) ShareShare
ReportReport
Posted on by

Hello, 

We're using Microsoft Dynamics 365 Business Central and have an external information system which is used for order entry. In another words, any new orders, which eventually will become posted sales invoices in MS Dyn 365 BC,  are created from our external information system and will be posted to MS Dyn 365 BC using available APIs.

However, one of issues is that we're unable to locate an API that also lets us programmatically upload supportive documents and attach them to the associated orders in Business Central. Does anyone know a way of programmatically accomplishing the uploading/attaching of files to sales orders?

Categories:
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    There's not a standard API for handling attachments. You can create your custom function (codeunit) exposed via web service that writes a BLOB data to Table 1173 Document Attachment Table.

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