Hello everyone,
we are currently implementing intercompany transactions in Business Central. When a transaction is created for the intercompany partner, the transaction itself is created correctly in the partner company, but the PDF of the invoice is not attached to the transaction.
At the moment our finance team has to manually download the PDF and attach it to the record in the intercompany transaction. We would like to automate this process.
My idea was to use a Power Automate flow that:
-
Detects the created intercompany transaction (starting from a mailbox), finds the related record in Business Central ,automatically attaches the invoice PDF to the record
Problem
Using the Business Central connector (,,Update an image, file or document (V3)"), I am able to attach the file content only when the Company field is set statically.
However, in our scenario the company must be dynamic, because the flow runs for different companies. When I set the Company dynamically (e.g. via variable or dynamic content):
-
the content field in the attachment action disappears
-
I can no longer upload the PDF
When I set the Company statically, everything works and I can attach the file content without issues.
Question
Is there a way to:
-
attach a PDF document to a Business Central record via Power Automate
-
while using a dynamic Company value?
Or is there another recommended approach to automatically attach the invoice PDF to intercompany transactions?
Any suggestions or best practices would be greatly appreciated.
Thank you very much!


Report
All responses (
Answers (