Invoke the Repricing Batch Processor

The repricing API works with assets and orderItems. You can replace a batch job with customer requirements based on how you want to reprice. For example, you may want to restrict repricing only for certain Accounts, Orders, Quotes, Opportunities, or lineItems based on certain conditions, such as repriced orders only created during 1st JAN 2018 to 10th JAN 2018.

  • To Reprice all OrderItems by orders:

    vlocity_cmt.RepricingBatchProcessor repricingBatchJob = new vlocity_cmt.RepricingBatchProcessor(Order);
    ID batchprocessid = Database.executeBatch(repricingBatchJob,1);
  • To reprice all assets by account:

    vlocity_cmt.RepricingBatchProcessor repricingBatchJob = new vlocity_cmt.RepricingBatchProcessor('Account');
    ID batchprocessid = Database.executeBatch(repricingBatchJob,1);