I am looking for a way to attach a document to a posted vendor invoice in Dynamics Finance & Operations through Power Automate.
I have a flow which imports documents from a Power App to the Vendor Invocie Document Attachment V2 in Dataverse.
However, this table only contains vendor invoices which are not posted yet. As soon as the invoice is posted in dynamics, the document attachements for the invoice are removed.
Now, I would like to attach a document to a posted vendor invoice through Power Automate (either through some Finance & Operations, Dataverse or Odata request).
In order to enable document attachments to posted vendor invoices, I have...
- Activated the active document tables parameters in dynamics
- Added the Vendor Invoice Document Attachment table to the active document table
My first attempt was to add a document via the DocuRef Table and then link the respective recordId, TableIds, ... such that the Document will be visible in the Posted Vendor Invoice.
However I was not able to find or activate the DocuRef entity in Dataverse.
The only entity which comes close to the DocuRefEntity is the BusinessDocumentDocuRefEntity, which seems to be a view of the former.
How can I achieve my goal to attach a document to a posted vendor invoice through Power Automate (odata request?).
I appreciate any help!