Add documentation for Airtable Trigger node and update field names

This commit is contained in:
Harshil 2020-12-01 14:53:22 +05:30
parent afb9380dd7
commit a4eacbf737
10 changed files with 62 additions and 7 deletions

View File

@ -7,7 +7,7 @@ description: Learn to configure credentials for the Airtable node in n8n
You can use these credentials to authenticate the following nodes with Airtable.
- [Airtable](../../nodes-library/nodes/Airtable/README.md)
- [Airtable Trigger](../../nodes-library/trigger-nodes/AirtableTrigger/README.md)
## Prerequisites

Binary file not shown.

Before

Width:  |  Height:  |  Size: 232 KiB

After

Width:  |  Height:  |  Size: 140 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 216 KiB

After

Width:  |  Height:  |  Size: 134 KiB

View File

@ -52,24 +52,22 @@ The start node exists by default when you create a new workflow.
1. First of all, you'll have to enter credentials for the Airtable node. You can find out how to do that [here](../../../credentials/Airtable/README.md).
2. Select the 'Append' option from the ***Operation*** dropdown list.
3. Enter the application ID in the ***Application ID*** field. For obtaining the Application ID, head over to their [API page](https://airtable.com/api) and select the correct base. Youll find the Application ID there.
3. Enter the Base ID in the ***Base ID*** field. For obtaining the Base ID, head over to their [API page](https://airtable.com/api) and select the correct base. Youll find the Base ID there.
4. Enter the name of the table in the ***Table*** field.
5. Click on ***Execute Node*** to run the workflow.
![Using the Airtable node to insert data into an Airtable table](./Airtable_node.png)
### 4. Airtable1 node (List)
1. Select the credentials that you entered in the previous node.
2. Select the 'List' option from the ***Operation*** dropdown list.
3. Enter the application ID used in the previous node in the ***Application ID*** field.
3. Enter the base ID used in the previous node in the ***Base ID*** field.
4. Enter the name of the table used in the previous node in the ***Table*** field.
5. Click on ***Execute Node*** to run the workflow.
![Using the Airtable node to read data from an Airtable table](./Airtable1_node.png)
## Further Reading
- [Automating Conference Organization Processes with n8n](https://medium.com/n8n-io/automating-conference-organization-processes-with-n8n-ab8f64a7a520)

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 KiB

View File

@ -0,0 +1,57 @@
---
permalink: /nodes/n8n-nodes-base.airtableTrigger
description: Learn how to use the Airtable Trigger node in n8n
---
# Airtable Trigger
[Airtable](https://airtable.com/) is a spreadsheet-database hybrid, with the features of a database but applied to a spreadsheet. The fields in an Airtable table are similar to cells in a spreadsheet, but have types such as 'checkbox', 'phone number', and 'drop-down list', and can reference file attachments like images.
::: tip 🔑 Credentials
You can find authentication information for this node [here](../../../credentials/Airtable/README.md).
:::
## Example Usage
This workflow allows you to receive a Mattermost message when new data gets added to Airtable. You can also find the [workflow](https://n8n.io/workflows/799) on n8n.io. This example usage workflow would use the following nodes.
- [Airtable Trigger]()
- [Mattermost](../../nodes/Mattermost/README.md)
The final workflow should look like the following image.
![A workflow with the Airtable Trigger node](./workflow.png)
### 1. Airtable Trigger node
The Airtable Trigger node will trigger the workflow when new data gets added to Airtable.
1. First of all, you'll have to enter credentials for the Airtable Trigger node. You can find out how to do that [here](../../../credentials/Airtable/README.md).
2. Click on ***Add Poll Time*** and select 'Every Minute' from the ***Mode*** dropdown list. This will check Airtable every minute for new data entries.
3. Enter the Base ID in the ***Base ID*** field. For obtaining the Base ID, head over to their [API page](https://airtable.com/api) and select the correct base. Youll find the Base ID there.
4. Enter the table name in the ***Table*** field.
5. Enter a trigger field name in the ***Trigger Field*** field. If you don't have a 'Created Time' or 'Last modified time' field in your table, please create one.
6. Click on ***Execute Node*** to run the node.
In the screenshot below, you will notice that the node returns the new data from Airtable. This output gets passed on to the next node in the workflow.
![Using the Airtable Trigger node to trigger the workflow](./AirtableTrigger_node.png)
### 2. Mattermost node (post: message)
This node will send a message of the new data in the channel `Information Updated` in Mattermost. If you have a different channel, use that instead.
1. First of all, you'll have to enter credentials for the Mattermost node. You can find out how to do that [here](../../../credentials/Mattermost/README.md).
::: v-pre
2. Select a channel from the ***Channel ID*** dropdown list.
3. Click on the gears icon next to the ***Message*** field and click on ***Add Expression***.
4. Enter the following message in the ***Expression*** field:
```
New Data was added to Airtable.
ID:{{$node["Airtable Trigger"].json["fields"]["id"]}}
Name: {{$node["Airtable Trigger"].json["fields"]["name"]}}
```
5. Click on ***Execute Node*** to run the node.
:::
In the screenshot below, you will notice that the node sends a message in Mattermost about the new data that got added to Airtable.
![Using the Mattermost node to send a message of the new data](./Mattermost_node.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 KiB

After

Width:  |  Height:  |  Size: 143 KiB

View File

@ -73,8 +73,8 @@ This node will store the data coming from the previous node in a table in Airtab
1. First of all, you'll have to enter credentials for the Airtable node. You can find out how to do that [here](../../../credentials/Airtable/README.md).
2. Select 'Append' from the ***Operation*** dropdown list.
3. Enter the application ID in the ***Application ID*** field. For obtaining the Application ID, head over to their [API page](https://airtable.com/api) and select the correct base. Youll find the Application ID under the Introduction section.
4. In n8n, paste the ID of the base in the ***Application ID*** field.
3. Enter the base ID in the ***Base ID*** field. For obtaining the Base ID, head over to their [API page](https://airtable.com/api) and select the correct base. Youll find the Base ID under the Introduction section.
4. In n8n, paste the ID of the base in the ***Base ID*** field.
5. Enter the table name in the ***Table*** name field.
6. Click on ***Execute Node*** to run the node.