ngocnicholas / airtable.net

Airtable .NET API Client
MIT License
138 stars 34 forks source link

Add support for AirTable's returnFieldsByFieldId flag when calling ListRecords #53

Closed jswinds closed 2 years ago

jswinds commented 2 years ago

AirTable has a flag, returnFieldsByFieldId, which makes it return results using fieldId rather than field name. Implementing this would make it possible to specify fields using only fieldId, which makes for a more robust integration. This would also better resolve issue #42 Thanks!

Edit: It turns out that you can't filter using fieldIds; which may make this approach slightly less useful, depending upon your use case. In my situation this approach would still be an improvement, as I'd only be relying on one field name (the one I'm filtering on) rather than all of the field names.

ngocnicholas commented 2 years ago

Support of returnFieldsByFieldId is added in ListRecords() of Airtable.net 1.2.0.