Share via


UpdateDwsData Method

The UpdateDwsData method of the Document Workspace service performs a batch update on items stored in the Document Workspace site.

Parameters

xmlData   String. The list of item updates, in Collaborative Application Markup Language (CAML) batch update format. For example, use the following xmlData batch update to save a new task in the task list of the Document Workspace site.

<?xml version="1.0" encoding="UTF-8"?>
<ows:Batch OnError="Continue" xmlns:ows="http://tempuri.org/">
    <SetVar Name="DatesInGregorian">TRUE</SetVar>
    <SetVar Name="TimesInUTC">TRUE</SetVar>
    <Method ID="New">
        <SetList Scope="Request">{EA448C91-16D4-411E-AC42-7BA092641E60}</SetList>
        <SetVar Name="Cmd">Save</SetVar>
        <SetVar Name="ID">New</SetVar>
        <SetVar Name="urn:schemas-microsoft-com:office:office#Title">Test</SetVar>
        <SetVar Name="urn:schemas-microsoft-com:office:office#AssignedTo">1</SetVar>
        <SetVar Name="urn:schemas-microsoft-com:office:office#Status">Not Started</SetVar>
        <SetVar Name="urn:schemas-microsoft-com:office:office#Priority">(2) Normal</SetVar>
        <SetVar Name="urn:schemas-microsoft-com:office:office#DueDate">2003-02-11T16:00:00Z</SetVar>
        <SetVar Name="urn:schemas-microsoft-com:office:office#Body">&lt;div&gt;This is the description.&lt;/div&gt;</SetVar>
    </Method>
</ows:Batch>

meetingInstance  String. Optional instance of a recurring meeting. In a Meeting Workspace site for a recurring meeting, you can create a specific list for each meeting instance, or you can share a single list among all instances. If the list is specific to each meeting instance, then you need to add new list items to the list for the specific meeting instance. The meetingInstance argument applies to the entire batch update and specifies the meeting instance to which the UpdateDwsData method adds new list items.

Return Value

String Returns an empty <Result/> when successful.

Error Values

The following table shows errors that may be returned by the UpdateDwsData method pertaining to item updates requested in the batch update.

Error Code Description
DwsError.Conflict (4) Another user modified the specified item.
DwsError.ItemNotFound (5) Could not find the specified item.
DwsError.ListNotFound (7) Could not find the specified list.
DwsError.QuoteExceeded (14) Exceeds the quota for the user.

Remarks

The UpdateDwsData method performs a batch update on items in the Document Workspace site by supplying data by using the CAML batch update format.

The UpdateDwsData method is used by Microsoft Office Outlook 2003 in connection with its Shared Attachments feature.

Requirements

Platforms: Microsoft Windows Server 2003

Web Reference: http://Server_Name/_vti_bin/Dws.asmx