I am trying to get 2 different TV values from the children of a resource. I have the the children id’s in an array, but when i try to loop through them the page gives a 500 error.
I think the problem is with the third argument, which you shouldn’t need unless there is a resource 28 in more than one context.
However . . . it would be much more efficient to get all the resources in a single query rather than making a call to getChildIds() and then a separate call to get object() (query) for each resource. Using getChildIds() is seldom a good idea unless you need depth beyond the immediate children.