Microsoft 365: How to Search and Query

Overview

In Outlook and Teams there are multiple commands you can use to narrow down searches to help locate and organize your emails and messages. Commands are shortcuts for performing common task in Teams or Outlook such as filtering names or senders/recipients, updating statuses, changing teams or channels or viewing saved messages.

Contents

Outlook:

There are keywords to use when narrowing searches in outlook. Listed below are the most common queries and what they do.

Command

Description

subject:

Searches the Subject of all emails for what is specified after the colon

from:

Searches the From line aka sender of emails Ex; from:brutus.1@osu.edu

to:

Searches the To line. Ex; to:brutus.1@osu.edu

cc:

Searches the cc line for specified receivers. Ex: cc:brutus.1@osu.edu

received: <, <=, >=, >
sent: <, <=, >=, >

Searches for emails sent or received before the given date. Ex; received<01/01/2018 or sent<01/01/2018
Searches for emails send or received after the given date. Ex; received>10/31/2020

folder:

Searches for mail in the given folder. Ex; folder:archive will look at emails in the Archive folder.

hasattachment:

Searches mail messages with attachments if you don’t want attachments, enter hasattachment:false

AND

Combines terms in the search so both must be present. But not in the order entered. Ex: “Brutus AND buckeye”, or “football game AND tickets”

OR

Combines search terms so that either words can be in the email but doesn’t need both. Ex: “Brutus OR Buckeye” displays results of either.

( )

Used to specify ranges like date, date range, address, or something else.

Ex: from:Brutus (received:08/01/21 or received:09/02/21) searches the from line for messages from Brutus that were received on August 1st 2021 or on September 2nd 2021.

 

Teams:

Search current location quickly with Ctrl+F

To search your current location in teams (be it a direct message or Teams channel) click Ctrl+F (cmd+F on macOS) to search messages within a particular chat or channel in Teams. Here are the steps below

  1. Choose the area you want to search—like a direct one-on-one chat or the General channel within a team.
  2. Press Ctrl+F (or cmd+F for mac) followed by your search word(s), then press Enter. The results will be displayed from within that chat or channel conversation instead of the sidebar.
  3. Choose one of the available results and Teams will scroll up to the location of that message.

Advanced Search Bar Commands

Teams has many ways to search past chats or files shared with you. To use any of theses commands, click into the search bar located at the top middle of the Teams window. when you type a word or name, Teams will show a list of suggested results relating to the words entered. The search results will appear on the left sidebar of the Teams window. (Keep in mind Teams chats and team messages will expire.)

Command

Description

From:

Will show messages only from given name. Ex; From:brutus.1

In:

Show messages in given channel or group. Ex; In:StaffTeam

Subject:

Keyword from a channel message with a subject line

Sent:

Messages from a certain date. Ex Sent:01/12/2020

*

Used to get results for any words matching prefixes. Ex; serv* will get results on words that start with those letters (ie; server, service, etc.)

“” 

Search from messages with exact match on word or phrase

You can also set commands with the search bar. These can change your status, look for files, go directly to a team or channel or find shortcuts. Most will appear as auto complete when you type them so make sure to look at the drop down for certain options.

Command

Description

Command

Description

/activity

See someone’s activity

/join

Join a team

/available

Set your status to available

/keys

See keyboard shortcuts

/away

Set your status to away

/mentions

See all your @mentions

/busy

Set your status to busy

/saved

See your saved messages

/call

Call a phone or teams contact

/testcall

Check your call quality

/dnd

Set status to do not disturb

/unread

See all your unread activity

/files

See your recent files

/whatsnew

See whats new in Teams

/goto

Go to a team or channel

/

Just to view all options/descriptions

/help

Get help with teams

 

 

 

Details

Article ID: 138926
Created
Mon 10/25/21 2:36 PM
Modified
Sun 3/31/24 2:08 PM

Related Articles (1)

This article is a short overview of Microsoft Teams. Teams has team chat, messaging, meetings, calling, to do lists, and file storage features.