LogoLogo
Connectors
Salesforce Lightning B2B Commerce App 1.2
Salesforce Lightning B2B Commerce App 1.2
  • Salesforce Lightning B2B Commerce App 1.2
  • Introduction
    • How it works
    • What's new in version 1.2
  • Upgrading to version 1.2
  • Integrate the Salesforce Lightning app
    • Step 1: Install the Digital River app
    • Step 2: Configure the Digital River app
    • Step 3: Register external services
    • Step 4: Configure DCM logs
    • Step 5: Add custom fields to the page layouts
    • Step 6: Enable email deliverability
    • Step 7: Import ECCN codes, tax groups, and tax types
    • Step 8: Configure and synchronize the products
    • Step 9: Schedule backend jobs
    • Step 10: Set up integration between Salesforce and Digital River
    • Step 11: Set up webhooks
    • Step 12: Configure landed cost
    • Step 13: Manage permission sets
    • Step 14: Configure shipping integration
    • Step 15: Integrating refunds
    • Step 16: Configure the From email address
    • Step 17: Integrate the Digital River components into the checkout flow
      • Custom components used in the checkout subflows
      • Subflow configuration
        • Starter subflows
        • Configure the shipping address subflow
          • Configure the shipping address screen
        • Configure the delivery method subflow
        • Configure the Checkout Summary subflow
        • Configure the Payment and Billing Address subflow
          • Edit the Payment Method screen
          • Edit the decision elements
          • Link screen components
      • Configure the main checkout flow
      • Add custom components to pages
        • Drag and drop (custom) components
    • Step 18: Test the Salesforce Lightning app integration
  • Extend the Salesforce Lightning app
    • Extend the Ship From address
    • Extend the webhook framework
    • Configure subscriptions
    • Shipping choice extension point
    • Customer credit
      • addCustomerCreditSourceToCheckout
      • deattachPaymentToCheckout
      • getAmountRemainingforCheckout
      • getCartDetailsById
      • Publishing connector events
    • Overriding Digital River CSS
    • Customizing the Lightning web components
      • Designer attributes
      • Components
        • Buyer info component
        • Tax certificate component
        • DR util component
        • DR Terms component
        • Hide checkout summary component
        • Order Summary component
        • Place order component
        • Payment component
  • User guide
    • Regulatory fees
    • Tax certificates
    • Tax identifiers
    • My wallet
    • Customer credit
    • Checkout and order creation
    • Fulfillment/cancellation flow
    • Refunds
    • Invoices and credit memos
  • Support
  • Appendix
    • Custom fields and objects
    • Contact point address
    • Multi-currency support
Powered by GitBook
On this page
  • Batch job overview
  • Product Sync batch job
  • Fulfillment batch job
  • DCM purge logs batch job
  • Batch job scheduler
  • Batch run frequency
  • Sample batch run frequency and batch size examples
  1. Integrate the Salesforce Lightning app

Step 9: Schedule backend jobs

Learn how to schedule backend jobs.

PreviousStep 8: Configure and synchronize the productsNextStep 10: Set up integration between Salesforce and Digital River

Last updated 2 years ago

In order for the Salesforce Lightning app to continuously synchronize data between Salesforce and Digital River, you will need to schedule backend batch jobs.

Batch job overview

The following batch jobs are part of the Salesforce Lightning app:

  • Product Sync batch job

  • Fulfillment batch job

  • DCM Purge Logs batch job

Product Sync batch job

This batch job is used for product synchronization between Salesforce and Digital River. The Product Sync job will run automatically based on the setting in the batch job configuration record. To update the Product Sync settings, see .

Fulfillment batch job

This job sends Order and Line Item Level Fulfillment/Cancellation requests to Digital River. This is used for Order and Line Item Level Fulfillment/Cancellation.

DCM purge logs batch job

This job cleans up the DCM purge logs based on the configuration Retention Days using the custom setting Digital River Logger Settings.

Batch job scheduler

This section lists the scripts to schedule the following batch jobs with various batch job run frequency and batch size options.

Batch job name
Description
Default batch size

Digital River - Fulfillment

OrderFulfillment is the batch job that needs to be specified while using scripts for scheduling.

100

Digital River - Purge Log

PurgeLogs is the batch job which needs to be specified while using the scripts for scheduling.

200

Digital River - SKU Group

RetrieveSKUGroup is the batch job which needs to be specified while using the scripts for scheduling. This batch job is used for pulling SKU groups records from Digital River and updating those records on the Product object.

100

The withSizeparameter can be used to specify batch sizes in the batch job scheduler.

The maximum batch size for the Fulfillment/Cancellation batch job is 100.

Batch run frequency

The following batch job frequencies are used for various batch jobs:

Batch frequency
Description
Example

Every X minutes

Schedules fewer jobs to run every X minutes in an hour

digitalriverv3.DRB2B_ConnectorScheduler. <BatchJobName>.scheduleEveryXMinutes(Integer everyMinute)

Every hour

Schedules jobs to run every hour at a specified minute

digitalriverv3.DRB2B_ConnectorScheduler. <BatchJobName>.scheduleHourly(Integer minute)

Every day

Schedules jobs to run every day at a specified time

digitalriverv3.DRB2B_ConnectorScheduler. <BatchJobName>.scheduleDaily(Integer hour, integer minute)

Based on cron expression

Schedules jobs based on cron expression

digitalriverv3.DRB2B_ConnectorScheduler. <BatchJobName>.scheduleCronExpr(String jobNameToShowUnderScheduledJobs, String cronExpression)

Specifying the batch size is optional while scheduling the jobs. Using the withSize parameter, the following syntax is used for specifying the batch size when scheduling a job to run every hour:

digitalriverv3.DRB2B_ConnectorScheduler. <BatchJobName>.withSize(50).scheduleHourly
(Integer minute)

Sample batch run frequency and batch size examples

The following examples are sample frequency and batch size settings for the Fulfillment/Cancellation batch job and DCM Purge Logs batch job:

Schedule Order Fulfillment/Cancellation batch job to run hourly with a batch size of 1.

digitalriverv3.DRB2B_ConnectorScheduler.OrderFulfillment.withSize(1).
scheduleHourly
(1);

Schedule Order Fulfillment/Cancellation batch job to run hourly, using the default batch size of 100.

digitalriverv3.DRB2B_ConnectorScheduler.OrderFulfillment.scheduleHourly
(1);

Schedule Order Fulfillment batch job to run every 5 minutes with a batch size of 50.

digitalriverv3.DRB2B_ConnectorScheduler.OrderFulfillment.withSize(50).
scheduleEveryXMinutes(5);

Schedule Order Fulfillment/Cancellation batch job to run every 4 hours using cron expression. Use the default batch size of 100.

digitalriverv3.DRB2B_ConnectorScheduler.OrderFulfillment.
scheduleCronExpr('Fulfillment Every 4 hours', '0 0 0,4,8,12,16,20 ? 
* *');

Schedule DCM Purge Logs batch job to run nightly at 2AM, using the default batch size of 200.

digitalriverv3.DRB2B_ConnectorScheduler.PurgeLogs.scheduleDaily(2, 0);
Configure and synchronize the products