![]() |
#1
|
|||
|
|||
![]()
Hello.
Why IsMilestone Task property Can I set on second publication via Project server CSOM? I have this code: csom.DraftProject draft = project.CheckOut(); context.Load(draft.Tasks, dt => dt.Where(t => t.Id == taskUID)); context.ExecuteQuery(); csom.DraftTask task = draft.Tasks.First(); task.ActualStart = task_Act_Start; task.ActualFinish = task_Act_Start; task.PercentComplete = 100; task.IsLockedByManager = true; task.IsMilestone = true; draft.Update(); csom.JobState jobState = context.WaitForQueue(draft.Publish(true), Consts.DEFAULTTIMEOUTSECONDS); BUT task.IsMilestone = true; works only after second publication: csom.DraftProject draft = project.CheckOut(); context.Load(draft.Tasks, dt => dt.Where(t => t.Id == taskUID)); context.ExecuteQuery(); csom.DraftTask task = draft.Tasks.First(); task.IsMilestone = true; draft.Update(); csom.JobState jobState = context.WaitForQueue(draft.Publish(true), Consts.DEFAULTTIMEOUTSECONDS); How can I do it with one publication? |
![]() |
Tags |
c# |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Reducing a 8.5 x 11 format publication | billwill | Word | 7 | 04-14-2018 05:56 AM |
Competing a task in Outlook does not automtically complete the linked task in OneNote | OneGoat | OneNote | 0 | 06-22-2017 05:55 AM |
Changing page size after publication is created | tattoued | Word | 9 | 05-01-2015 11:22 AM |
![]() |
KRTSTARRYNIGHT | Project | 1 | 07-01-2014 06:54 AM |
![]() |
DarlaWeber | Project | 1 | 01-31-2014 02:30 PM |