Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

ClientContext.Load() - generate the lambda expression's for the Include method

$
0
0

Hi ,

I have this code using client object model


CamlQuery camlQuery = new CamlQuery();

camlQuery.ViewXml = "<view>somefiltercalusexml</view>"


ListItemCollection collListItem = currentList.GetItems(camlQuery);
context.Load(collListItem, items => items.Include(item => item["Column1"], item => item["Column2"], item => item["Column3"]));

 

 I want to replace "column1", "column2", "Coumn3" with other fields dynamically. How can I do that?


Manvir


Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>