6 Replies Latest reply: Jun 18, 2014 1:57 PM by Sachin Gupta RSS

    API - loading Projects with a particular  UDF value

    Rudy Meyer

      Hello,

       

      We have a requirement to load Projects that have a particular value in a Project UDF.  This is our current code to retrieve Projects:

       

      EnterpriseLoadManager elm = syncData.getP6Session().getEnterpriseLoadManager();
      BOIterator<Project> projectIterator = elm.loadProjects(new String[] {"ObjectId", "Name", "Id", "Status"}, "Status='WS_Open'", "Id");

       

      Is it possible to include the UDF in the field list and/or the Where clause? We are looping through the list of Projects, would I have to get the UDF value at that point using loadProjectLevelUDFValues()?

       

      Looking for some insight on the best way to accomplish this.

       

      Thank you

      Rudy