Table

RetailLoyaltySchemeExcludedAffiliation

Customer Affiliations

Lists customer affiliations that are excluded from a loyalty scheme. Each record pairs one loyalty scheme with one affiliation. It has no defined key in the metadata.

Table name
RetailLoyaltySchemeExcludedAffiliation
Module
Commerce customers
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (9)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
LoyaltySchemeIdPoints to the loyalty scheme the exclusion belongs to.Int64
RefRecId
NoRetailLoyaltyScheme.RecIdRetailLoyaltySchemeExcludedAffiliationEntity
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
RetailAffiliationIdPoints to the affiliation (loyalty program) that is excluded.Int64
RefRecId
YesRetailAffiliation.RecIdRetailLoyaltySchemeExcludedAffiliationEntity
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

Indexes (1)

Relations (2)

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

  • RetailAffiliation → RetailAffiliation

    Join on RetailAffiliationId = RetailAffiliation.RecId

    Many RetailLoyaltySchemeExcludedAffiliation records → exactly one RetailAffiliation record

  • LoyaltyScheme → RetailLoyaltyScheme

    Join on LoyaltySchemeId = RetailLoyaltyScheme.RecId

    Many RetailLoyaltySchemeExcludedAffiliation records → exactly one RetailLoyaltyScheme record

Get this data out

Tables are not exposed directly. These public entities read from RetailLoyaltySchemeExcludedAffiliation; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk