Retrieve a select group of items through scripting
Using a script for an item, you can retrieve a select group of items. For example, only the items under a specific category or having a specific attribute value to be displayed or exported.
Use a selection to specify a set of items to display or export.
Create a
Selection
on the catalog from the Selections
Console. Enter a selection criterion to associate to a specific category
or having a specific attribute value. This retrieves only the required
items from the catalog. Use the selection (instead of the whole catalog)
in the script. The selection enables you to work with a select group
of catalog items.The following script operations are used with selections:
getHierarchyNodeSetForSelection
- Return the hierarchy nodes in a selection as a HierarchyNodeSetgetItemSetForSelection
- Return the items in a selection as an ItemSet