Office 365 search query

Note: This is an external action and may execute on servers running outside your data center Centralized locations used to house servers used by Nintex for remote storage, processing, or distribution of data. Nintex has a number of regional data centers available for Nintex for Office 365. For information about Nintex data centers and where your data center is located, contact your Nintex account or territory manager. region. Before implementing, consider performance and regional concerns where digital boundaries are an issue. For more information, see In-tenant and external actions.

Retrieves property values for items by performing a search query in a SharePoint 2013 Online site.

Note: Not available for SharePoint 2010 Online sites.

Action settings

Do one of the following to open the Action configuration window:

  • Double-click the action.
  • Click on the action and then click Configure.

See Action configuration window for more information.

Field Description
Destination site URL

URL of the site on which to run the search query.

Search scope

Search scope for the search query.

Search scope has been deprecated in SharePoint 2013, but you can use your old scope in the query. Example: "All Sites"

Result source

Result source filter for the search query. Select one of the following items.

  • All Results: Retrieves all result sources.
  • Conversations
  • Documents
  • Items matching a content type
  • Items matching a tag
  • Items related to current user
  • Items with same keyword as this item
  • Local People Results
  • Local Reports And Data Results
  • Local SharePoint Results
  • Local Video Results
  • Pages
  • Pictures
  • Popular
  • Recently changed items
  • Recommended Items
  • Wiki
  • Custom: Retrieves the result source specified for Custom result source.
Custom result source

GUID of the custom result source.

This field applies only when Custom is selected for Result source.

All of these words

Words to search for. Any items that contain all of the specified words are returned. Separate words with spaces.

The exact phrase

Exact phrase to search for. Any items that contain the specified phrase are returned.

Any of these words

Words to search for. Any items that contain at least one of the specified words are returned. Separate words with spaces.

None of these words

Words to exclude from the search. Any items that do not contain the specified words are returned. Separate words with spaces.

Result type

File type filter for the search query. Select one of the following items.

  • All Results: Retrieves all file types.
  • Documents
  • Word Documents
  • Excel Documents
  • PowerPoint Presentations
  • Custom: Retrieves the file type specified for Custom result type.
Custom result type

File type for custom result type.

This field applies only when Custom is selected for Result type.

Property restrictions

Criteria that items must match in order to be returned. Add filters to specify property restriction rules.

Select one of the following items.

  • Return all items: Returns all items.
  • Return items only when the following is true:
    • Search the item when property / When property:: Specify a property, select an operator, and specify a value.
    • Add property restriction: Add a filter.
    • Delete (): Delete a filter. Displayed for second and subsequent filters.
    • And / Or: Specify how to group sequential filters.
Properties to return

Item properties to return.

Maximum number of results

Maximum number of items to return. Leaving this field blank returns up to 50 results. The maximum number of items returned is 200.

SharePoint Online URL

URL of the SharePoint Online website domain. Example: http://targetdomain.sharepoint.com.

Connection
  • Permissions required: Perform search queries in the specified site.
  • Connection type required: SharePoint Online: List & library. For more information about Connection types, see Connection types and Connector actions.
Username / Password

(Displayed for legacy actions not yet updated.) Unmanaged credentials.

  • Permissions required: Perform search queries in the specified site.

Note: As a best practice, manage credentials by updating actions to use connections.

Search query completed

Boolean variable to store operation result. Returns "Yes" if the search query was completed successfully.

Query string

Variable to store the constructed search query string.

Number of results

Variable to store the number of items found.

Results as XML

Variable to store the items' properties as XML.

For more information about how to use Lookups in configuration fields, see Lookups in action configuration fields.