InvoiceBatchRun

Represents a batch processing job in Billing. During an invoice batch run, all billing schedules that meet the specified criteria are processed, resulting in the generation of invoices. This object is available in API version 62.0 and later.

describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update()

You need the Billing Admin permission set to access this object.

  • Type: reference
  • Properties: Filter, Group, Nillable, Sort
  • Description: The batch management job that’s used to track the progress of the invoice batch run. This field is available in API version 67.0 and later.

This field is a relationship field.

  • Relationship Name: BatchJob
  • Refers To: BatchJob
  • Type: reference
  • Properties: Filter, Group, Sort
  • Description: Required. The ID of the related billing batch scheduler.

This field is a relationship field.

  • Relationship Name: BillingBatchScheduler
  • Refers To: BillingBatchScheduler
  • Type: textarea
  • Properties: Filter, Nillable, Sort, Update
  • Description: Additional notes or comments for the invoice batch run.
  • Type: dateTime
  • Properties: Filter, Nillable, Sort
  • Description: The timestamp when the invoice batch run finished processing.
  • Type: picklist
  • Properties: Filter, Group, Nillable, Restricted picklist, Sort
  • Description: The status of applying credit memos or credit memo lines to invoices or invoice lines during invoices batch runs.

Valid values are:

  • Completed
  • Failed
  • NotApplicable
  • Type: dateTime
  • Properties: Filter, Nillable, Sort
  • Description: The completion time of generating invoice documents by the invoice batch run.

This field is available in API version 63.0 and later with Revenue Cloud Billing license.

  • Type: reference
  • Properties: Filter, Group, Nillable, Sort
  • Description: The ID of the document generation batch process that’s used to generate documents for this invoice batch run. This field is available in API version 68.0 and later.

This field is a relationship field.

  • Relationship Name: DocGenerationBatchProcess
  • Refers To: DocGenerationBatchProcess
  • Type: dateTime
  • Properties: Filter, Nillable, Sort
  • Description: The start time of generating invoice documents by the invoice batch run.

This field is available in API version 63.0 and later with Revenue Cloud Billing license.

  • Type: picklist
  • Properties: Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort
  • Description: The status of the invoice documents generated by the invoice batch run.

Valid values are: The default value is Not Started.

  • Canceled
  • Completed
  • Failed
  • In Progress
  • Not Started
  • Paused

This field is available in API version 63.0 and later with Revenue Cloud Billing license.

  • Type: date
  • Properties: Filter, Group, Nillable, Sort
  • Description: The start date of the forecast invoice batch run. This field is available in API version 68.0 and later.
  • Type: date
  • Properties: Filter, Group, Nillable, Sort
  • Description: The end date of the forecast invoice batch run. This field is available in API version 68.0 and later.
  • Type: string
  • Properties: Autonumber, Defaulted on create, Filter, idLookup, Sort
  • Description: Required. The auto-generated reference number for the invoice batch run.
  • Type: int
  • Properties: Filter, Group, Nillable, Sort
  • Description: The number of invoice documents that the invoice batch run failed to generate.

This field is available in API version 63.0 and later with Revenue Cloud Billing license.

  • Type: int
  • Properties: Filter, Group, Nillable, Sort
  • Description: The number of invoice documents that the invoice batch run generated.

This field is available in API version 63.0 and later with Revenue Cloud Billing license.

  • Type: picklist
  • Properties: Filter, Group, Nillable, Restricted picklist, Sort
  • Description: Specifies the job type for the batch run. This field is available in API version 68.0 and later.

Valid values are Catchup, Forecast, Invoice, or Payment.

  • Type: dateTime
  • Properties: Filter, Nillable, Sort
  • Description: The timestamp when the current user last accessed an invoice batch run record indirectly, for example, through a list view or related record.
  • Type: dateTime
  • Properties: Filter, Nillable, Sort
  • Description: The timestamp when the current user last viewed an invoice batch run record. If this value is null, it’s possible that the user only accessed the invoice batch run record or a related list view (LastReferencedDate), but not viewed the invoice batch run record itself.
  • Type: reference
  • Properties: Filter, Group, Sort, Update
  • Description: Required. The ID of the user who created the related billing batch scheduler.

This field is a polymorphic relationship field.

  • Relationship Name: Owner
  • Refers To: Group, User
  • Type: picklist
  • Properties: Filter, Group, Nillable, Restricted picklist, Sort
  • Description: The status of the invoice batch run recovery process.

Valid values are:

  • CompletelyRecovered—All billing schedules included in the recovery run were reset to Ready for Invoicing. These billing schedules are included in the next scheduled invoice batch run.
  • PartiallyRecovered—Some, but not all, billing schedules that were part of the recovery run were reset to Ready for Invoicing. The billing schedules that were recovered are included in the next scheduled invoice batch run. The billing schedules that weren’t successfully recovered must be manually reset to Ready for Invoicing so they can be processed.
  • RecoveryFailed—The recovery job was unsuccessful.
  • RecoveryStarted—The recovery job is in progress.
  • Type: dateTime
  • Properties: Filter, Sort
  • Description: Required. The timestamp when the invoice batch run started processing.
  • Type: picklist
  • Properties: Defaulted on create, Filter, Group, Restricted picklist, Sort
  • Description: Required. The status of the invoice batch run.

Valid values are Canceled, Completed, Failed, Started, or Stopped.

The default value is Started.

  • Type: picklist
  • Properties: Filter, Group, Nillable, Restricted picklist, Sort
  • Description: The status subtype of the invoice batch run. The subtype corresponds to the status of the invoice batch run.

Valid values are:Available in API version 63.0 and later.

  • Billing Schedules Filtering Started—The data processing engine (DPE) selection service has started. The selection service includes the Billing Schedule records that meet the conditions defined when scheduling the invoice run.
  • Billing Schedules Filtering In Progress—The invoice run is identifying the billing schedules to include for invoice generation.
  • Billing Schedules Filtering Completed—The invoice run has identified the billing schedules to include for invoice generation.
  • Invoice Generation Started—The invoice generation service has started.
  • Invoice Generation In Progress—The invoice run is generating invoices for the identified billing schedules.
  • Invoice Generation Completed—The invoice run has finished generating invoices for the identified billing schedules.
  • Invoice Tax Calculation In Progress—The tax calculation step has started.
  • Billing Schedule and Billing Schedule Group Updates In Progress—The post processing step has started.
  • Forecast Generation Started—The forecast generation service has started. Available in API version 68.0 and later.
  • Forecast Generation In Progress—The invoice run is generating forecast lines. Available in API version 68.0 and later.
  • Forecast Generation Completed—The invoice run has finished generating forecast lines. Available in API version 68.0 and later.
  • Catch-Up Billing Schedules Started—The catch-up bill run has started creating billing schedules. Available in API version 68.0 and later.
  • Catch-Up Billing Schedules In Progress—The catch-up bill run is creating billing schedules. Available in API version 68.0 and later.
  • Catch-Up Billing Schedules Completed—The catch-up bill run has finished creating billing schedules. Available in API version 68.0 and later.
  • Catch-Up Billing Schedules Summarization In Progress—The catch-up billing schedules summarization step has started. Available in API version 68.0 and later.
  • Invoice Generation Summarization In Progress—The invoice generation summarization step has started.
  • Completed—The invoice batch run has completed successfully.
  • Failed—The invoice batch run was unsuccessful.
  • Type: currency
  • Properties: Filter, Nillable, Sort
  • Description: The total charge amount of all billing forecast lines generated during the batch run. This field is blank when the batch run processes multiple currencies. This field is available in API version 68.0 and later.
  • Type: int
  • Properties: Filter, Group, Nillable, Sort
  • Description: The number of billing forecast lines that are generated for the forecast invoice batch run. This field is available in API version 68.0 and later.
  • Type: int
  • Properties: Filter, Group, Nillable, Sort
  • Description: The total duration taken to update the billing schedule from Draft to Posted status during an invoice batch run.
  • Type: int
  • Properties: Filter, Group, Nillable, Sort
  • Description: The number of billing schedules that were a part of the recovery run that were reset to Ready for Invoicing. These billing schedules are included in the next scheduled invoice batch run.
  • Type: int
  • Properties: Filter, Group, Nillable, Sort
  • Description: The number of billing schedules that were a part of the recovery run that weren’t reset to Ready for Invoicing. These billing schedules that weren’t successfully recovered must be manually reset to Ready for Invoicing so they can be processed.
  • Type: int
  • Properties: Filter, Group, Nillable, Sort
  • Description: The total number of billing schedules that weren’t successfully processed. When a billing schedule isn’t successfully processed, then the system doesn’t generate an invoice for it. For details about errors, check the Revenue Transaction Error Log.
  • Type: int
  • Properties: Filter, Group, Nillable, Sort
  • Description: The total number of billing schedules for which the system was able to generate and process invoices.
  • Type: currency
  • Properties: Filter, Nillable, Sort
  • Description: The total amount of all invoices in the Draft status.
  • Type: int
  • Properties: Filter, Group, Nillable, Sort
  • Description: The total number of invoices in the Draft status.
  • Type: int
  • Properties: Filter, Group, Nillable, Sort
  • Description: The total number of billing schedules that met the invoice run scheduler’s matching criteria. The matching criteria specify which billing schedules are included in the invoice batch run. The field label is Total Matching Billing Schedules.
  • Type: int
  • Properties: Filter, Group, Nillable, Sort
  • Description: The total number of invoices that were successfully processed.
  • Type: currency
  • Properties: Filter, Nillable, Sort
  • Description: The total amount of income including taxes that’s represented by the successfully processed invoices.
  • Type: int
  • Properties: Filter, Group, Nillable, Sort
  • Description: The total number of invoices that weren’t processed. To find out what went wrong, check the Revenue Transaction Error Log. Then fix the errors and run the invoice batch run recovery process.
  • Type: int
  • Properties: Filter, Group, Nillable, Sort
  • Description: The total number of invoices that weren’t processed successfully. To find out what went wrong, check the Revenue Transaction Error Log. Then fix the errors and run the invoice batch run recovery process.
  • Type: int
  • Properties: Filter, Group, Nillable, Sort
  • Description: The total number of invoices that were generated from the billing schedules processed by the invoice batch run.
  • Type: int
  • Properties: Filter, Group, Nillable, Sort
  • Description: The total number of invoices in Posted status that were generated from the billing schedules.

This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.

InvoiceBatchRunHistory: History is available for tracked fields of the object.

InvoiceBatchRunShare: Sharing is available for the object.