for example my array size is 3400
in the first write - 1 to 10002nd time write 1001 to 20003rd time write 2001 to 30004th time write 3001 to 3400
How we can achieve this one
can anyone help me out
TIA
Discussion posts and replies are publicly visible
Prepare Array: Create an array with 3400 records.
Define Batch Size: Set batch size (e.g., 1000).
Use Loop:
Write to Data Store Entity
forEach( items: a!arrayRange(1, ceiling(length(recordsArray) / batchSize)), expression: a!writeToDataStoreEntity( dataStoreEntity: cons!YOUR_DATA_STORE_ENTITY, valueToStore: a!arraySlice(recordsArray, (fv!item - 1) * batchSize + 1, fv!item * batchSize) ) )