Open topic with navigation

# Add Metadata

Often repositories store metadata about the files they contain, such as who created a file and when it was last modified. Metadata might also include repository-specific information. For example, a repository storing information about products for sale might include a price and a description for each item. You can add this metadata to a document's metadata fields so that it is indexed into IDOL Server.

You can add fields to a document like this:

           doc.Document.AddFieldValue("MyField", "My Value");

This example adds a field `MyField` with the value `My Value`.

Fields can also have multiple values:

           doc.Document.AddFieldValue("SecondField", "First value");
           doc.Document.AddFieldValue("SecondField", "Second value");

© 2018 Micro Focus or one of its affiliates | Send documentation feedback to Micro Focus Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm