Trying to get a value from a nested field XML

Hi, i’m trying to use an Id multiple times through my nested XML i’m using field(‘Students.Student.LocalId’) but i’m getting an error not found when previewing.

what am i doing wrong? lol.

many thanks

@mockaroo is there a bug when using field(‘Students.Student.LocalId’) as im getting a not found error?

Here’s a working example:

The problem with your schema is the cardinality. Students and Siblings are n:m. So you need to pick one of the students, for example:

field('Students.Student')[0]['LocalId']
1 Like

Ah, yes that makes more sense. thank you very much. :grin: