2.2.1.1.1.1.2 Command Codes

The following table provides the numeric codes that correspond to the ActiveSync commands. The numeric code is used in the Command code field of the base64 encoded URI to specify the command. For more details, see [MS-ASCMD].

Code

Command

Description

0

Sync

Synchronizes changes in a folder between the client and the server.

1

SendMail

Sends mail to the server. This command is issued in the HTTP POST command's URI, and does not contain an XML body. The body will instead contain the MIME message.

2

SmartForward

Forwards a Message object without retrieving the full Message object from the server.

3

SmartReply

Replies to a Message object without retrieving the full Message object from the server.

4

GetAttachment

Retrieves an e-mail attachment from the server.

9

FolderSync

Synchronizes the folder hierarchy but does not synchronize the items in the folders.

10

FolderCreate

Creates an e-mail, calendar, or contacts folder on the server.

11

FolderDelete

Deletes a folder from the server.

12

FolderUpdate

Moves a folder from one location to another on the server and is used to rename folders.

13

MoveItems

Moves items from one folder to another.

14

GetItemEstimate

Gets an estimate of the number of items in a folder that is synchronized.

15

MeetingResponse

Used to accept, tentatively accept, or decline a meeting request in the user's Inbox folder.

16

Search

Finds and retrieves information about contacts (2) and recipients in the Global Address List.

17

Settings

Supports getting and setting global properties, such as Out of Office (OOF) and device information.

18

Ping

Requests that the server monitor specified folders for changes that would require the client to resynchronize.

19

ItemOperations

Identifies the body of the request or response as containing a set of commands operating on items.

20

Provision

Gets the security policy settings set by the server administrator, such as the user's minimum password length requirement.

21

ResolveRecipients

Resolves a list of supplied recipients and optionally fetches their S/MIME certificates so that clients can send encrypted messages.

22

ValidateCert

Validates a certificate that has been received through an S/MIME mail.

23

Find

Searches for items in the mailbox using KQL syntax.