This article is intended only for Frisbii users who have subscribed to the Frisbii GtoB Connector.
Schedulable batch classes to send and track invoices
Two scheduled Apex batch jobs keep e-invoices flowing to Chorus Pro: one sends invoices out, the other tracks their delivery status. Both should be scheduled to run automatically and require no ongoing maintenance once set up.
Schedulable batch classes for sending and tracking invoices
Here are the 2 schedulable Apex classes:
ChorusInvoiceDepositBatch — sends invoices to Chorus Pro. This batch picks up any invoice that is ready to be deposited (Deposit Status Deposit Ready) and submits it to Chorus Pro. Newly generated invoices won't reach Chorus Pro until this job runs.
EcosioInvoiceStatusBatch — tracks invoice delivery status. This batch checks with the platform the status of every invoice that's already been sent but hasn't reached a final "delivered" state yet, and updates its status in Salesforce accordingly (e.g. from "Sent" to "Success", or to "Error" if it was rejected).
ℹ️ Good to know: despite its name, the EcosioInvoiceStatusBatch batch is shared by Ecosio (the B2B PA partner offering) and Chorus Pro. It updates the status of all invoices already sent, whatever the platform. If you use both connectors, a single tracking job is enough.
How to schedule them
1. Go to Salesforce Setup → Apex Classes.
2. Click Schedule Apex.
3. Give the job a name (e.g. "Chorus Pro - Send invoices"), pick a frequency, and select ChorusInvoiceDepositBatch as the Apex class. Save.
4. Repeat the same steps for EcosioInvoiceStatusBatch (e.g. "Chorus Pro - Track invoice status").
Suggested frequency: daily for both jobs is a safe default. If you send a high volume of invoices, you can schedule the status batch more frequently than the deposit batch, since delivery confirmation can take a little longer than submission.
What to expect
After each run, the user who scheduled the job receives a Salesforce notification summarizing the outcome. If any invoices failed to send or update, that user also receives an email with the details of each failure so it can be investigated.