Software AG Products 10.7 | CentraSite for Developers | Custom Reporting Searches | Copying Reporting Search
 
Copying Reporting Search
Pre-requisites:
To create a copy of an existing reporting search through the CentraSite Command Line Interface, you must have the CentraSite Administrator role.
A saved search can become quite complex, especially if it contains several attributes. Instead of creating a new saved search “from scratch”, it is sometimes easier to copy an existing search that is similar to the one you need and edit the copy.
CentraSite provides a command tool named copy Search for this purpose.
*To copy a custom reporting search
*Run the command copy Search.
The syntax is of the format: C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd copy search [-url <CENTRASITE-URL>] -user <USER-ID> -password <PASSWORD> -savedSearch <SAVED-SEARCH> [-overwrite <CONFIRM-OVERWRITE>] [-scope <SCOPE>] [-targetuser <TARGET-USER>]
The input parameters are:
Parameter
Description
CENTRASITE-URL
(Optional). The URL of the CentraSite registry. Default value is http://localhost:53307.
USER-ID
The user ID of a registered CentraSite user who has the CentraSite Administrator role. For example, Administrator.
PASSWORD
The password for the registered CentraSite user identified by the parameter USER-ID.
SAVED-SEARCH
Name of the saved search in CentraSite.
SCOPE
The folder to store the newly added saved search in CentraSite.
The possible values are:
*global - This option stores the search information in "Default Organization" folder.
*org - This option stores the search information in the user's organization folder.
*user (default value) - This option stores the search information in the user folder.
TARGET-USER
The name or UUID of a CentraSite user to whom you want to transfer ownership of the objects that are referenced by the organization identified by the parameter SAVED-SEARCH.
Example (all in one line):
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd copy Search -url http://localhost:53307/CentraSite/CentraSite -user Administrator -password manage -savedSearch MySearch -scope org -targetuser SAGDomain\Claire