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
          InsCensusService:getMemberRatingFacts

          InsCensusService:getMemberRatingFacts

          Use this service to retrieve rating fact data for census members, for use as user Inputs for the InsProductService:getRatedProducts service.

          Class: InsCensusService

          Method: getMemberRatingFacts

          How It Works

          • JSON formatted userInputs of the census rating fact dataset are used to form userInputs for the getRatedProducts service.

          • The censusId and accountId are used to retrieve the GroupCensus__c object.

          • The censusId is used to retrieve the GroupCensusMember__c object, which generates the user inputs using the GroupCensus__c product.

          • Details for the rating fact, and it’s attribute selected values, are then iterated to each GroupCensusMember__c.

          • If includeContributionInUserInput is true, all contributions are added to the userInputs.

          Inputs/Remote Options

          Option

          Description

          censusId

          Required.

          Id of the census with members to retrieve.

          accountId

          Optional.

          Id of Account for census.

          productCategory

          Optional.

          String value.

          The productCategory, used to group class contributions.

          includeContributionInUserInput drBundleName

          Boolean.

          Used to determine if contributions will be added to the userInputs on the output.

          Default = false.

          Input JSON

          This service does not use an input JSON.

          Output JSON

          Below is the sample output of userInputs on a census with three members and the attribute selected values of the rating fact attached to the census (MEMBERAGE and MEMBERGENDER).

          {
            "ContextId": "",
            "timeStamp": "2019-08-02T14:03:20.161Z",
            "userId": "0056F0000077bTYQAY",
            "userName": "jsmith@company.com",
            "userProfile": "System Administrator",
            "userTimeZone": -420,
            "userCurrencyCode": "EUR",
            "sfdcIFrameOrigin": "https://company.com",
            "sfdcIFrameHost": "web",
            "layout": "lightning",
            "isdtp": "p1",
            "id": "a1e6F000004RDdXQAW",
            "vlcPersistentComponent": {},
            "censusId": "a396F000001KurRQAS",
            "userInputs": [
              {
                "JLRF.MEMBERGENDER": "Female",
                "JLRF.MEMBERAGE": 33
              },
              {
                "JLRF.MEMBERGENDER": "Male",
                "JLRF.MEMBERAGE": 49
              },
              {
                "JLRF.MEMBERGENDER": "Male",
                "JLRF.MEMBERAGE": 35
              }
            ],
            "error": "OK"
          }
          
           
          Loading
          Salesforce Help | Article