Can't set a hyperlink when creating a task using PSI RRS feed

  • Question

  • I have code that creates a task using PSI in a newly created project. All of the other properties (task name, start, duration, etc.) are successfully set on the task when it's created. However, I can't seem to get a hyperlink set for the task. I have code like this:

    SvcProject.ProjectDataSet.TaskRow taskRow = dataset.Task.NewTaskRow();
    taskRow.PROJ_UID = projectID;
    taskRow.TASK_UID = task.TaskUID;
    // Other task properties set here...
    taskRow.AddPosition = (int)PSLibrary.Task.AddPositionType.Last;

    When I open the project in Project Pro I see all the other task properties are set but there's no hyperlink. Any suggestions?


    Tuesday, April 14, 2015 4:04 AM

All replies

  • Hello,

    This field is Read Only with PSI


    • Proposed as answer by Jeremy Cottino Wednesday, April 15, 2015 11:51 AM
    Wednesday, April 15, 2015 11:46 AM
  • Thanks for the reply. In the code, at least, it's read-only if you're editing an existing task (it throws an exception if you try to assign to it when editing a task). When you're creating a new task, you're allowed to set a value (it's settable in C# and doesn't throw). Is that an oversight?
    Wednesday, April 15, 2015 5:26 PM