Traitée Reading Task Field Unique Id through PSI

All Replies

  • Tuesday, June 22, 2010 2:12 AM
     
     

    Within the projectdataset class there is both TASK_ID (int32) and TASK_UID (guid)

     

    TASK_ID   http://msdn.microsoft.com/en-us/library/websvcproject.projectdataset.taskrow.task_id.aspx

    TASK_UID  http://msdn.microsoft.com/en-us/library/websvcproject.projectdataset.taskrow.task_uid.aspx

    Now if you figure out how to get Task_UID for a task selected in the JSGrid in Schedule/ProjectDrillDown/Project Detail page, I'd be eternally grateful

  • Thursday, June 24, 2010 7:27 AM
     
     

    Hi,

    I'm explicitly not looking for teh TASK_ID and TASK_UID (GUID). I'd like to retrieve the Task Unique ID (Integer).

    Any thoughts?

    Thanks,

    Adrian

     

  • Thursday, June 24, 2010 11:30 AM
     
     Proposed Answer

    Hi,

    You can retrieve the Task Unique ID (GUID) with this call:

    Guid

     

    uniqueID= new Guid(Microsoft.Office.Project.Server.Library.EntityCollection.Entities.TaskEntity.UniqueId.ToString());

    You will probably retrieve the Integer ID with the property:

    Microsoft.Office.Project.Server.Library.EntityCollection.Entities.TaskEntity.UniqueIdProperty

    Hopes this help,

    Jorge

    [ The ultimate for Project Server 2007 || http://www.projecttimesheet.com/about-en.php ]

    • Proposed As Answer by Jorge.Flor Tuesday, June 29, 2010 2:46 PM
    •  
  • Friday, June 25, 2010 10:02 AM
     
     Answered

    yes Task_UID is available in PSI, the filed your looking is only available in Microsoft Office Project 2007.


    Abhishek Jangid