Table

smmSalesTarget

Sales targets

Holds sales targets for members of a sales unit. Each row links a sales unit, a sales unit member, a salesperson and a sales manager. The amounts and dates are stored in the related sales target transactions table.

Table name
smmSalesTarget
Module
Sales and marketing
Table group
Main
Table type
Regular
Data per company
Yes
Configuration key
SmmSM
Primary index
RecId
Replacement key
None
Key fields
None
Model
Foundation

Fields (9)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
MemberIdID of the sales unit member the target is set for.String
smmSalesUnitMemberID
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
SalesManagerWorkerWorker who is the sales manager. It points to a worker record by system record ID.Int64
smmSalesManagerWorker
NoHcmWorker.RecIdNone
SalesPersonWorkerWorker who is the salesperson. It points to a worker record by system record ID.Int64
smmSalesManWorker
NoHcmWorker.RecIdNone
SalesUnitIdSales unit the target belongs to.String (20)
smmSalesUnitId
YessmmSalesUnit.SalesUnitIdNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (3)

Relations (4)

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

  • SalesManagerWorker → HcmWorker

    Join on SalesManagerWorker = HcmWorker.RecId

    Many smmSalesTarget records → zero or one HcmWorker record

  • SalesPersonWorker → HcmWorker

    Join on SalesPersonWorker = HcmWorker.RecId

    Many smmSalesTarget records → zero or one HcmWorker record

  • SalesStaff → smmSalesUnitMembers

    Join on MemberId = smmSalesUnitMembers.MemberId

    Cardinality not set in the metadata.

  • smmSalesUnit → smmSalesUnit

    Join on SalesUnitId = smmSalesUnit.SalesUnitId

    Many smmSalesTarget records → exactly one smmSalesUnit record

Get this data out

No public entity reads from smmSalesTarget. Its data is only reachable through the application, a custom entity or a database export.

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

Email sales@drdynamics.co.uk