Data entity
RetailLoyaltyCardEntity
Holds loyalty cards, keyed by card number. Each card has a card type, a link to a party and enrollment details such as date, time and operating unit. It joins to party and operating unit tables for names.
- Entity name
RetailLoyaltyCardEntity- Public entity name
RetailLoyaltyCard- OData collection
RetailLoyaltyCards- Category
Not set- Module
Commerce customers- Read-only
No- Data management enabled
Yes- Configuration key
Retail- Keys
CardNumber- Staging table
RetailLoyaltyCardStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/RetailLoyaltyCards- Dataverse virtual table
mserp_retailloyaltycardentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.- Data management
- Enabled: you can use it in import and export projects.
Data sources
RetailLoyaltyCard· rootDirPartyTable· OuterJoin toRetailLoyaltyCard· read-onlyDirOrganizationBase· Derived toDirPartyTableDirOrganization· Derived toDirOrganizationBaseOMInternalOrganization· Derived toDirOrganizationBaseCompanyInfo· Derived toOMInternalOrganizationOMOperatingUnit· Derived toOMInternalOrganizationOMTeam· Derived toOMInternalOrganizationDirPerson· Derived toDirPartyTableRetailLoyaltyCard1(tableRetailLoyaltyCard) · OuterJoin toRetailLoyaltyCard· read-onlyOmOperatingUnit1(tableOmOperatingUnit) · OuterJoin toRetailLoyaltyCard· read-only
Fields (12)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
CardNumberThe number that identifies the loyalty card. | String (30)RetailLoyaltyCardNumber | Yes | Yes | RetailLoyaltyCard.CardNumber | |
CardTenderTypeThe card type, such as As card tender, As contact tender, No tender or Blocked. | EnumRetailLoyaltyTenderType
| Yes | Yes | RetailLoyaltyCard.CardTenderType | |
PartyPoints to the customer or party in the global address book who holds the card. | Int64DirPartyRecId | No | No (private) | DirPartyTable.RecId | RetailLoyaltyCard.Party |
ReplacementCardPoints to another loyalty card that replaces this one. | Int64RefRecId | No | No (private) | RetailLoyaltyCard.RecId | RetailLoyaltyCard.ReplacementCard |
PartyNumberUnique ID of the party. It is the key of the table. | String (40)DirPartyNumber | Yes | Yes | DirPartyTable.PartyNumber | |
ReplacementCardNumberThe number that identifies the loyalty card. | String (30)RetailLoyaltyCardNumber | No | Yes | RetailLoyaltyCard.CardNumber | |
OMOperatingUnitIdPoints to the operating unit where the customer enrolled, shown as the enrolment source. | Int64OMOperatingUnitRefRecId | No | No (private) | OMOperatingUnit.RecId | RetailLoyaltyCard.OMOperatingUnitId |
LoyaltyEnrollmentDateThe date the card was enrolled. | DateValidFromDate | No | Yes | RetailLoyaltyCard.LoyaltyEnrollmentDate | |
OmOperatingUnitNumberThe number that identifies the operating unit. | String (30)OMOperatingUnitNumber | No | Yes | OMOperatingUnit.OMOperatingUnitNumber | |
LoyaltyEnrollmentTimeThe time of day the card was enrolled. | TimeRetailLoyaltyEnrollmentTime | No | Yes | RetailLoyaltyCard.LoyaltyEnrollmentTime | |
LoyaltyEnrollmentDateLocalThe enrolment date in local time. | DateValidFromDate | No | Yes | RetailLoyaltyCard.LoyaltyEnrollmentDateLocal | |
LoyaltyEnrollmentTimeLocalThe enrolment time in local time. | TimeRetailLoyaltyEnrollmentTime | No | Yes | RetailLoyaltyCard.LoyaltyEnrollmentTimeLocal |
Foreign keys (3)
Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.
Party→DirPartyTable.RecId(key of DirPartyTable)Many RetailLoyaltyCard records → zero or one DirPartyTable record
DirPartyTable details: see CustFoundationEntity, smmContactPersonV2Entity, CustCustomerV3Entity
ReplacementCard→RetailLoyaltyCard.RecId(key of RetailLoyaltyCard)Zero or one RetailLoyaltyCard record → zero or one RetailLoyaltyCard record
RetailLoyaltyCard details: see RetailLoyaltyCardRewardPointAdjustmentEntity, RetailLoyaltyCardTierEntity, RetailLoyaltyCardTierV2Entity
OMOperatingUnitId→OMOperatingUnit.RecId(key of OMOperatingUnit)Many RetailLoyaltyCard records → zero or one OMOperatingUnit record
OMOperatingUnit details: see ACOCostCenterTypeEntity, OMOperatingUnitEntity, AssetPackingSlipEntity
Need help with RetailLoyaltyCardEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.