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

How to send invoices in ER batch process?

(0) ShareShare
ReportReport
Posted on by 465

So currently when u go to a certain customer invoices and multi select few invoices then click send like below (let's say i clicked 5 invoices)

If you go to "Electronic Reporting Jobs" ... you'll find 5 records created there each one containing the file for each invoice selected. (and this is done in a non batch process)

what i want is that i want to select those 5 invoices and i only want one record to be created "Electronic Reporting Jobs" and that record contains one file that has these 5 invoices, and i want when i click send the process to be batch process, so how this can be done?? is there a place for ER batch process?

I have the same question (0)
  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi D365FO,

    Do you have to create and send electronic XML invoices?

    If so, why don't you post and create them using the batch invoice process in AR?

    AR/invoices/batch invoicing/invoice.

    Using this function allows you invoicing multiple customers at one, which will create the ER invoices automatically for you in the ER jobs form.

    Best regards,

    Ludwig

  • Suggested answer
    Alireza Eshaghzadeh Profile Picture
    14,672 Super User 2025 Season 2 on at

    Hi D365FO user,

    This is standard behaviour that when you send x number of invoices, x number of e-invoice file will be generated on Electronic reporting jobs.

    So, you can sende the files to access point.

    For creating x number of e-invoice in one zip file, you need to perform a customization.

    P.S. A simple one is to create a customization from Electronic reporting jobs to access point where all e-invoices will send to access point.

  • D365FO user Profile Picture
    465 on at

    Hi Ludwig,

    i want to send invoices that are already posted? i just opened the form but it was empty how can i do that?

    Hi Alireza,

    why create customization in  Electronic reporting jobs shouldn't it be in invoice journals? and can u explain more about access point because currently the code for button send calls a certain function

  • Suggested answer
    Alireza Eshaghzadeh Profile Picture
    14,672 Super User 2025 Season 2 on at

    Hi D365FO user

    I cannot find a standard function for sending e-invoices in one zip file on ER jobs. You can send batch of invoices while it will be generated one by one on ER jobs.

    A comapny send its e-invoices to Access point (AP)  who delivers the e-invoices on their behalf to APs that serve the receiving parties. This excahnge of e-invoices perfomed in PEPPOL format.

  • D365FO user Profile Picture
    465 on at

    I just checked the code under button send

    it loops through each selected invoice and create the batch.

    So does that mean i need to create a new service,controller and contract and try to edit the code in a way  to accept multiple invoices right?  or is there an easier way?

    do u have any hint related to "EInvoiceGenerationService" where i could change the code in order to send all invoices in one batch? ( i mean i want one record  to be created in Electronic reporting jobs when sending multiple invoices)

  • Suggested answer
    Alireza Eshaghzadeh Profile Picture
    14,672 Super User 2025 Season 2 on at

    When you click på "Send > Original" , a batch job for each invoice that you have marked will be created. They will generate e-Invoice files on ER jobs. These batch jobs will be deleted afterward automatically in PU34.

    As standard, E-invoice file generated one by one via xml format and not zip.

    Do you want send e-invoices to customer via access point  (AP) or via email? Can you explain why you need to send send zip file of e-invoices? Is it required from AP`*?

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    Why do the invoices need to be in the same file?

    Are you sure that this is required? The file will anyway be processed automatically into another system (eventually, once your solution is ready), so what difference does it make if you send 5 files that each have one invoice, or just one file with 5 invoices?

    Also why does it have to be a zip file?

    Anyway, you can easily combine the files and create a zip in LogicApps or other integration platform if you need to.

  • D365FO user Profile Picture
    465 on at

    Hi Alireza and Nikolas,

    1. when i multi select multiple invoices from Invoice Journal Form and click send, it's not a batch process because i get the "please wait we're processing". So how to make it a batch process?

    2. Correct me if i'm wrong, but if each invoices will create  a new line in ER jobs then definitely DMF is faster, am i right?

    3. the reason for combining in one file, is that i want to reduce the work by the third party.

    4. i want to send invoices to share point where third party will take it and send it to customer, so the answer for your question Alireza i think it would be access point.

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    1. You can develop batch processes by using SysOperation or RunBaseBatch frameworks.

    2. Not sure

    3. Not sure if this has any impact on the workload of the third party. They will need to develop (or use existing) solution that reads the files that you create, and populate some data in external system. I don't think that it impacts their workload whether each invoice is in a separate file or not. Of course you can ask them and hear their opinion.

  • D365FO user Profile Picture
    465 on at

    how can i do it using SysOperation?

    currently when u click the button this line is called:

    CustVendInvoiceJour::sendXML(custInvoiceJour_ds, PrintCopyOriginal::Original);

    so what should i do in the Service class? i mean what should i pass?  and do i need a contract class?

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 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans