Complex collections
How complex collection traits, like subscriptions, differ from standard traits — with filtering examples and known behavior to watch for.
Prerequisites
- You must have Company or App Administrator permissions in Recurly Engage.
- You should be familiar with building segments. See Overview: segments.
Limitations
- Filters on different sub-attributes within the same collection are evaluated independently, which can produce broader matches than you expect. See Filtering behavior below.
Definition
Subscriptions are the collection type available today. A single user can have more than one subscription record, for example one active plan and one expired plan, and each record carries its own plan, status, price, and renewal dates. Complex collections let you filter on those sub-attributes when you build a segment.
Key benefits
Key details
Build a filter on a complex collection
Filtering behavior
Filters on different sub-attributes within a subscription collection are evaluated independently across all of a user's subscription records, not against a single matching record.
This means a user qualifies if any of their subscriptions matches criterion A and any of their subscriptions matches criterion B. Those can be two different subscriptions. The filter doesn't require both conditions to be true on the same record.
Example
Say you build a segment with two subscription filters:
- Plan = Premium
- Status = Expired
A user with these two subscription records would match this segment:
| Subscription | Plan | Status |
| A | Premium | Active |
| B | Basic | Expired |
No single subscription of this user's is both Premium and expired, but the user still matches. Subscription A satisfies the Plan filter, and subscription B satisfies the Status filter, independently of each other.
Updated 5 days ago