createBulkItems
@spartanfx/react / createBulkItems
Function: createBulkItems()
createBulkItems(
payload):Promise<void>
Creates items in SharePoint in bulk using batching.
Parameters
payload
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
onProgressChangecallback (if provided) to report status.
Example
await createBulkItems({
listName: "Projects",
items: [
{ Title: "Project A" },
{ Title: "Project B" }
],
onProgressChange: console.log
});