none
Updating custom field value in MSProject through VS RRS feed

  • Question

  • Hi, I have a problem when updating a project custom field value.

    I dont have SetCustomFieldValue() method.Why?

    i have all the necessary namespaces.

    MyCode:

    var dp = currProject.CheckOut(); //currProject is PublishedProject class object, PublishedProject inherits this method from Project class
                    currProject.Draft.ProjectIdentifier = ProjectIdentifier; // it works   
                    int choice = CountIndicatorState(finishV, baselineD, wayToCountTT, timeTol, timeTolInD);// just method which assigns 1,2 or 3;
                    currProject.Draft[_indicatorState]= choice; //it doesn't work 
                    currProject.Draft.Update();
                    projContext.ExecuteQuery();
                    currProject.Draft.Publish(true);
                    projContext.ExecuteQuery();
                    currProject.Draft.CheckIn(true);
                    projContext.ExecuteQuery();
                    projContext.Load(currProject.Draft);
                    currProject.Draft.Publish(true);

    What am i doing wrong?

    thanks in advance

    Monday, September 12, 2016 2:24 PM

All replies