1. Add Fields in the "Participations" Table:
- Date Field: Ensure you have a date field in the "Participations" table that records the date of participation.
- Company Field: Ensure you have a field that links to the "Companies" table.
2. Create a Rollup Field in the "Companies" Table:
Earliest Participation Date: Create a rollup field in the "Companies" table that uses the MIN(values) function to find the earliest participation date from the linked records in the "Participations" table.
- Field Name: Earliest Participation Date
- Type: Rollup
- Linked Table: Participations
- Field to Rollup: Date
- Rollup Function: MIN(values)
3. Lookup Field in the "Participations" Table:
Earliest Participation Date for Company: Create a lookup field in the "Participations" table that pulls in the Earliest Participation Date from the "Companies" table.
- Field Name: Earliest Participation Date for Company
- Type: Lookup
- Linked Table: Companies
- Field to Lookup: Earliest Participation Date
4. Formula Field in the "Participations" Table:
Is Earliest Participation: Create a formula field to check if the participation date matches the earliest participation date for the company.
- Field Name: Is Earliest Participation
- Type: Formula
- Formula: IF(Date = {Earliest Participation Date for Company}, "Yes", "No")
5. Automation to Update "Participation active?" Field:
Set up an automation to update the Participation active? field based on the Is Earliest Participation field.
- Trigger: When a record in the "Participations" table is updated.
- Condition: If Earliest Participation is "Yes".
- Action: Update the record to set Participation active? to "active".