none
Get Published project properties issue RRS feed

  • Question

  •  Hi thanks in advance, iam trying to get published project information , below is part of the code which is giving an error when i try to get the owner 

    error on executequery- timeout error

    tried placing timeout.infinite statement also, but no luck.

    property. apart from name and id , i am not able to get other properties.

    -------------------

    projContext.Load(projContext.Projects);
                projContext.ExecuteQuery();
                var pubproject = projContext.Projects;
                foreach(PublishedProject pubprj in projContext.Projects)
                {
                    projContext.Load(pubprj);
                    projContext.Load(pubprj.Owner);
      projContext.ExecuteQuery(); --- throws error after long time as timeout
               User owner = pubprj.Owner;
              // pubprj.PercentComplete

                 Console.WriteLine("projectName :" + pubprj.Name.ToString() + "ProjectUid:" + pubprj.Id + "Project siteurl is:"+owner.LoginName);

    Why we are able to get only Name and Id of the project but not other properties- please help in this regard

                                 
    Thursday, April 14, 2016 4:56 AM

All replies

  • Hi NGKPrasad,

    I have this working with my own wrapper for CSOM (that does nothing special, it just makes things easier):

    I am not timing out and I get the relevant information. 

    Friday, April 15, 2016 9:01 PM