Share this page

# searchProjects

## Purpose

This operation returns project IDs based on the search criteria.

## Input

The input specifies the project search criteria. In addition to the search criteria, you must specify the startSearchPosition property, which should begin with 1 and the maximumProjectsToShow property, which should be within the range of 1 to 1,000.

## Return

long[]

A list of project IDs corresponding to the search criteria.

## Java Examples

    SearchProjectsDocument schProjDoc =
    SearchProjectsDocument.Factory.newInstance();

    SearchProjects schProjs = schProjDoc.addNewSearchProjects();
    SearchProjectPreferenceType searchPreference =
    schProjs.addNewSearchPreferences();
    // Set the search preferences
    searchPreference.setStartSearchPosition(start);
    searchPreference.setMaximumProjectsToShow(maxResult);
    // searchPreference.setProjectNameContains("pm ws");

    SearchProjectsResponseDocument schProjRespDoc =
    stub.searchProjects(schProjDoc);

    long[] projIds =
    schProjRespDoc.getSearchProjectsResponse().getProjectIdsArray()
    ;

https://admhelp.microfocus.com PPM 8942
Tips to improve your search results... OpenText™ Project and Portfolio Management Help Center PPM Help 26.2-26.3 All View Local Help Center View Online Help Center Version: