Update Folder and Asset Metadata
You can use the connector's update fetch action to update the metadata of folders and assets in the OpenText Media Management system.
To use the update
action, you must construct some XML that specifies what to update.
For example, to update the metadata of a folder:
<identifiersXML> <identifier value="..."> <xmlmetadata> <Basic_Folder_Information> <Description>Updated folder description</Description> </Basic_Folder_Information> </xmlmetadata> </identifier> </identifiersXML>
Or, to update the metadata of an asset:
<identifiersXML> <identifier value="....="> <xmlmetadata> <Asset> <Name>New Asset Name.txt</Name> </Asset> </xmlmetadata> </identifier> </identifiersXML>
In your XML, populate the xmlmetadata
element in accordance with the metadata template associated with the folder or asset:
- The metadata should be structured, with nested fields.
- Metadata field names should match the field names in the OpenText Media Management metadata model. In the example above,
Basic_Folder_Information
andDescription
are both defined as metadata elements in theARTESIA.MODEL.BASIC FOLDER
metadata model. - If the field name contains a character that is invalid in XML, replace the character with an underscore.
Documents generated by the connector's synchronize, collect, and view actions have metadata fields in this format, so to preview the correct structure you can view a document that was generated by the connector.