Skip to main content

Notifications

Announcements

No record found.

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.
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,391 Super User 2024 Season 2 on at
    Downloading Vendor Invoices via API
    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.
  • AMacourek Profile Picture
    AMacourek 2 on at
    Downloading Vendor Invoices via API
    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() 
    ...
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,391 Super User 2024 Season 2 on at
    Downloading Vendor Invoices via API
    Hi Amacourek,
     
    There is an entity called VendorInvoiceDocumentAttachments that you can use.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans