IUCServiceReplEcommDiscountSetup Method |
Replicate Discount Setup from Central
Only Multibuy, Discount, Total and Tender discounts are replicated
Namespace:
LSOmni.Service
Assembly:
LSOmni.Service (in LSOmni.Service.dll) Version: Commerce Service for LS Central 2025.10
Syntax
Remarks
LS Central Main Table data: 99001453 LSC Periodic Discount
LS Central Delta Sub Tables: 99001454 LSC Periodic Discount Line
LS Central WS4 : GetDiscountSetup
For full replication of all data, set FullReplication to true and LastKey and MaxKey to 0.
For delta (or updated data) replication, set FullReplication to false and LastKey and MaxKey to the last value returned from previous call.
The BatchSize is how many records are to be returned in each batch. Delta replication uses PreActions in LS Central, IsDeleted field will true if Delete PreAction is found.
NOTE: LastKey and MaxKey from each ReplEcommXX call needs to be stored between all calls to Commerce Service for LS Central, both during full or delta replication.
To reset replication and get all delta data again, set LastKey and MaxKey to 0 and perform a full replication.
See Also