In Dynamics 365 FO, after selecting Vendor -> Voucher -> ExFlow -> Invoice, an invoice becomes visible.
I need to automate the process of obtaining a direct link to this invoice. Based on the vendor and voucher ID, I need to retrieve information from the invoice attached to this voucher. I am trying to use HTTP requests to accomplish this.
Ideally, at the end, I want to see a table with vendors, vouchers, and invoice links. I have been trying to use a POST HTTP request sent to api/services/GTEDocuFileServices/FileURLService/getURL
, where the record ID was included in the request body. This works in the test environment but not in production. Additionally, the problem is that the record ID of the invoice needs to be known upfront.
Does anyone know how to set up something like this? Perhaps there is a simpler workaround, such as creating an additional entity in Dynamics to store all the information I need.
I would be grateful for any help.
Thank you :)