Skip to content
Gallery
Sidebar
Share
Explore
Airtable Comments

icon picker
How to loop through array of objects with keys


asks...
Please how do I loop through a data like this and create a records in airtable I got this from an external API and parsed it to json format
image.png
GP3 gets most of this question right, but the Airtable part is wrong. Airtable requires something like this for each record executed inside the jsonArray.forEach().
let recordId = await table.createRecordAsync({
"Name": name,
"Age": age,
"City": city
});

GPT3 Prompt
You can ask me questions or make additional comments using the option below.
Add Your Thoughts
Thoughts
Upvote
Downvote
There are no rows in this table


Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.