RetailLoyaltyManager::createOrUpdateLoyaltyCardTier Method [AX 2012]

Create/Update record of RetailLoyaltyCardTier based on the given parameters

client server private static void createOrUpdateLoyaltyCardTier(
    RefRecId _affiliationId, 
    RefRecId _loyaltyTierId, 
    RefRecId _loyaltyCardId, 
    date _validFrom, 
    date _validTo)

Run On

Called

Parameters

_affiliationId
Type: RefRecId Extended Data Type
the affiliation recId
_loyaltyTierId
Type: RefRecId Extended Data Type
the loyalty tier recId
_loyaltyCardId
Type: RefRecId Extended Data Type
the loyalty card recId
_validFrom
Type: date
the valid from date
_validTo
Type: date
the valid to date

First check if record of RetailLoyaltyCardTier exist or not.

If not, create a new record in RetailLoyaltyCardTierIf exist, then validate the overLap and update the record of RetailLoyaltyCardTier accordingly.

Show: