Help

Re: Automatically creating and updating new tables based on a record

1791 0
cancel
Showing results for 
Search instead for 
Did you mean: 
Yihwan_Kim
4 - Data Explorer
4 - Data Explorer

As the name suggests, I would like to copy and consolidate records based on one field into new tables. Perhaps an example would help:

Let’s say I’m a store that sells apples, oranges, and bananas. Every time I sell a fruit, I record it in the Main Table by selecting the fruit in a dropdown menu with other purchase information like customer name, date and time of purchase, etc. The dropdown menu is multi-select since customers can buy more than one kind of fruit at a time.

In addition to all fruit purchase information in the Main Table, I would like to create three new tables: Apples, Oranges, and Bananas that only contain the purchase history of the one respective fruit. The idea is that each table will automatically copy over a record from the Main Table when I select a fruit.

Any ideas on how I might go about doing this? Thanks in advance!

10 Replies 10

I don’t know of any way to implement precisely what you’ve described – but there may be ways to provide you with equivalent functionality. My problem is I can’t quite suss out your endgame from your description. Could you give a little more detail as to how you envision the completed base? (Here or by private message if you have concerns about exposing core processes.) It just feels like there should be an Airtable-based solution possible.

You might want to look through the Support forum for examples of how other users have managed to pass information from one table to another; while none are likely to provide a ‘plug-compatible’ solution to your problem, some of the techniques used might be adaptable to your application. As a start, take a look at the potential solutions and demonstration bases I’ve offered in the replies to the following posts. Again, while none is an exact match for your needs, in each case the desired behavior required moving information through Airtable in a manner not explicitly supported by an internal function.

Polen
7 - App Architect
7 - App Architect

Without more info about your goals and with a superficial understanding of what you’re trying to achieve, it looks like that you should try using a bunch of rollups/lookups and link fields. What you say about the multiple select, that’s probably what will end up leaving you stuck if you really want to have one table per product type. By using the link fields you will be replicating that functionality of creating a new record without any automation. I’ve done it for an inventory management base I made for myself.

Hi there! Thanks for the reply. I put together a brief table that hopefully illustrates what I’m imagining a bit better. https://airtable.com/shrjGqvhzDrHvPdLd

So you’ll notice that in the main dataset, the first three rows have already been assigned “fruit tags” in the second column. The idea is that once I assign a fruit-tag, that entire row would automatically appear in the respective fruit-specific table.

The last two banana purchases have not been “tagged” yet, so they do not appear in the banana table. The idea though is that would automatically happen once the banana tag is assigned to the row.

Does that make sense? haha i know it’s a bit confusing (I confused myself several times trying to explain it) - i really appreciate your help!

edit

i haven’t had a chance to dig through the links you mentioned just yet, so i’ll be sure to do that now to see if i can figure something out!

@Yihwan_Kim Did you find answer to this issue? Have a similar need!

I too am looking for an answer on this. Did you have any luck?

Ian_Janicki
4 - Data Explorer
4 - Data Explorer

I did have success, but by using an external service. I wanted to convert 1 ‘week’ entry into 5 ‘day’ entries automatically based on column values from the week. From there, I wanted to create 5 ‘meal’ values from each day value. So first a cascade of 5 rows which then in turn cascade to 25 rows.

I did this by using Zapier, by using Airtable as both the input and the output. In my use case, I knew I needed a cascade of 5, so I set up 5 steps in my ‘Zap’. If you need a 1:1 relationship, you won’t even need to go that far. If you need a custom amount based on the origin record, that’s going to be harder to do. I’m looking into writing a script inside Zapier in order to achieve this.

I should also note that Zapier will update only at 15 minute internals (5 minute intervals on a paid plan). So if you need it instantaneous, this is not your solution. Hope this helps.

Joshua_Martin
5 - Automation Enthusiast
5 - Automation Enthusiast

You have probably already figured out a solution to this considering the question was written in august 2017 but here is what you do for those reading this:

The way you would do this is by making a new view for each of the fruits and then in each view filter it to only contain one specific type of fruit. If you wanted to show every transaction for each specific day you can also add a new view and group it by the date of the purchases.

Chuck_Korenic
4 - Data Explorer
4 - Data Explorer

Hi, has anyone found a way to do this without using a third party service?

I am using AirTable to keep track of conversations and other details with potential clients.

When I have a conversation with a client I record the details with a call back date in the interactions table.

I am using a callback table that contains the following; customer name, date of call back and a description.

WIthout Zapier, (3rd party service I have successfully integrated into AirTable) I have to create a new record on the call back table and add the interaction then everything else auto populates.

I would like to be able to create the interaction and have all the data auto populate in callbacks. Zapier works but isn’t quite perfect. It only allows 100 automation’s per month in the free version and there is a 15 minute wait (even with the first tier of paid).

Katie_James2
4 - Data Explorer
4 - Data Explorer

Hi Yihwan_Kim,
Did you find a solution to this? I’m stuck looking for the answer to an almost identical question (except for the fruit bit)…

Sean_Bradley
5 - Automation Enthusiast
5 - Automation Enthusiast

I know this is a way dead thread...
But it seems that if you REALLY only have 3 fruits to sell... (3 tags possible) that it would not be very difficult to get those rows into different tables (not sure why)

Do what Joshua Martin suggested - create 3 new views that are filtered for those specific fruits.

Create 3 automations. One for each fruit. The trigger is "when record enters a view". (each automation is for one fruit view). The action is to add a record with all that same info into that fruit's special table.