- 16 May 2023
- 2 Minutes à lire
Airtable automation action: Create record
- Mis à jour le 16 May 2023
- 2 Minutes à lire
When building an Automation, you may choose the Create record action. When the automation runs successfully, a record will be created in a specified table. The Create record action can be configured with one or more fields set to any text or to a value from a previous step or both.
|Plan availability||All plan types with varying limitations|
|Platform(s)||Web/Browser, Mac app, and Windows app|
After you have configured your base in the manner you choose, you can then begin configuring your automation. For this example, we will be setting up an automation that creates an archive record of completed projects in our Project Tracker template. This same process can be done manually by linking records and using lookups, but by using the Automations feature, now the process can be accomplished automatically in a similar fashion.
To start creating an automation, click on Automations in the upper left corner of an open base.
Choose a trigger
Next, choose a trigger, such as "When a record enters a view". In our example, the view was filtered to only show records from the "Design projects" table in the "Completed" view. A filter is used in the "Completed" view that only shows projects marked complete. This means that when the checkbox field is checked the automation will fire. After proper setup, test your trigger by clicking "Run test".
Add an action
After testing the trigger successfully, we can move on to setting up the action. Click the blue "+ Add Action" button. Then, click on the "Create record" option. This will bring up a menu of options. First, select your desired table where the new record will be created. Next, you can choose which information from the trigger to add to the table you have chosen for this step. In our example, we are only inserting certain information into a new "Design projects (Archived)" table that we created. After adding the desired information for the action step make sure to test the action.
After successfully testing the action, you can turn your automation on. Now, in our example, a new record will be created any time someone marks the project as complete.
If your use case requires that more or all of the information from a record be created in another table, then you'll need to configure each field in the automation to be included in that record. It's possible that field names may not match, so be sure to double-check the way that you are mapping the fields and data in the automation's configuration.
In general, no. In order to create records in another base you'll need to use a scripting action that includes a custom Web API call to create those records elsewhere. The one exception to this rule is for Enterprise customers who are using Airtable's two-way sync feature. In this case, creators can build an automation that creates the records in that synced table. These created records will sync to any other bases connected via that two-way sync.