You are here:
Modify Coverages for Auto Business
You can modify the coverages on an existing insurance policy using an OmniScript.
First, the OmniScript takes the policy Id of the policy the user wants to make changes to.
It uses the InsPolicyService:getInsuredItems service to retrieve data about all the drivers and vehicles already insured by this policy.
Then it uses the InsPolicyService:getPolicyDetails service to get coverage data for the policy.
The OmniScript uses the insOsMultiInstanceGrandchildren Vlocity Lightning Web Component to display the vehicles, drivers, and their coverages.
This Lightning Web Component lets users make changes to attribute values.
Users can also select and deselect optional coverages.
This page also shows the total new premium, the original premium, and other data. Each time the user makes a change to an attribute or optional coverage, the pricing here changes.
After the user clicks Modify Coverages, the OmniScript does the following behind the scenes:
-
An Omnistudio Data Mapper transform action gets the data ready to create a new version of the existing policy.
-
The InsPolicyService:createNewPolicyVersion service creates a new version of the policy that includes the new driver(s).
-
Payment information is updated.
Finally, a confirmation page appears. It includes the final pricing changes.

