Setting Lead / Lag on a predecessor using CSOM


  • I want to set a Predecessor on Task 2 using CSOM code. The predecessor is "1FS + 10days" 

    I am currently stuck as i can't find any way of setting "Lead time" using CSOM. 

    This is page from MSDN on DraftTaskLink Class

    On the other hand, it seems possible (not too sure though) through PSI

    Is this a limitation of CSOM ? If so, is there a documentation which specifically mention this ? 

    Hammad Arif EPM Advice Blog

    Tuesday, December 30, 2014 1:32 AM

All replies

  • Curious if you ever got anywhere with this. I'm not trying to set these values, but I am trying to obtain them and there doesn't seem to be a way. It is possible through PSI, need a CSOM solution.
    Wednesday, February 24, 2016 8:21 PM
  • I never found the solution for this using CSOM. So i ended up writing PSI code. 

    Hammad Arif EPM Advice Blog

    Wednesday, February 24, 2016 10:45 PM
  • With CSOM it is currently not possible. The property was never implemented :(. I opened up a ticket at Microsoft that they introduce the ability to read / write the lag at task links. But until this is done, you have to use PSI for Project Server 2013 or below. For Project Online you have currently no chance in reading the value. Maybe it is possible with the OData feed.
    • Edited by Sansha Kuvakei Thursday, February 25, 2016 8:55 AM
    • Proposed as answer by young Thursday, February 25, 2016 2:57 PM
    Thursday, February 25, 2016 8:54 AM