Help

Re: How to Create a Related Record

Solved
Jump to Solution
1454 0
cancel
Showing results for 
Search instead for 
Did you mean: 
Jon_Rosen
5 - Automation Enthusiast
5 - Automation Enthusiast

I’m new to AirTable, but have been a FileMaker developer for many years, and I’m trying to figure out the AirTable way of doing things. I wrote a simple time tracking application and I would like to create invoice line items from each of the time slips. If I’m creating an invoice for a client, I want to find all of the time slips that haven’t been invoiced previously and create an invoice line item for each one of them. I realize that I could use the time slips table itself, but I might want to combine some, change descriptions or otherwise alter them and I want the invoice to be independent and “locked” after they are sent. I know how I would do this in FileMaker, but what is the best way to do this in AirTable. You can assume that each invoice line item would be filled with the Date Created, Customer, Product, Description and Time Worked.

1 Solution

Accepted Solutions
ScottWorld
18 - Pluto
18 - Pluto

As you mentioned, the easiest way to do this would be to use the “time slips” table itself as the line items table.

However, if you wanted to duplicate these line items into a different “Line Items” table when you’re ready to bill your clients, you could create an automation (using Airtable’s native built-in automations) that creates a new record in the “Line Items” table whenever you check a checkbox on one of the time slip records. It doesn’t need to be a checkbox, but that’s the easiest.

After you’ve got all your line items in your Line Items table ready to attach to an invoice in the Invoices table, you would need to manually link each line item (unless you automate the linking process by writing your own custom JavaScript or by using an external automation platform like Integromat.)

Outside of creating a custom automation like that, the process would be a manual one.

So whenever you are ready to add your line items onto an invoice, you would manually link each line item to an invoice, one record at a time.

You could do this from either the invoice table or the line items table, and that’s because whenever you create a linked record field in Airtable, a “reverse” linked record field is automatically created in the other table.

From the invoice table, you could limit your line item record selection to a view, meaning that if you create a new view in your line items table that only shows you “unbilled” line items, only those line items will show up in your list of line items to choose from.

Hope this helps!

See Solution in Thread

3 Replies 3
ScottWorld
18 - Pluto
18 - Pluto

As you mentioned, the easiest way to do this would be to use the “time slips” table itself as the line items table.

However, if you wanted to duplicate these line items into a different “Line Items” table when you’re ready to bill your clients, you could create an automation (using Airtable’s native built-in automations) that creates a new record in the “Line Items” table whenever you check a checkbox on one of the time slip records. It doesn’t need to be a checkbox, but that’s the easiest.

After you’ve got all your line items in your Line Items table ready to attach to an invoice in the Invoices table, you would need to manually link each line item (unless you automate the linking process by writing your own custom JavaScript or by using an external automation platform like Integromat.)

Outside of creating a custom automation like that, the process would be a manual one.

So whenever you are ready to add your line items onto an invoice, you would manually link each line item to an invoice, one record at a time.

You could do this from either the invoice table or the line items table, and that’s because whenever you create a linked record field in Airtable, a “reverse” linked record field is automatically created in the other table.

From the invoice table, you could limit your line item record selection to a view, meaning that if you create a new view in your line items table that only shows you “unbilled” line items, only those line items will show up in your list of line items to choose from.

Hope this helps!

p.s. BTW, here are 2 videos from Gareth Pronovost on line items. Note that he uses Zapier, but Integromat is the far superior platform.

BTW, when I mentioned manually linking the line item records above, that actually could be automated too, but you would trigger the automation through some manual process, like setting a line item to “Ready to Bill” or something like that. So at that point, it’s just as easy to manually link it yourself.