New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getlistitems with post and camlquery #21
Comments
At this time there are no plans to implement this functionality in our site. |
i will try. I see there's a camlhelper class but no samples how to use it.. |
Hmm. now i swithed to CAMLquery taxonomyfields are working, but expanding lookup columns are not working anymore.. Do you have a tip? |
Could you show me what are you doing? How you've switched to CAMLQuery? |
The CamlHelper module provides basic functionality to convert OData sentences into CAML Query expressions. Example of use: var odata = ODataParserProvider.ODataParser(listSchema);
odata.parseExpression({
filter: 'Country eq USA and Modified eq [Today]',
orderBy: 'Title asc, Modified desc',
select: 'Title, Country',
top: 10
});
camlQueryXml = odata.getCAMLQuery(); This module is used when accessing SharePoint lists through JSOM. When you use REST API this conversion is not necessary and you can use directly OData queries. |
This is my code to load via REST and CAML
and this is my change getListItems(..)
|
I think with CAML query is not possible to expand lookup fields. |
the rest params are indeed ignored, but when using pure rest taxonomyfields are not supported.. and i need both, so i have to switch back to JSOM. |
I found a solution to expand both the taxonomyfields and the lookup fields using the JSOM renderListData(..) function.
|
see my pull request #23, converted into a rest call |
Due to a bug in not expanding Taxonomy fields i have to switch to a camlquery. Currently there's no implementation. Is this planned?
The text was updated successfully, but these errors were encountered: