Loading

vlocity_ins__insOsSingleInstance Product Retrieval and Rate Calculation Using InsProductService

Udgivelsesdato: Jun 17, 2026
Beskrivelse

The vlocity_ins__insOsSingleInstance Lightning Web Component (LWC) retrieves and displays products along with their calculated prices within an OmniScript. Product retrieval and pricing calculations are performed using services provided by the InsProductService class.

     

    Løsning

    When the vlocity_ins__insOsSingleInstance LWC component is added to an OmniScript, it uses the services provided by the InsProductService class to retrieve products and calculate their prices.

    The following services are used:

    • getEligibleProducts: Determines and retrieves the eligible products. The retrieved products are then passed to getRatedProducts to calculate and retrieve the rates. 

    • getRatedProducts: Retrieves product details along with their calculated rates.

    • repriceProduct: Recalculates rates when a product is customized. This service is not applicable to insOsProductSelection.

    After these services are executed, the products and their corresponding calculated prices are displayed in the LWC component.

    Vidensartikelnummer

    005387246

     
    Indlæser
    Salesforce Help | Article