File System Connector 25.2
File System Connector Help

# Construct XML to Update Dates

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

    <identifiersXML>
      <identifier value="...">
        <metadata name="CREATED" value="1427302848"/>
        <metadata name="LASTMODIFIED" value="1427302848"/>
        <metadata name="LASTACCESSED" value="1427302848"/>
        <metadata name="LASTCHANGED" value="1427302848"/>
      </identifier>
    </identifiersXML>

In the identifier `value` attribute, replace "..." with the document identifier of the item that you want to update. A document identifier can be found in the `AUTN_IDENTIFIER` field of an indexed document.

You can update the metadata of several files by including more than one `identifier` element in your XML:

    <identifiersXML>
       <identifier value="...">
          <metadata name="CREATED" value="1427302848"/>
       </identifier>
       <identifier value="...">
          <metadata name="LASTMODIFIED" value="1427302848"/>
       </identifier>
    </identifiersXML>

You can set date/time values using the following formats:

- Epoch seconds (for example 1427302848)

- YYYY-SHORTMONTH-DD HH:NN:SS (for example 2015-MAR-25 17:01:30)

- YYYY-MM-DDTHH:NN:SS (for example 2015-03-25T17:01:30)

- YYYYMMDDTHHNNSS (for example 20150325T170130)

TIP: The connector passes the times to the operating system without any consideration of time zones.

NOTE: The connector updates any of the fields that you specify. If you do not set a value for one of the fields, the value is not updated. The last change time is not updated unless you explicitly set a value for that field, even though updating the other metadata fields would usually result in the last change time being updated to the current time.

Copyright 2025 Open Text
Version 25.2 | Last updated April 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 File System Connector 25.2

Topic Title: Construct XML to Update Dates