Table
TAMPromotionCust
Promotional customers
Links customers to trade allowances. The key is the trade allowance ID together with the customer account. Rows can also point to a merchandising event.
- Table name
TAMPromotionCust- Module
Sales and marketing- Table group
Main- Table type
Regular- Data per company
Yes- Configuration key
TAMPromotionsManagement- Primary index
PromotionCustAccountIdx- Replacement key
PromotionCustAccountIdx- Key fields
PromotionID, CustAccount- Model
Foundation
Fields (16)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
PromotionIDTrade allowance that the customer is linked to. | StringTAMPromotionID | Yes | TAMTradePromotion.PromotionID | None |
CustAccountCustomer account taking part in the trade allowance. | String (20)CustAccount | Yes | CustTable.AccountNum | TAMTradeAllowanceAgreementMerchandisingEventProductV2EntityTAMTradeAllowanceAgreementProductV2EntityTAMTradeAllowanceAgreementFundEntityand 9 more |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CreatedTransactionIdA system number for the database transaction that created the record. System field. | Int64CreatedTransactionId | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
MerchandisingEventIDMerchandising event linked to this row. | StringMCRMerchandisingEventID | No | TAMMerchandisingEvent.MerchandisingEventID | None |
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 | |
ModifiedTransactionIdA system number for the database transaction that last changed the record. System field. | Int64ModifiedTransactionId | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PromotionCustCustomer account of the promotion. It repeats the customer link used on related tables. | String (20)TAMPromotionCustAccount | No | CustTable.AccountNum | 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 |
Indexes (2)
PromotionCustAccountIdxPrimary indexReplacement keyUnique, alternate key.
MerchandisingEventIdxNot unique.
Relations (4)
Each relation joins TAMPromotionCust to another table on the fields shown.
CustAccount→CustTableJoin on
CustAccount = CustTable.AccountNumOne or more TAMPromotionCust records → exactly one CustTable record
TAMMerchandisingEvent→TAMMerchandisingEventJoin on
MerchandisingEventID = TAMMerchandisingEvent.MerchandisingEventIDExactly one TAMPromotionCust record → exactly one TAMMerchandisingEvent record
TAMPromotionCustAccount→CustTableJoin on
PromotionCust = CustTable.AccountNumOne or more TAMPromotionCust records → exactly one CustTable record
TAMTradePromotion→TAMTradePromotionJoin on
PromotionID = TAMTradePromotion.PromotionIDMany TAMPromotionCust records → exactly one TAMTradePromotion record
Get this data out
Tables are not exposed directly. These public entities read from TAMPromotionCust; use one of them in Power BI, Power Platform or a data management project.
TAMTradeAllowanceAgreementMerchandisingEventProductV2Entity· 1 field from this tableTAMTradeAllowanceAgreementProductV2Entity· 1 field from this tableTAMTradeAllowanceAgreementFundEntity· 1 field from this tableTAMTradeAllowanceAgreementHeaderEntity· 1 field from this tableTAMTradeAllowanceAgreementMerchandisingEventBillBackEntity· 1 field from this tableTAMTradeAllowanceAgreementMerchandisingEventBillBackLineEntity· 1 field from this tableTAMTradeAllowanceAgreementMerchandisingEventDiscountEntity· 1 field from this tableTAMTradeAllowanceAgreementMerchandisingEventEntity· 1 field from this tableTAMTradeAllowanceAgreementMerchandisingEventFundEntity· 1 field from this tableTAMTradeAllowanceAgreementMerchandisingEventLumpSumEntity· 1 field from this tableTAMTradeAllowanceAgreementMerchandisingEventProductEntity· 1 field from this tableTAMTradeAllowanceAgreementProductEntity· 1 field from this table
Need help with TAMPromotionCust in a report, an integration or a migration? Talk to Dr Dynamics.