Explore partial sync
Partial sync in the primitives framework enables selective synchronization of related channel partner data between Quote and Opportunity entities in Sales Order Management (SOM). Rather than processing the entire data structure, partial sync allows you to synchronize only the portions that have changed, significantly improving performance and reducing unnecessary data processing.
Partial sync as a solution
Partial sync introduces delta-based, selective synchronization with these key capabilities:
- Selective processing:
- Callers specify which child types to process using the
allowed_context_typesparameter - Only requested sections are populated and synchronized
- Full structure skeleton maintained for consistency
- Callers specify which child types to process using the
- Related party support:
- Automatic synchronization of related channel partners from quotes to opportunities
- Works when the
Syncedflag is enabled on a quote - Maintains data consistency across both entities
- Performance optimization:
- Processes only what changed, not the entire structure
- Reduced payload sizes
- Faster execution times
- Lower resource consumption
- Structural integrity:
- Maintains consistent JSON structure
- Empty arrays preserved when types aren't included
- No downstream errors from missing data structures
- Recursive filtering at all hierarchy levels
Key concepts
AllowedContextTypes
The allowed_context_types parameter is an array that controls which sections of the data structure get populated during synchronization. Example:
Entities involved
sn_quote_mgmt_core_quote_related_party: Table for related channel partners on quotes.sn_bus_org_opptym_related_business_organization: Table for related channel partners on opportunities.