Content Extended Operations example 4: About Search Template Item IDs

When executing a search template, your search values, such as the document title or author, must correlate to the appropriate item IDs within the search template itself. The first search property within the search template often has an item ID of 1, the second property has an item ID of 2, and so on. However, this is not always true, especially when with search templates that have had many changes.

To determine the item IDs for the search properties defined with a template, examine the XML content of the search template by using the IBM FileNet Enterprise Manager.

  1. Locate the search template within the IBM FileNet Enterprise Manager, right-click, and select Properties.
  2. Move to the Content tab and click View.
  3. When prompted for an application to view the content with, select Internet Explorer.

If you are not prompted and the XML opens in Notepad, use Save To File and open the .xml file in Internet Explorer. You should see an XML document describing the search template. Locate the <whereprop> tags within the <where> tag. You will then see the itemid attributes within the <whereprop> tags. These are the item ID(s) you will use with the operation. Do not confuse these with the item IDs within the <selectprops> tags. For example:

An example of <whereprop> tags

  1. Correlate these item IDs with the values in your searchForMany/searchForOne call. For example:

Searchformany example

  1. When finished, click OK.