SharePoint OData Connector 25.1
SharePoint OData Connector Help

# Construct XML to Update Metadata

To use the `update` fetch action, you must construct some XML that specifies the identifiers of the items to update, and provides the new values for any metadata fields that you want to change.

The field names specified in the XML should be the names or titles of the fields you want to set in SharePoint. Depending on your connector configuration (see the `ItemFieldNamePrefix` parameter), these might have a prefix in documents retrieved by the synchronize action. Field names passed to the update fetch action must not include this prefix.

The following XML would update the title, modified date, and creation date for an item with the specified identifier. In the identifier `value` attribute, replace "..." with the document identifier of the item you want to update. A document identifier can be found in the `AUTN_IDENTIFIER` field of an indexed document.

    <identifiersXML>
      <identifier value="...">
        <metadata name="Created" value="2015-02-17T16:01Z"/>
        <metadata name="Modified" value="2015-02-17T16:04Z"/>
        <metadata name="Title" value="New Title"/>
      </identifier>
    </identifiersXML>

You can update the metadata of several items by including more than one `identifier` element:

    <identifiersXML>
      <identifier value="...">
        <metadata name="..." value="..."/>
      </identifier>
     <identifier value="...">
        <metadata name="..." value="..."/>
      </identifier>
    </identifiersXML>

TIP: You can update the metadata of any field, but you must specify the value in a format that is accepted by SharePoint.

Unless you explicitly set the modified date, SharePoint automatically updates the date to the current time.

NOTE: Updating the created or modified date of an item in a versioned list or document library might result in a new version of the item being created.

Copyright 2024 Open Text
Version 25.1 | Last updated January 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery SharePoint OData Connector 25.1

Topic Title: Construct XML to Update Metadata