Welcome to the community, @Dave! :grinning_face_with_big_eyes: Here are a couple of tips that should get you a little further (if you haven’t already solved this).
First, I recommend switching your looping mechanism to use the for...of
syntax:
for (let item of json) {
...
Then you would access properties of the item like this: item.Title
. Unless there’s a need to use the index of the item in the original array, this is a more streamlined approach.
You’re definitely thinking in the right direction. I recommend looking into the find()
array method, and using that to locate a matching record from the [Titles]
table. If found, do what you want with the matching record; otherwise create a new one.