Highlighted
Regular Contributor.
Regular Contributor.
401 views

Saved Search Export

Jump to solution

Hi,

what is the best way to export saved searches from one dataset to another? There is no option in the DataPort utility for import/export ...

We need to create and test a relatively large number of saved searches in a test environment and then move them to the production environment (same data model / record types etc. but with existing data).

Regards,
Chris

0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

You could do it using Powershell as per this example.


Blog | Samples | CM SDK Docs
**Any opinions expressed in this forum are my own personal opinion and should not be interpreted as an official statement on behalf of MicroFocus**

View solution in original post

5 Replies
Highlighted
Super Contributor.
Super Contributor.

I would create a trf5 file of the saved search and then set the test dataset as the default dataset and open it in there.

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

You could do it using Powershell as per this example.


Blog | Samples | CM SDK Docs
**Any opinions expressed in this forum are my own personal opinion and should not be interpreted as an official statement on behalf of MicroFocus**

View solution in original post

Highlighted
Regular Contributor.
Regular Contributor.
Thanks, David!

Exactly what I need - I will adapt the script to export and recreate our complete hierarchy of searches ...
Highlighted
Regular Contributor.
Regular Contributor.
Will very likely go for the PowerShell approach suggested by David, but just out of curiosity: what is a "trf5" file and how do you create it?
0 Likes
Highlighted
Super Contributor.
Super Contributor.

Whoops typing error tr5 its a reference file you tag all the saved searches and create a reference file and save to your desktop or network drive.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.