Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

Downloading Vendor Invoices via API

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,228 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,228 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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans