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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
MemberIdID of the sales unit member the target is set for. | StringsmmSalesUnitMemberID | 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 | |
SalesManagerWorkerWorker who is the sales manager. It points to a worker record by system record ID. | Int64smmSalesManagerWorker | No | HcmWorker.RecId | None |
SalesPersonWorkerWorker who is the salesperson. It points to a worker record by system record ID. | Int64smmSalesManWorker | No | HcmWorker.RecId | None |
SalesUnitIdSales unit the target belongs to. | String (20)smmSalesUnitId | Yes | smmSalesUnit.SalesUnitId | None |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (3)
HcmWorkerIdxNot unique.
HcmWorkerIdx1Not unique.
MemberYearIdxNot unique.
Relations (4)
Each relation joins smmSalesTarget to another table on the fields shown.
SalesManagerWorker→HcmWorkerJoin on
SalesManagerWorker = HcmWorker.RecIdMany smmSalesTarget records → zero or one HcmWorker record
SalesPersonWorker→HcmWorkerJoin on
SalesPersonWorker = HcmWorker.RecIdMany smmSalesTarget records → zero or one HcmWorker record
SalesStaff→smmSalesUnitMembersJoin on
MemberId = smmSalesUnitMembers.MemberIdCardinality not set in the metadata.
smmSalesUnit→smmSalesUnitJoin on
SalesUnitId = smmSalesUnit.SalesUnitIdMany 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.