TwentyT
Twenty16mo ago
1 reply
Skyfox675

Help with REST API `emails` filter

Hey all! I just upgraded to v0.30.2 super excited to start leveraging some of the new features!

I'm working through updating my automations that talk to Twenty, and have a question about how to currently query on the new emails.primaryEmail and emails.additionalEmails fields.

I'm hoping to search all email fields for Persons to see if the email exists or is known or not. So I'm planning on using the or() operator with the /rest/people endpoint to query to see if they exist.

This filter query is working for primary emails just fine, but hoping to leverage similar to a contains() operator for the additional emails field:
emails.primaryEmail[eq]:bob@example.com

Curious if this PR is related or adds the functionality that I'm hoping to use - https://github.com/twentyhq/twenty/pull/6862

I briefly looked through GH issues but didn't see much related to the new array field type just yet for v0.30.

TIA!
GitHub
This PR was created by GitStart to address the requirements from this ticket: TWNTY-6447.
This ticket was imp...
Introduce ARRAY field type by gitstart-app[bot] · Pull Request #686...
Was this page helpful?