You are here:
InsCensusService:getMemberRatingFacts
Use this service to retrieve rating fact data for census members, for use as
user Inputs for the InsProductService:getRatedProducts
service.
Method: getMemberRatingFacts
How It Works
-
JSON formatted userInputs of the census rating fact dataset are used to form
userInputsfor thegetRatedProductsservice. -
The
censusIdandaccountIdare used to retrieve theGroupCensus__cobject. -
The
censusIdis used to retrieve theGroupCensusMember__cobject, which generates the user inputs using theGroupCensus__cproduct. -
Details for the rating fact, and it’s attribute selected values, are then iterated to each
GroupCensusMember__c. -
If
includeContributionInUserInputis true, all contributions are added to theuserInputs.
Inputs/Remote Options
Option |
Description |
|---|---|
|
Required. Id of the census with members to retrieve. |
|
Optional. Id of Account for census. |
|
Optional. String value. The productCategory, used to group class contributions. |
|
Boolean. Used to determine if contributions will be added to the userInputs on the output. Default = false. |
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"
}

