web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Use power Automate to Attach a file to "VendorDocumentAttachments" Entity

(0) ShareShare
ReportReport
Posted on by 15

Hi, 

  The process I am trying to build in the Power Automate is: 

1. Trigger When a new email is received in the Companies outlook with a PDF 

2. Use the AI invoice reader to read the invoice and determine "Vendor", Amount, PO# etc...

3. Create a Pending vendor invoice header in D365 FO

4. Attach the invoice file to the Pending vendor invoice 

I have successfully created the steps 1 to 3 above, but I am not able to attach the file (STEP 4). I am using the "VendorDocumentAttachments" entity and I cannot get around the errors it gives me. 

"An error has occurred. Write failed for table row of type 'VendorDocumentAttachmentEntity'. Infolog: Warning: 'FileContents' is required when attaching a file; Warning: validateWrite failed on data source 'DocuRefEntity (DocuRefEntity)'."
The error to me makes sense because I cannot add the Invoice reference to the Automate step: 
1856.pastedimage1664665802175v1.png
I am using "D365 FO 10.0.27" and I have enabled all the features related to Vendor invoice automation. 
I would really appreciate any kind if direction to solve this.
 
Thanks 
Ziad
I have the same question (0)
  • Community Member Profile Picture
    on at

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 467 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 420 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 241 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans