RetrieveQueries Method
Retrieves queries from the user group.
Syntax
sapquerycontrol.RetrieveQueriesRemarks
This will use the WorkSpace, QueryName, and UserGroup to retrieve any queries that meet the criteria.
So you can do something like this:
SapQuery1.WorkSpace = SapqueryWorkSpaces.wsGlobalArea; SapQuery1.QueryName = "*"; SapQuery1.UserGroup = "/SAP*"; SapQuery1.RetrieveQueries();This will then QueryMetaDatas with any query available in the Global Area workspace the user groups that begin with "/SAP" have access to.