Loading
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
          Set Up an Integration Procedure to Call an External Rating System

          Set Up an Integration Procedure to Call an External Rating System

          To use Vlocity Insurance Open Quoting Architecture you need to create an integration procedure that gathers the important information your external policy administration system can use to rate or price the quote. This integration procedure is included in the product and is triggered when a quote with that product included is rerated using the Rate Now button.

          Before You Begin

          Make sure that your org is set up to call out to the external system’s endpoint by adding the site to the Remote Site Settings.

          1. Create an Integration Procedure.
            Tip
            Tip

            Make note of the Type/SubType. You need to add this information to the product you create.

          2. Use a Remote Action to invoke InsQuoteService.getQuoteDetail with the Remote Option Key/Value pair isForExternal=true to prepare the Quote JSON to send to the external system.
          3. Send the Quote JSON to the external system for the rating in one of these two ways:
            • Use a Remote Action to call an Apex class that sends the request to the external system.

            • Use an HTTP Action in the integration Procedure.

              Note
              Note

              When using an HTTP Action, the result might not include “error”: “OK” which InsQuoteService:createUpdateQuoteFromExternal or InsQuoteService:createUpdateQuote is expecting.

              You can manually add this through the Additional Output option of the HTTP Action.

          4. Use a Remote Action to invoke InsQuoteService:createUpdateQuoteFromExternal.

            This service takes the Input JSON data returned from the external system, and returns the Quote.Id of the created or updated quote in the output JSON and the list of errors encountered.

            Illustrates the Remote Action for InsQuoteService:createUpdateQuoteFromExternal.
          5. Add a Response Action to return the Quote JSON with the pricing updates from the external system to the quoting flow. This is what is used to update the Quote details.

            The data returned from the external system must be in this format:

            1 {
            2  "result": {
            3    "quote": {
            4      // Updated JSON returned
            5    },
            6    "errorCode": "INVOKE-200",
            7    "error": "OK"
            8  }
            9 }
           
          Loading
          Salesforce Help | Article