Trying to $expand multiple levels of an item's children. I have tried queries with //* at the end, but that didn't work, for example: /sitecore/api/ssc/aggregate/content/Items('/sitecore/content/Site/Editorials//*')

That didn't work, as I kept getting errors like : A potentially dangerous Request.Path value was detected from the client (*)

  • Hi Jay! Welcome to SSE! Aug 28 '18 at 14:24

Turns out we can use multiple levels of $expand, or even supply $level of depth,


However, $level doesn't seem to allow expanding FieldValues for all levels, so I ended up having multiple $expand like so :

/sitecore/api/ssc/aggregate/content/Items('/sitecore/content/MySite/MyContent')/Children?$expand=Children($expand=Children, FieldValues), FieldValues

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.