Toggle menu

sharepointSearch

This method has been deprecated. Use search instead, which also supports paging.

Description

Searches SharePoint based on your query.

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

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
sharepointFolderString, optionalThe name of a folder to limit the search to

Example

{
    "id": "123",
    "jsonrpc": "2.0",
    "method": "sharepointSearch",
    "params": {
        "authDetails": {
            "identifier": "GossTest",
            "authType": "SAML"
        },
        "query" : "Uploaded by Worker",
        "documentsOnly": true,
        "returnProperties" : ["Path", "Title"]
    }
}

Last modified on 27 June 2023

Share this page

Facebook icon Twitter icon email icon

Print

print icon