Loading
Salesforce now sends email only from verified domains. Read More
Insurance
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          insOsMultiInstanceChildProducts Lightning Web Component

          insOsMultiInstanceChildProducts Lightning Web Component

          The insOsMultiInstanceChildProducts Lightning web component displays two levels of insured items, and coverages for the second level of insured items, in a quote OmniScript.

          For example, for a commercial quote, this component displays:

          • All the Location insured items (such as 500 Maple Drive and 123 Elm Street)

          • For each Location, all the related Building insured items (such as Warehouse and Factory)

          • For each Building, all the related eligible coverages (such as Earthquake and Wildfire)

          Here's a preview of the OmniScript step for configuring buildings:

          • Location insured items (1)

          • Building insured item (2)

          • Building coverages (3)

          The component lets users edit attributes configured with "Is Configurable" selected, and it hides attributes configured with "Is Hidden" selected.

          Preview of OmniScript step to configure buildings in a commercial quote

          Here's a closer look at the OmniScript step for configuring buildings:

          Properties of OmniScript step for configuring buildings in a commercial quote

          insOsMultiInstanceChildProducts Custom Lightning Web Component Properties

          A guided flow that walks users through the configuration of a commercial root product typically uses enableEdit, initJSON, initAction, and rePriceAction custom Lightning web component properties.

          For commercial product quote flows, you typically use initAction to configure the getRatedProducts service. This service fetches the product JSON to feed into insOsMultiInstanceProducts. In OmniScript steps:

          • An initAction configures the InsProductService: getRatedProducts service to fetch product JSON and feed it into insOsMultiInstanceProducts.

          • insOsMultiInstanceProducts displays the root, parent, and child insured items, as well as the parent insured item coverages. A user configures and reprices the parent insured item coverages and attributes in this LWC. The user's changes are passed to the next step of the flow as initJSON.

          • insOsMultiInstanceChildProducts uses the product JSON passed in from the previous step as initJSON to display the child insured items and their coverages. Here is where a user configures and reprices the child insured item coverages.

          When you configure the insOsMultiInstanceChildProducts Lightning web component, configure the reprice method and its options in the JSON Editor in custom Lightning web component properties.

          Property

          Details

          enableEdit

          Use enableEdit to enable insured item and insured party attribute edits in insOsMultiInstanceProducts.

          Note:

          • Attribute rules for insured item attribute and insured party attribute changes are not currently supported.

          • insOsMultiInstanceChildProducts does not support enableEdit.

          In an OmniScript step that calls insOsMultiInstanceProducts, add enableEdit as a custom Lightning web component property using the format enable-edit, and define it as true.

          Configure Locations OmniScript step with enable-edit property

          initJSON

          Use initJSON as an alternative to remote calls. It passes the entire product JSON structure as the data source to a Lightning web component.

          The insOsMultiInstanceChildProducts Lightning web component often uses initJSON.

          Add initJSON as a custom Lightning web component property using the format init-json. In this example, insOsMultiInstanceChildProducts takes the product JSON passed to it from the previous step.

          Configure Buildings OmniScript step with init-json property

          initAction and rePriceAction

          For initAction, configure the optionsMap and inputMap that get passed to InsProductService: getRatedProducts. This method gets called on the first load to fetch product data.

          For rePriceAction, configure the optionsMap and inputMap for InsProductService: rePriceProduct. This method gets called every time a user makes a change to product attributes and reprices the product.

          In the Custom Lightning Web Component Properties pane, click Edit Properties as JSON to configure initAction and rePriceAction.

          Configure Locations OmniScript step with initAction and rePriceAction JSON highlighted
           
          Loading
          Salesforce Help | Article