You are here:
InsCensusService:setCensusRatingFacts
Use this service to associate a Rating Fact spec to a census, and automatically extract information from the census fields to populate the Attribute Selected Values for the census, based on the Rating Fact.
The service passes the census header fields (including custom fields) to an Omnistudio Data Mapper in the same way that the InsCensusService:setMemberRatingFacts service does to map Rating Fact attributes and census members.
This census level service allows you to reference a different Rating Fact, with different attributes, than the one associated at the census member level.
Method: setCensusRatingFacts
How It Works
-
The service takes the
censusId,ratingFactSpecId, anddrBundleNameas either inputs or remote options. -
The
drBundleNameData Mapper is used to populate theAttributeSelectedValues_cfields of the Census object with the Attribute Selected Values, and uses theSpecProduct2Id__cas a lookup field to link the census to a Rating Fact. -
Both the
SpecProduct2Id_candAttributeSelectedValues_care used in the rating.

