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

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/TimeSheet/QueueCleanUpTimesheets", RequestNamespace := "https://schemas.microsoft.com/office/project/server/webservices/TimeSheet/",  _
    ResponseNamespace := "https://schemas.microsoft.com/office/project/server/webservices/TimeSheet/",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Sub QueueCleanUpTimesheets ( _
    start As DateTime, _
    finish As DateTime _
)
'Usage
Dim instance As TimeSheet
Dim start As DateTime
Dim finish As DateTime

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

Parameters

Remarks

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.

Note

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.

See Also

Reference

TimeSheet Class

TimeSheet Members

TimeSheet Web Service