Files
twenty/packages
Félix MalfaitandClaude Opus 4.6 c15ae95c5f fix: fetch bulk person emails from server instead of record store
When "Send Email" is triggered from a People index with multiple rows
selected, the recipient list was built from the record store which only
contains fields loaded for the current view — emails.primaryEmail is
often missing if the email column is not visible.

In "select all" (exclusion) mode the problem was worse: selectedRecords
is empty so the composer always opened with a blank To: field.

Replace the record-store read with a dedicated useFindManyRecords query
using the context store's graphqlFilter, which correctly encodes both
inclusion and exclusion selections. The query fetches only id +
emails.primaryEmail and is capped at MAX_EMAIL_RECIPIENTS (100).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-09 11:14:57 +02:00
..