Help

Re: Refresh link after an import

747 0
cancel
Showing results for 
Search instead for 
Did you mean: 
bitstreams_red
6 - Interface Innovator
6 - Interface Innovator

I have a table that includes a single line text field called 'Product Import' and a linked record called 'Product'. I use the CSV import extension to pull in a CSV in to this table and display the result on the Data view.

When the import completes, the 'Product Import' field will have a value pulled from the CSV and if the primary field from the linked Product table matches, then this automatically links to the Product field (as image below).

bitstreams_red_0-1724745355809.png

This shows the operator which products are already in the database and they can add the missing entries in the Product field by adding them through this screen, or going to a Product table view and adding them.

My difficulty is that I cannot get this view (with the found/not found matches) to refresh. It only compares the fields on an import, not subsequently. 

Is there a way of doing this?

6 Replies 6

Hello,

You could set your CSV import extension so that product labels are fed directly to field "Product" instead of "Product Import".

Result will be that if Product allready exists in table "Product", record will be automatically linked, If not a new record will be created in table Product.

But maybe, you do not want to automatically create records in table Product and let user choose if it is a "real new product" or if it should be linked to another product?

Regards,

Pascal

Thanks, but I don't want to feed them directly in to Products as they need sense checking first.

Then, you could use an automation:

Pascal_Gallais_0-1724754914640.png

Table "Order2" is the table where I want to update the link to table "Product" when a new record is created.

First step is to add a "Find records" action to check if the new "Product import" does exist in table "Product":

Pascal_Gallais_1-1724755078256.png

Then we add a conditional action that runs if product was found:

Pascal_Gallais_2-1724755197626.png

Condition on length being setup on the "Find records" action:

Pascal_Gallais_3-1724755259045.png

And, within the conditional action, we add an update record action:

Pascal_Gallais_4-1724755328173.png

To update field "Product" of the record that triggered the automation:

Pascal_Gallais_5-1724755391222.png

With the value found in the "Find records" step:

Pascal_Gallais_6-1724755489127.png

Be carefull though, automation will run for each row from your CSV file. It means that if you have a large number of rows to import, you may hit the limit of monthly automation runs of your Airtable plan.

Regards,

Pascal

 

 

Hi Pascal,

Thank you for the thorough answer - I'll have a play.

 

regards

Simon

Be really carefull on the number of lines in your CSV file

Hi,
If you want to see only records recently added, you can add 'Created time' field and add view with a filter 'Created time' is today.
If you want to link records already having match in a product table, you can edit Product table permissions
"Who can create records?" - Specific users, and add operator. Thus, you can simply copy whole 'Product Import' field and paste it into linked field "Product" (I would recommend to do it with filter 'Where "Product" is empty'). 
It will link to existing records, but won't allow you to create new records to link.
And then operator could do the rest of the job.