You are here:
InsCensusServiceStd:setCensusRatingFacts
Use this service to set AttributeSelectedValues on the GroupCensus record based on the rating fact passed to the service.
Class: InsCensusServiceStd
Method: setCensusRatingFacts
How It Works
-
The service takes the
censusId,ratingFactSpecId, anddrBundleNameas either inputs or remote options. -
The service uses
drBundleNameOmnistudio Data Mapper to populate theAttributeSelectedValues_cfields of the GroupCensus object. It uses theSpecProduct2Id__cas a lookup field to link the GroupCensus 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 are not populated. |
No ratingFactSpecId and invalid ratingFactSpecId
|
AttributeSelectedValues are not populated. |
Invalid drBundleName
|
Empty AttributeSelectedValues are populated. |
Valid censusId and ratingFactSpecId
|
AttributeSelectedValues are populated for the passed census. |
Remote Options
| Option | Description |
|---|---|
censusId
|
Required. ID of the group census to be associated with the Rating Fact spec. |
ratingFactSpecId
|
Required Rating Fact spec Id to be associated with the census. |
drBundleName
|
Name of transform Data Mapper to map Rating Fact attributes and census. |
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":"TransformGroupCensus"
}Output JSON
The service populates attribute selected values on group census.

