yappiest-sapphire
yappiest-sapphire2y ago

How do you capture a JSON response if the field name has a space?

After a successful API call into airtable: response.records[0].fields["Last Name"] returns 0 but response.records[0].fields.FieldHasNoSpace returns the value in there. So simple but i can't figure it out? Thanks
2 Replies
W. Williams (SFT)
response.records[0].fields["Last Name"] That's it
yappiest-sapphire
yappiest-sapphireOP2y ago
yeah that doesn't work for some reason? It's ok, i renamed the airtable field Last_Name because I had to move forward.

Did you find this page helpful?