I'd like to link a record in a custom entity (let's call it Customer) to a specific SharePoint document (an M:1 relationship). A document may be related to many different Customers.
I'm not looking to add multiple documents to the Customer record (a 1:M relationship). I know how to do that through the document management facility, and already do so on Customer to accomplish a different requirement.
Is there any way I can do this? Ideally I'd like to be able to select the relevant document from a dropdown on the Customer record form.
I wondered specifically if the entity SharePointDocument (not SharePointDocumentLocation) might be harnessed to provide such a link via a Lookup column on Customer. However, there appear to be no accessible records in this table.
I tried setting up a virtual table to access SharePoint but it seems that that only works on lists rather than libraries.