Skip to main content

We are building a custom screen in a Lightning Web Component (LWC) for adding and updating Quote Line Items (QLI) in Revenue Lifecycle Management (RLM).

After performing DML operations (inserts or updates) on the QLI records from either the Apex controller or the LWC, the standard RLM pricing calculations do not reflect the changes until a manual page refresh is performed or a user clicks the "Reprice All" button.

My question is: What is the correct programmatic approach to trigger the RLM repricing engine from Apex or LWC after the QLI changes have been saved, thus avoiding the need for manual intervention? Any insights on which methods, platform events, or APIs to use would be greatly appreciated.   

1 个回答
  1. 2025年9月19日 08:10

    Hi @P Sai Krishna

     

    To programmatically refresh and trigger the RLM repricing engine for Quote Line Items (QLIs) after DML operations, I think you can use the Repricing API by calling the vlocity_cmt.VOIInvoker class’s repriceLineItems method from Apex after your QLI updates. This should trigger the RLM repricing engine automatically, and then you can refresh your LWC data to show updated prices without manual intervention. 

    Refer to:  

    https://help.salesforce.com/s/articleView?id=ind.comms_repricing_apis.htm&type=5

     

    https://help.salesforce.com/s/articleView?id=ind.comms_invoke_the_repricing_api.htm&type=5

     

    Thanks!

0/9000