none
Set task predecessor using CSOM

    Pertanyaan

  • 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.

    Thanks.

    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;
    _drft.TaskLinks.Add(taskLink);

    Kamis, 06 Desember 2018 10.08