As the title says, I've been racking my brain trying to figure out a way to expose a url to the attachment much like how the "Incoming Document Attachment" table (133) does.
For example, in the JSON response I get back from using the "Incoming Document Attachment" endpoint, I get this back:
{
"@odata.context": "..extension endpoint => companies(555)/incomingDocumentAttachments",
"value": [
{
...
"documentContent@odata.mediaEditLink": "..extension endpoint => companies(555)/incomingDocumentFiles(777)/documentContent",
"documentContent@odata.mediaReadLink": "..extension endpoint => companies(555)/incomingDocumentFiles(777)/documentContent",
}
]
}
I'm trying to find an api endpoint to expose a link to download the document attachment the same way that the incoming document attachment does.
Any help would be much appreciated!