Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

How to use CSOM to get a list of projects based on a custom field value?

$
0
0

Using the client object model, how do you load a list of projects filtered by a custom field value? For example, the following loads projects based on the project name and whether or not the project is an enterprise project:

var pubProjects = projContext.LoadQuery(projContext.Projects
    .Where(p => p.IsEnterpriseProject == true&& p.Name == projName));

Is it possible to do something like:

 var pubProjects = projContext.LoadQuery(projContext.Projects
     .Where(p => p.MyCustomField== "abc"
     ));


Mike G.


Viewing all articles
Browse latest Browse all 5347

Trending Articles



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