Expand Minimize
This topic has not yet been rated - Rate this topic

EntityType element: TimesheetClass (ProjectServerData service)

Office 2013

Published: July 16, 2012

The TimesheetClass entity type specifies the set of properties that define the reporting data that is available for a timesheet class in the ProjectData service.

<EntityType Name="TimesheetClass">
  <Key>
    <PropertyRef Name="TimesheetClassId" />
    <PropertyRef Name="DepartmentId" />
  </Key>
  <Property Name="TimesheetClassId" Type="Edm.Guid" Nullable="false" />
  . . .
</EntityType>

Element

Description

Schema element: ReportingData

The schema for the reporting data in the ProjectData service.

Child elements are properties of a timesheet class. Attributes of the Property elements specify the property name and type, and whether the property can be a null value. Unlike most entity types, there are no NavigationProperty child elements for the TimesheetClass entity type.

The Key elements specify the properties that are the primary keys for a timesheet class query. TimesheetClassId is the timesheet class GUID and DepartmentId is the department GUID.

Property elements

The following table lists the Property elements for the TimesheetClass entity. The Name, Type, and Nullable columns contain attribute values for each property.

Attribute values for the Property elements

Name

Type

Nullable

Description

DepartmentId

Edm.Guid

false

The GUID of the timesheet department.

DepartmentName

Edm.String

true

The name of the timesheet class department.

Description

Edm.String

true

The description of the timesheet class. (For example, a description that states that the timesheet class records vacation time.)

LCID

Edm.Int32

true

The locale identifier.

TimesheetClassId

Edm.Guid

false

The GUID of the timesheet class.

TimesheetClassName

Edm.String

true

The name of the timesheet class.

TimesheetClassType

Edm.Byte

false

A numerical value that represents the type of the timesheet class (for example, sick time).

NavigationProperty elements

There are no NavigationProperty child elements associated with a timesheet class.

The following REST query uses the TimesheetLineClasses entity set, the DepartmentId and TimesheetClassId properties, which are the GUID primary keys, and the TimesheetClassName property to get the name of the specified timesheet class. The query is all on one line.

http://ServerName/ProjectServerName/_api/ProjectData/
TimesheetClasses(
DepartmentId=guid'00000000-0000-0000-0000-000000000000',
TimesheetClassId=guid'60e3adc6-6d30-4034-82da-899231460bec')?$select=TimesheetClassName

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.