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 descriptionType / EDT / enumMandatoryReferencesIn public entities
ResourceProject resource the line belongs to.Int64
TSResourceRecId
NoResResourceIdentifier.RecIdResourceView.RecIdNone
TimesheetNbrNumber of the timesheet the line belongs to, pointing to the timesheets table.String
TSTimesheetNbr
YesTSTimesheetTable.TimesheetNbrTaxTimesheetLineTransTaxInformationEntity
LineNumNumber of the line within the timesheet.Real
LineNum
NoTaxTimesheetLineTransTaxInformationEntity
ProjPeriodTimesheetWeekWeekly timesheet period the line belongs to.Int64
RefRecId
NoProjPeriodTimesheetWeek.RecIdNone
ActivityCompleteYes/No flag showing the activity is complete.Enum
TSActivityComplete
NoYes (enum)
NoNone
ActivityNumberActivity the line relates to, pointing to the activities table.String (50)
ProjActivityNumber
NosmmActivities.ActivityNumberNone
ActivityRemainingHours still remaining for the activity or task.Real
TSActivityRemaining
NoNone
ApplyActionYes/No flag for applying an action to the line.low confidenceEnum
NoYes (enum)
NoNone
ApprovalStatusApproval state of the line, such as draft, submitted, approved, returned or posted.Enum
TSAppStatus (enum)
NoNone
ApproverListTechnical container holding the list of approvers.Container
TSApproverList
NoNone
CategoryIdProject category of the line, pointing to the project category table.String (30)
ProjCategoryId
YesProjCategory.CategoryIdNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CreatedTransactionIdA system number for the database transaction that created the record. System field.Int64
CreatedTransactionId
NoNone
CurrencyCodeSales currency for the line, pointing to the currency table.String (3)
ProjSalesCurrencyCode
NoCurrency.CurrencyCodeNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DefaultDimensionFinancial dimension values for the line, pointing to a dimension value set.Int64
LedgerDefaultDimensionValueSet
NoDimensionAttributeValueSet.RecIdNone
FinTagFinancial tag attached to the line.Int64
FinTagRecId
NoFinTag.RecIdNone
LinePropertyIdLine property of the line, pointing to the line property table.String
ProjLinePropertyId
NoProjLineProperty.LinePropertyIdNone
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
ModifiedTransactionIdA system number for the database transaction that last changed the record. System field.Int64
ModifiedTransactionId
NoNone
PackedExtensionsTechnical container that stores extension data for the record.Container
SysExtensionSerializerPackedContainer
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
ProjCompanySalesCurrencySales currency of the project's company, pointing to the currency table.String (3)
ProjSalesCurrencyCode
NoCurrency.CurrencyCodeNone
ProjectDataAreaIdCompany (legal entity) that owns the project, category and line property used.String
DataAreaId
YesProjCategory.DataAreaIdProjLineProperty.dataAreaIdProjTable.dataAreaIdsmmActivities.DataAreaIdNone
ProjIdProject the time is booked to, pointing to the projects table.String (20)
ProjId
YesProjTable.ProjIdNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxGroupIdSales tax group for the line.String
ProjTaxGroup
NoTaxGroupHeading.TaxGroupNone
TaxItemGroupItem sales tax group for the line.String
ProjTaxItemGroup
NoTaxItemGroupHeading.TaxItemGroupNone
TSFavoritesYes/No flag marking the line as a favourite.Enum
TSFavorites
NoYes (enum)
NoNone
WebTransactionYes/No flag showing the line came from a web transaction.Enum
WebTransaction
NoYes (enum)
NoNone
WorkerWorker who recorded the time, stored as a record ID.Int64
ProjWorkerRecId
NoNone
WrkCtrIdResource ID, pointing to the resources table.String
WrkCtrId
NoWrkCtrTable.WrkCtrIdNone

Indexes (9)

Relations (15)

Each relation joins TSTimesheetLine to another table on the fields shown.

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many TSTimesheetLine records → zero or one Currency record

  • DefaultDimension → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many TSTimesheetLine records → zero or one DimensionAttributeValueSet record

  • IntercompanyFinalSalesCurrency → Currency

    Join on ProjCompanySalesCurrency = Currency.CurrencyCode

    Many TSTimesheetLine records → zero or one Currency record

  • ProjCategory → ProjCategory

    Join on CategoryId = ProjCategory.CategoryId, ProjCategory.CategoryType = ProjCategoryType::Hour, ProjectDataAreaId = ProjCategory.DataAreaId

    Many TSTimesheetLine records → exactly one ProjCategory record

  • ProjLineProperty → ProjLineProperty

    Join on ProjectDataAreaId = ProjLineProperty.dataAreaId, LinePropertyId = ProjLineProperty.LinePropertyId

    Many TSTimesheetLine records → zero or one ProjLineProperty record

  • ProjPeriodTimesheetWeek → ProjPeriodTimesheetWeek

    Join on ProjPeriodTimesheetWeek = ProjPeriodTimesheetWeek.RecId

    Many TSTimesheetLine records → zero or one ProjPeriodTimesheetWeek record

  • ProjTable → ProjTable

    Join on ProjectDataAreaId = ProjTable.dataAreaId, ProjId = ProjTable.ProjId

    Many TSTimesheetLine records → exactly one ProjTable record

  • smmActivities → smmActivities

    Join on ActivityNumber = smmActivities.ActivityNumber, ProjectDataAreaId = smmActivities.DataAreaId

    Many TSTimesheetLine records → zero or one smmActivities record

  • TaxGroupHeading → TaxGroupHeading

    Join on TaxGroupId = TaxGroupHeading.TaxGroup

    Many TSTimesheetLine records → zero or one TaxGroupHeading record

  • TaxItemGroupHeading → TaxItemGroupHeading

    Join on TaxItemGroup = TaxItemGroupHeading.TaxItemGroup

    Many TSTimesheetLine records → zero or one TaxItemGroupHeading record

  • TSTimesheetTable → TSTimesheetTable

    Join on TimesheetNbr = TSTimesheetTable.TimesheetNbr

    Many TSTimesheetLine records → exactly one TSTimesheetTable record

  • WrkCtrTable → WrkCtrTable

    Join on WrkCtrId = WrkCtrTable.WrkCtrId, WrkCtrTable.IsIndividualResource = 1

    Many TSTimesheetLine records → zero or one WrkCtrTable record

  • Resource → ResourceView

    Join on Resource = ResourceView.RecId

    Many TSTimesheetLine records → exactly one ResourceView record

  • ResourceTable → ResResourceIdentifier

    Join on Resource = ResResourceIdentifier.RecId

    Many TSTimesheetLine records → exactly one ResResourceIdentifier record

  • FinTag → FinTag

    Join on FinTag = FinTag.RecId

    Many 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.

Need help with TSTimesheetLine in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk