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

CSOM - how to load query that compares default project field to a custom one

$
0
0

hello forum members,

i am new to CSOM and i am trying to figure out how to bring all projects where a default project field of 'Owner' is different from a custom project field of 'PreviousOwner'  and i am having very hard time figuring it out.

here is what i have so far. 

projContext.Load(projContext.Projects);
projContext.Load(projContext.CustomFields);

 projContext.ExecuteQuery();

var pro = projContext.LoadQuery(projContext.Projects.Where(p => p.Owner !=  CustomFieldValue here ))

i know we can use custom fields like so - Custom_3f8d5e32535de51180fc0050569d591d, but i cant figure out how to use it inside the loadquery statement. 


tatiana


Viewing all articles
Browse latest Browse all 5347

Trending Articles



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