Searching for Exchange Items in Mailbox Folder
You can search for items in an organization mailbox folder with the specified ID.
Request
POST https://<hostname>:4443/v6/RestoreSessions/{restoreSessionId}/organization/mailboxes/{mailboxId}/folders/{folderId}/search |
Request Headers
The request header must contain an authorization token of the current session.
Request Parameters
The following parameters must be specified in the URL of the request:
Parameter | Type | Description |
---|---|---|
restoreSessionId | string | Specifies the identification number of the restore session. For more information on how to get this parameter, see Getting Restore Sessions. |
mailboxId | string | Specifies the identification number of the mailbox. For more information on how to get this parameter, see Getting Mailboxes. |
folderId | string | Specifies the identification number of the folder. For more information on how to get this parameter, see Getting Mailbox Folders. |
Request Body
The request body must contain the following property:
Property | Type | Description |
---|---|---|
query | string | Specifies query parameters used to search for items in the mailbox folder. For more information, see Query Parameters. |
For the complete list of supported query parameters, see Appendix A. Item Search Parameters.
Parameter | Type | Description |
---|---|---|
from | string | Specifies the name of the sender. Query example: from:admin. |
to | string | Specifies the name of the recipient. Query example: to:user. |
hasattachments | string | Defines whether the post has attachments. Query example: hasattachments:true. |
body | string | Specifies the part of the post message body. Query example: body:information. |
subject | string | Specifies the post subject or part of the post subject. Query example: subject:announcement. |
Request Example
Request: POST https://abc.tech.local:4443/v6/RestoreSessions/b0af6a38-d39e-4a6f-97e4-7a15d67bf5cc/organization/mailboxes/4e4c1ad9-85ae-457d-b806-7a98cb27975d/folders/AAAAAPI-ZgUzFo1OutsrlqscF3YBAPoX1QVx9BZHraHZM4xpWtgAARuR8joAAA/search
Request Header: Authorization: Bearer <Access-Token>
Request Body: { "query": "from:user_X to:user_Y" } |
|
If a value for a query parameter contains a space, provide the value in the quotation marks (""). Use the backslash (\) symbol as an escape character before these quotation marks. For example: "query": "from: \"user X\" to: \"user Y\"". |
Response
The server returns the following response to the client.
Response Codes
A successfully completed operation returns a response code 200 OK.
Response Headers
The response to this request contains the following headers. The response may also include additional standard HTTPS headers.
Header | Description |
---|---|
Content-length | The length of the response body. |
Content-type | The media type and syntax of the response body message: application/json; charset=utf-8 |
Response Body
The response body contains the following properties:
Property | Type | Description |
---|---|---|
results | Contains the Results object. | |
_links | Dictionary of string [key] and Object [value] | Links to related resources (navigation property). |
Property | Type | Description |
---|---|---|
id | string | Specifies the mailbox folder item ID. |
itemClass | string | Specifies the mailbox folder item class. |
status | string | Specifies the task status. The following values are available:
|
percentComplete | integer | Specifies the task progress. |
startDate | UTC | Specifies the date and time when the task was started. |
dueDate | UTC | Specifies the date and time when the task must be completed. |
owner | string | Specifies the owner of the task. |
_links | Dictionary of string [key] and Object [value] | Links to related resources (navigation property). |
_actions | Dictionary of string [key] and Object [value] | Links to related actions (navigation property). |
Property | Type | Description |
---|---|---|
id | string | Specifies the mailbox folder item ID. |
itemClass | string | Specifies the mailbox folder item class. |
subject | string | Specifies the task status. The following values are available:
|
startDate | UTC | Specifies the date and time when the task was started. |
duration | integer | Specifies the duration of the journal entry in hours. |
entryType | string | Specifies the journal entry type. |
_links | Dictionary of string [key] and Object [value] | Links to related resources (navigation property). |
_actions | Dictionary of string [key] and Object [value] | Links to related actions (navigation property). |
Property | Type | Description |
---|---|---|
id | string | Specifies the mailbox folder item ID. |
itemClass | string | Specifies the mailbox folder item class. |
name | string | Specifies the name of the note. |
date | string | Specifies the date when the note was created. |
_links | Dictionary of string [key] and Object [value] | Links to related resources (navigation property). |
_actions | Dictionary of string [key] and Object [value] | Links to related actions (navigation property). |
Property | Type | Description |
---|---|---|
id | string | Specifies the mailbox folder item ID. |
itemClass | string | Specifies the mailbox folder item class. |
from | string | Specifies the sender mailbox email address. |
to | string | Specifies the recipient mailbox email address. |
cc | string | Specifies the recipient email address in carbon copy. |
bcc | string | Specifies the recipient address in blind carbon copy. |
subject | string | Specifies the subject of the email message. |
sent | UTC | Specifies the date and time when the message was sent. |
received | UTC | Specifies the date and time when the message was received. |
reminder | boolean | If set to true, indicates that the message was sent with the reminder. |
importance | string | Specifies the message importance. The following values are available:
|
_links | Dictionary of string [key] and Object [value] | Links to related resources (navigation property). |
_actions | Dictionary of string [key] and Object [value] | Links to related actions (navigation property). |
Results Object for Appointment
Property | Type | Description |
---|---|---|
id | string | Specifies the mailbox folder item ID. |
itemClass | string | Specifies the mailbox folder item class. |
startTime | UTC | Specifies the date and time when the appointment starts. |
endTime | UTC | Specifies the date and time when the appointment finishes. |
organizer | string | Specifies the appointment organizer. |
location | string | Specifies the location where the appointment is held. |
subject | string | Specifies the subject of the appointment. |
attendees | string[] | Specifies the appointment attendees. |
recurring | boolean | If set to true, indicates that the appointment is recurring. |
recurrencePatternFormat | string |
|
attachments | Specifies attachment items for the appointment item. | |
_links | Dictionary of string [key] and Object [value] | Links to related resources (navigation property). |
_actions | Dictionary of string [key] and Object [value] | Links to related actions (navigation property). |
Property | Type | Description |
---|---|---|
name | string | Specifies a name of the attachment item. |
sizeBytes | integer | Specifies a size of the attachment item. |
Property | Type | Description |
---|---|---|
id | string | Specifies the mailbox folder item ID. |
itemClass | string | Specifies the mailbox folder item class. |
fullName | string | Specifies the full name of the contact. |
mobile | string | Specifies the mobile phone number of the contact. |
homePhone | string | Specifies the home phone number of the contact. |
fax | string | Specifies the fax number of the contact. |
address | string | Specifies the contact address. |
company | string | Specifies the company of the contact. |
jobTitle | string[] | Specifies the contact job title. |
string | Specifies the contact email. | |
businessPhone | string | Specifies the business phone number of the contact. |
webPage | string | Specifies the webpage of the contact. |
_links | Dictionary of string [key] and Object [value] | Links to related resources (navigation property). |
_actions | Dictionary of string [key] and Object [value] | Links to related actions (navigation property). |
Response: 200 OK
Response Body: { "offset": 0, "limit": 30, "results": [ { "from": "John Doe in Teams", "cc": "", "bcc": "", "to": "Jane Doe", "sent": "2019-10-08T15:13:16Z", "received": "2019-10-08T15:13:21.7138592Z", "reminder": false, "subject": "John Doe", "itemClass": "IPM.Note", "_links": { "self": {"href": "/v6/RestoreSessions/b0af6a38-d39e-4a6f-97e4-7a15d67bf5cc/organization/mailboxes/4e4c1ad9-85ae-457d-b806-7a98cb27975d/items/AAAAAPI-ZgUzFo1OutsrlqscF3YHAPoX1QVx9BZHraHZM4xpWtgAARuR8joAAPoX1QVx9BZHraHZM4xpWtgAARuSD4wAAA"}, "parent": {"href": "/v6/RestoreSessions/b0af6a38-d39e-4a6f-97e4-7a15d67bf5cc/organization/mailboxes/4e4c1ad9-85ae-457d-b806-7a98cb27975d/folders/AAAAAPI-ZgUzFo1OutsrlqscF3YBAPoX1QVx9BZHraHZM4xpWtgAARuR8joAAA"}, "mailbox": {"href": "/v6/RestoreSessions/b0af6a38-d39e-4a6f-97e4-7a15d67bf5cc/organization/mailboxes/4e4c1ad9-85ae-457d-b806-7a98cb27975d"} }, "_actions": { "restoreToOriginalLocation": { "uri": "v6/RestoreSessions/b0af6a38-d39e-4a6f-97e4-7a15d67bf5cc/organization/mailboxes/4e4c1ad9-85ae-457d-b806-7a98cb27975d/items/AAAAAPI-ZgUzFo1OutsrlqscF3YHAPoX1QVx9BZHraHZM4xpWtgAARuR8joAAPoX1QVx9BZHraHZM4xpWtgAARuSD4wAAA/restore", "method": "POST" }, "restoreTo": { "uri": "v6/RestoreSessions/b0af6a38-d39e-4a6f-97e4-7a15d67bf5cc/organization/mailboxes/4e4c1ad9-85ae-457d-b806-7a98cb27975d/items/AAAAAPI-ZgUzFo1OutsrlqscF3YHAPoX1QVx9BZHraHZM4xpWtgAARuR8joAAPoX1QVx9BZHraHZM4xpWtgAARuSD4wAAA/restoreTo", "method": "POST" }, "exporttoPst": { "uri": "v6/RestoreSessions/b0af6a38-d39e-4a6f-97e4-7a15d67bf5cc/organization/mailboxes/4e4c1ad9-85ae-457d-b806-7a98cb27975d/items/AAAAAPI-ZgUzFo1OutsrlqscF3YHAPoX1QVx9BZHraHZM4xpWtgAARuR8joAAPoX1QVx9BZHraHZM4xpWtgAARuSD4wAAA/exporttoPst", "method": "POST" }, "savetoMsg": { "uri": "v6/RestoreSessions/b0af6a38-d39e-4a6f-97e4-7a15d67bf5cc/organization/mailboxes/4e4c1ad9-85ae-457d-b806-7a98cb27975d/items/AAAAAPI-ZgUzFo1OutsrlqscF3YHAPoX1QVx9BZHraHZM4xpWtgAARuR8joAAPoX1QVx9BZHraHZM4xpWtgAARuSD4wAAA/save", "method": "POST" }, "sendtoDefaultaddress": { "uri": "v6/RestoreSessions/b0af6a38-d39e-4a6f-97e4-7a15d67bf5cc/organization/mailboxes/4e4c1ad9-85ae-457d-b806-7a98cb27975d/items/AAAAAPI-ZgUzFo1OutsrlqscF3YHAPoX1QVx9BZHraHZM4xpWtgAARuR8joAAPoX1QVx9BZHraHZM4xpWtgAARuSD4wAAA/sendToDefaultAddress", "method": "POST" }, "sendtoDifferentaddress": { "uri": "v6/RestoreSessions/b0af6a38-d39e-4a6f-97e4-7a15d67bf5cc/organization/mailboxes/4e4c1ad9-85ae-457d-b806-7a98cb27975d/items/AAAAAPI-ZgUzFo1OutsrlqscF3YHAPoX1QVx9BZHraHZM4xpWtgAARuR8joAAPoX1QVx9BZHraHZM4xpWtgAARuSD4wAAA/sendToDifferentAddress", "method": "POST" } }, "id": "AAAAAPI-ZgUzFo1OutsrlqscF3YHAPoX1QVx9BZHraHZM4xpWtgAARuR8joAAPoX1QVx9BZHraHZM4xpWtgAARuSD4wAAA" } ], "_links": {"self": {"href": "/v6/RestoreSessions/b0af6a38-d39e-4a6f-97e4-7a15d67bf5cc/organization/mailboxes/4e4c1ad9-85ae-457d-b806-7a98cb27975d/search?offset=0&limit=30"}} } |