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, ...
Suggested Answer

Downloading Vendor Invoices via API

(0) ShareShare
ReportReport
Posted on by 2
I am looking for a way to download vendor invoices.  I can find invoices headers/lines with data/VendorInvoiceHeaders and data/VendorInvoiceLines.  However, I am not able to find where to download the attachments for those invoices.  VendorInvoiceDocumentAttachment is used for uploading, but I want to download them.
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    307,097 Super User 2026 Season 2 on at
    Hi Amacourek,
     
    There is an entity called VendorInvoiceDocumentAttachments that you can use.
  • AMacourek Profile Picture
    2 on at
    I did try using VendorInvoiceDocumentAttachment in my UAT environment and I got the following response:
     
    error": {
            "code": "",
            "message": "An error has occurred.",
            "innererror": {
                "message": "",
                "type": "Microsoft.Dynamics.Ax.Xpp.ClrErrorException",
                "stacktrace": "   at Microsoft.Dynamics.Ax.MSIL.Interop.throwException(Int32 ExceptionValue, interpret* ip)\r\n   at Microsoft.Dynamics.Ax.MSIL.cqlCursorIL.NextRec(IntPtr table)\r\n   at Microsoft.Dynamics.Ax.Xpp.Common.NextRec() 
    ...
  • André Arnaud de Calavon Profile Picture
    307,097 Super User 2026 Season 2 on at
    Hi AMacourek,
     
    I'm getting the same error with this entity. I will have a quick look tomorrow morning if I can find something that can cause this behavior.

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