none
projContext.Projects does not include master projects RRS feed

  • Question

  • How do you get a list of all Projects, including master projects, from Project Online using the CSOM?

    I've tried the following code (copied from the docs), but it does not retrieve master projects:

    // List the published projects.
    private static void ListPublishedProjects()
    {
        // Get the list of projects on the server.
        projContext.Load(projContext.Projects);
        projContext.ExecuteQuery();
        Console.WriteLine("\nProject ID : Project name : Created date");
        foreach (PublishedProject pubProj in projContext.Projects)
        {
            Console.WriteLine("\n\t{0} :\n\t{1} : {2}", pubProj.Id.ToString(), pubProj.Name,
                pubProj.CreatedDate.ToString());
        }
    }


    Mike G.

    Saturday, March 15, 2014 2:01 PM