Hi,
I have start implementing business central API, I have successfully implemented '/salesInvoices' and '/salesInvoiceLines' data upload.
However, I have faced issue with attaching document to SalesInvoice in the endpoint '/attachments'.
Whatever document I upload, I am getting the error "The record in table Unlinked Attachment already exists.
I used following request
Body:
{ “parentId”: “5a086bc7-195f-eb11-89f9-0022481ab2d5”, “fileName”: “Example.pdf”}
It was advised to retrieve the parent Id from the first successful attachment creation and use that parent Id in the PATCH request instead of creating a new one.
How to do that ? Which request I can use to retrieve the parent Id from the first successful attachment creation ?
Thanks in advance
Hi DAnny3211
There is nothing, just message that shows to ask at the different forum
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,228 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156