It is now possible to automate pre-invoice generation using APEX which will run the batch job and create Pre-Invoices for Media Campaigns based on certain pre-defined criteria and following the payment criteria set out in the Media Campaign.
Additionally, from From version 2.118, you can also determine a recipient email address for the result email from the batch job. This is particularly useful for managing the invoicing of different legal entities within the same org.
Note |
---|
Customers, who have the |
To find out more, please talk to your Account Manager about creating pre-invoices using APEX.
Create Pre-Invoices (using APEX)
Build your own way to create Pre-Invoices by using the APEX code. The global class ADvendio.GenerateInvoiceBatch can be used to start a batch job that will create Pre-Invoices for Media Campaigns.
...
This will start the Pre-Invoice generation for all Media Campaigns in the with the Bill Me checkbox = true and the following fields set:
...
This example will create Pre-Invoices for the all Media Campaign with Legal Entity 'a1EA000000FfEBSMA3' where Bill Me is set to True.
...
This example will create Pre-Invoices for the all Media Campaign with Legal Entity 'a1EA000000FfEBSMA3' where Bill Me is set to True.
...