Add field_id support for the Airtable Wrapper #26634
Replies: 0 comments 2 replies
-
{
"records": [
{
"id": "recNhvlWSFG4DSH50",
"createdTime": "2023-07-19T06:37:14.000Z",
"fields": {
"fld8mLmhoJJ9lRUTY": 56.9,
"fldGscu5K3RSKhQm6": "test2",
"fldHa9so6szcVOsc4": "note2",
"fldKVLHG9jHYW2eHb": "content2",
"fldZah8T3vhbw8Skz": "2023-07-20T03:27:56.000Z"
}
}
]
} To successfully extract that response to foreign table, it needs the column names are matching with those field id. Thus, the foreign table may look like this, create foreign table airtable_table (
fldGscu5K3RSKhQm6 text,
fldHa9so6szcVOsc4 text,
fldKVLHG9jHYW2eHb text,
fld8mLmhoJJ9lRUTY numeric,
fldZah8T3vhbw8Skz timestamp
)
server airtable_server
options (
base_id 'appTc3yI68KN6ukZc',
table_id 'tbltiLinE56l3YKfn'
); Those column names may not very user friendly, unless you know that's what you definitely need. You can create another view based on this foreign table to give it more user friendly column name like 'name', 'content' and etc., but that needs hardcode the column names and may lost sync when user changed field name in Airtable. |
Beta Was this translation helpful? Give feedback.
-
Hi,
Airtable allocates a unique stable field_id to columns in a table. This is useful because the general case is that users can change column names in airtable, so any automated workflows need something that cannot break because someone did not like a label..
It would be great to be able to somehow configure the wrapper to pull the data with these ids.
Beta Was this translation helpful? Give feedback.
All reactions