About this question
How can I ensure when the first Chunk is inserted in SF then need to fire the second chunk to make sure of sequential processing? I am able to chunk the records in SF and format accordingly but need to insert records in chunks as I process at the client side in sequence.
Papa.parse(file, { worker: true, chunkSize: 1024 * 5, chunk: function (results) { this.papaRecords = results.data; let lstCCToInsert = []; var obj = {}; obj = this.papaRecords; lstCCToInsert.push(obj); RecordInsertJob({ lstCCToInsert: lstCCToInsert, }) .then(result => { thiss.status = result; // when first Chunk inserted in SF then need to fire second chunk ? }) .catch((error) => { }); }, complete: function () { console.log('Complete'); } });