Set task predecessor using CSOM


  • Hi,

    Is it possible to update/set value to the Task predecessor using CSOM? If yes, can you please provide me a piece of input.

    I've looked into the CSOM API, came to know how to read the Predecessor value but don't know how to set it.


    Kamis, 06 Desember 2018 08.42

Semua Balasan

  • Achieved it using TaskLinkCreationInformation Class.

    ======== Below is the piece of code ===============

    TaskLinkCreationInformation taskLink = new TaskLinkCreationInformation();
    taskLink.Id = new Guid();
    taskLink.StartId = prevTaskGuid;
    taskLink.EndId = currentTaskGuid;
    taskLink.DependencyType = DependencyType.FinishStart;

    • Disarankan sebagai Jawaban oleh Agasthya.S.P Sabtu, 09 Februari 2019 11.34
    Kamis, 06 Desember 2018 10.08