Skip to main content
Version: 1.0.1

updateBulkItems

@spartanfx/react v1.0.1


@spartanfx/react / updateBulkItems

Function: updateBulkItems()

updateBulkItems(payload): Promise<void>

Updates items in SharePoint in bulk using batching.

Parameters

payload

IProcessInBatch

The configuration and items to be updated. Each item must include an ID.

Returns

Promise<void>

Remarks

  • Items must contain an ID field, which is used to locate the existing item.
  • Properties other than ID are treated as update values.
  • Uses batching with retry logic for throttling.

Example

await updateBulkItems({
listName: "Projects",
items: [
{ ID: 1, Title: "Updated Project A" },
{ ID: 2, Status: "Completed" }
]
});