Sep 13, 2024 04:16 PM
Hello All,
I've been attempting to create a more efficient way for my organization to sort through volunteers and create a matching system to the elderly. So far, I've created two main tables: Volunteers and Old Friends that are populated by a use of forms. There are certain columns that are referenced in the forms controlled by other tables i.e. hobbies. Using Scripting in an attempt to create a system that can sort through the Volunteers table and Old Friends table to match based on the hobbies (to start, I plan on using other variables once I get this part working). Any help would be greatly appreciated!
Here are the links to the two tables:
Volunteers - https://airtable.com/app63KIAsdReM2VbZ/shrsqIBAQVIhCcfEA
Old Friends - https://airtable.com/app63KIAsdReM2VbZ/shrLDOcutrx5CNfjR
This is what I have from Scratch but I'm unsure where I am going wrong:
Sep 15, 2024 01:03 AM
Hi,
You are trying to script action, that in fact belongs to the core Airtable functionality.
Imagine you have only these 2 tables, and no links, just text data.
First thing you can do - create link field to a new table, that will be a table of hobbies
then copy-paste whole hobbies field into link field
Hobbies table will be auto-populated
Now you can do the same with 2nd table (link to the same Hobbies table).
The you will see matches and using lookups and rollups, get other info you need.
I would recommend to not use number ID as primary field.
Primary field must be descriptive. You can use formula instead like
TRIM(Name & " " & LastName)
trim is important otherwise you can get single space on a place looking like empty value, and then make mistake with filter 'when {field} is empty'
If you have several persons with the same Name and Last Name, add something else to make it unique. With unique primary field it's very easy to link tables.