Skip to main content

How to use the latest record rule in enrichment

This guide explains the latest record rule in Aragorn AI enrichment—selecting one row per person when the supplementary project has multiple records per employee.

T
Written by Tyrone Marhguy

What is the latest record rule?

Some supplementary projects contain multiple rows per employee—for example, attendance or shift data with one row per day.

The latest record rule groups records by an identifier (such as employee_id), sorts by a date field, and keeps the most recent row per group for enrichment.

Example: A shifts project has three rows for one employee (Monday, Tuesday, Wednesday). Latest record rule groups by employee_id, sorts by work date descending, and keeps only Wednesday’s row when enriching the employee profile.

When to use it

  • Supplementary data is event-based (shifts, payments, status changes over time).

  • Integrations need “current” or “most recent” values from a history table.

  • You must collapse many rows into one lookup row per employee.

Configure latest record rule

  1. Log in to your Aragorn AI account.

  2. Open the main project and create or edit an enrichment linked to a supplementary project with multiple rows per person.

  3. In enrichment advanced settings, enable latest record rule.

  4. Set group by — typically employee_id or external_employee_id.

  5. Set sort by — a date or timestamp field (for example, start_date, hired_date, or shift date).

  6. Choose most recent first so the newest record per group is kept.

  7. Preview results to confirm one record per employee with the expected date.

  8. Save, map output fields, and reprocess the main project.

Screenshot: Latest record rule configuration—group by employee_id, sort by date, most recent first.

Screenshot: Preview showing one record per employee after latest record rule is applied.

Related articles

Did this answer your question?