Table of contents
API
TOC
Collapse the table of content
Expand the table of content

TimeSheet class

Nadin Merali|Last Updated: 5/6/2017

inherits members from ClientObject

Contains the methods and properties for managing a timesheet.

Syntax

CSOM

class TimeSheet 

JSOM

PS.TimeSheet

REST Interface

Supported.

PS.TimeSheet

http://contoso.sharepoint.com/sites/pwa/_api/ProjectServer/TimeSheetPeriods('{periodid}')/TimeSheet

Members

✓ - Read Support       ✓ʷ - Write Support

Properties

Name.NETJSOMRESTTypeDescription
CommentsStringGets the timesheet comments.
CreatorSPUserGets the timesheet creator.
EntryMode✓ʷ✓ʷ✓ʷTimeSheetEntryModeGets or sets the timesheet entry mode.
IdGuidGets the GUID of the time sheet.
IsControlledByOwner✓ʷ✓ʷ✓ʷBooleanGets or sets a value that indicates whether the timesheet is controlled by the owner.
IsProcessed✓ʷ✓ʷ✓ʷBooleanGets or sets a value that indicates whether the timesheet is finalized and should not be changed.
LinesTimeSheetLineCollectionGets the collection of lines in the timesheet.
ManagerSPUserGets the timesheet manager.
Name✓ʷ✓ʷ✓ʷStringGets or sets the timesheet name.
PeriodTimeSheetPeriodGets the timesheet period.
Status✓ʷ✓ʷ✓ʷTimeSheetStatusGets or sets the timesheet line status.
TotalActualWork✓ʷ✓ʷ✓ʷStringGets or sets the timesheet total actual work.
TotalActualWorkMilliseconds✓ʷ✓ʷIntegerGets or sets the time interval, expressed in milliseconds, for the timesheet total actual work.
TotalActualWorkTimeSpan✓ʷ✓ʷTimeSpanGets or sets the time interval for the timesheet total actual work.
TotalNonBillableOvertimeWork✓ʷ✓ʷ✓ʷStringGets or sets the timesheet total non-billable overtime work.
TotalNonBillableOvertimeWorkMilliseconds✓ʷ✓ʷIntegerGets or sets the time interval, expressed in milliseconds, for the timesheet total non-billable overtime work.
TotalNonBillableOvertimeWorkTimeSpan✓ʷ✓ʷTimeSpanGets or sets the time interval for the timesheet total non-billable overtime work.
TotalNonBillableWork✓ʷ✓ʷ✓ʷStringGets or sets the timesheet total non-billable work.
TotalNonBillableWorkMilliseconds✓ʷ✓ʷIntegerGets or sets the time interval, expressed in milliseconds, for the timesheet total non-billable work.
TotalNonBillableWorkTimeSpan✓ʷ✓ʷTimeSpanGets or sets the time interval for the timesheet total non-billable work.
TotalOvertimeWork✓ʷ✓ʷ✓ʷStringGets or sets the timesheet total overtime work.
TotalOvertimeWorkMilliseconds✓ʷ✓ʷIntegerGets or sets the time interval, expressed in milliseconds, for the timesheet total overtime work.
TotalOvertimeWorkTimeSpan✓ʷ✓ʷTimeSpanGets or sets the time interval for the timesheet total overtime work.
TotalWork✓ʷ✓ʷ✓ʷStringGets or sets the timesheet grand total of all work.
TotalWorkMilliseconds✓ʷ✓ʷIntegerGets or sets the time interval, expressed in milliseconds, for the timesheet grand total of all work.
TotalWorkTimeSpan✓ʷ✓ʷTimeSpanGets or sets the time interval for the timesheet grand total of all work.
WeekStartsOn✓ʷ✓ʷ✓ʷByteGets or sets the day of the week on which the timesheet starts.

Methods

Name.NETJSOMRESTReturn TypeDescription
DeleteObject()voidDeletes the time sheet object.
Recall()voidRecalls the timesheet.
Submit(String comment)voidSubmits the timesheet.
Update()voidSaves changes in a new timesheet.


Method Details

DeleteObject()

Deletes the time sheet object.

Syntax
void DeleteObject()
Parameters

None

Return Value

void

Recall()

Recalls the timesheet.

Syntax
void Recall()
Parameters

None

Return Value

void

Submit(String comment)

Submits the timesheet.

Syntax
void Submit(String comment)
Parameters
NameTypeDescription
commentStringA comment on the timesheet.
Return Value

void

Update()

Saves changes in a new timesheet.

Syntax
void Update()
Parameters

None

Return Value

void

See Also

SPUser
TimeSheetLine
TimeSheetPeriod

© 2018 Microsoft