Logo

How can we help you?

Search our knowledge base to get answers to your questions, access video training & more!

How to Run the Auto-BillPay Batch Manually

Recurring Billing

How to Run the Auto-BillPay Batch Manually

Last updated on 13 Nov, 2026

There are times when you may need to manually trigger the Auto-BillPay process, such as when resolving a stalled background job, recovering from skipped payments where invoices were already generated, or forcing a manual processing run outside of your standard schedule.

You can force the system to evaluate unpaid invoices and capture the associated funds by executing a manual batch script in the Salesforce Developer Console. This action safely processes the payments for eligible Auto-BillPay invoices without duplicating the invoices themselves.

Execution Steps

  1. Log in to your Salesforce environment as a System Administrator.

  2. Click the Gear icon in the top right corner of the screen and select Developer Console.

  3. In the Developer Console top menu, click Debug and select Open Execute Anonymous Window (or press Ctrl + E / Cmd + E).

  4. Clear any existing code in the window and paste the following Apex script:

Apex

JavaScriptDatabase.executebatch( new fw1.ProcessAutoBillPayBatch(), 1 );
  1. Click the Execute button at the bottom right of the window.

Verifying the Batch Run

Once executed, the batch job will run in the background. Depending on the volume of eligible invoices, this process may take a few minutes.

To verify that the job completed successfully:

  1. Navigate to Setup > Apex Jobs in Salesforce.

  2. Look for the ProcessAutoBillPayBatch class in the list to confirm its status is "Completed."

  3. Review your outstanding recurring invoices to confirm the related Payment records have been created and the invoice statuses are updated to "Paid."

Did you find this article helpful?