Table
TSTimesheetLine
Timesheet line
Holds the lines of timesheets. Each line belongs to a timesheet and a weekly period, and is keyed by resource, timesheet number, line number and week. It links to the project, category, line property, activity, currency and tax groups.
- Table name
TSTimesheetLine- Module
Project management and accounting- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
Project- Primary index
ResourceLineIdx- Replacement key
ResourceLineIdx- Key fields
Resource, TimesheetNbr, LineNum, ProjPeriodTimesheetWeek- Model
Foundation
Fields (37)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ResourceProject resource the line belongs to. | Int64TSResourceRecId | No | ResResourceIdentifier.RecIdResourceView.RecId | None |
TimesheetNbrNumber of the timesheet the line belongs to, pointing to the timesheets table. | StringTSTimesheetNbr | Yes | TSTimesheetTable.TimesheetNbr | TaxTimesheetLineTransTaxInformationEntity |
LineNumNumber of the line within the timesheet. | RealLineNum | No | TaxTimesheetLineTransTaxInformationEntity | |
ProjPeriodTimesheetWeekWeekly timesheet period the line belongs to. | Int64RefRecId | No | ProjPeriodTimesheetWeek.RecId | None |
ActivityCompleteYes/No flag showing the activity is complete. | EnumTSActivityCompleteNoYes (enum) | No | None | |
ActivityNumberActivity the line relates to, pointing to the activities table. | String (50)ProjActivityNumber | No | smmActivities.ActivityNumber | None |
ActivityRemainingHours still remaining for the activity or task. | RealTSActivityRemaining | No | None | |
ApplyActionYes/No flag for applying an action to the line.low confidence | EnumNoYes (enum) | No | None | |
ApprovalStatusApproval state of the line, such as draft, submitted, approved, returned or posted. | EnumTSAppStatus (enum) | No | None | |
ApproverListTechnical container holding the list of approvers. | ContainerTSApproverList | No | None | |
CategoryIdProject category of the line, pointing to the project category table. | String (30)ProjCategoryId | Yes | ProjCategory.CategoryId | None |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CreatedTransactionIdA system number for the database transaction that created the record. System field. | Int64CreatedTransactionId | No | None | |
CurrencyCodeSales currency for the line, pointing to the currency table. | String (3)ProjSalesCurrencyCode | No | Currency.CurrencyCode | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DefaultDimensionFinancial dimension values for the line, pointing to a dimension value set. | Int64LedgerDefaultDimensionValueSet | No | DimensionAttributeValueSet.RecId | None |
FinTagFinancial tag attached to the line. | Int64FinTagRecId | No | FinTag.RecId | None |
LinePropertyIdLine property of the line, pointing to the line property table. | StringProjLinePropertyId | No | ProjLineProperty.LinePropertyId | None |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
ModifiedTransactionIdA system number for the database transaction that last changed the record. System field. | Int64ModifiedTransactionId | No | None | |
PackedExtensionsTechnical container that stores extension data for the record. | ContainerSysExtensionSerializerPackedContainer | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ProjCompanySalesCurrencySales currency of the project's company, pointing to the currency table. | String (3)ProjSalesCurrencyCode | No | Currency.CurrencyCode | None |
ProjectDataAreaIdCompany (legal entity) that owns the project, category and line property used. | StringDataAreaId | Yes | ProjCategory.DataAreaIdProjLineProperty.dataAreaIdProjTable.dataAreaIdsmmActivities.DataAreaId | None |
ProjIdProject the time is booked to, pointing to the projects table. | String (20)ProjId | Yes | ProjTable.ProjId | None |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxGroupIdSales tax group for the line. | StringProjTaxGroup | No | TaxGroupHeading.TaxGroup | None |
TaxItemGroupItem sales tax group for the line. | StringProjTaxItemGroup | No | TaxItemGroupHeading.TaxItemGroup | None |
TSFavoritesYes/No flag marking the line as a favourite. | EnumTSFavoritesNoYes (enum) | No | None | |
WebTransactionYes/No flag showing the line came from a web transaction. | EnumWebTransactionNoYes (enum) | No | None | |
WorkerWorker who recorded the time, stored as a record ID. | Int64ProjWorkerRecId | No | None | |
WrkCtrIdResource ID, pointing to the resources table. | StringWrkCtrId | No | WrkCtrTable.WrkCtrId | None |
Indexes (9)
TimesheetLineIdxTimesheetNbr,LineNum,ProjPeriodTimesheetWeekNot unique.
FavoritesIdxTimesheetNbr,ProjId,ActivityNumber,CategoryIdNot unique.
ProjPeriodTimesheetWeekIdxNot unique.
ProjectDataAreaNot unique.
ResourceIdxNot unique.
ResourceLineIdxPrimary indexReplacement keyResource,TimesheetNbr,LineNum,ProjPeriodTimesheetWeekUnique, alternate key.
ProjDataAreaApprovalStatusIdxProjectDataAreaId,ApprovalStatusNot unique.
ActivityNumberIdxActivityNumber,ProjectDataAreaIdNot unique.
CreatedTransactionIdIdxNot unique.
Relations (15)
Each relation joins TSTimesheetLine to another table on the fields shown.
Currency→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeMany TSTimesheetLine records → zero or one Currency record
DefaultDimension→DimensionAttributeValueSetJoin on
DefaultDimension = DimensionAttributeValueSet.RecIdMany TSTimesheetLine records → zero or one DimensionAttributeValueSet record
IntercompanyFinalSalesCurrency→CurrencyJoin on
ProjCompanySalesCurrency = Currency.CurrencyCodeMany TSTimesheetLine records → zero or one Currency record
ProjCategory→ProjCategoryJoin on
CategoryId = ProjCategory.CategoryId,ProjCategory.CategoryType = ProjCategoryType::Hour,ProjectDataAreaId = ProjCategory.DataAreaIdMany TSTimesheetLine records → exactly one ProjCategory record
ProjLineProperty→ProjLinePropertyJoin on
ProjectDataAreaId = ProjLineProperty.dataAreaId,LinePropertyId = ProjLineProperty.LinePropertyIdMany TSTimesheetLine records → zero or one ProjLineProperty record
ProjPeriodTimesheetWeek→ProjPeriodTimesheetWeekJoin on
ProjPeriodTimesheetWeek = ProjPeriodTimesheetWeek.RecIdMany TSTimesheetLine records → zero or one ProjPeriodTimesheetWeek record
ProjTable→ProjTableJoin on
ProjectDataAreaId = ProjTable.dataAreaId,ProjId = ProjTable.ProjIdMany TSTimesheetLine records → exactly one ProjTable record
smmActivities→smmActivitiesJoin on
ActivityNumber = smmActivities.ActivityNumber,ProjectDataAreaId = smmActivities.DataAreaIdMany TSTimesheetLine records → zero or one smmActivities record
TaxGroupHeading→TaxGroupHeadingJoin on
TaxGroupId = TaxGroupHeading.TaxGroupMany TSTimesheetLine records → zero or one TaxGroupHeading record
TaxItemGroupHeading→TaxItemGroupHeadingJoin on
TaxItemGroup = TaxItemGroupHeading.TaxItemGroupMany TSTimesheetLine records → zero or one TaxItemGroupHeading record
TSTimesheetTable→TSTimesheetTableJoin on
TimesheetNbr = TSTimesheetTable.TimesheetNbrMany TSTimesheetLine records → exactly one TSTimesheetTable record
WrkCtrTable→WrkCtrTableJoin on
WrkCtrId = WrkCtrTable.WrkCtrId,WrkCtrTable.IsIndividualResource = 1Many TSTimesheetLine records → zero or one WrkCtrTable record
Resource→ResourceViewJoin on
Resource = ResourceView.RecIdMany TSTimesheetLine records → exactly one ResourceView record
ResourceTable→ResResourceIdentifierJoin on
Resource = ResResourceIdentifier.RecIdMany TSTimesheetLine records → exactly one ResResourceIdentifier record
FinTag→FinTagJoin on
FinTag = FinTag.RecIdMany TSTimesheetLine records → zero or one FinTag record
Get this data out
Tables are not exposed directly. These public entities read from TSTimesheetLine; use one of them in Power BI, Power Platform or a data management project.
TaxTimesheetLineTransTaxInformationEntity· 2 fields from this table
Need help with TSTimesheetLine in a report, an integration or a migration? Talk to Dr Dynamics.