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

field with type multipleSelects always returns undefined instead of a value #384

Open
VoVaVc opened this issue Sep 13, 2023 · 0 comments
Open

Comments

@VoVaVc
Copy link

VoVaVc commented Sep 13, 2023

Hi there!

I've been trying to get active values for a multipleSelects type field. For this type, records.fields element never contains a value. With a direct call via records.get the value is always undefined. Here is the minimal reproduction code:

const airtable = new Airtable({ apiKey: someApiKey });
const base = airtable.base('someBaseId');
const response = await this.table.find('id');
const table = base.table('Candidates');
const fieldValue = response.get('Field with multipleSelects type') // always returns undefined
console.log(fieldValue);

Also, .update call for multipleSelects type doesn't seem to take any effect when passing an array of values, but on attempt to pass a string it returns an error saying:

Cannot parse value for field Field with multipleSelects type(INVALID_VALUE_FOR_COLUMN)[Http code 422]

so it looks like the correct way to pass the values is the array type.

Since this functionality works for singleSelect record type it's most likely a bug.

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

1 participant