Toggle menu

search

Description

Performs a search query against SharePoint. The search will be performed in the area that you specify in the baseUrl in the worker configuration.

The query parameter contains the query you want to use to search SharePoint. You can supply the query as * to search for everything.

Parameters

NameTypeDescription
queryString, requiredThe search query to send to SharePoint
authDetailsObject, optionalThe authDetails set in the worker configuration to use. If not set the request will use the default authDetail
authDetails.identifierStringThe identifier of authDetails set in the worker configuration
authDetails.authTypeStringThe authType of authDetails set in the worker configuration
returnPropertiesArray[strings], optionalAn array of strings containing the metadata properties you want to retrieve. If not set all properties are returned
documentsOnlyBoolean, optionalIf true only documents will be searched
rowLimitInteger, optionalThe maximum number of rows to be returned from the search query
startRowInteger, optionalThe number of the first row to be returned from the search query

Example

{
    "id": "123",
    "jsonrpc": "2.0",
    "method": "search",
    "params": {
        "query": "TestDocument",
        "documentsOnly": true,
        "startRow": 15,
        "rowLimit": 5,
        "returnProperties": ["Path", "Title"]
    }
}

Last modified on 27 June 2023

Share this page

Facebook icon Twitter icon email icon

Print

print icon