Help

Search for an Email in a table from a separate table

Topic Labels: Data
400 1
cancel
Showing results for 
Search instead for 
Did you mean: 
INCOSEIL
4 - Data Explorer
4 - Data Explorer

Hi, 

I have two tables in a Database.

One table: called "People". It has list of peoples and their Emails.

Second table: called "Mailing" Has email from table one.

I would like to set an new field in "People" (table 1) that marks "1" if an email is present in both tables. I called this field "Did_I_found_Email" (1 = yes, 0 = No).

How do I do this? 

Screenshot 2024-07-29 125555.png

 

Screenshot 2024-07-29 125635.png

 

 

1 Reply 1

Hello,

You could proceed as follows.

-1- add a formula field in table Mailing wich equals primar key "EMAILWANT"

Pascal_Gallais_0-1722261034921.png

Pascal_Gallais_1-1722261081321.png

-2- Add a checkbox type field called "check email" in table people:

Pascal_Gallais_2-1722261146922.png

-3- Create a new automation:

Pascal_Gallais_3-1722261188071.png

Trigger is when field "Check email" is checked:

Pascal_Gallais_4-1722261227836.png

First action is to look in table "Mailing" for records with the same email:

Pascal_Gallais_5-1722261315139.png

EMail coming from the record that triggered the automation:

Pascal_Gallais_6-1722261362780.png

We then have a condition to check if we found some records:

Pascal_Gallais_7-1722261433001.png

And If so, we update table People with value 1:

Pascal_Gallais_8-1722261492548.png

We then have a condition for when no records were found:

Pascal_Gallais_9-1722261541638.png

And we update table people with value 0:

Pascal_Gallais_10-1722261598402.png

2 observations:

- This automation checks if an email present in table People is also present in table Maiing, not the other wayround.

- This automation is triggered manualy and does the check for one row only.

Depending on how your flow works, you can review the automation to work the other way round and to be triggered automatically, for example with a trigger 'when a record is created" in table Mailing.

Regards,

Pascal