>>2425Flattening is definitely the way to go. I had a similar nightmare with a Shopify order sync where the nested metadata kept shifting, so I just used a small script to
map everything to a flat object before it even hits the loop step.
const flattened = data.map(item => ({ id: item.id, val: item.attributes.target_key}));return flattened;