TimeSheet.QueueCleanUpTimesheets method
Removes timesheet lines between specified dates.
Namespace: WebSvcTimeSheet
Assembly: ProjectServerServices (in ProjectServerServices.dll)
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
start
Type: System.DateTimeThe start date.
finish
Type: System.DateTimeThe finish date.
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 |
---|---|
Allows the user to delete or move data in the database. Global permission. |