Skip to main content
Version: 1.0.1

createBulkItems

@spartanfx/react v1.0.1


@spartanfx/react / createBulkItems

Function: createBulkItems()

createBulkItems(payload): Promise<void>

Creates items in SharePoint in bulk using batching.

Parameters

payload

IProcessInBatch

The configuration and items to be created.

Returns

Promise<void>

Remarks

  • Uses batching for efficiency.
  • Items are split into chunks (chunkSize, default 100).
  • Retries automatically on throttling errors (HTTP 429 or 503), with exponential backoff.
  • Calls onProgressChange callback (if provided) to report status.

Example

await createBulkItems({
listName: "Projects",
items: [
{ Title: "Project A" },
{ Title: "Project B" }
],
onProgressChange: console.log
});