A set of Lightning Web Components designed for insurance product selection workflows in Salesforce Industries. These components integrate with OmniScripts to enable users to view, compare, and select rated insurance products.
The Product Selection components provide a complete solution for insurance product rating and selection within OmniScript flows. Key features include:
- Product Rating Integration – Calls the Salesforce Industries
createInsuranceRatinginvocable action - Single and Multi-Select Modes – Support for selecting one or multiple products
- Product Comparison – Side-by-side comparison modal for up to 3 products
- Custom Labels – Fully translatable using Salesforce Custom Labels
Before deploying these components, complete these prerequisites.
- Make sure that your org has Digital Insurance licenses and complete the setup.
- Deploy Omniscript customization npm package components. See Set Up Your Environment to Customize Omniscript Elements.
- Install the Salesforce CLI locally to deploy the components.
git clone <repository-url> cd InsuranceCloudCodeSamples
Copy the contents under the apex, labels, and lwc folders from the OS LWC example folder to the respective folders in a Salesforce DX project authenticated to your org.
Deploy only the Product Selection components and their dependencies:
sf project deploy start \ --source-dir force-app/main/default/classes/InsuranceRatingApexService.cls \ --source-dir force-app/main/default/classes/InsuranceRatingApexService.cls-meta.xml \ --source-dir force-app/main/default/labels/ProductSelectionLabels.labels \ --source-dir force-app/main/default/lwc/productSelection \ --source-dir force-app/main/default/lwc/productSelectionCompareModal \ --source-dir force-app/main/default/lwc/productSelectionCustomTreeGrid \ --source-dir force-app/main/default/lwc/productSelectionCustomTemplate \ --target-org my-org
Or deploy the entire force-app directory:
sf project deploy start --source-dir force-app --target-org my-org
sf project deploy report --target-org my-org
This component set depends on the following:
Follow the steps in Prerequisites to retrieve and deploy the OS npm package.
createInsuranceRatinginvocable actionrepriceInsuranceProductinvocable action
For issues or questions related to these components:
- Review the component-specific README.
- Contact your Salesforce administrator or implementation partner.