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
          InsQuoteService:getAccountQuotes

          InsQuoteService:getAccountQuotes

          Use this service to retrieve quote records associated with an accountId.

          Class: InsQuoteService

          Method: getAccountQuotes

          Description

          This service is intended for Experience Site users who don’t have access to quotes and the default quote list.

          How It Works

          1. If the user is an authenticated Experience Site User:

            1. The service decrypts the provided accountId. If the accountId provided is not encrypted and can't be decrypted, the service throws an exception.

            2. The service decrypts the provided accountId. If the accountId provided is not encrypted and can't be decrypted, the service throws an exception.

            3. The quote fields returned are based on the QuoteDetail field set and exclude the fields not in CustomerCommunityFLSCheckFieldsObjectIds are encrypted.

          2. If the user is a Guest User, an IllegalArgumentException error message displays: "Method getAccountQuotes is not supported for Guest User."

          3. For other user types:

            1. The service queries for quotes where Quote.AccountId = <accountId> LIMIT 10000.

            2. The quote fields returned are based on the QuoteDetail field set.

          Remote Options

          Remote Option

          Description

          accountId

          Required.

          The AccountId, or the encrypted AccountId if the request is for a customer or guest user.

          Input JSON

          This service doesn't take an input JSON.

          Output JSON

          The service returns a quote list in the output JSON.

          {
            "error": "OK",
            "quoteList": [
              {
                "Id": "cfqsBqZvLizhq97-3uhwCPPAdOk2JUvR7WoUHsuSMUw.R0wt7dIpwjaoYN46iO6-5vtTWy2JMfMxHEHlWnOc9NYQTYXsaUa7wKM9_rVBSZgR",
                "<namespace>__TotalFeeAmount__c": 0,
                "<namespace>__TotalTaxAmount__c": 0,
                "<namespace>__TotalAmount__c": 20,
                "<namespace>__GroupCensusId__c": "a4f5w000000yIixAAE",
                "<namespace>__Type__c": "New Business",
                "<namespace>__RecordTypeName__c": "Quote",
                "<namespace>__RatingType__c": "Composite",
                "<namespace>__RootItemTotal__c": 20,
                "AccountId": "8SjtZ9HRDSZwNMblhy1VZKjj5J20HJXhYAQ75iwd_Ns.GC1PAoy2IUb1uvWCth0ycEVvgP_iWUgOTA1O9uqTJIos70elovNXQV5DWlpc9I4T",
                "<namespace>__TotalPremiumforTerm__c": 20,
                "<namespace>__TotalSumInsured__c": 0,
                "<namespace>__Term__c": "Annual",
                "<namespace>__TotalTaxTermDifference__c": 0,
                "<namespace>__TotalPremiumTermDifference__c": 20,
                "<namespace>__TotalFeeTermDifference__c": 0,
                "<namespace>__TotalAmountTermDifference__c": 20,
                "<namespace>__EndDate__c": "2022-04-15",
                "<namespace>__EffectiveDate__c": "2021-04-16",
                "<namespace>__DaysRemaining__c": 365
              }
            ]
          }
           
          Loading
          Salesforce Help | Article