You are here:
InsCensusServiceStd:setMemberRatingFacts
Use this service to set AttributeSelectedValues on the GroupCensusMember records based on the rating fact passed to the service.
Class: InsCensusServiceStd
Method: setMemberRatingFacts
How It Works
-
The service takes the
censusId,ratingFactSpecId, anddrBundleNameas either inputs or remote options. -
Fetches the GroupCensus, GroupCensusMember, and related GroupClass records from the passed census Id.
-
The service uses the fieldset RatingFactSourceFields for fetching GroupCensusMember record data.
-
(optional) The service uses
drBundleNameOmnistudio Data Mapper to populate theAttributeSelectedValues_cfields of the GroupCensusMember object. It passes theSpecProduct2Id__cas a lookup field to link the GroupCensusMember to a Rating Fact. -
Both the
SpecProduct2Id_candAttributeSelectedValues_care used in the rating.
Service Behavior
Understand how different inputs affect the service outputs.
| Input | Service Output |
|---|---|
No censusId or invalid censusId
|
AttributeSelectedValues aren't populated. |
No ratingFactSpecId and invalid ratingFactSpecId
|
AttributeSelectedValues aren't populated. |
Invalid drBundleName
|
Empty AttributeSelectedValues are populated. |
Valid censusId and ratingFactSpecId
|
AttributeSelectedValues are populated for each member. |
Input or Remote Options
Provide the following as either an input or remote option:
| Option | Description |
|---|---|
|
Group Census Id to be associated with the Rating Fact spec. |
|
Rating Fact spec Id to be associated with the census. |
|
Name of transform Data Mapper to map Rating Fact attributes and group census member. |
Input JSON
Here's the sample input JSON format:
{
"censusId":"ID",
"ratingFactSpecId":"ID",
"drBundleName":"Name"
}Here's the sample input JSON:
{
"censusId":"a4D4P000000hbjSUAQ",
"ratingFactSpecId":"01tRO000000VpnYYAS"
"drBundleName":"TransformGroupCensusMember"
}Output JSON
There is no output JSON associated with this service.

