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
          InsPolicyService:createMultiRootPolicyVersion

          InsPolicyService:createMultiRootPolicyVersion

          Use this service to endorse a multi-root policy from an endorsed quote.

          The service uses the quoteId and effectiveDate options and triggers an asynchronous batch job to issue a new policy version and update the previous policy version.

          Class: InsPolicyService

          Method: createMultiRootPolicyVersion

          How It Works

          The service:

          1. Uses the quoteId and effectiveDate options to endorse a multi-root policy.

          2. Generates child policies for each root product.

          3. Aggregates premiums, taxes, and fees from the child policies into the parent policy.

          4. Shortens and prorates the previous policy version based on dates for both parent and child policies.

          5. When createTransaction set to true, the service:

            1. Creates transactions for parent and child policies.

            2. Calculates the transaction amount for the child policies as the difference between the current term amount and the previous term amount for the root product.

            3. Calculates the transaction amount for the parent policy as the sum of the values from each child policy.

            4. Specifies the transaction name and type in the transactionType option. If no value is specified, it defaults to Changed/Endorsed.

          Additional Fields

          • Users can override the policy field values by passing additionalFields as an option.

          • Additional fields are supported for both parent and child policies at the root-policy level.

          • The additionalFields option updates fields only at the Insurance Policy object level.

          • For multi-root policy endorsements, these changes affect only the new policy version, leaving the previous version unchanged.

          • The child policy uses the product code as an identifier for the product in the additionalFields JSON structure.

          • The parent multi-root policy uses the MULTI_ROOT_PARENT_POLICY as an identifier in the additionalFields JSON structure.

          Remote Options

          Option

          Description

          quoteId

          Required

          The ID of the endorsed quote from which the policy is to be created.

          effectiveDate

          Required

          The effective date of the new policy version.

          createTransaction

          Optional

          A Boolean flag to indicate if parent and child transactions must be created for the policy.

          Default is False.

          transactionType

          Optional

          Transaction name and type, applicable only when createTransaction is True.

          Default is Changed/Endorsed.

          additionalFields

          Optional

          A JSON structure that maps policy product codes to policy fields and their respective values.

          Input JSON

          This service doesn't take an input JSON.

          Here’s a sample of the additionalFields JSON.

          "additionalFields": {
                "MULTI_ROOT_PARENT_POLICY": {
                  "name": "parent policy",
                  "term": "Annual"
                },
                "AUTOROOT": {
                  "name": "test",
                  "year": "2024"
                },
                "COMMERCIAL": {
                  "name": "Commercial",
                  "type": "Comprehensive"
                }
              } 

          Output

          Option

          Description

          jobId

          The ID of the asynchronous batch job.

          Output JSON

          Here's the sample output JSON.

          {
           "jobId": "7073t0000BNGivxAQD"
          }
          
          
           
          Loading
          Salesforce Help | Article