Help

This Product Ideas board is currently undergoing updates, but please continue to submit your ideas.

Adding or pasting a linked record into multiple cells with pre existing records

cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Shelly_Fearer
5 - Automation Enthusiast
5 - Automation Enthusiast

I need to add a linked record to several hundred rows, without deleting the existing linked records. When I try to paste the new record into the rows, it deletes everything thatโ€™s already in that cell and replaces it with only the pasted record.
Doing this by hand would obviously not be time effective. Please tell me this is a feature and Iโ€™m just not seeing how to do it!
Deleting a linked record from multiple rows would also be helpful!

13 Comments
Diego_Angel_Hak
4 - Data Explorer
4 - Data Explorer

Hello everyone,

For a perhaps less intuitive but still very automatic way of doing it, please see this post:
Bulk Add a Linked Records to Fields that have existing linked records

I used the โ€œBy selectโ€ option but modified the code a little bit to my needs so that the selected record was added to only a filtered view of, in my case, โ€œMain Tableโ€:

let CatTable = base.getTable('Taxonomy landscaping');
let CatRecord = await input.recordAsync("Enter the Category you'd like to add to sected view",CatTable)
let FillTable = base.getTable('Main table').getView("Power Generation");
let TableQuery = await FillTable.selectRecordsAsync();
let TableRecords = TableQuery.records;

let d = []
TableRecords.forEach(c => d.push({id: c.id}));
await CatTable.updateRecordAsync(CatRecord.id,{
    
    'Main table': d

}
    
);
output.markdown('# Done ๐Ÿš€, please double check it is right')

Since I have many different filtered views that would need adding different linked records, the only hassle now is to edit the code every time and change the .getView("โ€ฆ") for the filtered view I want to modify. But itโ€™s much better than adding 1 by 1.

Hope it helps!

Rachel_Rohr
4 - Data Explorer
4 - Data Explorer

I have a simple way of handling this for tracking attendance at training sessions. Instead of trying to link the new training session by pasting it into the attendees table (the attendees are linked to many other training sessions, so this would overwrite their past attendance), I instead go to the record for the new training session, which is not yet linked to any attendees. I copy/paste the list of attendees (e.g. from a dedicated checkbox column) into a Google Sheet with a concatenate formula that puts all the attendee names on a single line with commas in between. I then copy/paste that single line with commas into the linked record field for the training session. The commas allow it to recognize and link to each record. Side note: The first time I did this it created some duplicate attendee records. Thatโ€™s because the record names werenโ€™t an exact match as a result of some blank spaces at the end of the record name. I fixed that using Airtableโ€™s TRIM formula.

Alexey_Gusev
12 - Earth
12 - Earth

I think, thatโ€™s not so hard. You can either link from โ€˜the other sideโ€™ or add formula helper field.
Example - table with 147 recors, linked to table with 800 records with different numbers. Imagine i have new record 3232, and wish to add it to all records having 2 and 3 in their name.

image

Filtering:
image

linking to new table
image

in new table youโ€™ll see 1 record with 2 fields. put any word in first and copy to link field
image
image

Now, gather your โ€˜harvestโ€™ and put it into your record
image

image

image

Task done. โ€˜New tableโ€™ and link to it can be removed

image

image

A long time to explain (depending on a person ability to work with tables), but it can be done less than a minute.

Second way, even easier

clean our links:
image

create simple formula, add string

image

paste into link field. task done. I think this action can fit into 20 seconds

image

image