TimeSheet.QueueCleanUpTimesheets Method

Removes timesheet lines between specified dates.

Namespace:  [TimeSheet Web service]
Service reference: http://ServerName:32843/[Project Service Application GUID]/PSI/TimeSheet.svc
Web service reference: http://ServerName/ProjectServerName/_vti_bin/PSI/TimeSheet.asmx?wsdl

[SoapDocumentMethodAttribute("http://schemas.microsoft.com/office/project/server/webservices/TimeSheet/QueueCleanUpTimesheets", RequestNamespace = "http://schemas.microsoft.com/office/project/server/webservices/TimeSheet/", 
	ResponseNamespace = "http://schemas.microsoft.com/office/project/server/webservices/TimeSheet/", 
	Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void QueueCleanUpTimesheets(
	DateTime start,
	DateTime finish
)

Parameters

start
Type: System.DateTime
The start date.
finish
Type: System.DateTime
The finish date.

If the start date is after the finish date, QueueCleanUpTimesheets does not delete any timesheet records.

This method submits jobs to the QueueSystem object. The CorrelationGUID property for the job is equal to the value of the TS_UID property.

NoteNote

The QueueCleanUpTimesheets method does not throw an exception or indicate any error if the start date is after the finish date. The method does not affect timesheets but appears to succeed when in fact it has failed.

Project Server Permissions

Permission

Description

CleanupProjectServerDatabase

Allows the user to delete or move data in the database. Global permission.

Community Additions

ADD
Show:
© 2014 Microsoft