Help

How do you use the API to list records with field IDs instead of names?

Topic Labels: API
564 1
cancel
Showing results for 
Search instead for 
Did you mean: 
Michaela_Cesta1
4 - Data Explorer
4 - Data Explorer

I’ve tried to update my code to take advantage of the field IDs instead of using field names. It works great when sending data to Airtable. But when I query Airtable for records, it sends the field name. Is there a way to get Airtable to send the field IDs instead?

Currently, I’m receiving something like this with field names:
{ id: ‘rec2FTSuyeCV042Pa’,
fields: { Person: ‘Steve’, Birthday: ‘1992-03-30’ },
createdTime: ‘2022-03-14T22:32:21.000Z’}

But I want to receive something like this with field ID’s instead:
{ id: ‘rec2FTSuyeCV042Pa’,
fields: { fldF2IRPW6dwD0VDr: ‘Steve’, fldkuv35FqhZPq2GT: ‘1992-03-30’ },
createdTime: ‘2022-03-14T22:32:21.000Z’}

Any help is appreciated!

1 Reply 1
karansuraj
4 - Data Explorer
4 - Data Explorer

Did you ever find a solution to this anywhere else?