Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

find, update and create methods doesn't support returnFieldsByFieldId API parameter #360

Open
lcarbonn opened this issue Mar 27, 2023 · 4 comments

Comments

@lcarbonn
Copy link

lcarbonn commented Mar 27, 2023

The web API presents query parameters like returnFieldsByFieldId .
But the airtable.js methods find, update, create don't allow to pass this parameters.
Only select method can use it.
Am I wrong ?

@lcarbonn lcarbonn changed the title getRecord, updateRecord and createRecord doesn't support returnFieldsByFieldId API parameter find, update and create methods doesn't support returnFieldsByFieldId API parameter Mar 27, 2023
@joshuabrokaw
Copy link

+1
it makes the API very fragile that we have to use the names vs IDs

could this be exposed to additional table methods?

@JozefCmiel
Copy link

+1

I would expect something like
.find(recordId, { returnFieldsByFieldId: true })

Where params are from https://airtable.com/developers/web/api/get-record .

@JozefCmiel
Copy link

For those that will find this issue, you can get around this by using makeRequest method from base like this:

const makeRequest = Airtable.base('baseId').makeRequest
const response = await makeRequest({
  method: 'get',
  path: `/${tableId}/${recordId}`,
  qs: {
    returnFieldsByFieldId: true,
  },
 })
console.log(response)

This method has rate limiting logic to retry, and contains configured authentication.

@dopry
Copy link

dopry commented Mar 21, 2024

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants