I have a Business Central v18.0 On-Prem client that wants to use the pdfDocument functionality in an API to download reports.
I have configured my Postman API setup to retrieve the Sales Invoice Data, which worked great. I was able to retrieve the information. Th
http://*********/UAT/api/beta/companies(*********)/salesInvoices(4a504f68-e9a6-ed11-8b9a-00155d001620)
According to the Microsoft Documentation https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_pdfdocument_get we only net to add "pdfDocument" and a link with the report will be returned.
Here is the new URL with pdf documents attached
http://*********/UAT/api/beta/companies(*********)/salesInvoices(4a504f68-e9a6-ed11-8b9a-00155d001620)/pdfDocument
The first time it did work and it did return the URL for the report. The second time I received the following error.
I need to get the reports through a URL. Any assistance to remedy this would be highly appreciated.
Thanks