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

Announcements

No record found.

News and Announcements icon
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
  • 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 366

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 360 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans