Step 12: Schedule backend jobs
Learn how to schedule a backend job.
Last updated
Learn how to schedule a backend job.
Last updated
For the Salesforce B2B Commerce App to continuously synchronize data between Salesforce and Digital River, you need to schedule backend batch jobs. To schedule the backend jobs:
Click Setup and select Developer Console from the dropdown list. The Developer window appears.
Click Debug and select Open Execute Anonymous Window. The Enter Apex Code dialog appears.
Copy the script from the first row of the table under Batch Job Scripts and run it in the Developer console Anonymous window.
Repeat Step 3 for every script in the batch job scripts table.
The following table lists the jobs that you need to schedule and the apex code that you can run to set up the jobs. You can also find these settings on the Schedule Jobs tab in the DR CC Config Settings spreadsheet.
Batch Job Name | Script to Schedule Batch Job | Comments |
Order Fulfillment Job |
| This job sends Order Level Fulfillment Information to Digital River. Currently, this is used only for order cancellations. |
Line Item Fulfillment Job |
| This job sends line-item level fulfillment Information to Digital River. |
CC Subscription Installment Processor Job |
| Schedule this job to run at least once every day. |
DR Subscription Processor Job |
| This job currently processes only 1 record at a time. Please schedule this more often in a day based on the number of installments that need to be processed. |
DCM Application Logs Cleanup Job |
| This job cleans up the DCM Application logs based on the configuration “Delete Logs older than” in the Custom Metadata type digitalriverv2__DCM_Application_Log_Configuration__mdt. |