Answered by:
Assignment TimeScaleData in PSI

Question
-
Hi
is there any thing in PSI to handle Assignment[index].TimeScaleData() as it is in API
--
kiran
- Moved by Michael WhartonMVP Thursday, August 5, 2010 11:27 AM better forum for question (From:Project Server General Questions and Answers)
Thursday, August 5, 2010 11:01 AM
Answers
-
Hi kiran,
the StatusingWebSvc ReadStatusTimephasedData method reads data only for the currently logged-on user, so my guess is that you´re trying to read assignment data for another resource, so you´ve to use impersonation http://msdn.microsoft.com/en-us/library/ff181538.aspx to get this working.
For a quick look to see if the method returns the data you want, assign the resource which credentials you´re using to a task and try it again.
Hope this helps
Maik
- Marked as answer by Christophe FiessingerMicrosoft employee Wednesday, October 6, 2010 6:17 AM
Friday, August 6, 2010 9:30 AM
All replies
-
Hi kiran,
have a look at the Statusing WebSvc, something like this
http://msdn.microsoft.com/en-us/library/websvcstatusing.statusing.readstatustimephaseddata.aspx
maybe this helps
Maik
Thursday, August 5, 2010 12:28 PM -
Hi Maik,
thanks for your response
while using Statusing WebSvc or webservice(Statusing) as mentioned in the article i am getting following error, even though i pass credentials required
ProjectServerError(s) LastError=GeneralSecurityAccessDenied Instructions: Pass this into PSClientError constructor to access all error information
i need the following data through PSI.
using MSProject API we can retrive that data like this
TimeScaleValues timeScaleValues=task.Assignments[index].TimeScaleData(baseline start date,baseline finish date,pjAssignmentTimescaledData,PjTimescaleUnit,int);
--
kiran
Friday, August 6, 2010 9:02 AM -
Hi kiran,
the StatusingWebSvc ReadStatusTimephasedData method reads data only for the currently logged-on user, so my guess is that you´re trying to read assignment data for another resource, so you´ve to use impersonation http://msdn.microsoft.com/en-us/library/ff181538.aspx to get this working.
For a quick look to see if the method returns the data you want, assign the resource which credentials you´re using to a task and try it again.
Hope this helps
Maik
- Marked as answer by Christophe FiessingerMicrosoft employee Wednesday, October 6, 2010 6:17 AM
Friday, August 6, 2010 9:30 AM -
Hi Kiran,
I understand that this is an older post but I would like to know whether you have been successful in getting the impersonation done for statusing webservice.I am facing a 401 unauthorised error whiile impersonating an admin account.Please guide me the steps that you have taken to achieve it.
PS:I am using Project Server 2007
Saturday, March 17, 2012 5:14 PM