Skip to main content
Suggested answer

Custom API add attachement

editSubscribe (0) ShareShare
Posted on by 30


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.