airtableTrigger.json•4.42 kB
{
"nodeType": "n8n-nodes-base.airtableTrigger",
"displayName": "Airtable Trigger",
"description": "Starts the workflow when Airtable events occur",
"version": 1,
"properties": [
{
"name": "authentication",
"displayName": "Authentication",
"type": "options",
"default": "airtableApi",
"options": [
{
"name": "API Key",
"value": "airtableApi"
},
{
"name": "Access Token",
"value": "airtableTokenApi"
},
{
"name": "OAuth2",
"value": "airtableOAuth2Api"
}
]
},
{
"name": "baseId",
"displayName": "Base",
"type": "resourceLocator",
"default": "{ mode: 'url', value: '' }",
"description": "The Airtable Base in which to operate on",
"placeholder": "https://airtable.com/app12DiScdfes/tblAAAAAAAAAAAAA/viwHdfasdfeieg5p",
"required": true
},
{
"name": "tableId",
"displayName": "Table",
"type": "resourceLocator",
"default": "{ mode: 'url', value: '' }",
"placeholder": "https://airtable.com/app12DiScdfes/tblAAAAAAAAAAAAA/viwHdfasdfeieg5p",
"required": true
},
{
"name": "triggerField",
"displayName": "Trigger Field",
"type": "string",
"default": "",
"description": "A Created Time or Last Modified Time field that will be used to sort records. If you do not have a Created Time or Last Modified Time field in your schema, please create one, because without this field trigger will not work correctly.",
"required": true
},
{
"name": "downloadAttachments",
"displayName": "Download Attachments",
"type": "boolean",
"default": false,
"description": "Whether the attachment fields define in 'Download Fields' will be downloaded"
},
{
"name": "downloadFieldNames",
"displayName": "Download Fields",
"type": "string",
"default": "",
"description": "Name of the fields of type 'attachment' that should be downloaded. Multiple ones can be defined separated by comma. Case sensitive.",
"required": true,
"displayOptions": {
"show": {
"downloadAttachments": [
true
]
}
}
},
{
"name": "additionalFields",
"displayName": "Additional Fields",
"type": "collection",
"default": {},
"description": "Fields to be included in the response. Multiple ones can be set separated by comma. Example: <code>name, id</code>. By default just the trigger field will be included.",
"placeholder": "Add Field",
"options": [
{
"name": "fields",
"displayName": "Fields",
"type": "string",
"default": "",
"description": "Fields to be included in the response. Multiple ones can be set separated by comma. Example: <code>name, id</code>. By default just the trigger field will be included."
},
{
"name": "formula",
"displayName": "Formula",
"type": "string",
"default": "",
"description": "Formulas may involve functions, numeric operations, logical operations, and text operations that operate on fields. More info <a href=\"https://support.airtable.com/hc/en-us/articles/203255215-Formula-Field-Reference\">here</a>."
},
{
"name": "viewId",
"displayName": "View ID",
"type": "string",
"default": "",
"description": "The name or ID of a view in the table. If set, only the records in that view will be returned."
}
]
}
],
"credentialsConfig": [
{
"name": "airtableApi",
"required": true
},
{
"name": "authentication",
"required": false
},
{
"name": "baseId",
"required": true
},
{
"name": "id",
"required": false
},
{
"name": "tableId",
"required": true
},
{
"name": "id",
"required": false
},
{
"name": "triggerField",
"required": true
}
],
"io": {
"inputs": [],
"outputs": [
"Main"
],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [],
"produces": [
"Main"
]
}
}