18 April 2012 11:08
i'm trying to use PSI (2007) to get deliverable linked to a task in my project (in Project Professional all seems to be working fine), but when iterating from the results, all i get is the task itself and not the object... below is the code i'm using:
WebSvcObjectLinkProvider.ObjectLinkProvider objectLinkProvider = new WebSvcObjectLinkProvider.ObjectLinkProvider(); objectLinkProvider.Url = "http://server/pwa/_vti_bin/psi/objectlinkprovider.asmx"; objectLinkProvider.Credentials = new NetworkCredential("user", "pwd", "domain"); WebSvcObjectLinkProvider.ObjectLinkProviderDataSet dataSet = objectLinkProvider.ReadTaskLinkedWebObjects(projID, (int)WebObjectDatabaseType.Commitment); List<int> ret = new List<int>(); foreach (WebSvcObjectLinkProvider.ObjectLinkProviderDataSet.WebObjectsRow row in dataSet.WebObjects) if (row.WOBJ_TASK_UID != projID) ret.Add(row.WOBJ_TP_ID);
I've tried using user account for the project manager and even my farm/ps admin with no luck. Tried every method in WebSvcObjectLinkProvider with same results. any hints in how i could get the deliverable linked to a task with the PSI (or even reading directly the list in WSS Project Site), all i need is its Title.