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

PS2013 CSOM How to lookup project by custom field value

$
0
0

I am importing projects from another system into Project Server 2013 and I need to be able to see if the project already exists before I add it. There is a unique project id from the other system that I am putting in a custom field on the project. I want to look up the project by that custom field in one request. When I try to do this I get a "not supported" error on the request.  The alternative to this is to do a ctx.Load(p.IncludeCustomFields) on every project in a loop.  This takes about 0.5 seconds per project and I expect to have about 500 or more active projects in the system.  This means that it will be around 4 minutes to be able to do lookups by this custom field. 

Is there a more efficient way?  Why can't I get a list of projects with their custom fields in one request?


Bruce Lofland http://blog.pmtechnix.com


Viewing all articles
Browse latest Browse all 5347

Trending Articles



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