Batch Element
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Batch Element

Windows SharePoint Services 3

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Provides batch processing of commands within HTTP protocol.

  OnError = "Return" | "Continue"
  ListVersion = ""
  Version = ""
  ViewName = "">




Optional Integer. Specifies the version number of the list.


Optional. The following values are possible:

  • Return — Stops execution of any more methods after the first error is encountered. This is the default.

  • Continue — After an error is encountered, continues executing subsequent methods.


Optional String. Specifies the version number of Windows SharePoint Services that is running on the server. A version number consists of four integers in the format N.N.N.NNNN, which represent the major, minor, phase, and incremental versions of the product.


Optional Guid. Specifies the GUID for the view.

Minimum: 0

Maximum: 1

The Batch element must contain at least one Method element. The Batch element allows the client application to post more than one command to the server at a time.

The following code example, if contained within HTTP protocol, would return a list named "Documents" from the server.

<?xml version="1.0" encoding="UTF-8"?>
<ows:Batch Version="" OnError="Return">
  <Method ID="0,ExportList">
    <SetList Scope="Request">Documents</SetList>
    <SetVar Name="Cmd">ExportList</SetVar>
© 2016 Microsoft