how i can control the properties/fields that can be retrieved from SharePoint inside my PnP core sdk #1398
-
I have this pnp core sdk code:- var myList = await context.Web.Lists.GetByTitleAsync("Work Orders", p => p.Title, now i am not loading the Created property, but how i were able to reference it inside my foreach loop? seems my code is loading all the properties, so how i can control which properties i want to get from SharePoint ? so i can have a better response time, where i can specify which properties need to be retrieved from SharePoint, instead of getting all properties ? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@mvcsharepointdev : if you want to control the properties you get from SharePoint it's best to use a method that allows specifying a CAML query. These are options C and D specified in here: https://pnp.github.io/pnpcore/using-the-sdk/listitems-intro.html#reading-list-items |
Beta Was this translation helpful? Give feedback.
@mvcsharepointdev : if you want to control the properties you get from SharePoint it's best to use a method that allows specifying a CAML query. These are options C and D specified in here: https://pnp.github.io/pnpcore/using-the-sdk/listitems-intro.html#reading-list-items