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