TimeSheetLineCreationInformation class

Contains the properties that can be set when creating a TimeSheetLine.

Syntax

CSOM

class TimeSheetLineCreationInformation 

JSOM

PS.TimeSheetLineCreationInformation

REST Interface

Supported.

PS.TimeSheetLineCreationInformation

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

POST Example (not all fields may be required)

body = {
    'parameters': {
        'AssignmentId':'value', 
        'Comment':'value', 
        'Id':'value', 
        'LineClass':'value', 
        'ProjectId':'value', 
        'TaskName':'value'      
    }

Members

✓ - Read Support       ✓ʷ - Write Support

Properties

Name .NET JSOM REST Type Description
AssignmentId ✓ʷ ✓ʷ ✓ʷ Guid Gets or sets the GUID of the assignment that is associated with the timesheet line.
Comment ✓ʷ ✓ʷ ✓ʷ String Gets or sets the comment for the timesheet line.
Id ✓ʷ ✓ʷ ✓ʷ Guid Gets or sets the GUID for the timesheet line.
LineClass ✓ʷ ✓ʷ ✓ʷ TimeSheetLineClass Gets or sets the line class type of the timesheet line.
ProjectId ✓ʷ ✓ʷ ✓ʷ Guid Gets or sets the GUID of the project that is associated with the timesheet line.
TaskName ✓ʷ ✓ʷ ✓ʷ String Gets or sets the time sheet line task name.

See Also

TimeSheetLine
TimeSheetLineCollection