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 descriptionType / EDT / enumMandatoryReferencesIn public entities
CycleCountPlanIdUnique ID of the cycle counting plan.String (20)
WHSCycleCountPlanId
YesWHSCycleCountingPlanv2Entity
CycleCountEmptyLocationsChoice of how empty locations are treated: excluded, included or only empty ones.Enum
WHSCycleCountEmptyLocations (enum)
NoWHSCycleCountingPlanv2Entity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DaysBetweenNumber of days to leave between counts.Integer
WHSDaysBetween
NoWHSCycleCountingPlanv2Entity
DescriptionShort text that describes the plan.String (60)
Description
NoWHSCycleCountingPlanv2Entity
ItemQuerySaved query, stored in packed form, that selects the items to count.Container
WHSItemQuery
NoNone
LocationQuerySaved query, stored in packed form, that selects the locations to count.Container
WHSLocationQuery
NoWHSCycleCountingPlanv2Entity
MaxCountsUpper limit on the number of cycle counts.Integer
WHSMaxCounts
NoWHSCycleCountingPlanv2Entity
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
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
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
WorkPoolIdWork pool used for the plan. Points to the Work pools table.String (20)
WHSWorkPoolId
NoWHSWorkPool.WorkPoolIdWHSCycleCountingPlanv2Entity
WorkTemplateCodeWork template used for the plan. Relates to the Work templates table.String (20)
WHSWorkTemplateCode
NoWHSCycleCountingPlanv2Entity

Indexes (1)

  • CycleCountPlanIdIdxPrimary indexReplacement key

    CycleCountPlanId

    Unique, alternate key.

Relations (2)

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

  • WHSWorkPool → WHSWorkPool

    Join on WorkPoolId = WHSWorkPool.WorkPoolId

    Many WHSCycleCountPlan records → zero or one WHSWorkPool record

  • WHSWorkTemplateTable → WHSWorkTemplateTable

    Join on WorkTemplateCode = WHSWorkTemplateTable.WorkTemplateCode, WHSWorkTemplateTable.WorkTransType = WHSWorkTransType::CycleCount

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

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

Email sales@drdynamics.co.uk