ALERT! The community will be read-only starting on April 19, 8am Pacific as the migration begins. Read more for important details.
ALERT! The community will be read-only starting on April 19, 8am Pacific as the migration begins.Read more for important details.
Absent Member.
Absent Member.
630 views

Complex Search

I have received a rather complex public record request, for a large number
of users on my network. I can build the search myself, and I am going to
let everybody search their own email. Is there a way, they can import my
search criteria into their client? Or do they have to manually input the
search for each account?


Labels (2)
0 Likes
2 Replies
Micro Focus Expert
Micro Focus Expert

Hi,

I do not know of a way in which you can save your search settings. I've just double-checked my GW 8 system.

Cheers,
Laura Buckley

Views/comments expressed here are entirely my own.
If you find this post helpful, please show your appreciation and click on "Like" below...
0 Likes
Absent Member.
Absent Member.

Renee Keller;2263795 wrote:
I have received a rather complex public record request, for a large number
of users on my network. I can build the search myself, and I am going to
let everybody search their own email. Is there a way, they can import my
search criteria into their client? Or do they have to manually input the
search for each account?

This VBScript may help. It creates a search folder under cabinet. Change the constants SearchCriteria and FolderName to suit your requirements and save with a .vbs extension.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

option explicit

'define constants

const SearchCriteria = "(SUBJECT CONTAINS Backup AND FROM CONTAINS Joe)"
const FolderName = "Test"

'define variables

dim GWApplication
dim GWAccount
dim GWQuery

'Connect to GroupWise

set GWApplication = CreateObject("NovellGroupwareSession")
set GWAccount = GWApplication.Login()

'create query

set GWQuery = GWAccount.CreateQuery
GwQuery.Locations.Add ( GWAccount )
GWQuery.Expression = SearchCriteria
GWQuery.SearchLocally = False

'save as search folder under Cabinet

wscript.echo "Creating query folder " & FolderName
GWQuery.CreateFolder FolderName, GWAccount.Cabinet

set GWAccount = Nothing

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
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.