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, ...
Answered

Can I import many invoices in single REST API call (/api/connector/enqueue/)?

(0) ShareShare
ReportReport
Posted on by 7

Hello.

I'm new in D365FO

We use REST API and import invoices one by one and we have a performance issue. We use package for every invoice.

Is it possible  to send several invoice in one package or in some other way?

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,880 Most Valuable Professional on at

    Yes, of course! That's actually how data management (uncluding its APIs) should be used.

    You import a single file at once, but the file may contain many records.

  • Andrei_R Profile Picture
    7 on at

    Thank you very much, Martin.

    In D365FO UI I see 2 types  of input data for our data job: data package and file.

    The data package is using now in our existing job.

    Can I use data package for importing of several invoices in single data package or I should dig into file data type direction as you mentioned above?

  • Verified answer
    Martin Dráb Profile Picture
    237,880 Most Valuable Professional on at

    The fact that data management is intended for exporting and importing data in bulk isn't specific to any file type.

    A package contains files and files can contain many records (e.g. lines in text files, rows in Excel, elements in XML).

  • Andrei_R Profile Picture
    7 on at

    I'm trying to find detailed info about data package for recurring integration, but unsuccessfully yet.

    Could someone help me with links, please?

    How to fill package with several invoices correctly and so on.

  • Verified answer
    Martin Dráb Profile Picture
    237,880 Most Valuable Professional on at

    You should try things one by one. As you see, trying to do everything at once doesn't get you anywhere.

    Before trying to do things automatically, do them manually to learn how they work. Create an export project and export some entity data to a file. Look at the file to see that multiple records are there. You can modify some of them and import the file, to see that it indeed works.

    If you have no idea how to use a data package, ignore it for now. Try it with a single data file (e.g. an Excel spreadsheet). You can start looking into data packages when you understand the basics.

    By the way, you didn't mention which invoices you wanted to import. Note that invoices are typically generated by posting in F&O and they can't be imported from outside. Make sure that the data you want to import can really be imported.

  • Andrei_R Profile Picture
    7 on at

    Thank you for advises.

    Yes, I've already have well working SW that sends invoices to D365 via REST API, but it can send 1 invoice(in XML) per package only.

    In existing project we have 5 XML entities in the package in the documents collection:

    Manifest,
    PackageHeader
    Vendor invoice header
    Vendor invoice line
    Vendor invoice document attachment

    So I'm afraid that I will have to change our recurring data job for processing of multiple invoices.

    Thanks, I will try to do it manually for multiple invoices.

  • Andrei_R Profile Picture
    7 on at

    Thank you for advises.

    I've solved the problem.

    I should simple add additional XML element "VENDORINVOICEHEADERENTITY" into "Vendor invoice header" document, for instance.

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
Martin Dráb Profile Picture

Martin Dráb 584 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 254 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans