--- title: "Use an Array of Objects in Journey Message Personalization" slug: "use-an-array-of-objects-in-journey-message-personalization" description: "Explains how Array Rules select and order records so you can personalize Journey messages using Array of Objects data fields in Insider One campaigns." tags: ["array of object rules"] updated: 2026-11-25T12:20:47Z published: 2026-11-25T12:20:47Z canonical: "academy.insiderone.com/use-an-array-of-objects-in-journey-message-personalization" --- > ## Documentation Index > Fetch the complete documentation index at: https://academy.insiderone.com/llms.txt > Use this file to discover all available pages before exploring further. # Use an Array of Objects in Journey Message Personalization > **Suggested reading**: [Use an Array of Objects in Journey Elements](/v1/docs/use-an-array-of-objects-in-journey-elements) > [!NOTE] > **Note:** Array Rules apply to Array of Objects attributes. Array of Objects event parameters do not need a rule. To use them in a journey message, see [Liquid in Architect](/docs/liquid-in-architect#array-of-objects-event-parameters). ### 1. Define an Array of Objects Rule Before using the Array of Objects in campaigns for dynamic content, you need to create an **Array Rule** first. **Array Rules** determine: - Which object to evaluate - How objects are filtered - How objects are ordered - How many objects are considered Without an Array Rule: - The system cannot determine which object to use - If multiple objects match the conditions, it cannot clearly decide which object’s key value (for example, *renewal_date* or *plan_name*) will be used in personalization Array Rules ensure consistent and predictable object selection. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-N05N9OYC.png) When configuring **Order the objects by** in an Array Rule, the selected object key must be one of the following data types: - Date - Number - String Ascending and descending ordering is supported only for these types because they can be logically compared and sorted. For example: If you order by **renewal_date** (Date) - **Ascending**: from the earliest date to the latest date - **Descending**: from the latest date to the earliest date. #### Example Array Rule Configuration The screenshot below shows an example rule configuration for the Subscriptions Array of Objects. This example demonstrates how you can: - Filter only active subscriptions - Apply a price threshold - Order by renewal date - Select the nearest upcoming subscription > [!NOTE] > The configuration shown is only an example and can be adjusted based on business needs. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-1771828757983.png) ### 2. Use an Array of Objects in Dynamic Content After creating the segment and defining the Array Rule, you can use object fields directly inside Journey messages for dynamic personalization. This example demonstrates how subscription data can be used in a Journey campaign: ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-1771829906318.png) **Message Content Example:** Your {{subscription_rule.c_subscriptions_1_plan_name}} subscription will renew on {{subscription_rule.c_subscriptions_1_renewal_date}}. ## Related - [Create an Array of Objects Attribute](/create-an-array-of-objects-attribute.md) - [Use Cases for the Array of Objects](/use-cases-for-the-array-of-objects.md) - [FAQ about the Array of Objects](/faq-about-the-array-of-objects.md) - [Use an Array of Objects in Journey Elements](/use-an-array-of-objects-in-journey-elements.md)