I am developing an extension that will have several unique tables, each with their own pages and api's. As such, I want to be able to upload an attachment for any record within any of the tables.
I'll incorporate a fact box for all of the tables that'll allow users to view the corresponding attachment for that record within that table.
Now, I have used the Document Attachment Resource to upload extensions. However, I cannot extend the Document Attachment Resource to include any unique tables.
As such, how would I go about implementing the above in Business Central.
Just to summarise: I've created the table "Example Users", and a corresponding Page "Example Users Page" and "Example Users API" . Within the page, there is a fact box that'll allow a user on BC to upload an attachment for a specific user on the "Example User Page". I want to extend this upload functionality to an API. However, I cannot use the Document Attachment Resource as it limits me to a set option of Document / Parent Types. Now, what is the best way of moving forward with this.