Update Node Metadata
To update the metadata of a node in Extended ECM, you can use the connector's update action. You must supply some XML that specifies the metadata to update.
By default, you can update the generic fields listed by the ApiFieldName configuration parameter. If you want to update a generic field that isn't listed, you must set ApiFieldName, ApiFieldType, and SourceFieldName, replacing the default values of those parameters with new values that include the additional field(s).
The following is example XML that you could supply in the IdentifiersXML
parameter of your update action. This would update the generic description
field:
<IdentifiersXML> <identifier value="AUTN_IDENTIFIER_OF_DOCUMENT_TO_UPDATE"> <xmlmetadata> <description>The new description</description> </xmlmetadata> </identifier> </IdentifiersXML>
Extended ECM also supports custom fields that belong to categories. When the connector synchronizes with Extended ECM it adds categories to the IDOL document metadata. You can use the update action to update the values of these fields. Specify the new values in the same format as the IDOL document created by the connector.
For example, you might supply the following XML in the IdentifiersXML
parameter of your update action, to update two custom fields that belong to a category:
<IdentifiersXML> <identifier value="AUTN_IDENTIFIER_OF_DOCUMENT_TO_UPDATE"> <xmlmetadata> <categories> <_2074355_2/> <_2074355_3>NEW FIELD VALUE</_2074355_3> </categories> </xmlmetadata> </identifier> </IdentifiersXML>
TIP: In IDOL documents, the category names are prefixed with an underscore. This underscore is to ensure that the XML is valid and is not part of the category name. The initial underscore is discarded when the connector performs the update.