Hi all,
I'm working on moving my team's operations over to Airtable, and I'm trying to find a way to automatically compare records in different tables at the end of the month. I'm pretty sure I'll need to use scripting, but I'm wondering if there's a no-code or low-code way to do this instead of fumbling my way through javascript with chatGPT.
The use case is:
I have a base (LIST1) that is a list of sites we operate at every month, and another base (LIST2) that is a junction table documenting our activities (joining other bases of staff, vehicles, sites, equipment, etc). I'm trying to set up an automation that fires at the end of every month to see if there are any sites we didn't visit that month and if so add those to a third base (LIST3) as a new record for each 'missed' site.
The plan is to
- Find all records from LIST1 that have the inspection interval "monthly" - I CAN DO THIS
- I CAN DO THIS - Find all records from LIST2 that were inspected in the last month - I CAN DO THIS
- Compare and look for duplicates. If there are duplicates, add them to ARRAY1. If there are not duplicates, add them to ARRAY2. - I NEED HELP WITH THIS
- Write everything from ARRAY 2 to LIST3 - the list of 'missed' sites, along with some information about the date/referenced records. - I CAN DO THIS
Can anyone help me figure out a way to "compare" two lists of found records?
