Table
WrkCtrCapRes
Capacity reservations
Holds capacity reservations for resources. Each record reserves time on a resource for a job, with start and end time, date, load and a reference to a production order, planned order, project or maintenance. It can link to a plan version and a property.
- Table name
WrkCtrCapRes- Module
Master planning- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
WrkCtr- Primary index
RecId- Replacement key
None- Key fields
None- Model
Foundation
Fields (32)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
EndTimeScheduled end time of the reservation. | TimeSchedToTime | No | WrkCtrOperationsResourceCapacityReservationEntity | |
IntvMthMonth number used for filtering. | IntegerIntvMth | No | None | |
IntvQrQuarter number used for filtering. | IntegerIntvQr | No | None | |
IntvWkWeek number used for filtering. | IntegerIntvWk | No | None | |
JobIdJob ID or work order the reservation is for. | String (20)ProdJobId | No | EntAssetWorkOrderTable.WorkOrderIdProdRouteJob.JobId | WrkCtrOperationsResourceCapacityReservationEntity |
JobTypeType of task, such as setup, process, transport or queue. | EnumRouteJobType (enum) | No | WrkCtrOperationsResourceCapacityReservationEntity | |
LoadTypeType of capacity load, such as operations scheduled or job scheduled. | EnumWrkCtrCapacityType (enum) | No | WrkCtrOperationsResourceCapacityReservationEntity | |
LockedShows whether the job is locked. | EnumProdJobLockedNoYes (enum) | No | WrkCtrOperationsResourceCapacityReservationEntity | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
OprNumOperation number of the route operation. | IntegerOprNum | No | ProdRoute.OprNumProdRouteJob.OprNumReqRoute.OprNum | WrkCtrOperationsResourceCapacityReservationEntity |
OprPriorityPriority of the operation, from primary to secondary 9. | EnumRouteOprPriority (enum) | No | ProdRoute.OprPriorityReqRoute.OprPriority | WrkCtrOperationsResourceCapacityReservationEntity |
OrigJobRecIdRecord ID of the job that originated the reservation.low confidence | Int64WrkCtrCapResOrigJobId | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PlanVersionPlan version the reservation belongs to. | Int64RefRecId | No | ReqPlanVersion.RecId | None |
PropertyIdProperty linked to the reservation. | StringPropertyId | No | WrkCtrProperty.PropertyId | WrkCtrOperationsResourceCapacityReservationEntity |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | WrkCtrOperationsResourceCapacityReservationEntity | |
RecordStateState of the record: committed or pending insert. | EnumWrkCtrCapResRecordState (enum) | No | None | |
RecordStateSessionIdID of the session that holds the record state. | IntegerSessionId | No | None | |
RecordStateSessionLoginDateTimeUTC timestamp for the session record state. | UtcDateTimeUTCTimestamp | 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 | |
RefIdNumber of the production order or project the reservation refers to. | String (20)WrkCtrRefId | No | ProdTable.ProdIdProjTable.ProjId | WrkCtrOperationsResourceCapacityReservationEntity |
RefTypeKind of source the reservation refers to, such as production, planned order, project or maintenance. | EnumWrkCtrCapRefType (enum) | No | WrkCtrOperationsResourceCapacityReservationEntity | |
StartTimeScheduled start time of the reservation. | TimeSchedFromTime | No | WrkCtrOperationsResourceCapacityReservationEntity | |
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 | |
TimestampTimestamp number of the capacity reservation. | Int64WrkCtrCapResTimestamp | No | None | |
TransDateDate of the reservation. | DateSchedDate | No | WrkCtrOperationsResourceCapacityReservationEntity | |
WrkCtrIdResource that is reserved. | StringWrkCtrIdBase | Yes | WrkCtrTable.WrkCtrId | None |
WrkCtrLoadPctLoad placed on the resource. | RealWrkCtrLoadPct | No | WrkCtrOperationsResourceCapacityReservationEntity | |
WrkCtrSecReserved capacity in seconds. | RealCapacitySec | No | WrkCtrOperationsResourceCapacityReservationEntity |
Indexes (3)
RefIdxRefType,PlanVersion,RefId,OprNum,JobId,OrigJobRecIdNot unique.
WrkCtrIdxWrkCtrId,PlanVersion,TransDate,LoadType,StartTime,EndTime,RecIdNot unique.
RecordStateIdxRecordState,RecordStateSessionId,RecordStateSessionLoginDateTimeNot unique.
Relations (14)
Each relation joins WrkCtrCapRes to another table on the fields shown.
ProdJob→ProdRouteJobJoin on
JobId = ProdRouteJob.JobId,OprNum = ProdRouteJob.OprNum,RefId = ProdRouteJob.ProdId,RefType = WrkCtrCapRefType::Production,PlanVersion = nullMany WrkCtrCapRes records → zero or one ProdRouteJob record
ProdRoute→ProdRouteJoin on
OprNum = ProdRoute.OprNum,OprPriority = ProdRoute.OprPriority,RefId = ProdRoute.ProdId,RefType = WrkCtrCapRefType::Production,PlanVersion = nullMany WrkCtrCapRes records → zero or one ProdRoute record
ProdRouteJob→ProdRouteJobJoin on
JobId = ProdRouteJob.JobIdMany WrkCtrCapRes records → zero or one ProdRouteJob record
Production→ProdTableJoin on
RefId = ProdTable.ProdId,RefType = WrkCtrCapRefType::Production,PlanVersion = nullMany WrkCtrCapRes records → zero or one ProdTable record
ProjTable→ProjTableJoin on
RefType = WrkCtrCapRefType::Project,RefId = ProjTable.ProjIdMany WrkCtrCapRes records → zero or one ProjTable record
ReqPlanVersion→ReqPlanVersionJoin on
PlanVersion = ReqPlanVersion.RecIdMany WrkCtrCapRes records → zero or one ReqPlanVersion record
ReqRoute→ReqRouteJoin on
RefType = WrkCtrCapRefType::PlannedOrder,OprPriority = ReqRoute.OprPriority,OprNum = ReqRoute.OprNum,RefId = ReqRoute.RefId,PlanVersion = ReqRoute.PlanVersionMany WrkCtrCapRes records → zero or one ReqRoute record
ReqRouteJob→ReqRouteJobJoin on
RefType = WrkCtrCapRefType::PlannedOrder,PlanVersion = ReqRouteJob.PlanVersion,OprPriority = ReqRouteJob.OprPriority,OprNum = ReqRouteJob.OprNum,RefId = ReqRouteJob.ReqPOIdMany WrkCtrCapRes records → zero or one ReqRouteJob record
WrkCtr→WrkCtrTableJoin on
WrkCtrId = WrkCtrTable.WrkCtrIdMany WrkCtrCapRes records → exactly one WrkCtrTable record
WrkCtrCapResProperty→WrkCtrCapResPropertyJoin on
RecId = WrkCtrCapResProperty.CapResRefRecIdMany WrkCtrCapRes records → zero or one WrkCtrCapResProperty record
WrkCtrProperty→WrkCtrPropertyJoin on
PropertyId = WrkCtrProperty.PropertyIdMany WrkCtrCapRes records → zero or one WrkCtrProperty record
ReqPO→ReqPOJoin on
RefId = ReqPO.RefId,RefType = WrkCtrCapRefType::PlannedOrder,PlanVersion = ReqPO.PlanVersionMany WrkCtrCapRes records → zero or one ReqPO record
EntAssetWorkOrderLine→EntAssetWorkOrderLineJoin on
RefId = EntAssetWorkOrderLine.ProjActivity,RefType = WrkCtrCapRefType::MaintenanceMany WrkCtrCapRes records → zero or one EntAssetWorkOrderLine record
EntAssetWorkOrderTable→EntAssetWorkOrderTableJoin on
JobId = EntAssetWorkOrderTable.WorkOrderId,RefType = WrkCtrCapRefType::MaintenanceMany WrkCtrCapRes records → zero or one EntAssetWorkOrderTable record
Get this data out
Tables are not exposed directly. These public entities read from WrkCtrCapRes; use one of them in Power BI, Power Platform or a data management project.
WrkCtrOperationsResourceCapacityReservationEntity· 15 fields from this table
Need help with WrkCtrCapRes in a report, an integration or a migration? Talk to Dr Dynamics.