TimeSheet.ApproveProjectTimesheetLines Method

Approves or rejects a set of project timesheet lines.

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/ApproveProjectTimesheetLines", 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 ApproveProjectTimesheetLines ( _
    approvedTimesheetLines As Guid(), _
    rejectedTimesheetLines As Guid(), _
    comment As String _
)
'Usage
Dim instance As TimeSheet
Dim approvedTimesheetLines As Guid()
Dim rejectedTimesheetLines As Guid()
Dim comment As String

instance.ApproveProjectTimesheetLines(approvedTimesheetLines, _
    rejectedTimesheetLines, comment)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/TimeSheet/ApproveProjectTimesheetLines", 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 ApproveProjectTimesheetLines(
    Guid[] approvedTimesheetLines,
    Guid[] rejectedTimesheetLines,
    string comment
)

Parameters

  • approvedTimesheetLines
    Type: []
  • rejectedTimesheetLines
    Type: []

Remarks

This is a new method in Project Server 2010.

Project Server Permissions

Permission

Description

ApproveProjectTimesheetLine

Allows a user to approve project timesheet lines. Global permission.

See Also

Reference

TimeSheet Class

TimeSheet Members

TimeSheet Web Service