Choosing the Right Service for InsProductService : getRatedGroupProducts vs. getRatedProducts for Different Data Models
- VlocityGru
- Jul 19, 2024
- 1 min read
Updated: Oct 3, 2024
Overview
The service InsProductService.getRatedGroupProducts is specifically designed for the Old Data Model, which revolves around the vlocity_ins__GroupCensus__c entity. However, if you are working with a custom census object, use the InsProductService.getRatedProducts service instead.
Description
The vlocity_ins__GroupCensus__c entity is part of the Old Data Model. This model has served well in the past but might be limited in certain scenarios as business needs grow and evolve.
When utilizing InsProductService.getRatedGroupProducts, it is mandatory to use the ID associated with this specific entity (vlocity_ins__GroupCensus__c).
References:
Using a custom census object or the Standard one, you can utilize the InsProductService.getRatedProducts service. This service is designed to work with custom and Standard data models, providing flexibility and compatibility with your specific needs.
References:
Comments