Filtering Airtable Duplicates

Hi together,

I have an Airtable Database filled with datasets. Some of the datasets are duplicates, meaning their title is the same. Yet, I also need to check if the location is also the same. If both are the same, I want to remove one of the duplicat rows by their ID.

I tried building the flow. I am able to drop the values with deduplicate() taking in title and the location in an array. In order for me to find out which rows to delete on airtable I need to find out the ID’s for the dropped values. Yet, I can’t pass on the ID via the array as these are unique values and are not detected by deduplicate().

Any help would be very much appreciated!

blueprint (1).json (10.2 KB)
module-4-output-bundle.txt (1013 Bytes)
module-3-output-bundle.txt (833 Bytes)
module-2-output-bundle.txt (1.2 KB)
module-1-output-bundle.txt (1.8 KB)

Welcome to the Make community!

To know what you are trying to deduplicate,

Please provide the output bundles of the Airtable modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.
Screenshot_2023-10-06_141025

A.

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.
Uploading them here will look like this:

module-1-output-bundle.txt (12.3 KB)

B.

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles in this manner:

  • Either add three backticks ``` before and after the code, like this:

    ```
    input/output bundle content goes here
    ```

  • Or use the format code button in the editor:
    Screenshot_2023-10-02_191027

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

This will allow others to better assist you. Thanks!

Hi samliew,

Thanks for letting me know. I’ve updated the output bundles directly in my first post!

1 Like

Hi I would actually do this differently and use only use airtable modules to do all of this.



Then I would delete the record.

This will find all of the rows in your table with the first module.

Second will go row by row and see if more than one row for the same location and title exists if it finds more than one row it will delete the row found after the first bundle only keep one.

4 Likes

@Mr.Make Thank you so much! I was struggling to build this all day yesterday. It just got way to complicated at one point.

This works easy and is a much cleaner process.

2 Likes

Of course no problem glad it helped!!

1 Like