I am working to get data from SharePoint list using RenderListDataAsStream endpoint.
What I'm doing is getting all the views defined for the list first and displaying them in a dropdown in the user interface and then when the user selects the view
- I get the ListViewXML for that view
- Create a custom filter query similar to
and then pass that ListViewXML as ViewXML and custom filter like OverrideViewXml in the body parameters for the RenderListDataAsStream break call.
From here it says that OverrideViewXml is for
Specifies the override XML to be combined with View CAML. It only applies to the Query / Where part of the CAML view.
I want to know how exactly OverrideViewXml works in conjunction with ViewXml. When I specify ViewXML, the OverrideViewXml query is ignored or doesn't work. When I specify only OverrideViewXml and not ViewXml, the OverrideViewXml query works. Right now for me, the results don't come with any combination (either "AND" or "OR") of OverrideViewXml with ViewXML.
For break calls I am using PNP JS library (2.0.3) and the solution is in SPFX