Skip to Content

Do xsodata models support nested $expand queries?

I have an odata query which I believe to be valid, which is receiving an error from my Neo XS runtime. It includes a nested $expand:

?$expand=expenseitem($expand=currency,expenseType,paymentType)&$top=20

The resultant error shows that the parenthesis are not being respected:

"Syntax error in $expand system query option at position '28': entityNavProperty 'expenseitem($expand=currency' is not a valid navigation property for type 'codejam.saptravelexpense.services.expenseReportType'."<br>

Queried independently, $expand=expenseitem on the principal expensereport, and $expand=currency,expenseType,paymentType on the principal expenseitem behave as expected.

Any guidance here?

HANA Workbench v1.120.20.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer