Skip to main content
Suggested answer

Custom API add attachement

editSubscribe (0) ShareShare
ReportReport
Posted on by 30

Hello,

I am trying to add an attachement to a purchase order through a web service in business central.

I have tried the "attachements" api and this api can only add documents in the "Incoming documents" which only support certain document types (journal, purchase invoice).

So now I am trying to add custom APIs to add this attachement to the purchase order.

Does anyone have a documentation on how to do this?

I suppose an entry needs to be created in the "Tenant media" table and then in the "Document attachement" table but I am not sure of this.

Thanks for your help.

Omar

Categories: