Click or drag to resize

IUCJsonReplEcommItems Method

Replicate Retail Items (supports Item distribution)

Namespace:  LSOmni.Service
Assembly:  LSOmni.Service (in LSOmni.Service.dll) Version: Commerce Service for LS Central 2024.4
Syntax
C#
ReplItemResponse ReplEcommItems(
	ReplRequest replRequest
)

Parameters

replRequest
Type: LSRetail.Omni.Domain.DataModel.Loyalty.ReplicationReplRequest
Replication request object

Return Value

Type: ReplItemResponse
Replication result object with List of items
Remarks
LS Central Main Table data: 27 - Item LS Central WS4 : GetWIItemBuffer

Most ReplEcommXX web methods work the same way. Item distribution is based on StoreId, and pulls all record related to Item include for distribution to that store. 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.

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. For update, actions for Item, Item HTML and distribution tables are used to find changes, and it may return empty list of items while Records Remaining is still not 0. Keep on calling the function till Records Remaining become 0.

See Also