Table
WHSCycleCountPlan
Cycle count plans
Holds cycle count plans, identified by a plan ID. Each plan has item and location queries, limits on how often counting happens and an optional work pool and work template.
- Table name
WHSCycleCountPlan- Module
Inventory- Table group
Main- Table type
Regular- Data per company
Yes- Configuration key
WHSandTMS- Primary index
CycleCountPlanIdIdx- Replacement key
CycleCountPlanIdIdx- Key fields
CycleCountPlanId- Model
Foundation
Fields (17)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CycleCountPlanIdUnique ID of the cycle counting plan. | String (20)WHSCycleCountPlanId | Yes | WHSCycleCountingPlanv2Entity | |
CycleCountEmptyLocationsChoice of how empty locations are treated: excluded, included or only empty ones. | EnumWHSCycleCountEmptyLocations (enum) | No | WHSCycleCountingPlanv2Entity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DaysBetweenNumber of days to leave between counts. | IntegerWHSDaysBetween | No | WHSCycleCountingPlanv2Entity | |
DescriptionShort text that describes the plan. | String (60)Description | No | WHSCycleCountingPlanv2Entity | |
ItemQuerySaved query, stored in packed form, that selects the items to count. | ContainerWHSItemQuery | No | None | |
LocationQuerySaved query, stored in packed form, that selects the locations to count. | ContainerWHSLocationQuery | No | WHSCycleCountingPlanv2Entity | |
MaxCountsUpper limit on the number of cycle counts. | IntegerWHSMaxCounts | No | WHSCycleCountingPlanv2Entity | |
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 | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | 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 | |
WorkPoolIdWork pool used for the plan. Points to the Work pools table. | String (20)WHSWorkPoolId | No | WHSWorkPool.WorkPoolId | WHSCycleCountingPlanv2Entity |
WorkTemplateCodeWork template used for the plan. Relates to the Work templates table. | String (20)WHSWorkTemplateCode | No | WHSCycleCountingPlanv2Entity |
Indexes (1)
CycleCountPlanIdIdxPrimary indexReplacement keyUnique, alternate key.
Relations (2)
Each relation joins WHSCycleCountPlan to another table on the fields shown.
WHSWorkPool→WHSWorkPoolJoin on
WorkPoolId = WHSWorkPool.WorkPoolIdMany WHSCycleCountPlan records → zero or one WHSWorkPool record
WHSWorkTemplateTable→WHSWorkTemplateTableJoin on
WorkTemplateCode = WHSWorkTemplateTable.WorkTemplateCode,WHSWorkTemplateTable.WorkTransType = WHSWorkTransType::CycleCountMany WHSCycleCountPlan records → zero or one WHSWorkTemplateTable record
Get this data out
Tables are not exposed directly. These public entities read from WHSCycleCountPlan; use one of them in Power BI, Power Platform or a data management project.
WHSCycleCountingPlanv2Entity· 8 fields from this table
Need help with WHSCycleCountPlan in a report, an integration or a migration? Talk to Dr Dynamics.