Partilhar via


(DNK) Set up batch processing for OIOUBL electronic invoicing

Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

Use the Batch job form to set up batch processing for Offentlig Information Online Universal Business Language (OIOUBL) electronic invoicing.

You can set up a batch job for sales outbound electronic invoices, and another batch job for project outbound electronic invoices.

  1. Click System administration > Inquiries > Batch jobs > Batch jobs.

  2. Press CTRL+N to create a batch job, and then in the Job description field, enter a short description for the batch job.

  3. Save the batch job, and then click View tasks.

  4. In the Batch tasks form, press CTRL+N to create a batch task for the batch job, and then in the Class name field, select the AifOutboundProcessingService class name. In the Company accounts field, select the company you created the batch job for.

  5. Create two batch tasks that use the following class names:

    • AifGatewaySendService

    • EInvoiceFileTransform_OIOUBL

  6. Select the batch task that uses the EInvoiceFileTransform_OIOUBL class name, and then in the Batch group field, select a batch group.

  7. Click Refresh to refresh the data in the form.

  8. Click Parameters.

  9. In the E-invoice OIOUBL XSL File Transformation form, specify the locations of the Source, Target, Processed, and Error file storage folders. For the XSLT file path, select the path for the eSalesInvoice_DK_OIOUBL file for sales outbound electronic invoices, or the path for the eProjectInvoice_DK_OIOUBL file for project outbound electronic invoices, and then close the form.

  10. Click the Overview tab.

  11. Select the batch task that uses the AifGatewaySendService class name (the second task) to set up the order in which the batch tasks are run.

  12. In the lower pane, press CTRL+N to create a condition for the selected batch task to run after the batch task that uses the AifOutboundProcessingService class name (the first task) has ended.

  13. In the Task ID field, select the batch task that uses the AifOutboundProcessingService class name.

  14. In the Expected status field, select Ended.

    Observação

    You can also select the batch task that uses the EInvoiceFileTransform_OIOUBL class name, and then set the condition to run the batch task when the batch task that uses the AifGatewaySendService class name has ended.

See also

(DNK) Set up recurring batch jobs

Trabalho em lote (formulário)

Tarefas em lote (formulário)