Problem with nested references in functions

Hello!

Are there any known issues for retrieving nested references in a function (in a service)?

I am writing a function to duplicate checklists. I pass a section as a parameter to get the section. This works:
section.checklist

However, section.checklist.id returns undefined.

Furthermore, I do something similar for questions. For each question I want get the checklist property from the section. Question.section works, however this:

question.section.checklist (also including .ID) returns undefined. The question is in context.

The data sources used are runtime.

I have already worked around the issue and found a solution, but I would expect these references to resolve correctly… I seem to remember doing this with success earlier? Is this a known limitation in functions, or am I missing something about how nested references are handled in Services?

1 Like