Exchange Client Developer
Exchange Client Developer
Find in-depth developer documentation for Exchange Server, including Exchange Online
as part of Office 365 and Exchange Server on-premises versions.
You can use the how to, get started, new feature, and API reference documentation to
develop tools to access and manage mailbox data from services, websites, desktop
computers, and mobile devices, and to create custom solutions for email, calendar,
contacts, and other items that are stored in Exchange Online or on an Exchange 2010,
2013, 2016, and 2019 server.
You can use Graph API, REST API, Exchange Web Services (EWS), Autodiscover, Outlook
add-ins, or other APIs to develop your applications. This page helps you choose the
right Exchange technology.
7 Note
We’re removing the ability to use Basic authentication in Exchange Online for EWS
beginning October 2022. For more information, see Deprecation of Basic
authentication in Exchange Online. You should use OAuth authentication instead.
Authenticate an EWS application by using OAuth and Authenticate an IMAP, POP
or SMTP connection using OAuth.
) Important
Microsoft Graph is the recommended API to use for accessing Exchange Online
data. New applications designed to access Exchange Online data should use
Microsoft Graph.
A REST-based app to access Exchange Online as part of Office Microsoft Graph REST APIs for
365 mail, calendars, and contacts
A mailbox client that is not based on the .NET Framework or Explore the EWS Managed API,
Java EWS, and web services in
Exchange
A mailbox client that uses the .NET Framework to access EWS Get started with EWS Managed
API client applications
A mailbox client that uses Java to access EWS EWS Java API on GitHub
An application that customizes the Outlook user interface or Outlook VBA reference
relies on Outlook business logic
A custom management tool that uses Windows PowerShell Exchange Management Shell
from managed code
A solution to back up or restore Exchange data Backup and restore for Exchange
Message Exchange serves as a standard mail server for applications that send messages.
transport Exchange includes several APIs that transfer messages, including REST, EWS,
and the EWS Managed API.
Mailbox Exchange provides a hierarchical structure of folders, items, and properties for
storage applications that access data stored in mailboxes.
You can perform queries on the data, and Exchange manages access to the
stored data based on user and store permissions.
Applications that handle mailbox data typically use REST, EWS, or the EWS
Managed API.
server Applications can configure, control, and monitor current activity and the health
of Exchange servers across the organization.
See also
Server API reference for Exchange
Read about Exchange on Office Blogs
Get 101 code samples for Exchange 2013
Get the EWS Managed API (GitHub)
Get support for Exchange Server
Migrating to Exchange technologies
Article • 03/29/2023 • 4 minutes to read
If you're migrating from an earlier version of Exchange, use the information in this article
to find out which development technologies are supported in current product versions,
and which technology to migrate to.
Exchange Web X X X X X X
Services (EWS)
Outlook Object X X X X X X
Model (OOM)
Exchange X X X X X X
Management Shell
Transport agents
X X X X X
Technology Office 365 Exchange Exchange Exchange Exchange Exchange
and 2019 2016 2013 2010 2007
Exchange
Online
Active Directory X
Services Interface
(ADSI)
Collaborative Data X
Objects for
Exchange (CDOEX)
Collaborative Data X
Objects for
Windows 2000
(CDOSYS)
Exchange OLE DB X
Provider
(EXOLEDB)
Exchange Store X
Event Sinks
Incremental X
Change
Synchronization
(ICS)
Lightweight X
Directory Access
Protocol (LDAP)
Messaging API X X X X X X
(MAPI)
Web Distributed X
Authoring and
Versioning
(WebDAV)
¹REST API and Graph API require the Cumulative Update 3 for Exchange 2016.
²Only hybrid customers are able to take advantage of the REST APIs for both Office 365
and on-premises mailboxes.
Choose a development technology to migrate
to
If the technology your application uses is not supported or deemphasized in Exchange
Online or Exchange 2013, use the following table to decide which technology to migrate
to.
CDOEX No EWS The EWS Managed API and EWS can access the
Managed API same Exchange store that CDOEX provides.
or EWS
Unlike client applications built by using CDOEX,
you can run EWS applications on a local or
remote computer.
CDOEXM No
Exchange Exchange Management Shell commands control
Management Exchange servers, storage groups, databases,
Shell
and users more simply than the corresponding
CDOEXM APIs. Plus, you can easily migrate your
CDOEXM applications to Exchange
Management Shell commands.
CDOSYS
No
Transport Use transport agents for notification-based
agents applications that work with versions of
Exchange starting with Exchange 2010.
ExOLEDB No EWS The EWS Managed API and EWS provide the
Managed API same access to the Exchange store that
or EWS
ExOLEDB provides. Unlike client applications
built by using ExOLEDB, You can run EWS
applications on a local or remote computer.
ICS Yes, but EWS You can use the EWS Managed API or EWS to
deemphasized Managed API subscribe to notifications and synchronize
or EWS
mailbox data.
EWS
Managed If your MAPI application is performing simple
API, EWS
read, write, and update operations on mail,
calendar, or contact objects, and targets Office
365, Exchange 2019² or Exchange 2016¹ ² you
can use the Office 365 REST APIs for mail,
calendars, and contacts.
Store event No EWS You can use the EWS Managed API or EWS to
sinks Managed API subscribe to notifications and synchronize
or EWS
mailbox data.
or EWS
WebDAV No EWS You can use the EWS Managed API or EWS to
notifications Managed API subscribe to notifications.
or EWS
¹REST API and Graph API require the Cumulative Update 3 for Exchange 2016.
²Only hybrid customers are able to take advantage of the REST APIs for both Office 365
and on-premises mailboxes.
See also
Selecting an API or technology for developing solutions for Outlook
On-Premises Architectural Requirements for the REST API
Explore the EWS Managed API, EWS,
and web services in Exchange
Article • 06/14/2022 • 2 minutes to read
Use the EWS Managed API, EWS, Autodiscover, and other web services in Exchange to
create solutions for managing business email, calendar, and contacts on desktop and
mobile devices and online.
Exchange provides Exchange web services (EWS) and other web services that you can
use to implement client applications that access and manage Exchange store items.
7 Note
The terms specified in the License information topic apply to your use of this
content. Please review the terms carefully.
Get started with your first .NET Framework EWS client Get started with EWS Managed API
application. client applications
Get started with your first EWS client application. Get started with EWS client
applications
Find out about the latest new features in the EWS What's new in EWS in Exchange
Learn the fundamentals of web service development with Start using web services in Exchange
Exchange.
Check out some EWS Managed API code samples. Exchange 2013: 101 Code Samples
Find design guidance for EWS Managed API and EWS EWS client design overview for
applications. Exchange
Find how-to information and code examples for the EWS Develop web service clients for
Managed API and EWS. Exchange
See also
Sign up for an Exchange Online and Office 365 Developer Site
What's new in EWS and other web services
in Exchange
Article • 01/15/2020 • 7 minutes to read
Find out what's new in EWS and web services in Exchange and the EWS Managed API.
Table 1. New web service features in Exchange Online, Exchange 2013, and the EWS Managed
API
eDiscovery
Yes Yes Yes
Archiving
Yes Yes Yes
Personas
Yes Yes No
Retention policies
Yes Yes Yes
User photos
Yes Yes No
eDiscovery in EWS
eDiscovery is a federated query web service that enables external applications, such as
SharePoint 2013, to perform queries of Exchange data. Discovery consists of several phases,
including identifying and preserving key data, culling down and reviewing the data, and
producing data in court. eDiscovery queries facilitate the discovery process by providing a single
discovery workflow across Exchange and SharePoint.
Table 2. EWS operations and EWS Managed API methods for working with eDiscovery
GetHoldOnMailboxes ExchangeService.GetHoldOnMailboxes()
Gets the status of a
operation
query-based hold,
which is set by using
the
SetHoldOnMailboxes
operation.
GetNonIndexableItemDetails ExchangeService.GetNonIndexableItemDetails()
Gets details about
operation
items that cannot be
indexed. This
includes, but is not
limited to, the item
identifier, an error
code, an error
description, when an
attempt was made to
index the item, and
additional
information about
the item.
GetNonIndexableItemStatistics ExchangeService.GetNonIndexableItemStatistics()
Gets the count of
operation
items that cannot be
indexed in a mailbox.
GetSearchableMailboxes ExchangeService.GetSearchableMailboxes()
Gets a list of
operation
mailboxes that the
client has permission
to search or perform
eDiscovery on.
SearchMailboxes operation
ExchangeService.SearchMailboxes()
Searches for items in
specific mailboxes
that match query
keywords.
SetHoldOnMailboxes ExchangeService.SetHoldOnMailboxes()
Sets a query-based
operation
hold on items.
Archiving in EWS
Archive mailboxes are secondary mailboxes that are associated with a user. Archive mailboxes
are typically used to manage email storage limits. For example, older email items might
periodically be moved from the Inbox to the archive mailbox.
Exchange introduces two new EWS operations that you can use to archive a set of mail items
from a primary mailbox. Archiving Inbox items in this way preserves the folder hierarchy of the
items. In addition, archive mailboxes can now be stored either locally on a client, or remotely, in
a way that is mostly opaque to a user, by using a folder path to point to the contents of the
archive.
Table 3. EWS operations and EWS Managed API methods for working with archiving
Personas in EWS
A persona is a collection of data that is associated with an individual. The data can come from
one or more sources and is associated with the persona by means of a common link ID.
Personas in EWS enable you to link, search, browse, and retrieve information about a person
from multiple sources and organize that information into a single logical entity. Personas differ
from contacts in that a contact is a collection of data from a single source that is associated with
an individual; for example, a personal Outlook contact or an entry in a global address list (GAL).
7 Note
The Unified Contact Store also exposes persona functionality by means of the operations
that support that feature.
FindPeople Returns all persona objects from a specified contact folder or retrieves all contacts that
operation
match a specified query string.
Table 5. EWS operations for working with the Unified Contact Store
AddNewImContactToGroup Adds a new IM contact to a group. The Unified Contact Store can
operation
contain a maximum of 1000 contacts.
AddImContactToGroup operation
Adds an existing IM contact to a group. The Unified Contact Store
can contain a maximum of 1000 contacts.
AddImGroup operation
Adds a new IM group. The Unified Contact Store can contain a
maximum of 64 groups.
AddDistributionGroupToImList Adds a new distribution list group. The Unified Contact Store can
operation
contain a maximum of 64 groups.
GetImItemList operation
Retrieves a list of IM groups and IM contact personas.
GetImItems operation
Retrieves information about the specified IM groups and IM
contact personas.
RemoveImGroup operation
Removes the specified IM group.
SetImGroup operation
Changes the display name of a group.
Default policy tags that apply to mailbox items that have no other type of retention tag
applied.
System folder policy tags that are applied to default folders such as the Inbox.
Personal tags that a user can apply to folders they create or to individual items.
Only one retention policy can be assigned to a mailbox, but the policy can have one or more
retention tags of various types linked to it. Retention tags can be linked to or unlinked from a
retention policy at any time. EWS in Exchange exposes a new operation,
GetUserRetentionPolicyTags , and the EWS Managed API implements a new method,
ExchangeService.GetUserRetentionPolicyTags() , that provides a list of all the tags that are
linked to a retention policy. You can set and retrieve retention policy tags for items and folders
by using the CreateItem, CreateFolder, UpdateItem, UpdateFolder, GetItem, and GetFolder
operations.
The EWS Managed API does not implement this functionality. You can, however, use the EWS
Managed API to return user photos that are stored in a mailbox by getting the photo that is
attached to a contact.
Table 6. EWS operations and EWS Managed API methods for working with mail apps for
Outlook
DisableApp operation
ExchangeService.DisableApp()
Disables an installed app.
Operation name EWS Managed API method Description
GetAppManifests operation
ExchangeService.GetAppManifests()
Gets the app manifests for
a mailbox.
GetClientAccessToken ExchangeService.GetClientAccessToken()
Gets client access tokens.
operation
InstallApp operation
ExchangeService.InstallApp()
Installs an app for a
mailbox.
UninstallApp operation
ExchangeService.UninstallApp
Uninstalls an app from a
mailbox.
See also
Explore the EWS Managed API, EWS, and web services in Exchange
EWS client design overview for Exchange
Mail apps for Outlook and EWS in Exchange
Archiving in EWS in Exchange
eDiscovery in EWS in Exchange
People and contacts in EWS in Exchange
Start using web services in Exchange
Article • 01/15/2020 • 3 minutes to read
Find information to help you get started with EWS and other web services in Exchange.
The web services in Exchange provide access to mailbox data stored in Exchange Online,
Exchange Online as part of Office 365, and on-premises versions of Exchange starting
with Exchange Server 2007, and enable you to create custom applications that you can
use to manage that information according to the requirements of your organization.
While the range of EWS and web service applications that you can create is practically
infinite, certain fundamental concepts apply for any type of application. This section
provides information about the fundamental concepts you need to be familiar with in
order to start using EWS and other web services in Exchange.
Concept Summary
Architecture
Learn about how EWS works within the Exchange architecture and the
protocols it uses.
EWS application Find out about the most common types of applications that you can create
types
by using EWS in Exchange.
EWS access
Exchange administrators can limit access to EWS globally for the entire
organization, for individual users, and to individual applications. Find out
which access level is right for you.
Setup
Find information about the tasks you need to complete in order to create
applications that use the EWS Managed API or EWS to communicate with
Exchange.
Authentication
Learn about the authentication options for connecting to Exchange Online
and Exchange on-premises.
Autodiscover
Learn about the set of services that you can use to discover the URL
endpoint where a user's account can access information via EWS.
Concept Summary
Mailbox server
Find out about the primary repository of information made available to an
EWS client. EWS has access to a limited set of information stored in Active
Directory Domain Services (AD DS).
Mail apps for Find information about mail apps for Outlook and how they work with
Outlook and EWS
EWS in Exchange.
Office 365 REST APIs Learn about the Office 365 APIs that you can use to access mail, calendars,
for mail, calendars, and contacts in Exchange Online as part of Office 365.
and contacts
The EWS Managed Find information about the preferred client API for .NET Framework
API
developers.
EWS
Find information about creating your first application by using EWS XML
requests and responses.
EWS functionality in Find out what EWS functionality is available in version of Exchange.
Exchange product
versions
Trace and Find out how to trace EWS requests and responses in order to
troubleshoot
troubleshoot errors in your EWS Managed API application.
CodePlex
Many other samples are available in blogs, code demonstration sites, and forums. We
also recommend that you download the EWSEditor . This project implements most of
the EWS functionality; you can find examples of all the core EWS functionality here.
If you're not a .NET Framework developer, you can find many client libraries out there
for EWS development that use Java, Python, PHP, and other languages.
Contact Microsoft support if you need additional assistance. The Exchange Developer
support team is staffed with seasoned professionals who can help answer your
questions about Exchange development.
See also
Explore the EWS Managed API, EWS, and web services in Exchange
EWS client design overview for Exchange
Develop web service clients for Exchange
Web services reference for Exchange
EWS applications and the Exchange
architecture
Article • 01/18/2019 • 6 minutes to read
Learn about how EWS works within the Exchange architecture, and find out which
protocols EWS relies on.
Exchange Web Services (EWS) is a cross-platform API that enables applications to access
mailbox items such as email messages, meetings, and contacts from Exchange Online,
Exchange Online as part of Office 365, or on-premises versions of Exchange starting
with Exchange Server 2007. EWS applications can access mailbox items locally or
remotely by sending a request in a SOAP-based XML message. The SOAP message is
embedded in an HTTP message when sent between the application and the server,
which means that as long as your application can post XML through HTTP, it can use
EWS to access Exchange.
1. EWS application — This can be a client, portal, or service application and it can be
installed on a client or on an Exchange on-premises Client Access server. If you use
the EWS Managed API to develop the EWS application, the EWS Managed API
assemblies have to be installed on the client and redistributed by your application.
4. Load balancer — The load balancer distributes the message to a Client Access
server in the Client Access server array. This component is only visible in the
Exchange on-premises architecture.
5. Client Access server array — Client Access servers are organized into a load-
balanced group called a Client Access server array. Individual Client Access servers
provide authentication, limited redirection, and proxy services. The Client Access
servers themselves don't do any data rendering, and no data is queued or stored
on a Client Access server - it is thin and stateless; it simply authenticates the
request, performs an Autodiscover lookup, and then proxies the request to the
Mailbox server. The Client Access server does maintain a 1:1 relationship with the
Mailbox server that hosts the user's data. The HTTP protocol (secured via SSL using
a self-signed certificate) is used between the Client Access server and Mailbox
server. This component is only visible in the Exchange on-premises architecture.
Feature availability is based on the EWS schema version that your application
targets. Because EWS schemas are backward- and forward-compatible, if you
create an application that targets an earlier schema version, such as Exchange 2007
SP1, your application will also work against a later schema version, such as the
Exchange 2010 SP2 service, as well as Exchange Online. Because features and
feature updates are driven by the schema, we recommend that you use the earliest
common code base that targets the EWS features that you want to implement in
your client application. Many applications can target the Exchange2007_SP1
version, because the Exchange 2007 SP1 schema contains almost all the core
Exchange functionality for working with items and folders in the Exchange store.
For more information, see EWS client features.
8. Database Availability Group (DAG) — Mailbox servers are organized into a highly
available DAG, which can be deployed in one or more datacenters. The Mailbox
server contains the mailbox database and handles all activity for the active
mailboxes on that server. All components that process, render, and store data are
on the Mailbox server. Clients do not connect directly to the Mailbox server; all
connections are handled by the Client Access server. This component is only visible
in the Exchange on-premises architecture.
9. Exchange Online and Exchange Online as part of Office 365 — The hosted
messaging solution that delivers Exchange features as a cloud-based service.
When an EWS application requests information from the Exchange store, an XML
request message that complies with the SOAP standard is created and sent to the
Exchange server. When the Exchange server receives the request, it verifies the
credentials that are provided by the client and automatically parses the XML for the
requested data. The server then builds a SOAP response that contains XML data that
represents the requested strongly typed objects and their properties. The XML data is
sent back to the application in an HTTP response. The application then deserializes the
XML and uses the data to reform the strongly typed objects.
Table 1. Protocols
HTTP/S Enables EWS applications to access Exchange database data over the network,
regardless of whether the client is on the Internet or intranet.
SOAP 1.0 Forms an envelope around the messaging payload. EWS implements the SOAP
protocol by using different parts of the SOAP envelope to enable different
functionality. The SOAP header is used for impersonation and to provide versioning
data. The SOAP body provides information about the operation to run and the data
that is submitted to the operation. SOAP relies on WSDL to describe the operations to
call.
WSDL 1.0 Describes the bindings, the operations, and the properties that are used to call EWS
operations, in the Services.wsdl file. This file, along with the referenced schema files,
comprises the contract between an EWS application and the Exchange server, and is
often used along with vendor-specific tools to create platform-specific applications.
The WSDL file is located in the EWS virtual directory, which is at the root of the
website.
Protocol How it's used
Transport Provides secure web communications on the Internet or on intranet. TLS enables
Layer applications to authenticate servers or, optionally, servers to authenticate EWS
Security applications. It also provides a security channel by encrypting communications. TLS is
(TLS)/SSL the latest version of the Secure Sockets Layer (SSL) protocol.
XML/XSD Provides a universal message format for the exchange of information between the
Exchange server and the client. XML provides complex Exchange database data to
client applications, but in a defined structure. The beauty of XML is that it allows for
the exchange of data even when an EWS application and server do not share a
common platform.
Basic authentication over SSL, for applications that target Exchange Online or
Exchange on-premises.
NTLM authentication over SSL, for applications that support Exchange on-
premises.
See also
Start using web services in Exchange
Find out about the most common types of applications that you can create by using
EWS in Exchange.
The EWS and Exchange architecture provides a uniform development model that you
can use to create the most common types of applications in a consistent way, including
the following:
Each of these application models can use a common code base to retrieve information
from Exchange - so you don't need to change the EWS code used to retrieve item
information between a client, portal, or service application. What might change from
one application to the next is the mailbox access and authentication mechanism. For
example, client applications commonly use direct user access and basic or NTLM
authentication, whereas a service application likely uses impersonation for mailbox
access and OAuth authentication.
Client applications
An EWS client application is any standalone application that uses EWS to retrieve
information from the Exchange store. EWS client applications use direct client access or
delegate access to retrieve data from the mailbox store. The following are some
examples of client applications that use EWS:
Client applications commonly use direct access and basic or NTLM authentication, so
that users are limited to accessing information in their own mailbox with their own
logon credentials. Client applications should also support delegate access for users who
have been given permission to access another user's mailbox.
Portal applications
A portal application extends an existing web page or portal to include Exchange mailbox
information as a personalized component of the page. SharePoint web parts are the
most common portal applications and provide users with a personalized experience by
providing views into Exchange mailbox data, such as unread messages, most recent
messages, and calendar events, alongside their commonly viewed SharePoint portal
page. EWS portal applications can use direct client access, delegate access, or
impersonation to retrieve data from the mailbox store. Because Exchange 2013 and
SharePoint 2013 both support the OAuth authorization protocol for server-to-server
authentication, OAuth provides the most seamless and secure authentication method.
Service applications
A service application is usually a background job built into an existing application that
extends to Exchange to correlate data between the system and the Exchange store.
Service applications typically do not have a user interface and use impersonation or
OAuth for authentication and access. Creating a service account to impersonate users is
common in EWS service apps because you can grant a single account permission to
impersonate a set of users and perform mailbox operations for those accounts. For
example, an EWS service application can synchronize data between marketing lists in a
CRM solution and Exchange distribution groups by using a service account and
impersonation.
See also
Start using web services in Exchange
Develop a simple Hello World email client application for Exchange by using the EWS
Managed API.
The EWS Managed API provides an intuitive, easy-to-use object model for sending
and receiving web service messages from client applications, portal applications, and
service applications. You can access almost all the information stored in an Exchange
Online, Exchange Online as part of Office 365, or an Exchange server mailbox by using
the EWS Managed API. You can use the information in this article to help you develop
your first EWS Managed API client application.
7 Note
We’re removing the ability to use Basic authentication in Exchange Online for EWS
beginning October 2022: Deprecation of Basic authentication in Exchange Online.
You should use OAuth authentication instead. Authenticate an EWS application by
using OAuth
7 Note
The EWS Managed API is now available as an open source project on GitHub .
You can use the open source library to:
After you have verified that you can send and receive email from Exchange, you are
ready to set up your development environment. You can use the Exchange web client
Outlook Web App to verify that you can send email.
Any version of Visual Studio that supports the .NET Framework 4. Although
technically, you don't need Visual Studio because you can use any C# compiler, we
recommend that you use it.
The EWS Managed API . You can use either the 64-bit or 32-bit version,
depending on your system. Use the default installation location.
2. Create a C# Console Application. From the Templates pane, choose Visual C#, and
then choose Console Application.
Visual Studio creates the project and opens the Program.cs code document window.
2. In the Solution Explorer and the HelloWorld project, open the shortcut menu
(right-click) for References and choose Add Reference from the context menu. A
dialog box for managing project references will open.
3. Choose the Browse option. Browse to the location where you installed the EWS
Managed API DLL. The default path set by the installer is the following: C:\Program
Files\Microsoft\Exchange\Web Services<version>. The path can vary based on
whether you download the 32 or 64 bit version of the
Microsoft.Exchange.WebServices.dll. Choose Microsoft.Exchange.WebServices.dll
and select OK or Add. This adds the EWS Managed API reference to your project.
4. If you are using EWS Managed API 2.0, change the HelloWorld project to target
the .NET Framework 4. Other versions of the EWS Managed API might use a
different target version of the .NET Framework.
5. Confirm that you are using the correct target version of the .NET Framework. Open
the shortcut menu (right-click) for your HelloWorld project in the Solution
Explorer, and choose Properties. Verify that the .NET Framework 4 is selected in
the Target framework drop-down box.
Now that you have your project set up and you created a reference to the EWS
Managed API, you are ready to create your first application. To keep things simple, add
your code to the Program.cs file. Read Reference the EWS Managed API assembly for
more information about referencing the EWS Managed API. In the next step, you will
develop the basic code to write most EWS Managed API client applications.]
C#
if (redirectionUri.Scheme == "https")
result = true;
return result;
This validation callback will be passed to the ExchangeService object in step 4. You need
this so that your application will trust and follow Autodiscover redirects - the results of
the Autodiscover redirect provides the EWS endpoint for our application.
C#
using Microsoft.Exchange.WebServices.Data;
2. In the Main method, instantiate the ExchangeService object with the service
version you intend to target. This example targets the earliest version of the EWS
schema.
C#
3. If you are targeting an on-premises Exchange server and your client is domain
joined, proceed to step 4. If you client is targeting an Exchange Online or Office
365 Developer Site mailbox, you have to pass explicit credentials. Add the
following code after the instantiation of the ExchangeService object and set the
credentials for your mailbox account. The user name should be the user principal
name. Proceed to step 5.
C#
4. Domain-joined clients that target an on-premises Exchange server can use the
default credentials of the user who is logged on, assuming the credentials are
associated with a mailbox. Add the following code after the instantiation of the
ExchangeService object.
C#
service.UseDefaultCredentials = true;
If your client targets an Exchange Online or Office 365 Developer Site mailbox,
verify that UseDefaultCredentials is set to false, which is the default value. Your
client is ready to make the first call to the Autodiscover service to get the service
URL for calls to the EWS service.
C#
service.AutodiscoverUrl("[email protected]",
RedirectionUrlValidationCallback);
At this point, your client is set up to make calls to EWS to access mailbox data. If you run
your code now, you can verify that the AutodiscoverUrl method call worked by
examining the contents of the ExchangeService.Url property. If this property contains
a URL, your call was a success! This means that your application successfully
authenticated with the service and discovered the EWS endpoint for your mailbox. Now
you are ready to make your first calls to EWS. Read Set the EWS service URL by using the
EWS Managed API for more information about setting the EWS URL.
C#
EmailMessage email = new EmailMessage(service);
You now have an email message on which the service binding is set. Any calls
initiated on the EmailMessage object will be targeted at the service.
2. Now set the To: line recipient of the email message. To do this, change
[email protected] to use your SMTP address.
C#
email.ToRecipients.Add("[email protected]");
C#
email.Subject = "HelloWorld";
4. You are now ready to send your first email message by using the EWS Managed
API. The Send method will call the service and submit the email message for
delivery. Read Communicate with EWS by using the EWS Managed API to learn
about other methods you can use to communicate with Exchange.
C#
email.Send();
5. You are ready to run your Hello World application. In Visual Studio, select F5. A
blank console window will open. You will not see anything in the console window
while your application authenticates, follows Autodiscover redirections, and then
makes its first call to create an email message that you send to yourself. If you
want to see the calls being made, add the following two lines of code before the
AutodiscoverUrl method is called. Then press F5. This will trace out the EWS
requests and responses to the console window.
C#
service.TraceEnabled = true;
service.TraceFlags = TraceFlags.All;
You now have a working EWS Managed API client application. For your convenience, the
following example shows all the code that you added to Program.cs to create your Hello
World application.
C#
using System;
using Microsoft.Exchange.WebServices.Data;
namespace HelloWorld
class Program
service.TraceEnabled = true;
service.TraceFlags = TraceFlags.All;
service.AutodiscoverUrl("[email protected]",
RedirectionUrlValidationCallback);
email.ToRecipients.Add("[email protected]");
email.Subject = "HelloWorld";
email.Send();
if (redirectionUri.Scheme == "https")
result = true;
return result;
Next steps
If you're ready to do more with your first EWS Managed API client application, explore
the following resources:
If you run into any issues with your application, try posting a question or comment in
the forum (and don't forget to read the top post).
In this section
Reference the EWS Managed API assembly
Set the EWS service URL by using the EWS Managed API
Communicate with EWS by using the EWS Managed API
See also
Start using web services in Exchange
EWS client design overview for Exchange
Develop web service clients for Exchange
Trace requests and responses to troubleshoot EWS Managed API applications
Reference the EWS Managed API
assembly
Article • 03/04/2022 • 2 minutes to read
Find information about how to reference the EWS Managed API assembly.
The EWS Managed API provides a simple and full-featured interface for developing and
extending applications that use Exchange Web Services (EWS). Whether you are using
Visual Studio or another code editor to develop your EWS Managed API application, you
will need to make a reference to the EWS Managed API assembly. If you haven't
installed the EWS Managed API already, be sure to download the API .
7 Note
The EWS Managed API is now available as an open source project on GitHub .
You can use the open source library to:
2. In the Solution Explorer pane in Visual Studio, select References, and then choose
Add Reference. This opens the Add Reference window.
3. In the Add Reference window, navigate to the Browse tab, browse to the location
of the Microsoft.Exchange.WebServices.dll file, select that file, and then select OK.
4. To use the EWS Managed API in your application, add a using statement for the
Microsoft.Exchange.WebServices.Data namespace.
C#
using Microsoft.Exchange.WebServices.Data;
2. In your source code editor, add a using statement to the source code for the
Microsoft.Exchange.WebServices.Data namespace.
C#
using Microsoft.Exchange.WebServices.Data;
3. Run the command-line compiler to build the application. The following command
uses the .NET Framework C# compiler to build the Windows application defined in
the source code file "program.cs". It assumes that the compiler is located in the
default installation directory and that the Microsoft.Exchange.WebServices.dll file is
in a subdirectory of the current directory named "build".
C#
See also
Get started with EWS Managed API client applications
Setting up your Exchange application development environment
Communicate with EWS by using the EWS Managed API
Set the EWS service URL by using the
EWS Managed API
Article • 01/15/2020 • 2 minutes to read
Find information about how to set the EWS service URL in your EWS Managed API
application.
The service URL is the address that Exchange uses to communicate with Exchange Web
Services (EWS). After your EWS Managed API application has this address, and has
appropriate access to communicate with EWS, it can make calls to the ExchangeService
class . The service URL for an on-premises Exchange server might look like the
following.
HTML
https://computer.domain.contoso.com/EWS/Exchange.asmx
You can set the EWS URL in your application in a couple of ways. We recommend that
you use the Autodiscover service to get the URL because in a large forest of servers,
the URL can change if the mailbox is migrated to another server. However, because
calling Autodiscover can take some time and can slow down your application if you
need to make multiple calls in a short period of time, you might want to cache the URL
value you get from Autodiscover and manually set the EWS service URL with this cached
value. This will improve the performance of your application; just make sure that you use
Autodiscover to update your cached value periodically in case the value changes on the
server.
C#
service.AutodiscoverUrl("[email protected]");
C#
service.Url = new
Uri("https://computername.domain.contoso.com/EWS/Exchange.asmx");
See also
Get started with EWS Managed API client applications
Setting up your Exchange application development environment
Control access to EWS in Exchange
Communicate with EWS by using the EWS Managed API
Use Autodiscover to find connection points
Communicate with EWS by using the
EWS Managed API
Article • 03/04/2022 • 3 minutes to read
Find information about how to use the EWS Managed API to communicate with EWS in
Exchange.
7 Note
We’re removing the ability to use Basic authentication in Exchange Online for EWS
beginning October 2022 Deprecation of Basic authentication in Exchange Online.
You should use OAuth authentication instead. Authenticate an EWS application by
using OAuth
The ExchangeService class in the EWS Managed API contains the methods and
properties that you use to set user credentials, identify the EWS endpoint, send and
receive SOAP messages, and configure the binding to communicate with EWS. Before
you can use the EWS Managed API to perform any task, you have to create an instance
of the ExchangeService class and bind it to EWS.
After you set up an ExchangeService object with user credentials and the EWS
endpoint, any mailbox object that references the ExchangeService object can use the
following method types to communicate with EWS:
Table 1. Mailbox item and folder type methods that communicate with EWS
Load
Gets properties on an item, attachment, or user configuration GetItem operation
object.
GetAttachment
operation
GetUserConfiguration
operation
Bind
Populates a new item on the client with information from an GetItem operation
Save
Saves the copy of the client item on the server. UpdateItem
operation
UpdateFolder
operation
CreateItem
operation
CreateFolder
operation
Update Updates the server with the changes made on the client.
UpdateItem
operation
Delete
Deletes an item on the server.
DeleteItem
operation
For items and folders, the Delete method uses the and the
DeleteFolder operation . DeleteFolder
operation
Copy
Creates a copy of the item or folders on the server. CopyItem
operation
CopyFolder
operation
Move
Moves items or folders on the server. MoveItem
operation
MoveFolder
operation
C#
ExchangeService service = new ExchangeService();
7 Note
2. Set the credentials of the user who sends requests to the Exchange server. If you
want to connect to EWS from a computer that is logged on to the domain, using
the credentials of the authenticated user, set the UseDefaultCredentials property
on the ExchangeService object to true.
C#
service.UseDefaultCredentials = true;
If you do not want to connect by using the default user credentials, set the
Credentials property on the ExchangeService object to explicitly specify the
credentials of a different user. If you are using Exchange Online or Exchange
Online as part of Office 365, you'll use basic authentication, with just a user name
and password. A domain name is required for NTLM authentication.
C#
You can also specify the credentials of the user by using the user's domain name
and password.
C#
7 Note
3. Set the URL of the EWS endpoint. This URL locates the exchange.asmx file on Client
Access server.
C#
service.AutodiscoverUrl("[email protected]");
7 Note
Although you can explicitly set the Url property of the ExchangeService to a
hardcoded value, we recommend that you use the Autodiscover service
instead, for the following reasons:
See also
Get started with EWS Managed API client applications
Use Autodiscover to find connection points
Develop web service clients for Exchange
Trace requests and responses to
troubleshoot EWS Managed API apps
Article • 01/15/2020 • 2 minutes to read
Find out how to trace EWS requests and responses to troubleshoot errors in your EWS
Managed API application.
If you are using EWS, you already have access to the XML request and response; you can
put a break point in your code to review the server's response to your request in order
to troubleshoot an issue. If you're using the EWS Managed API, you don't have direct
access to the EWS request and response. However, you can use tracing methods on the
ExchangeService object to capture the XML request and response, and you can then
use the XML to determine why your code is not working.
For example, if you did not set a property correctly, you might get an unexpected
response, and you can use the trace output to look at the XML request and response to
identify the error. The trace output from the EWS Managed API can also help you
manually build the XML request to create your EWS application. If you are using EWS,
you can create a small application by using EWS Managed API, trace it, and then use the
XML request information to help you build your EWS request.
C#
service.TraceListener = ITraceListenerInstance;
service.TraceEnabled = true;
After you set the TraceEnabled property to true, all requests that match the trace flags
will be sent to the specified trace listener. You can specify a single trace flag, or you can
specify multiple trace flags by combining them with a logical OR. You can use the
TraceFlags enumeration to specify values for EWS and for Autodiscover requests and
responses.
C#
CreateXMLTextFile(traceType, traceMessage.ToString());
#endregion
try
xmlDoc.Load(traceContent);
xmlDoc.Save(fileName + ".xml");
catch
See also
Start using web services in Exchange
Handling Autodiscover error messages
Reference the EWS Managed API assembly
Communicate with EWS by using the EWS Managed API
Get started with EWS client applications
Article • 03/04/2022 • 10 minutes to read
Create your first application by using Exchange Web Services (EWS) in Exchange.
EWS is a comprehensive service that your applications can use to access almost all the
information stored in an Exchange Online, Exchange Online as part of Office 365, or
Exchange on-premises mailbox. EWS uses standard web protocols to provide access to
an Exchange server; libraries like the EWS Managed API wrap the EWS operations to
provide an object-oriented interface. After you've run the examples in this article, you
will have a basic understanding of what you can do with EWS.
You can call EWS operations from any operating system or language, because the EWS
requests and responses use the SOAP protocol. The examples in this article are written
using C# and make use of the .NET Framework HttpWebRequest and
HttpWebResponse objects; however, the important part of the code is the XML used
to make the EWS request and the XML response returned from the server. The code
examples emphasize the XML transactions and not processing the XML.
7 Note
We’re removing the ability to use Basic authentication in Exchange Online for EWS
beginning October 2022 Deprecation of Basic authentication in Exchange Online.
You should use OAuth authentication instead. Authenticate an EWS application by
using OAuth
Get an Office 365 Developer Site(recommended). This is the quickest way for you
to get an Exchange mailbox.
After you've verified that you can send and receive email from your Exchange server you
are ready to set up your development environment. You can use Outlook Web App to
verify that you can send email.
You'll also need to know the URL of the EWS endpoint for your server. In a production
application, you'd use Autodiscover to determine the EWS URL. The examples in this
article use the Office 365 EWS endpoint URL,
https://outlook.office365.com/EWS/Exchange.asmx . The Next steps section has links to
more information about Autodiscover when you're ready.
If you are testing your application using an Exchange server that has the default self-
signed certificate, you'll need to create a certificate validation method that meets the
security requirements of your organization.
Any version of Visual Studio that supports the .NET Framework 4.0.
An Internet connection that your development machine can use to contact your
Exchange server. If you can use Outlook Web App with a DNS name rather than an
IP address to connect to your Exchange server, you are set up.
1. Get information from an Exchange mailbox and display that information to the
user.
2. Perform an action, such as sending an email, and check the response to see if the
action succeeded.
C#
using System;
using System.IO;
namespace Microsoft.Exchange.Samples.EWS
class Tracing
Console.Write(format, args);
if (logFileWriter != null)
logFileWriter.Write(format, args);
Console.WriteLine(format, args);
if (logFileWriter != null)
logFileWriter.WriteLine(format, args);
logFileWriter.Flush();
logFileWriter.Close();
Next, open the Program.cs file. You will put the rest of the code for the example in this
file.
1. Create a log file so that the request and response can be written to disk for later
study.
2. Get the email address and password of the account that you'll access.
3. Call the sample methods.
Replace the Main method in the Program.cs with the following code.
C#
static void Main(string[] args)
Tracing.OpenLog("./GetStartedWithEWS.log");
if (!isValidEmailAddress)
if (password.Length == 0)
// ShowNumberOfMessagesInInbox(userCredentials);
// SendTestEmail(userCredentials);
Tracing.CloseLog();
Console.ReadLine();
The last thing that you need to do is add the GetPasswordFromConsole static method.
This method returns a SecureString object that contains a password typed at the
console.
C#
while (readingPassword)
switch (userInput.Key)
case (ConsoleKey.Enter):
readingPassword = false;
break;
case (ConsoleKey.Escape):
password.Clear();
readingPassword = false;
break;
case (ConsoleKey.Backspace):
if (password.Length > 0)
password.RemoveAt(password.Length - 1);
Console.SetCursorPosition(Console.CursorLeft - 1,
Console.CursorTop);
Console.Write(" ");
Console.SetCursorPosition(Console.CursorLeft - 1,
Console.CursorTop);
break;
default:
if (userInput.KeyChar != 0)
password.AppendChar(userInput.KeyChar);
Console.Write("*");
break;
Console.WriteLine();
password.MakeReadOnly();
return password;
C#
/// This is the XML request that is sent to the Exchange server.
var getFolderSOAPRequest =
"<soap:Envelope xmlns:soap=\"https://schemas.xmlsoap.org/soap/envelope/\"\n"
+
"
xmlns:t=\"https://schemas.microsoft.com/exchange/services/2006/types\">\n" +
"<soap:Header>\n" +
" </soap:Header>\n" +
" <soap:Body>\n" +
" <GetFolder
xmlns=\"https://schemas.microsoft.com/exchange/services/2006/messages\"\n" +
"
xmlns:t=\"https://schemas.microsoft.com/exchange/services/2006/types\">\n" +
" <FolderShape>\n" +
" <t:BaseShape>Default</t:BaseShape>\n" +
" </FolderShape>\n" +
" <FolderIds>\n" +
" </FolderIds>\n" +
" </GetFolder>\n" +
" </soap:Body>\n" +
"</soap:Envelope>\n";
// Write the get folder operation request to the console and log file.
Tracing.WriteLine(getFolderSOAPRequest);
getFolderRequest.AllowAutoRedirect = false;
getFolderRequest.Credentials = userCredentials;
getFolderRequest.Method = "POST";
getFolderRequest.ContentType = "text/xml";
requestWriter.Write(getFolderSOAPRequest);
requestWriter.Close();
try
if (responseEnvelope != null)
Tracing.WriteLine("Response:");
settings.Indent = true;
responseEnvelope.Save(writer);
writer.Close();
Tracing.WriteLine(stringBuilder.ToString());
("
{https://schemas.microsoft.com/exchange/services/2006/messages}ResponseCode"
)
select errorCode;
if (errorCode.Value != "NoError")
switch (errorCode.Parent.Name.LocalName.ToString())
case "Response":
case "UserResponse":
responseEnvelope.Descendants
("
{https://schemas.microsoft.com/exchange/services/2006/messages}Folders")
select folderElement;
folder.Descendants
("
{https://schemas.microsoft.com/exchange/services/2006/types}DisplayName")
select folderElement.Value;
Tracing.WriteLine(folderName.ElementAt(0));
folder.Descendants
("
{https://schemas.microsoft.com/exchange/services/2006/types}TotalCount")
select folderElement.Value;
Tracing.WriteLine(totalCount.ElementAt(0));
folder.Descendants
("
{https://schemas.microsoft.com/exchange/services/2006/types}UnreadCount")
select folderElement.Value;
Tracing.WriteLine(unreadCount.ElementAt(0));
Tracing.WriteLine(ex.Message);
Tracing.WriteLine(ex.Message);
Parsing the returned XML response to determine if the email was correctly sent.
Add the following code to the SendTestEmail method that was stubbed out after the
main method. After you run the application, you can open the GetStartedWithEWS.log
file to see the XML request that was sent to the Exchange server and the response that
the server returned.
C#
var createItemSOAPRequest =
"<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-
instance\" \n" +
"
xmlns:m=\"https://schemas.microsoft.com/exchange/services/2006/messages\"
\n" +
"
xmlns:t=\"https://schemas.microsoft.com/exchange/services/2006/types\" \n" +
"
xmlns:soap=\"https://schemas.xmlsoap.org/soap/envelope/\">\n" +
" <soap:Header>\n" +
" </soap:Header>\n" +
" <soap:Body>\n" +
" <m:SavedItemFolderId>\n" +
" </m:SavedItemFolderId>\n" +
" <m:Items>\n" +
" <t:Message>\n" +
" <t:ToRecipients>\n" +
" <t:Mailbox>\n" +
" <t:EmailAddress>[email protected]</t:EmailAddress>\n" +
" </t:Mailbox>\n" +
" </t:ToRecipients>\n" +
" </t:Message>\n" +
" </m:Items>\n" +
" </m:CreateItem>\n" +
" </soap:Body>\n" +
"</soap:Envelope>\n";
// Write the create item operation request to the console and log
file.
Tracing.WriteLine(createItemSOAPRequest);
getFolderRequest.AllowAutoRedirect = false;
getFolderRequest.Credentials = userCredentials;
getFolderRequest.Method = "POST";
getFolderRequest.ContentType = "text/xml";
requestWriter.Write(createItemSOAPRequest);
requestWriter.Close();
try
if (responseEnvelope != null)
Tracing.WriteLine("Response:");
settings.Indent = true;
responseEnvelope.Save(writer);
writer.Close();
Tracing.WriteLine(stringBuilder.ToString());
("
{https://schemas.microsoft.com/exchange/services/2006/messages}ResponseCode"
)
select errorCode;
if (errorCode.Value != "NoError")
switch (errorCode.Parent.Name.LocalName.ToString())
case "Response":
case "UserResponse":
Tracing.WriteLine(ex.Message);
Tracing.WriteLine(ex.Message);
Next steps
Now that you've written your first EWS application, you're ready to discover other ways
to use EWS. Here are some ideas to get you started:
Implement Autodiscover in your application so that your application will connect
to the correct Exchange server based on the user's email address. See also the
Exchange 2013: Get user settings with Autodiscover sample.
See the EWS operations for information about the operations that are available.
Use EWS Editor to see the SOAP traffic sent to and from the server.
If you run into any issues with your application, try posting a question or comment in
the forum (and don't forget to read the first post).
See also
Start using web services in Exchange
Explore the EWS Managed API, EWS, and web services in Exchange
EWS client design overview for Exchange
Develop web service clients for Exchange
Get started with EWS Managed API client applications
EWS functionality in Exchange product
versions
Article • 09/15/2021 • 2 minutes to read
EWS implements new functionality in new product releases. Use the information in this
article to determine whether the version of Exchange you're targeting includes support
for the data or features you need access to.
The following table lists the versions of Exchange that include EWS and the major
features that were introduced in each version.
Office 365 Includes all the features in the current version of Exchange in addition to any new
and features that are added for online clients.
Exchange
Online
Exchange Includes all features introduced in Exchange 2013. The following features were
2013 SP1 introduced in Exchange 2013 SP1:
Read receipts can now be suspended for updates and deletions.
You can get moderated transport approval information.
Voting responses can be viewed.
The SetHoldOnMailboxes method and SetHoldOnMailboxes operation
accept all the parameters in a single object.
eDiscovery searches can specify a language for search queries and a
culture-specific format for date ranges.
The StreamingSubscriptionConnection object can now access the
StreamingSubscription objects.
Conversations have a setting to indicate whether they contain email
messages that are protected by IRM.
Meeting attendees can propose new start and end times for meetings and
include them in their meeting response.
The SOAP Autodiscover GetUserSettings method now returns the
GroupingInformation setting that is used maintain affinity for a multiple
mailbox event subscription.
Product Features
version
Exchange Includes all features introduced in Exchange 2010 SP2. The following features
2013 were introduced in Exchange 2013:
Archiving
eDiscovery
Personas
Retention policies
Unified Contact Store
User photos
Exchange Includes all the features introduced in Exchange 2010 SP1. The following features
2010 SP2 were introduced in Exchange 2010 SP2:
Get Password Expiration
DateTime precision
Updated property identifiers for contacts
New impersonation scenarios
Exchange Includes all the features introduced in Exchange 2010. The following features
2010 SP1 were introduced in Exchange 2010 SP1:
Create, retrieve and modify Inbox rules
Programmatic access to Archive Mailbox
Conversations actions
Firewall traversing notifications
Improved administration features
Improved mixed version support
Throttling protection support
Control of application access to EWS
Client certificate authentication support
Exchange Includes all features introduced in Exchange 2007 SP1. The following features
2010 were introduced in the initial release version of Exchange 2010:
Full Private Distribution List
User Configuration Objects
Folder Associated Items
Message tracking
Unified Messaging
SOAP Autodiscover
Enhanced Time Zone support
Room resource availability information
Indexed search
Dumpster access
MailTips information
Product Features
version
Exchange Includes all the features introduced in Exchange 2007. The following features
2007 SP1 were introduced in Exchange 2007 SP1:
Delegate management
Folder permissions
Public folders
Post items
ID conversion
Exchange The following features were introduced in the initial release version of Exchange
2007 2007:
Full access to items, folders, and attachments (Create, Get, Update, Delete)
Availability
Out of Office settings
Notifications
Synchronization
Name resolution
Distribution list (DL) expansion
Search
See also
Start using web services in Exchange
Migrating to Exchange technologies
Explore the EWS Managed API, EWS, and web services in Exchange
Setting up your EWS application
Article • 01/18/2019 • 2 minutes to read
Find information about the tasks you need to complete in order to create applications
that use the EWS Managed API or EWS to communicate with Exchange.
When you create a client application that calls web services on Exchange Online,
Exchange Online as part of Office 365, or a version of Exchange starting with Exchange
2013, you'll need to set up your application to communicate with the Exchange server.
The articles in this section provide code examples that show you how to use the
Exchange Web Services (EWS) Managed API or EWS XML requests and responses to set
up your application.
In this section
Setting up your Exchange application development environment
See also
Start using web services in Exchange
Learn about how to set up your development environment to create an EWS application
that communicates with Exchange.
Before you start writing your Exchange Web Services (EWS) application, you'll need to
make sure that your development environment meets a few minimum requirements.
You can use the EWS Managed API, the standard client access API for .NET Framework
applications, to develop your application, or you can use EWS on its own, with our
without an autogenerated proxy. In general, we recommend that you use the EWS
Managed API; however, you can explore the difference between these two options in
more detail to find out which one is right for you.
7 Note
The EWS Managed API is now available as an open source project on GitHub .
You can use the open source library to:
You can store the EWS Managed API files anywhere on your computer; by default,
they are installed in the Program Files\Microsoft\Exchange\Web Services<version
number> folder.
A mailbox on an Exchange server that is running Exchange Online, Exchange
Online as part of Office 365, or a version of Exchange starting with Exchange
Server 2007.
You can get an Exchange Online plan for business, including a free trial, from the
Office 365 site . In order to connect to the mailbox you must have the user name
and credentials of the account associated with the mailbox.
A version of Visual Studio starting with Visual Studio 2005. If you don't currently
have Visual Studio, you can download a free version .
A version of the .NET Framework starting with the .NET Framework 3.5. You can
download the .NET Framework 3.5 from the Microsoft Download Center .
In addition, it is helpful if you have some familiarity with C#. Although Visual Studio
supports other languages in addition to C#, most of the sample code available for the
EWS Managed API is written in C#.
A simple text editor, like Notepad, to edit your XML request. Any text editor will
do, although you might want one that will help with your XML syntax validation
like XMetal.
A tool or application that can send and receive SOAP XML requests and responses,
in order to communicate with Exchange.
When you work with raw XML, it's also helpful to have a basic understanding of XML
formatting.
The second way to use EWS is to create an autogenerated proxy that enables you to
work with the operations by using a .NET language like C#. Here is what you need to
work with an autogenerated proxy:
A version of Visual Studio starting with Visual Studio 2005, to create a proxy
reference. You can download a free version .
A version of the .NET Framework starting with the .NET Framework 2.0. You can
download the .NET Framework 3.5 from the Microsoft Download Center .
If you use an autogenerated proxy, you'll want to have some familiarity with C#
programming.
7 Note
If you're a .NET Framework developer, we encourage you to use the EWS Managed
API rather than autogenerated proxies to develop against EWS. The EWS Managed
API object model is easier to use than autogenerated proxy object models. Also,
the EWS Managed API implements Autodiscover and includes client-side logic.
See also
Setting up your Exchange application development environment
EWS client design overview for Exchange
Control access to EWS in Exchange
EWS generated object models for Exchange
Controlling client application access to
EWS in Exchange
Article • 06/14/2022 • 2 minutes to read
Learn about the options for managing client application access to EWS.
Any EWS client application that you create must be granted access to Exchange Online,
Exchange Online as part of Office 365, or version of Exchange starting with Exchange
2013 before it can call EWS operations. Test or production server administrators can use
the Exchange Management Shell to limit access to EWS either for all users and
applications, for individual users, or for individual applications. Access control for EWS is
based on domain accounts. When a connection is made with credentials that are
authenticated by the local security authority, the server returns an error that indicates
that only domain accounts can connect.
By allowing any client application to connect except those that are specifically
blocked.
Applications are identified by the user agent string that they send in the HTTP web
request.
) Important
Application-level blocking is not a security feature. The user agent string is easily
spoofed. If an application is allowed access to EWS, the application must still
present credentials that the server authenticates before the application can connect
to EWS.
Administrators can also configure access control for mailbox owners that connect to
EWS in the following ways:
Specific access control settings override general access control settings. For example, if
an organization denies EWS access but an individual mailbox owner is allowed
application access, the individual setting prevails and access is allowed.
Add the Authenticated Users group to the Pre-Win2K Compatible Access Group.
Add the Exchange Servers group to the Windows Authorization Access group.
Exchange Management Shell cmdlets for access
management
Administrators use the following Exchange Management Shell cmdlets to configure EWS
access controls:
Get-CASMailbox
Set-CASMailbox
Get-OrganizationConfig
Set-OrganizationConfig
See also
Start using web services in Exchange
Control access to EWS in Exchange
Exchange Server PowerShell (Exchange Management Shell)
Windows PowerShell
Control access to EWS in Exchange
Article • 06/14/2022 • 2 minutes to read
Find out how to control access to EWS for users, applications, or the entire organization.
Whether you are using the EWS Managed API, or EWS directly, in your application, you
can control access to Exchange Web Services (EWS). If you have administrator access to
your Exchange server, you can manage access to EWS by using the Exchange
Management Shell to control access globally, for each user, and for each application.
Get-CASMailbox - Shows you what parameters are set for a particular mailbox.
Set-CASMailbox - Sets parameters for a particular mailbox.
Get-OrganizationConfig - Shows you the parameters for the entire organization.
Set-OrganizationConfig - Sets the parameters for the entire organization.
See also
Setting up your EWS application
Controlling client application access to EWS in Exchange
Exchange Server PowerShell (Exchange Management Shell)
Windows PowerShell
Managing user access by using EWS in
Exchange
Article • 06/14/2022 • 2 minutes to read
Find out what your options are for managing user account access to your Exchange
server.
Exchange Web Services (EWS) and the EWS managed API provide a limited number of
operations that you can use to manage accounts on Exchange Online, Exchange Online
as part of Office 365, or a version of Exchange starting with Exchange 2013. You can use
the operations shown in the following figure to manage delegates and to set folder
access permissions for other accounts.
If your application needs additional control over the accounts on an Exchange server,
you can use Exchange Management Shell cmdlets to manage the accounts. You can call
the Exchange Management Shell cmdlets by doing one of the following:
See also
Setting up your EWS application
Exchange 2013 Cmdlets
Validate a server certificate for the EWS
Managed API
Article • 02/11/2022 • 3 minutes to read
Learn how to create and reference a certificate validation callback method so that you
can make EWS Managed API requests to an Exchange server.
By default, versions of Exchange starting with Exchange 2007 SP1 use self-signed X509
certificates to authenticate calls from EWS. When you are using the EWS Managed API,
you need to create a certificate validation callback method; otherwise, EWS Managed
API requests will fail. If you are using the Autodiscover service, the call to the EWS
Managed API Autodiscover method will fail with an AutodiscoverLocalException error.
If you are using a web-generated web service proxy, you might also have to create a
validation callback method, depending on how the proxy is created.
Your Exchange server is using a self-signed certificate for EWS. If the administrator
has installed a valid certificate that traces to a root certificate, you do not need to
create a validation callback method.
You are creating a managed application that includes a reference to the following
required .NET Framework namespaces:
System.Net
System.Net.Security
System.Security.Cryptography.X509Certificates
C#
object sender,
System.Security.Cryptography.X509Certificates.X509Certificate
certificate,
System.Security.Cryptography.X509Certificates.X509Chain chain,
System.Net.Security.SslPolicyErrors sslPolicyErrors)
if (sslPolicyErrors == System.Net.Security.SslPolicyErrors.None)
return true;
if ((sslPolicyErrors &
System.Net.Security.SslPolicyErrors.RemoteCertificateChainErrors) != 0)
foreach
(System.Security.Cryptography.X509Certificates.X509ChainStatus status in
chain.ChainStatus)
(status.Status ==
System.Security.Cryptography.X509Certificates.X509ChainStatusFlags.Untrusted
Root))
continue;
else
if (status.Status !=
System.Security.Cryptography.X509Certificates.X509ChainStatusFlags.NoError)
return false;
return true;
else
return false;
You use the ServicePointManager class in the .NET System.Net namespace to hook up a
validation callback method by setting the ServerCertificateValidationCallback property.
You can use code similar to the following code example to set the
ServerCertificateValidationCallback property.
C#
ServicePointManager.ServerCertificateValidationCallback =
CertificateValidationCallBack;
Next steps
After you have created the validation callback method for the EWS Managed API, you
can use the Autodiscover service to get connection points and user and domain settings
from an Exchange server. For more information, see the following articles:
See also
Setting up your EWS application
Start using web services in Exchange
Authentication and EWS in Exchange
Article • 06/14/2022 • 4 minutes to read
Find information to help you choose the right authentication standard for your EWS
application that targets Exchange.
Authentication is a key part of your Exchange Web Services (EWS) application. Exchange
Online, Exchange Online as part of Office 365, and on-premises versions of Exchange
starting with Exchange Server 2013 support standard web authentication protocols to
help secure the communication between your application and the Exchange server.
If you're targeting Exchange Online, the authentication method that you choose must
use HTTPS to encrypt the requests and responses that your application sends. Although
you can use HTTP with Exchange on-premises servers, we recommend that you use
HTTPS for any request that your application sends to an EWS endpoint to help secure
communication between your application and an Exchange server.
Exchange provides the following authentication options for you to choose from:
The authentication method that you choose depends on the security requirements of
your organization, whether you are using Exchange Online or Exchange on-premises,
and whether you have access to a third-party provider that can issue OAuth tokens. This
article provides information that will help you select the authentication standard that's
right for your application.
OAuth authentication
We recommend that all new applications use the OAuth standard to connect to
Exchange Online services. The advantage in security over basic authentication is worth
the additional work required to implement OAuth in your application. For the record,
however, there are also some disadvantages that you should be aware of.
Advantages Disadvantages
Advantages Disadvantages
credentials.
To help minimize the disadvantages, you can use the Microsoft Azure AD Authentication
Library (ADAL) to authenticate users to Active Directory Domain Services (AD DS) in the
cloud or on-premises and then obtain access tokens for securing calls to an Exchange
server. Exchange Online requires tokens issued by the Azure Active Directory service,
which is supported by the ADAL; however, you can use any third-party library.
To learn more about using OAuth authentication in your EWS application, see the
following resources:
Office 365 trial, to set up an Exchange server to use to test your client application.
Review the sample code in Authenticate an EWS application by using OAuth for
example code that you can study.
NTLM authentication
NTLM authentication is only available for Exchange on-premises servers. For
applications that run inside the corporate firewall, integration between NTLM
authentication and the .NET Framework provides a built-in means to authenticate your
application.
Advantages Disadvantages
Advantages Disadvantages
Works "out of the box" with your Exchange server. You Users must be logged on to a domain
can configure access to Exchange services by using an to use NTLM authentication.
Code samples are available that use the logged on Service applications must have a
user's credentials for authentication to an on-premises domain account to take advantage of
Exchange server. NTLM authentication.
Basic authentication
Basic authentication provides a, well, basic level of security for your client application.
We do recommend that all new applications use either NTLM or the OAuth protocol for
authentication; however, basic authentication can be the correct choice for your
application in some circumstances.
Advantages Disadvantages
Works "out of the box" with your Exchange server. Requires your application to collect and
You can configure access to Exchange services by store the user's credentials.
Many code samples are available that show you If a security breach occurs in your
how to call EWS using basic authentication. application, it can expose the user's email
address and password to the attacker.
You need to decide if basic authentication meets the security requirements of your
organization and customers. Basic authentication can be the right choice if you want to
avoid extensive setup tasks, for example for simple test or demonstration applications.
7 Note
See also
Authenticate an EWS application by using OAuth
Start using web services in Exchange
Adding Sign-On to Your Web Application Using Microsoft Azure AD
Control access to EWS in Exchange
Controlling client application access to EWS in Exchange
Supported token and claim types
Authenticate an EWS application by
using OAuth
Article • 10/31/2022 • 6 minutes to read
Learn how to use OAuth authentication with your EWS Managed API applications.
You can use the OAuth authentication service provided by Azure Active Directory to
enable your EWS Managed API applications to access Exchange Online in Office 365. To
use OAuth with your application you will need to:
7 Note
To use the code in this article, you will need to have access to the following:
A Microsoft 365 account with an Exchange Online mailbox. If you do not have a
Microsoft 365 account, you can sign up for the Microsoft 365 Developer Program
to get a free Microsoft 365 subscription.
The Microsoft Authentication Library for .NET.
The EWS Managed API .
There are two types of OAuth permissions that can be used to access EWS APIs in
Exchange Online. Before you proceed with the tutorial, you will need to choose the
specific permission type to use.
Delegated permissions are used by apps that have a signed-in user present. For
these apps, either the user or an administrator consents to the permissions that
the app requests and the app can act as the signed-in user when making API calls.
Application permissions are used by apps that run without a signed-in user
present; for example, apps that run as background services or daemons and can
access multiple mailboxes.
Register your application
To use OAuth, an application must have an application ID issued by Azure Active
Directory. In this tutorial, it is assumed that the application is a console application, so
you need to register your application as a public client with Azure Active Directory. You
can register an application in the Azure Active Directory admin center or by using
Microsoft Graph.
1. Open a browser and navigate to the Azure Active Directory admin center and
login using a personal account (aka: Microsoft Account) or Work or School
Account.
2. Select Azure Active Directory in the left-hand navigation, then select App
registrations under Manage.
3. Select New registration. On the Register an application page, set the values as
follows.
4. Choose Register. On the next page, copy the values of the Application (client) ID
and Directory (tenant) ID and save them, you will need them later.
2. Locate the requiredResourceAccess property in the manifest, and add the following
inside the square brackets ( [] ):
JSON
{
"resourceAppId": "00000002-0000-0ff1-ce00-000000000000",
"resourceAccess": [
"id": "3b5f3d61-589b-4a3c-a359-5dd4b5ee5bd5",
"type": "Scope"
3. Select Save.
2. Locate the requiredResourceAccess property in the manifest, and add the following
inside the square brackets ( [] ):
JSON
"resourceAppId": "00000002-0000-0ff1-ce00-000000000000",
"resourceAccess": [
"id": "dc890d15-9560-4a4c-9b7f-a736ec74ec40",
"type": "Role"
3. Select Save.
5. Select Grant admin consent for org and accept the consent dialog.
7. Select New client secret, enter a short description and select Add.
8. Copy the Value of the newly added client secret and save it, you will need it later.
ClientId = ConfigurationManager.AppSettings["appId"],
TenantId = ConfigurationManager.AppSettings["tenantId"]
};
.CreateWithApplicationOptions(pcaOptions).Build();
.Create(ConfigurationManager.AppSettings["appId"])
.WithClientSecret(ConfigurationManager.AppSettings["clientSecret"])
.WithTenantId(ConfigurationManager.AppSettings["tenantId"])
.Build();
C#
To use application permissions, you will also need to explicitly impersonate a mailbox
that you would like to access.
C#
ewsClient.ImpersonatedUserId = new
ImpersonatedUserId(ConnectingIdType.SmtpAddress,
"[email protected]");
Code samples
Delegated authentication
The following is the complete code sample that demonstrates making an OAuth-
authenticated EWS request using delegated authentication.
C#
using Microsoft.Exchange.WebServices.Data;
using Microsoft.Identity.Client;
using System;
using System.Configuration;
namespace EwsOAuth
class Program
ClientId = ConfigurationManager.AppSettings["appId"],
TenantId = ConfigurationManager.AppSettings["tenantId"]
};
.CreateWithApplicationOptions(pcaOptions).Build();
try
ewsClient.Url = new
Uri("https://outlook.office365.com/EWS/Exchange.asmx");
ewsClient.Credentials = new
OAuthCredentials(authResult.AccessToken);
var folders =
ewsClient.FindFolders(WellKnownFolderName.MsgFolderRoot, new
FolderView(10));
Console.WriteLine($"Folder: {folder.DisplayName}");
Console.WriteLine($"Error: {ex}");
if (System.Diagnostics.Debugger.IsAttached)
Console.ReadKey();
App-only authentication
The following is the complete code sample that demonstrates making an OAuth-
authenticated EWS request using app-only authentication.
7 Note
When using impersonation you must always use the X-AnchorMailbox request
header, which should be set to the SMTP address of the impersonated mailbox.
C#
using Microsoft.Exchange.WebServices.Data;
using Microsoft.Identity.Client;
using System;
using System.Configuration;
namespace EwsOAuth
class Program
.Create(ConfigurationManager.AppSettings["appId"])
.WithClientSecret(ConfigurationManager.AppSettings["clientSecret"])
.WithTenantId(ConfigurationManager.AppSettings["tenantId"])
.Build();
try
.ExecuteAsync();
ewsClient.Url = new
Uri("https://outlook.office365.com/EWS/Exchange.asmx");
ewsClient.Credentials = new
OAuthCredentials(authResult.AccessToken);
ewsClient.ImpersonatedUserId =
new ImpersonatedUserId(ConnectingIdType.SmtpAddress,
"[email protected]");
ewsClient.HttpHeaders.Add("X-AnchorMailbox",
"[email protected]");
var folders =
ewsClient.FindFolders(WellKnownFolderName.MsgFolderRoot, new
FolderView(10));
Console.WriteLine($"Folder: {folder.DisplayName}");
Console.WriteLine($"Error: {ex}");
if (System.Diagnostics.Debugger.IsAttached)
Console.ReadKey();
The sample code in both cases requires an App.config file with the following entries:
XML
<configuration>
<startup>
</startup>
<appSettings>
<!-- The application's client secret from your app registration. Needed
for application permission access -->
</appSettings>
</configuration>
See also
Authentication and EWS in Exchange
What to do with EWS Managed API PowerShell scripts that use Basic
Authentication
Autodiscover for Exchange
Article • 09/14/2022 • 5 minutes to read
The Exchange Autodiscover service provides an easy way for your client application to
configure itself with minimal user input. Most users know their email address and
password, and with those two pieces of information, you can retrieve all the other
details you need to get up and running. For Exchange Web Services (EWS) clients,
Autodiscover is typically used to find the EWS endpoint URL, but Autodiscover can also
provide information to configure clients that use other protocols. Autodiscover works
for client applications that are inside or outside firewalls and will work in resource forest
and multiple forest scenarios.
Active For domain-joined clients, this is the first place to look. Exchange publishes service
Directory connection point (SCP) objects in AD DS, which allows Autodiscover requests to be
Domain routed to servers based on Active Directory sites. The results of an SCP lookup
Services should be at the top of your candidate list.
(AD DS)
NOTE: SCP lookup isn't available for clients that are not joined to a domain or that
do not have access to Active Directory servers. In this case, you should skip SCP
lookup.
The user's Autodiscover defines two standard endpoint URL forms that are derived from the
email domain portion of the user's email address:
address "https://" + domain + "/autodiscover/autodiscover" + *fileExtension*
domain "https://autodiscover." + domain + "/autodiscover/autodiscover" +
*fileExtension*
The value of fileExtension depends on which Autodiscover access method you are
using, SOAP or POX . The SOAP service uses a ".svc" file extension; POX uses
".xml".
That the SSL certificate presented by the server is valid and from a trusted
authority.
7 Note
These are just basic security suggestions. Whenever you are working with
authentication, make sure that your code meets the security requirements of your
organization.
The type of request you send depends on how you are accessing the Autodiscover
service.
The POX Autodiscover service An HTTP POST with an Autodiscover request body .
The first thing to try is to send an unauthenticated GET request to an endpoint derived
from the user's email address. The format of that endpoint is "http://autodiscover." +
domain + "/autodiscover/autodiscover.xml". Note that this is NOT an SSL endpoint. If
the server returns a 302 redirect response, you can then attempt to resend the
Autodiscover request to the endpoint URL in the Location header of the response.
EWS Managed Implements Limited to the user settings that are available in the
API
the Microsoft.Exchange.WebServices.Autodiscover.UserSettingName
Autodiscover enumeration.
process for
you.
Only available for .NET Framework applications.
Uses both
the SOAP
and POX
Autodiscover
services.
Works with
Exchange
Online,
Exchange
Online as
part of Office
365, or a
version of
Exchange
starting with
Exchange
2007 SP1.
Easy to use.
Allows you
to request
just the
settings you
are
interested in.
Option Pros Cons
Supported in
Exchange
Online and
all versions
of Exchange
starting with
Exchange
2007 SP1.
In this section
Find Autodiscover endpoints by using SCP lookup in Exchange
See also
Start using web services in Exchange
Develop web service clients for Exchange
Find Autodiscover endpoints by using
SCP lookup in Exchange
Article • 11/18/2020 • 8 minutes to read
Find out how to locate Autodiscover SCP objects in Active Directory Domain Services
(AD DS) and use them to find Autodiscover endpoint URLs to use with the Exchange
Autodiscover service.
A client computer that is joined to the domain that the Exchange server is installed
in.
Also, before you begin, you'll want to be familiar some basic concepts. The following are
some resources that you'll find helpful.
Table 1. Related articles for finding Autodiscover endpoints from SCP objects
Publishing with Service Connection How SCP objects are used to publish service-specific
Points
data.
SCP pointers — These contain information that points to specific LDAP servers that
should be used to locate Autodiscover SCP objects for the user's domain. SCP
pointers are stamped with the following GUID: 67661d7F-8FC4-4fa7-BFAC-
E1D7794C1F68.
SCP URLs — These contain URLs for Autodiscover endpoints. SCP URLs are
stamped with the following GUID: 77378F46-2C66-4aa9-A6A6-3E7A48B19596.
2. Search for SCP objects in the configuration naming context that have either the
SCP pointer GUID or the SCP URL GUID in the keywords property.
3. Check the SCP objects you found for an SCP pointer that is scoped to the user's
domain by checking the keywords property for an entry equal to "Domain=
<domain>" . For example, if the user's email address is [email protected], you
would look for an SCP pointer with an entry in the keywords property that is equal
to "Domain=contoso.com" . If a matching SCP pointer is found, discard the set of SCP
objects and start over at step 1 using the value of the serviceBindingInformation
property as the server to connect to for the Root DSE entry.
4. If you don't find any SCP pointers scoped to the user's domain, check for any SCP
pointers that aren't scoped to any domain, and save the value of the
serviceBindingInformation property as a "fallback" server, in case the current
server doesn't give you any results.
5. If you didn't find any SCP pointers scoped to the domain, you're ready to move on
to the next step: generating a prioritized list of Autodiscover endpoints from your
results.
2. Check the keywords property on each SCP URL in the set of SCP objects you
found, and assign a priority to the URL based on the following rules:
If the keywords property does not contain an entry with a value that starts with
"Site=" , assign the URL a priority of 2.
C#
using System;
using System.Collections.Generic;
using System.DirectoryServices;
using System.DirectoryServices.ActiveDirectory;
namespace ScpLookup
// This sample is for demonstration purposes only. Before you run this
sample, make sure
class Program
if (string.IsNullOrEmpty(ldapServer))
rootDSEPath = "LDAP://RootDSE";
else
try
string configPath =
rootDSE.Properties["configurationNamingContext"].Value as string;
// Set the search filter to find SCP URLs and SCP pointers.
configSearch.Filter = "(&
(objectClass=serviceConnectionPoint)" +
configSearch.PropertiesToLoad.Add("keywords");
configSearch.PropertiesToLoad.Add("serviceBindingInformation");
scpEntries = configSearch.FindAll();
Console.WriteLine(ex.ToString());
return null;
ResultPropertyValueCollection entryKeywords =
scpEntry.Properties["keywords"];
if (CollectionContainsExactValue(entryKeywords,
ScpPtrGuidString))
string ptrLdapPath =
scpEntry.Properties["serviceBindingInformation"][0] as string;
if (CollectionContainsExactValue(entryKeywords,
"Domain=" + domain))
else
if (entryKeywords.Count == 1 &&
string.IsNullOrEmpty(fallBackLdapPath))
fallBackLdapPath = ptrLdapPath;
try
ActiveDirectorySite site =
ActiveDirectorySite.GetComputerSite();
computerSiteName = site.Name;
Console.WriteLine(ex.ToString());
if (!string.IsNullOrEmpty(computerSiteName))
{
ResultPropertyValueCollection entryKeywords =
scpEntry.Properties["keywords"];
if (CollectionContainsExactValue(entryKeywords,
ScpUrlGuidString))
string scpUrl =
scpEntry.Properties["serviceBindingInformation"][0] as string;
scpUrl = scpUrl.ToLower();
if (CollectionContainsExactValue(entryKeywords,
"Site=" + computerSiteName))
// Priority 1.
if (!scpUrlList.Contains(scpUrl.ToLower()))
scpUrlList.Add(scpUrl);
else
else
if (CollectionContainsPrefixValue(entryKeywords,
"Site="))
// Priority 3.
if (!priorityThreeUrls.Contains(scpUrl))
{
Console.WriteLine("Adding priority 3 SCP
URL: {0}", scpUrl);
priorityThreeUrls.Add(scpUrl);
}
else
{
Console.WriteLine("Priority 3 SCP URL
already found: {0}", scpUrl);
}
}
else
// Priority 2.
if (!priorityTwoUrls.Contains(scpUrl))
{
Console.WriteLine("Adding priority 2 SCP
URL: {0}", scpUrl);
priorityTwoUrls.Add(scpUrl);
}
else
{
Console.WriteLine("Priority 2 SCP URL
already found: {0}", scpUrl);
}
}
if (!scpUrlList.Contains(priorityTwoUrl))
scpUrlList.Add(priorityTwoUrl);
if (!scpUrlList.Contains(priorityThreeUrl))
scpUrlList.Add(priorityThreeUrl);
return scpUrlList;
if (entry != null)
return true;
return false;
if (entry != null)
if (entry.StartsWith(value))
return true;
return false;
Next steps
The next step in the Autodiscover process is to send Autodiscover requests to the URLs
that you found, starting with priority 1 URLs, then priority 2 URLs, and finally priority 3
URLs. To learn more about how to send Autodiscover requests and handle responses,
read the following articles:
See also
Autodiscover for Exchange
Setting up your EWS application
Generate a list of Autodiscover
endpoints
Article • 01/15/2020 • 3 minutes to read
The first task in the Autodiscover process is to generate a list of Autodiscover endpoints
for your application to try. These Autodiscover endpoints can come from an SCP lookup
or can be derived from the user's email address. In the end, you can end up with a large
number of endpoints. Let's take a look at how you can organize them by priority.
1. Autodiscover endpoints from SCP objects scoped to the Active Directory site that
the client computer belongs to.
2. Autodiscover endpoints from SCP objects not scoped to any Active Directory site.
After you have the results of the SCP lookup process, you can add endpoints that derive
from the user's email address. These can serve as a default set of endpoints and a
fallback in case there are no SCP results or the endpoints returned from the SCP lookup
are not sufficient.
After you compile the list of endpoint URLs that derive from both SCP lookup and the
user's email address, you might need to revise file name extensions in those URLs,
depending on whether you're using the SOAP Autodiscover web service or the POX
Autodiscover web service .
By default, the Autodiscover endpoint URLs returned from an SCP lookup are POX URLs.
However, if you are using SOAP Autodiscover, you can simply change the file name
extension from ".xml" to ".svc" and try a SOAP request.
For the derived Autodiscover endpoint URLs, the file extension is omitted. Add the
appropriate file extension for the Autodiscover web service you are using prior to trying
the URL.
The EWS application in this example prefers the SOAP Autodiscover web service, so it
changes the file name extension for the SCP results to ".svc" before sending SOAP
requests to them.
Next steps
After you generate a list of Autodiscover endpoints, try them by sending requests to
those endpoints.
See also
Autodiscover for Exchange
Find out how to use the Autodiscover service to direct your client application to the
correct Exchange server.
The Exchange Autodiscover service provides your client application with configuration
settings for email accounts that are hosted on Exchange Online, Exchange Online as part
of Office 365, or an Exchange server running a version of Exchange starting with
Exchange 2013. The Autodiscover service is a web service that provides configuration
settings. The Autodiscover service is a web service that provides Exchange server
configuration information to your client application. Client applications use
Autodiscover to determine the endpoint of the Autodiscover service for a specific
mailbox. This article explains how to follow the responses from an Exchange server to
find the correct endpoint.
For information about how to get email address configuration settings, see Get user
settings from Exchange by using Autodiscover and Get domain settings from an
Exchange server.
7 Note
The process for finding the correct endpoint is part of the request for user or
domain settings. The Autodiscover service uses a series of redirect responses to
send the client application to the correct endpoint for an email address.
You can use one of the following Exchange development technologies to access the
Autodiscover service:
EWS
If you are using EWS, you can use the following methods to retrieve user settings:
For more information about these Exchange development technologies, see Explore the
EWS Managed API, EWS, and web services in Exchange.
The EWS Managed API provides an object-based interface for retrieving user settings. If
your client application uses managed code, we recommend that you use the EWS
Managed API. The EWS Managed API interface is better optimized for a simple object
model than the typical autogenerated web service proxy.
If you are using EWS, we suggest that you use the SOAP Autodiscover service, because it
supports a richer set of features than the POX Autodiscover service.
An account that is authorized to use EWS. For information about how to configure
an account, see Controlling client application access to EWS in Exchange.
7 Note
If you are using the EWS Managed API, you must provide a certificate validation
callback in some circumstances. You may also need a certificate validation callback
with some generated proxy libraries, such as those created by Visual Studio. For
more information, see Validate a server certificate for the EWS Managed API.
Concept Description
Concept Description
If you are using the EWS Managed API, you use the
Microsoft.Exchange.WebServices.Data.ExchangeService class in the
Microsoft.Exchange.WebServices.Data namespace to manage your connection to EWS.
To use the EWS Managed API code samples in this article, you need to reference the
following namespaces in your code:
System.Net
Microsoft.Exchange.WebServices.Data.ExchangeService
C#
service.Credentials = credentials;
service.AutodiscoverUrl("[email protected]");
XML
<soap:Envelope
xmlns:a="https://schemas.microsoft.com/exchange/2010/Autodiscover"
xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<a:RequestedServerVersion>Exchange2013</a:RequestedServerVersion>
<wsa:Action>https://schemas.microsoft.com/exchange/2010/Autodiscover/Autodis
cover/GetUserSettings</wsa:Action>
<wsa:To>https://mail.microsoft.com/autodiscover/autodiscover.svc</wsa:To>
</soap:Header>
<soap:Body>
<a:GetUserSettingsRequestMessage
xmlns:a="https://schemas.microsoft.com/exchange/2010/Autodiscover">
<a:Request>
<a:Users>
<a:User>
<a:Mailbox>[email protected]</a:Mailbox>
</a:User>
</a:Users>
<a:RequestedSettings>
<a:Setting>InternalEwsUrl</a:Setting>
<a:Setting>ExternalEwsUrl</a:Setting>
</a:RequestedSettings>
</a:Request>
</a:GetUserSettingsRequestMessage>
</soap:Body>
</soap:Envelope>
) Important
For criteria for validating a redirection response, see Autodiscover for Exchange.
If the Autodiscover service returns a redirection response, indicated by the ErrorCode
element of the UserResponse element, your client application should use the
RedirectTarget element to construct a new settings request that is sent to the server
specified in the redirection response. The following example shows a redirection
response from the server.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/"
xmlns:a="http://www.w3.org/2005/08/addressing">
<s:Header>
<a:Action
s:mustUnderstand="1">https://schemas.microsoft.com/exchange/2010/
Autodiscover/Autodiscover/GetUserSettingsResponse</a:Action>
<h:ServerVersionInfo
xmlns:h="https://schemas.microsoft.com/exchange/2010/Autodiscover"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<h:MajorVersion>15</h:MajorVersion>
<h:MinorVersion>0</h:MinorVersion>
<h:MajorBuildNumber>682</h:MajorBuildNumber>
<h:MinorBuildNumber>1</h:MinorBuildNumber>
<h:Version>Exchange2013</h:Version>
</h:ServerVersionInfo>
</s:Header>
<s:Body>
<GetUserSettingsResponseMessage
xmlns="https://schemas.microsoft.com/exchange/2010/Autodiscover">
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<ErrorCode>NoError</ErrorCode>
<ErrorMessage />
<UserResponses>
<UserResponse>
<ErrorCode>RedirectAddress</ErrorCode>
<ErrorMessage>Redirection address.</ErrorMessage>
<RedirectTarget>[email protected]</RedirectTarget>
<UserSettingErrors />
<UserSettings />
</UserResponse>
</UserResponses>
</Response>
</GetUserSettingsResponseMessage>
</s:Body>
</s:Envelope>
After a redirection, the client uses the redirection URL to prepare another request. The
following code shows an example of the request that you create from the redirection
response.
XML
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope
xmlns:a="https://schemas.microsoft.com/exchange/2010/Autodiscover"
xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<a:RequestedServerVersion>Exchange2013</a:RequestedServerVersion>
<wsa:Action>https://schemas.microsoft.com/exchange/2010/
Autodiscover/Autodiscover/GetUserSettings</wsa:Action>
<wsa:To>https://autodiscover.exchange.microsoft.com/autodiscover/autodiscove
r.svc</wsa:To>
</soap:Header>
<soap:Body>
<a:GetUserSettingsRequestMessage
xmlns:a="https://schemas.microsoft.com/exchange/2010/Autodiscover">
<a:Request>
<a:Users>
<a:User>
<a:Mailbox>[email protected]</a:Mailbox>
</a:User>
</a:Users>
<a:RequestedSettings>
<a:Setting>InternalEwsUrl</a:Setting>
<a:Setting>ExternalEwsUrl</a:Setting>
</a:RequestedSettings>
</a:Request>
</a:GetUserSettingsRequestMessage>
</soap:Body>
</soap:Envelope>
When the client application has been directed to the correct endpoint for the
Autodiscover service, the server will send a response with the ErrorCode element of
the UserResponse element set to NoError and containing the requested user settings.
Only the requested user settings, InternalEwsUrl and ExternalEwsUrl, are returned. The
following example shows the response from the server.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/"
xmlns:a="http://www.w3.org/2005/08/addressing">
<s:Header>
<a:Action
s:mustUnderstand="1">https://schemas.microsoft.com/exchange/2010/
Autodiscover/Autodiscover/GetUserSettingsResponse</a:Action>
<h:ServerVersionInfo
xmlns:h="https://schemas.microsoft.com/exchange/2010/Autodiscover"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<h:MajorVersion>15</h:MajorVersion>
<h:MinorVersion>0</h:MinorVersion>
<h:MajorBuildNumber>160</h:MajorBuildNumber>
<h:MinorBuildNumber>4</h:MinorBuildNumber>
<h:Version>Exchange2013</h:Version>
</h:ServerVersionInfo>
</s:Header>
<s:Body>
<GetUserSettingsResponseMessage
xmlns="https://schemas.microsoft.com/exchange/2010/Autodiscover">
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<ErrorCode>NoError</ErrorCode>
<ErrorMessage />
<UserResponses>
<UserResponse>
<ErrorCode>NoError</ErrorCode>
<ErrorMessage>No error.</ErrorMessage>
<UserSettingErrors />
<UserSettings>
<UserSetting i:type="StringSetting">
<Name>InternalEwsUrl</Name>
<Value>https://server.Contoso.com/ews/exchange.asmx</Value>
</UserSetting>
<UserSetting i:type="StringSetting">
<Name>ExternalEwsUrl</Name>
<Value>https://server.Contoso.com/ews/exchange.asmx</Value>
</UserSetting>
</UserSettings>
</UserResponse>
</UserResponses>
</Response>
</GetUserSettingsResponseMessage>
</s:Body>
</s:Envelope>
Next steps
Finding the endpoint by following the Autodiscover process returns the requested
domain or user settings. For information about making a request for specific settings,
see the following articles:
See also
Setting up your EWS application
Autodiscover for Exchange
Autodiscover web service reference for Exchange
EWS reference for Exchange
Get user settings from Exchange by
using Autodiscover
Article • 01/15/2020 • 5 minutes to read
Learn how to get user configuration settings from an Exchange server by using
Autodiscover.
You can use one of the following development technologies to retrieve user settings
from the Autodiscover service:
The EWS Managed API provides an object-based interface for retrieving user settings. If
your client application uses managed code, we recommend that you use the EWS
Managed API. If you are using the EWS Managed API, determine whether the settings
that you need are available in the
Microsoft.Exchange.WebServices.Autodiscover.UserSettingName enumeration. If they
aren't, you might want to use the SOAP or POX Autodiscover services.
If you are using a web service, we suggest that you use the SOAP Autodiscover service,
because it supports a richer set of features than the POX Autodiscover service. If the
SOAP Autodiscover service isn't available, the POX Autodiscover service is a good
alternative.
If you are using the EWS Managed API or the POX-based Autodiscover service,
Exchange Online, Exchange Online as part of Office 365, or a server that is running
a version of Exchange starting with Exchange 2007 SP1.
If you are using the SOAP-based Autodiscover service, Exchange Online or a
version of Exchange starting with Exchange 2010.
7 Note
If you are using the EWS Managed API, you will need to provide a certificate
validation callback method in some circumstances. You might also need a
certificate validation callback method with some generated proxy libraries, such as
those created by Visual Studio.
C#
using System;
using System.Net;
using Microsoft.Exchange.WebServices.Autodiscover;
AutodiscoverService service,
string emailAddress,
int maxHops,
service.Url = url;
if (response.ErrorCode == AutodiscoverErrorCode.RedirectAddress)
else
return response;
You can parse the collection returned to access each key/value pair in the user settings
array. The following example shows how to parse through each returned element and
display the name and value of each key/value pair.
C#
// Display each retrieved value. The settings are part of a key/value pair.
Alternatively, you can obtain the value of a specific setting. In the following example, the
UserDisplayName setting is to be displayed.
C#
Console.WriteLine(userresponse.Settings[UserSettingName.UserDisplayName]);
To get user settings, use the GetUserSettings operation (SOAP) . The requested
settings are returned as UserSetting elements .
The following example shows a SOAP Autodiscover request to get user settings from the
server.
XML
<soap:Envelope
xmlns:a="https://schemas.microsoft.com/exchange/2010/Autodiscover"
xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<a:RequestedServerVersion>Exchange2013</a:RequestedServerVersion>
<wsa:Action>https://schemas.microsoft.com/exchange/2010/Autodiscover/Autodis
cover/GetUserSettings</wsa:Action>
<wsa:To>https://autodiscover.exchange.microsoft.com/autodiscover/autodiscove
r.svc</wsa:To>
</soap:Header>
<soap:Body>
<a:GetUserSettingsRequestMessage
xmlns:a="https://schemas.microsoft.com/exchange/2010/Autodiscover">
<a:Request>
<a:Users>
<a:User>
<a:Mailbox>[email protected]</a:Mailbox>
</a:User>
</a:Users>
<a:RequestedSettings>
<a:Setting>UserDisplayName</a:Setting>
<a:Setting>UserDN</a:Setting>
<a:Setting>UserDeploymentId</a:Setting>
<a:Setting>InternalMailboxServer</a:Setting>
<a:Setting>MailboxDN</a:Setting>
<a:Setting>PublicFolderServer</a:Setting>
<a:Setting>ActiveDirectoryServer</a:Setting>
<a:Setting>ExternalMailboxServer</a:Setting>
<a:Setting>EcpDeliveryReportUrlFragment</a:Setting>
<a:Setting>EcpPublishingUrlFragment</a:Setting>
<a:Setting>EcpTextMessagingUrlFragment</a:Setting>
<a:Setting>ExternalEwsUrl</a:Setting>
<a:Setting>CasVersion</a:Setting>
<a:Setting>EwsSupportedSchemas</a:Setting>
<a:Setting>GroupingInformation</a:Setting>
</a:RequestedSettings>
</a:Request>
</a:GetUserSettingsRequestMessage>
</soap:Body>
</soap:Envelope>
The following example shows the SOAP response that is returned by the server after it
parses the request from the client. The response contains only the settings that are
requested, if they exist.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/"
xmlns:a="http://www.w3.org/2005/08/addressing">
<s:Header>
<a:Action
s:mustUnderstand="1">https://schemas.microsoft.com/exchange/2010/
Autodiscover/Autodiscover/GetUserSettingsResponse</a:Action>
<h:ServerVersionInfo
xmlns:h="https://schemas.microsoft.com/exchange/2010/Autodiscover"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<h:MajorVersion>15</h:MajorVersion>
<h:MinorVersion>0</h:MinorVersion>
<h:MajorBuildNumber>160</h:MajorBuildNumber>
<h:MinorBuildNumber>4</h:MinorBuildNumber>
<h:Version>Exchange2013</h:Version>
</h:ServerVersionInfo>
</s:Header>
<s:Body>
<GetUserSettingsResponseMessage
xmlns="https://schemas.microsoft.com/exchange/2010/Autodiscover">
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<ErrorCode>NoError</ErrorCode>
<ErrorMessage />
<UserResponses>
<UserResponse>
<ErrorCode>NoError</ErrorCode>
<ErrorMessage>No error.</ErrorMessage>
<UserSettingErrors />
<UserSettings>
<UserSetting i:type="StringSetting">
<Name>UserDisplayName</Name>
<Value>Mara Whitley</Value>
</UserSetting>
<UserSetting i:type="StringSetting">
<Name>UserDN</Name>
</UserSetting>
<UserSetting i:type="StringSetting">
<Name>UserDeploymentId</Name>
<Value>649d50b8-a1ce-4bac-8ace-2321 e463f701</Value>
</UserSetting>
<UserSetting i:type="StringSetting">
<Name>CasVersion</Name>
<Value>15.01.0160.004</Value>
</UserSetting>
<UserSetting i:type="StringSetting">
<Name>EwsSupportedSchemas</Name>
</UserSetting>
<UserSetting i:type="StringSetting">
<Name>InternalMailboxServer</Name>
<Value>mail.contoso.com</Value>
</UserSetting>
<UserSetting i:type="StringSetting">
<Name>ActiveDirectoryServer</Name>
<Value>dc.contoso.com</Value>
</UserSetting>
<UserSetting i:type="StringSetting">
<Name>MailboxDN</Name>
(FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=mail.contoso.com/cn=Contoso
Private MDB</Value>
</UserSetting>
<UserSetting i:type="StringSetting">
<Name>PublicFolderServer</Name>
<Value>public.contoso.com</Value>
</UserSetting>
<UserSetting i:type="StringSetting">
<Name>EcpDeliveryReportUrlFragment</Name>
<Value>PersonalSettings/DeliveryReport.aspx?
exsvurl=1&amp;IsOWA=&lt;IsOWA&gt;&amp;MsgID=&lt;MsgID&am
p;gt;&amp;Mbx=&lt;Mbx&gt;</Value>
</UserSetting>
<UserSetting i:type="StringSetting">
<Name>EcpTextMessagingUrlFragment</Name>
<Value>?p=sms/textmessaging.slab&amp;exsvurl=1</Value>
</UserSetting>
<UserSetting i:type="StringSetting">
<Name>EcpPublishingUrlFragment</Name>
<Value>customize/calendarpublishing.slab?
exsvurl=1&amp;FldID=&lt;FldID&gt;</Value>
</UserSetting>
<UserSetting i:type="StringSetting">
<Name>ExternalEwsUrl</Name>
<Value>https://mail.contoso.com/EWS/Exchange.asmx</Value>
</UserSetting>
<UserSetting i:type="StringSetting">
<Name>ExternalMailboxServer</Name>
<Value>mail.contoso.com</Value>
</UserSetting>
<UserSetting i:type="StringSetting">
<Name>GroupingInformation</Name>
<Value>CONTOSO-1</Value>
</UserSetting>
</UserSettings>
</UserResponse>
</UserResponses>
</Response>
</GetUserSettingsResponseMessage>
</s:Body>
</s:Envelope
The following example shows a POX Autodiscover request to get user settings from the
server. The following XML is sent to the server via an HTTP POST.
XML
<Autodiscover
xmlns="https://schemas.microsoft.com/exchange/autodiscover/outlook/requestsc
hema/2006">
<Request>
<EMailAddress>[email protected]</EMailAddress>
<AcceptableResponseSchema>https://schemas.microsoft.com/exchange/autodiscove
r/outlook/responseschema/2006a</AcceptableResponseSchema>
</Request>
</Autodiscover>
The following example shows the POX response that is returned by the server.
XML
<Autodiscover
xmlns="https://schemas.microsoft.com/exchange/autodiscover/responseschema/20
06">
<Response
xmlns="https://schemas.microsoft.com/exchange/autodiscover/outlook/responses
chema/2006a">
<User>
<DisplayName>Mara Whitley</DisplayName>
<AutoDiscoverSMTPAddress>[email protected]</AutoDiscoverSMTPAddress>
<DeploymentId>50817eff-b925-4578-a0db-13bfc635e7a5</DeploymentId>
</User>
<Account>
<AccountType>email</AccountType>
<Action>settings</Action>
<MicrosoftOnline>False</MicrosoftOnline>
<Protocol>
<Type>EXCH</Type>
<Server>[email protected]</Server>
<ServerVersion>73C08204</ServerVersion>
<PublicFolderServer>public.contoso.com</PublicFolderServer>
<AD>dc.contoso.com</AD>
<ASUrl>https://mail.contoso.com/EWS/Exchange.asmx</ASUrl>
<EwsUrl>https://mail.contoso.com/EWS/Exchange.asmx</EwsUrl>
<EmwsUrl>https://mail.contoso.com/EWS/Exchange.asmx</EmwsUrl>
<EcpUrl>https://mail.contoso.com/ecp/</EcpUrl>
<EcpUrl-um>?
rfr=olk&amp;p=customize/voicemail.aspx&amp;exsvurl=1&amp;realm=c
ontoso.com</EcpUrl-um>
<EcpUrl-aggr>?
rfr=olk&amp;p=personalsettings/EmailSubscriptions.slab&amp;exsvurl=1
&amp;realm=contoso.com</EcpUrl-aggr>
<EcpUrl-mt>PersonalSettings/DeliveryReport.aspx?
rfr=olk&amp;exsvurl=1&amp;IsOWA=&lt;IsOWA&gt;&amp;MsgID=
&lt;MsgID&gt;&amp;Mbx=&lt;Mbx&gt;&amp;realm=contoso.
com</EcpUrl-mt>
<EcpUrl-ret>?
rfr=olk&amp;p=organize/retentionpolicytags.slab&amp;exsvurl=1&am
p;realm=contoso.com</EcpUrl-ret>
<EcpUrl-sms>?
rfr=olk&amp;p=sms/textmessaging.slab&amp;exsvurl=1&amp;realm=con
toso.com</EcpUrl-sms>
<EcpUrl-publish>customize/calendarpublishing.slab?
rfr=olk&amp;exsvurl=1&amp;FldID=&lt;FldID&gt;&amp;realm=
contoso.com</EcpUrl-publish>
<EcpUrl-photo>PersonalSettings/EditAccount.aspx?
rfr=olk&amp;chgPhoto=1&amp;exsvurl=1&amp;realm=contoso.com</EcpU
rl-photo>
<EcpUrl-tm>?
rfr=olk&amp;ftr=TeamMailbox&amp;exsvurl=1&amp;realm=contoso.com<
/EcpUrl-tm>
<EcpUrl-tmCreating>?
rfr=olk&amp;ftr=TeamMailboxCreating&amp;SPUrl=&lt;SPUrl&gt;&
amp;amp;Title=&lt;Title&gt;&amp;SPTMAppUrl=&lt;SPTMAppUrl&am
p;gt;&amp;exsvurl=1&amp;realm=contoso.com</EcpUrl-tmCreating>
<EcpUrl-tmEditing>?
rfr=olk&amp;ftr=TeamMailboxEditing&amp;Id=&lt;Id&gt;&amp
;exsvurl=1&amp;realm=contoso.com</EcpUrl-tmEditing>
<EcpUrl-extinstall>Extension/InstalledExtensions.slab?
rfr=olk&amp;exsvurl=1&amp;realm=contoso.com</EcpUrl-extinstall>
<OOFUrl>https://mail.contoso.com/EWS/Exchange.asmx</OOFUrl>
<UMUrl>https://mail.contoso.com/EWS/UM2007Legacy.asmx</UMUrl>
<OABUrl>https://mail.contoso.com/OAB/c21c7bc2-53b3-4ddc-ad89-
1219b486c37c/</OABUrl>
<ServerExclusiveConnect>off</ServerExclusiveConnect>
</Protocol>
<Protocol>
<Type>EXPR</Type>
<Server>mail.contoso.com</Server>
<SSL>Off</SSL>
<AuthPackage>Ntlm</AuthPackage>
<ServerExclusiveConnect>on</ServerExclusiveConnect>
<CertPrincipalName>None</CertPrincipalName>
</Protocol>
<Protocol>
<Type>WEB</Type>
<Internal>
<OWAUrl AuthenticationMethod="Basic,
Fba">https://mail.contoso.com/owa/</OWAUrl>
<Protocol>
<Type>EXCH</Type>
<ASUrl>https://mail.contoso.com/EWS/Exchange.asmx</ASUrl>
</Protocol>
</Internal>
</Protocol>
</Account>
</Response>
</Autodiscover>
Next steps
After you've retrieved the necessary configuration details for your user from the server,
you are ready to communicate with Exchange to do the things your application needs to
do. What you do next depends on how you communicate with Exchange and what you
want to accomplish. If you need some inspiration, and you're using EWS, you might
explore the Exchange 101 code samples for some ideas.
See also
Autodiscover for Exchange
Learn how to get domain settings from an Exchange server by using the Autodiscover
service.
You can retrieve configuration information for an email domain by using the
Autodiscover service. The Autodiscover service provides your application with a process
for connecting to the correct service endpoint for a specific domain.
You can use one of the following development technologies to access the Autodiscover
service:
EWS
If you are using EWS, you can use the following methods to retrieve user settings:
For more information about these methods, see Autodiscover for Exchange.
The EWS Managed API provides an object-based interface for retrieving user settings. If
your client application uses managed code, we recommend that you use the EWS
Managed API. The EWS Managed API interface is better optimized for a simple object
model than the typical autogenerated web service proxy.
If you are using EWS, we suggest that you use the SOAP Autodiscover service, because it
supports a richer set of features than the POX Autodiscover service.
The Autodiscover service returns only the requested configuration settings. The
following table lists the domain configuration settings that the Autodiscover service can
return.
ExternalEwsVersion The version of the Exchange server that hosts the EWS URL.
An account that is authorized to use EWS. For information about how to configure
an account, see Controlling client application access to EWS in Exchange.
7 Note
If you are using the EWS Managed API, you must provide a certificate validation
callback in some circumstances. You may also need a certificate validation callback
with some generated proxy libraries, such as those created by Visual Studio. For
more information, see Validate a server certificate for the EWS Managed API.
Concept Description
Use Autodiscover to find Describes the process used by the Autodiscover service to redirect
connection points
your client application to the correct service endpoint.
If you are using the EWS Managed API, you use the
Microsoft.Exchange.WebServices.Data.ExchangeService class in the
Microsoft.Exchange.WebServices.Data namespace to manage your connection to EWS.
The code examples in this section assume that you reference the following namespaces
in your code:
System.Net
Microsoft.Exchange.WebServices.Data.ExchangeService
C#
// Submit a request and get the settings. The response contains only the
GetDomainSettingsResponse domainresponse =
autodiscoverService.GetDomainSettings(
"domain",
ExchangeVersion.Exchang2013,
DomainSettingName.ExternalEwsUrl,
DomainSettingName.ExternalEwsVersion);
You can parse the collection returned to access each key/value pair. The following
example shows how to parse through each returned element and display the name and
value of each key/value pair.
C#
// Display each retrieved value. The settings are part of a key/value pair.
Alternatively, you can obtain the value of a specific setting. In the following example, the
ExternalEwsUrl setting is to be displayed.
C#
Console.WriteLine(domainresponse.Settings[DomainSettingName.ExternalEwsUrl])
;
XML
<soap:Envelope
xmlns:a="https://schemas.microsoft.com/exchange/2010/Autodiscover"
xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<a:RequestedServerVersion>Exchange2013</a:RequestedServerVersion>
<wsa:Action>https://schemas.microsoft.com/exchange/2010/Autodiscover/Autodis
cover/GetDomainSettings</wsa:Action>
<wsa:To>https://autodiscover.exchange.microsoft.com/autodiscover/autodiscove
r.svc</wsa:To>
</soap:Header>
<soap:Body>
<a:GetDomainSettingsRequestMessage
xmlns:a="https://schemas.microsoft.com/exchange/2010/Autodiscover">
<a:Request>
<a:Domains>
<a:Domain>domain</a:Domain>
</a:Domains>
<a:RequestedSettings>
<a:Setting>ExternalEwsUrl</a:Setting>
<a:Setting>ExternalEwsVersion</a:Setting>
</a:RequestedSettings>
<a:RequestedVersion>Exchange2013</a:RequestedVersion>
</a:Request>
</a:GetDomainSettingsRequestMessage>
</soap:Body>
</soap:Envelope>
The following example shows the XML response that is returned by the server after it
parses the request from the client.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/"
xmlns:a="http://www.w3.org/2005/08/addressing">
<s:Header>
<a:Action
s:mustUnderstand="1">https://schemas.microsoft.com/exchange/2010/
Autodiscover/Autodiscover/GetDomainSettingsResponse</a:Action>
<h:ServerVersionInfo
xmlns:h="https://schemas.microsoft.com/exchange/2010/Autodiscover"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<h:MajorVersion>15</h:MajorVersion>
<h:MinorVersion>0</h:MinorVersion>
<h:MajorBuildNumber>160</h:MajorBuildNumber>
<h:MinorBuildNumber>4</h:MinorBuildNumber>
<h:Version>Exchange2013</h:Version>
</h:ServerVersionInfo>
</s:Header>
<s:Body>
<GetDomainSettingsResponseMessage
xmlns="https://schemas.microsoft.com/exchange/2010/Autodiscover">
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<ErrorCode>NoError</ErrorCode>
<ErrorMessage />
<DomainResponses>
<DomainResponse>
<ErrorCode>NoError</ErrorCode>
<ErrorMessage>No error.</ErrorMessage>
<DomainSettingErrors />
<DomainSettings>
<DomainSetting i:type="DomainStringSetting">
<Name>ExternalEwsUrl</Name>
<Value>https://failover.exchange.microsoft.com/ews/exchange.asmx</Value>
</DomainSetting>
<DomainSetting i:type="DomainStringSetting">
<Name>ExternalEwsVersion</Name>
<Value>15.00.0085.000</Value>
</DomainSetting>
</DomainSettings>
</DomainResponse>
</DomainResponses>
</Response>
</GetDomainSettingsResponseMessage>
</s:Body>
</s:Envelope>
Next steps
Domain settings provide the basic information that your client needs to connect to EWS.
You can use this information to connect to EWS, or you can retrieve additional
configuration settings for an email account from the server. For more information, see
the following article:
See also
Setting up your EWS application
Learn how and when to refresh configuration information for your Exchange connection
by using Autodiscover.
When your EWS application runs for the first time, Autodiscover provides a great way
for you to collect the information you need in order to connect to your user's Exchange
mailbox. But Autodiscover isn't just for first time use. Using Autodiscover on a regular
basis can help keep your application connected by enabling it to respond to changes in
the Exchange deployment.
Autodiscover As When you save the Autodiscover endpoint that returned a successful
endpoint long response, you do not have to repeat the process of generating a list of
as it Autodiscover endpoints and trying them until you get a successful
works response.
NOTE: The EWS Managed API does not support caching the
Autodiscover endpoint.
Setting to Valid Details
cache for…
EWS URL and One By saving the EWS URL and other related settings, you do not have to
any other week send a new Autodiscover request for each EWS request or if your
settings application restarts. However, even if an EWS URL works for your user, a
retrieved from server might be available that is more optimal.
the
Autodiscover For example, the user's mailbox might have moved to a new mailbox
response server, resulting in a new preferred EWS endpoint. We recommend that
you refresh your user settings by sending a new Autodiscover request
after one week has passed since your last Autodiscover request. This
time can be adjusted to meet the requirements of your application.
A Connection-related error occurs AND your cached information was last refreshed
over an hour ago.
If the request succeeds, compare the EWS endpoint in the response with the
cached EWS endpoint, and do the following:
If they are different, use the new EWS endpoint. If you're refreshing to recover
from an error, retry the failed request with the new endpoint.
If they are the same, continue to use the original EWS endpoint. If you're
refreshing to recover from an error, handle the error as appropriate.
If the request fails, start the Autodiscover process from the beginning. After you
get a successful response, replace the cached Autodiscover endpoint with the
Autodiscover endpoint that succeeded and continue to use the new EWS endpoint.
If you do not get a successful response, continue to use the original Autodiscover
endpoint and EWS endpoint. If you're refreshing to recover from an error, handle
the error as appropriate.
Connection-related errors
Refreshing your cached configuration information can help with some errors, but not all.
DNS or network ServiceRemoteException Any error that indicates that the server could
failure errors
not be found or could not be reached might
be resolved by trying Autodiscover.
Example:
ErrorConnectionFailed However, the following specifically indicate
that the configuration information needs to
be updated:
- ErrorConnectionFailed
- ErrorMailboxMoveInProgress
See also
Autodiscover for Exchange
Generate a list of Autodiscover endpoints
Get user settings from Exchange by using Autodiscover
Handling Autodiscover error messages
Article • 01/15/2020 • 5 minutes to read
Learn about the different types of Autodiscover errors and what to do with them.
301 Redirect Resend your request to the URI contained in the "Location" HTTP
or error response header. For details, see Handling redirect errors.
302
401 Unauthorized Because the Autodiscover process involves trying multiple potential
error URLs, you could get this on one URL only to have the next one accept
your credentials. For this reason, you shouldn't consider a single 401
error to indicate that the credentials are invalid. However, if you receive
401 errors from multiple URLs, you might want to prompt the user to
reenter their password (if possible).
Any Invalid Consider the URL that returns any other non-200 status code to be
other Autodiscover invalid, and continue trying the next URL in your list.
non- endpoint
200 error
status
Autodiscover errors
Even if you get a 200 (OK) status code after sending an Autodiscover request, that
doesn't mean that the server sent the information you need. The 200 status only means
that you have an Autodiscover response, and that response might contain an error
within the payload. The location of the error information differs depending on whether
the format is SOAP or POX.
Let's take a look at an example of a response. In this example, the ErrorCode element
under the Response element has a value of "NoError", which indicates overall success.
However, the ErrorCode element under the UserResponse element has a value of
"RedirectAddress", which indicates that an error occurred for that particular user.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/"
xmlns:a="http://www.w3.org/2005/08/addressing">
<s:Header>
<a:Action
s:mustUnderstand="1">https://schemas.microsoft.com/exchange/2010/Autodiscove
r/Autodiscover/GetUserSettingsResponse</a:Action>
<h:ServerVersionInfo
xmlns:h="https://schemas.microsoft.com/exchange/2010/Autodiscover"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<h:MajorVersion>14</h:MajorVersion>
<h:MinorVersion>3</h:MinorVersion>
<h:MajorBuildNumber>136</h:MajorBuildNumber>
<h:MinorBuildNumber>1</h:MinorBuildNumber>
<h:Version>Exchange2010_SP2</h:Version>
</h:ServerVersionInfo>
</s:Header>
<s:Body>
<GetUserSettingsResponseMessage
xmlns="https://schemas.microsoft.com/exchange/2010/Autodiscover">
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<ErrorCode>NoError</ErrorCode>
<ErrorMessage />
<UserResponses>
<UserResponse>
<ErrorCode>RedirectAddress</ErrorCode>
<ErrorMessage>Redirection address.</ErrorMessage>
<RedirectTarget>[email protected]</RedirectTarget>
<UserSettingErrors />
<UserSettings />
</UserResponse>
</UserResponses>
</Response>
</GetUserSettingsResponseMessage>
</s:Body>
</s:Envelope>
The ErrorCode (SOAP) article contains a full list of possible errors. Most of these
indicate an unrecoverable error, but a few warrant special handling.
ErrorCode To handle…
value
RedirectAddress Restarting Autodiscover with a new email address with the email address in the
RedirectTarget (SOAP) element.
RedirectUrl Resending your request to a new URL to the URL in the RedirectTarget
element.
ServerBusy Retry this URL after a small delay. You might wait a set amount of time or
simply move this URL to the end of your list of URLs to try. If you receive this
error multiple times from a URL, you should consider the URL to be invalid.
Redirect errors are contained in the Action (POX) element. Any value of the Action
element other than "settings" indicates a redirect error.
redirectAddr Restarting Autodiscover with a new email address with the email address in the
RedirectAddr (POX) element.
redirectUrl Resending your request to a new URL to the URL in the RedirectUrl (POX)
element.
In this example, the Action element has a value of "redirectAddr", which indicates that a
new request should be sent with the new email address contained in the RedirectAddr
element.
XML
<Autodiscover
xmlns="https://schemas.microsoft.com/exchange/autodiscover/responseschema/20
06">
<Response
xmlns="https://schemas.microsoft.com/exchange/autodiscover/outlook/responses
chema/2006a">
<Account>
<Action>redirectAddr</Action>
<RedirectAddr>[email protected]</RedirectAddr>
</Account>
</Response>
</Autodiscover>
Verify that you have not received an error from this URL with the current email
address before.
If applicable to your application, inform the user of the redirection and get their
permission to follow the redirect.
Send a request to the URL and verify that the SSL certificate presented by the
server is valid.
If the URL passes validation, resend the request to this new URL.
See also
Autodiscover for Exchange
ErrorCode (SOAP)
ErrorCode (POX)
Improving performance when using
Autodiscover for Exchange
Article • 09/15/2021 • 2 minutes to read
Learn about ways to improve the performance of the Autodiscover process in your
application.
There are a lot of reasons to like Autodiscover. Configuring your application to connect
to Exchange with no user intervention is great! If you're reading this article, you
probably already know all the reasons to use and love Autodiscover, so we won't list
them here. Instead, we're going to talk about a potential downside: performance.
Autodiscover isn't inherently a slow process, but it's not inherently fast either. The
Autodiscover process involves a lot of network activity, and that introduces a lot of
potential for delays. The Autodiscover process has three phases; all three have the
potential to affect performance:
On the surface this might not seem like much. However, imagine a scenario where the
Autodiscover endpoint candidate pool is more than one or two URLs, and you don't find
a working one until the last URL in your pool. The delay can become a bit more
noticeable. So, what can you do?
Even if you are already caching, evaluate how long you cache configuration information.
The standard is to refresh Autodiscover information every 24 hours, but you might be
able to extend that time. You should test with your target environments and come up
with a "time-to-live" for your configuration that works for you.
If you're using the POX Autodiscover service, you cannot request specific properties.
See also
Autodiscover for Exchange
ExchangeService class
AutodiscoverService class
Outlook add-ins and EWS in Exchange
Article • 06/14/2022 • 4 minutes to read
Find information about Outlook add-ins and how they work with EWS in Exchange.
Outlook add-ins provide a single interface and programming model that uses web
standards to enable you to create a custom experience for your email users. You can
create mail apps that display contextual or helpful information in an HTML5 frame
hosted in Outlook; for example, a mail app can show a Bing map with an address
highlighted when an email message contains an address. Or when a user is composing a
message, a mail app can show additional information about the recipient, and insert a
standard greeting into the email at the touch of a button.
7 Note
"Outlook" in this article refers to the Outlook rich client, Outlook RT, Outlook Web
App, and OWA for Devices.
The mail apps interface is part of the JavaScript API for Office. You can use the API to
access information in Exchange to enable your mail app to:
Make EWS requests to the Exchange server that hosts the user's mailbox. A mail
app can, for example, get a list of folders so that the user can choose one to store
the message, or show all the items in a conversation, or mark an email message as
junk.
Get a token that enables a third-party service to make EWS requests on behalf of
the user, for example, to extract the attachments from an item, or to get an item
from the Exchange server for further processing.
You can use mail apps to customize the Outlook Web App experience for your users; if,
however, you want to customize the "look and feel" of Outlook Web App, see these
articles on TechNet:
Create a theme for Outlook Web App
Customize the Outlook Web App sign-in, language selection, and error pages
Your organization can install mail apps on an internal server to limit access to authorized
users, or you and other mail app developers can put mail apps on the Office Store for
sale to the general public. Anyone who is running Outlook can download, install, and
use mail apps from the marketplace.
If you want to learn more about creating mail apps, check out the Outlook add-ins
documentation or the Make an EWS request sample.
Like any other application, a mail app needs permissions to work. Your administrator
needs to:
You also need to make sure that your app requests the read/write mailbox permission in
the apps for Office permission model.
When these steps are complete, a subset of folder and item EWS operations are
available for the mail app to use.
Table 1. EWS folder and item operations that mail apps can use
CreateFolder operation
CopyItem operation
FindFolder operation
CreateItem operation
GetFolder operation
FindItem operation
UpdateFolder operation
FindConversation operation
GetConversationItems operation
GetItem operation
MarkAsJunk operation
MoveItem operation
SendItem operation
UpdateItem operation
The service callback token is an opaque token that the third-party service attaches to
the EWS request in a bearer authentication header. The token identifies the mail app
and the mailbox to help secure the EWS request. To learn how to use service callback
tokens, see the Outlook add-ins: Get attachments from an Exchange server sample.
See also
Controlling client application access to EWS in Exchange
Outlook add-ins
Set-WebServicesVirtualDirectory
Outlook add-ins: Make an EWS request
Find information about the Microsoft Graph APIs that you can use to access mail,
calendars, and contacts in Office 365, Exchange Online, or Exchange Server in hybrid
deployments.
Office 365, Exchange Online, and Exchange Server in hybrid deployments provide a new
way to work with email, calendars, and contacts. The Microsoft Graph Mail, Calendar,
and Contact REST APIs provide a powerful, easy-to-use way to access and manipulate
Exchange data. These APIs are based on open standards: OAuth version 2.0 for
authentication, and OData version 4.0 and JSON for data abstraction. This provides the
following advantages:
Because these APIs require OAuth for authentication, your application does not
have to handle or store user credentials.
OAuth makes it possible to request tightly scoped permissions to user data. For
example, you might design your application to request permission and read only a
user's calendar.
Also be sure to check out the quick starts and code samples to see these APIs in action.
See also
Microsoft Graph documentation
On-premises requirements for the REST API
License information
Article • 09/15/2021 • 2 minutes to read
Notwithstanding any other terms that may be applicable to your use of the EWS
Content (defined below), the following restrictions apply to your use of documentation,
software code or other materials made available by Microsoft from this web site that are
associated with Microsoft Exchange Web Services Managed API, version 1.1 or later, or
Exchange Web Services in Exchange Server 2010 SP1 or later versions of the Exchange
Server product, including any pre-release or finalized versions thereof (collectively, "EWS
Content"): you may use the EWS Content solely in programs developed by you that
interoperate with Microsoft Exchange Server.
EWS client design overview for
Exchange
Article • 03/04/2022 • 6 minutes to read
Learn about the design considerations for developing with EWS for Exchange.
This article provides overview information about designing an Exchange Web Services
(EWS) application. You can use this information to determine whether EWS is the right
API for your application, and if so, what type of client implementation you should use.
This article also provides best practice information for designing applications that can
target Office 365, Exchange Online, and versions of Exchange starting with Exchange
2007, in one code base, and important decision points for targeting on-premises
Exchange servers versus targeting Exchange Online.
EWS is the primary client access API for your Exchange client applications. However, in
some cases, you might consider other Exchange APIs for client application development.
For example, Exchange ActiveSync provides the following advantages over EWS:
The XML structure has been tokenized to make Exchange ActiveSync a more
compact protocol.
Exchange ActiveSync contains a policy mechanism to control client access and to
provide other robust enterprise mobile messaging solutions.
7 Note
You need a license in order to develop Exchange ActiveSync clients. To learn about
the differences between Exchange ActiveSync and EWS, see Choosing between
Exchange ActiveSync and Exchange Web Services (EWS) .
MAPI RPC over HTTP is another programmability option for Exchange client
applications. However, MAPI RPC over HTTP does not provide an intuitive interface for
communicating between clients and the server.
For more information about Exchange development technologies, see Explore the EWS
Managed API, EWS, and web services in Exchange.
The following are some of the benefits of using the EWS Managed API:
Note, however, that the EWS Managed API is not a complete solution. Some
functionality is not implemented in the EWS Managed API. Although the EWS Managed
API doesn't implement all EWS functionality, it might be the best choice for your client
application development, for the following reasons:
You might choose to use the EWS web service API instead of the EWS Managed API for
any of the following reasons:
To more, see Get started with EWS Managed API client applications.
7 Note
The EWS Managed API is now available as an open source project on GitHub .
You can use the open source library to:
Because features and feature updates are driven by the schema, we recommend that
you use the earliest common code base that targets the EWS features that you want to
implement in your client application. Many applications can target the
Exchange2007_SP1 version, because the Exchange 2007 SP1 schema contains almost all
the core Exchange functionality for working with items and folders in the Exchange
store. We recommend that you maintain code forks for each EWS schema version. The
following are the schema versions that are currently available.
XML
<xs:simpleType name="ExchangeVersionType">
<xs:restriction base="xs:string">
</xs:restriction>
</xs:simpleType>
In this section
Web service API feature availability in Exchange and the EWS Managed API
EWS schema versions in Exchange
Configuration options for EWS in Exchange
Comparing Exchange Online and Exchange on-premises client programming
EWS throttling in Exchange
Redistribution requirements for the EWS Managed API
Instrumenting client requests for EWS and REST in Exchange
See also
Start using web services in Exchange
Develop web service clients for Exchange
EWS application types
Web service API feature availability in
Exchange and the EWS Managed API
Article • 09/15/2021 • 3 minutes to read
Learn about which EWS and web service API features are available in each version of Exchange and
the EWS Managed API.
Exchange client applications often target many versions of Exchange. For this reason, you might
want to design your application such that you can turn EWS client features on and off based on the
version of Exchange that hosts your users' mailbox. This article provides information about which
service API features are available in different versions of Exchange and the EWS Managed API. Use
this information to design your application to apply broadly to customers running multiple
versions of Exchange.
For detailed information about the differences between versions of Exchange, review the EWS
schema files and the associated reference documentation .
The following table indicates which API features are available in each version of Exchange and
versions of the EWS Managed API starting with version 2.0. Because your application might target
multiple versions of Exchange, it will be helpful for you to know which versions support the
features that your client implements. You can use the Autodiscover service to discover which
version of Exchange a client targets for a user so that you can turn features on and off depending
on whether they are available to your users.
Table 1. Web service feature availability in versions of Exchange and the EWS Managed API
API feature Exchange EWS Exchange Exchange Exchange Exchange Exchange Exchange
Online Managed 2013 2010 SP2 2010 SP1 2010 2007 SP1 2007
(Office API
365)
Ambiguous X X X X X X X X
name
resolution
Apps for X X X
Outlook
management
API feature Exchange EWS Exchange Exchange Exchange Exchange Exchange Exchange
Online Managed 2013 2010 SP2 2010 SP1 2010 2007 SP1 2007
(Office API
365)
Archive mailbox X X X X X
access
Autodiscover X X X X X X X X
(POX)
Autodiscover X X X X X
(SOAP)
Automatic X X X X X X X X
replies (OOF)
Availability X X X X X X X X
Availability X X X X X X
(Rooms)
Bulk transfer X X X X
Contact groups X X X X X X
Conversation X X X X X
management
DateTime X X X X
precision
Delegate X X X X X X X
management
Distribution list X X X X X X X X
expansion
Dumpster X X X X X X
access
eDiscovery
X X X
Enhanced time X X X X X X
zones
Folder X X X X X X X
permissions
Identifier X X X X X X X
conversion
Inbox X X X X X
management
API feature Exchange EWS Exchange Exchange Exchange Exchange Exchange Exchange
Online Managed 2013 2010 SP2 2010 SP1 2010 2007 SP1 2007
(Office API
365)
Mailbox events X X X X X X X X
(pull and push)
Mailbox events X X X X X
(streaming)
Mailtips X X X X X
Password X X X X
expiration
Personas
X X
Post items X X X X X X X
Public folder X X X X X X X
access
Retention X X X
policies
Search X X X X X X
(indexed)
Search (store)
X X X X X X X X
Synchronization X X X X X X X X
Unified Contact X X
Store
Unified X X X X X X X
Messaging Web
Service
Unified X X X X X X
Messaging
(EWS-based)
User X X X X X X
configuration
objects
User photos
X X
You can find more information about the web service features that are available in different
versions of Exchange by reading about the EWS operations , the Autodiscover service , and the
ExchangeService methods .
To learn more
If you want to go deeper to understand the specific differences between Exchange versions, you
can do any of the following:
Explore the EWS schema to investigate the differences between each version of EWS in
more detail.
Download EWSEditor . You can use EWSEditor to specify different target schema versions
and submit queries based on the target schema version.
See also
EWS client design overview for Exchange
Get started with EWS Managed API client applications
What's new in EWS and other web services in Exchange
EWS schema versions in Exchange
Article • 01/15/2020 • 6 minutes to read
Learn about the EWS schema and how to design your application to work with it, as well
as the features that are available with each schema version, and how the schema relates
to the Exchange service version.
The EWS schema defines the data structures that can be sent to and returned by
Exchange. Each new version of Exchange that contains a significant change to EWS
functionality will contain a new schema. EWS and the EWS schema are both backward,
and in some cases, forward compatible - applications designed against earlier versions
of EWS will work, in most cases, with later versions of EWS, and applications that target
later versions of EWS will work if the same functionality was included in an earlier
version. This article will help you understand the role of the EWS schema, how schema
versioning works, the relationship between the schema version and the service version,
and how to design your application to work with the EWS schema.
Defines the feature set that is available to a client. A client can get the list of the
supported schema versions by using the SOAP Autodiscover service. The client can
then determine which features it can access, because each schema version
represents an EWS feature set. Each new schema released for EWS contains of the
schema entities from the previous version plus the schema definitions for any new
functionality. This way, EWS supports applications that target an earlier version of
EWS.
Provides a general description of the API contract. You can use this contract to
determine the data structures that can be sent to and received from Exchange.
C#
PropertySet props;
else
return props;
Version your requests with the earliest version of the EWS schema that supports
the functionality you want to use. This will make your client applicable to a larger
number of potential Exchange servers. This is less important if you're developing a
line-of-business application to target your organization's servers only, but is very
important if you're building an application for a wider Exchange audience.
Exchange The latest schema Includes all the features in the current version of Exchange in
Online version. addition to any new features that are added for online clients.
2013 SP1
The following features were introduced in Exchange 2013 SP1:
Exchange Exchange2013 Includes all features introduced in Exchange 2007 and Exchange
2013 2010.
Archiving
eDiscovery
Personas
Retention policies
Unified Contact Store
User photos
Exchange Exchange2010_SP2 Includes all the features introduced in Exchange 2010 SP1.
2010 SP2
The following features were introduced in Exchange 2010 SP2:
2010 SP1
The following features were introduced in Exchange 2010 SP1:
2010
The following features were introduced in the initial release
version of Exchange 2010:
2007 SP1
The following features were introduced in Exchange 2007 SP1:
Delegate management
Folder permissions
Public folders
Post items
ID conversion
Product Associated Features
version schema version
Exchange Exchange2007 The following features were introduced in the initial release
2007 version of Exchange 2007:
Full access to items, folders, and attachments (Create, Get,
Update, Delete)
Availability
Out of Office settings
Notifications
Synchronization
Name resolution
Distribution list (DL) expansion
Search
While the EWS schema defines the contract, in some scenarios, the service version is the
only way for a client to determine how it is supposed to interact with the service. Service
behavior changes that aren't reflected in the schema can only be determined by the
service version returned in all EWS responses. For example, when public folders were
redesigned in Exchange 2013, the operations that are used to move and copy public
folders changed. If you designed a client to copy public folders in Exchange 2010, you
would need to update it to use different operations to get the same result in Exchange
2013.
Before the EWS schema is updated for a new version, the current version of the schema
is forked and renamed using the following convention:
<schemaname>-<majorserverversion><servicepack>.xsd
The original file name then represents the latest schema. All new features are added to
the latest schema, with the exception of updates and fixes to the earlier versions of the
schema.
See also
EWS schema versions in Exchange
Autodiscover for Exchange
Develop web service clients for Exchange
Configuration options for EWS in
Exchange
Article • 09/15/2021 • 2 minutes to read
Find information about configuration settings that your EWS client can access, and the
configurable Exchange settings that can affect your EWS client.
Many configuration settings can affect what your EWS client application can do. These
configuration settings are either:
A client can access settings on Exchange Online, Exchange Online as part of Office 365,
and an on-premise Exchange server. All on-premise Exchange server settings are
available to Exchange administrators; however, not all of these settings are available to
Exchange Online tenant administrators. This article describes which configuration
settings clients, Exchange Server administrators, and Exchange Online tenant
administrators can access.
Table 1. Web service features that provide configuration options for EWS clients
Feature Description
Autodiscover The Autodiscover service provides your client applications with configuration
service information so that your client can automatically configure itself to communicate
with EWS.
Custom You can use one of several options to store custom configuration information in
configuration your mailbox: user configuration objects, custom items, or extended properties.
information
stored in a
mailbox
Feature Description
Delegate EWS provides CRUD operations for managing delegate access to a mailbox.
management Delegates are users who have been given permission to access another user's
mailbox.
- ExchangeService.AddDelegates
- ExchangeService.GetDelegates
- ExchangeService.UpdateDelegates
- ExchangeService.RemoveDelegates
eDiscovery eDiscovery client applications can get search configuration information that
search includes an eDiscovery search query, a list of searchable mailboxes, and the
configuration identifier of in-place mailbox holds.
Folder Folder permissions limit what a user can do in a public folder, and in the case of
permissions delegate access, what a delegate can do in another user's folder. You can use
either the Folder.Bind method or the GetFolder operation to access the
permission set of every folder, including public folders, shared private folders, or
folders to which users have delegate access.
Set-
WebServicesVirtualDirectory
Autodiscover No Get-
AutodiscoverVirtualDirectory
Set-
AutodiscoverVirtualDirectory
eDiscovery
Retention hold
See also
Get service configuration information by using EWS in Exchange
EWS client design overview for Exchange
Start using web services in Exchange
Develop web service clients for Exchange
Get service configuration information
by using EWS in Exchange
Article • 09/15/2021 • 2 minutes to read
Find out how to get service configuration information for UM, policy nudges, mail tips,
and protection rules from EWS in Exchange.
Does your EWS application work with Unified Messaging (UM), policy nudges, mail tips,
or protection rules? If so, your application will need to call the GetServiceConfiguration
operation to get the service configuration information that it needs. The
GetServiceConfiguration operation returns configuration information that is specific to
each of these EWS features.
7 Note
Mail tips A value that indicates whether mail tips are enabled.
The maximum number of recipients per request.
The maximum message size.
The large audience threshold.
A value that indicates whether the number of external recipients is shown.
A list of internal domains.
A value that indicates whether policy tips are enabled.
The large audience cap threshold for indicating whether your mail is
considered to have a large number of recipients.
C#
// XML for the GetServiceConfiguration request SOAP envelope for mail tips
configuration information.
"<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-
instance\"\n" +
"
xmlns:m=\"http://schemas.microsoft.com/exchange/services/2006/messages\"\n"
+
"
xmlns:t=\"http://schemas.microsoft.com/exchange/services/2006/types\" \n" +
"
xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"\n" +
" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\">\n" +
" <soap:Header>\n" +
" </soap:Header>\n" +
" <soap:Body>\n" +
" <m:GetServiceConfiguration>\n" +
" <m:ActingAs>\n" +
" <t:EmailAddress>[email protected]</t:EmailAddress>\n" +
" <t:RoutingType>SMTP</t:RoutingType>\n" +
" </m:ActingAs>\n" +
" <m:RequestedConfiguration>\n" +
" <m:ConfigurationName>MailTips</m:ConfigurationName>\n" +
" </m:RequestedConfiguration>\n" +
" </m:GetServiceConfiguration>\n" +
" </soap:Body>\n" +
"</soap:Envelope>";
byte[] payload =
System.Text.Encoding.UTF8.GetBytes(getServiceConfigurationRequest);
try
request.AllowAutoRedirect = false;
request.Credentials = creds;
request.Method = "POST";
request.ContentType = "text/xml";
requestStream.Write(payload, 0, payload.Length);
requestStream.Close();
if (response.StatusCode == HttpStatusCode.OK)
reader.Close();
responseStream.Close();
else
catch (WebException e)
Console.WriteLine(e.Message);
}
Next steps
After you request service configuration information, use the XmlDocument class to
load the response XML so that you can parse it. Then, depending on your scenario, you
can do one of the following:
Use the GetMailTips operation to get mail tips for client applications to display
to users.
If UM is enabled, learn about how to play mailbox items over your phone.
See also
Configuration options for EWS in Exchange
Setting up your EWS application
Develop web service clients for Exchange
Comparing Exchange Online and
Exchange on-premises client
programming
Article • 09/15/2021 • 5 minutes to read
Learn about the design considerations for creating an EWS Managed API or EWS client
application that works against Exchange Online and Exchange on-premises.
For the most part, clients and the web services in Exchange they target will work the
same way regardless of whether the target is an Exchange Online, Exchange Online as
part of Office 365, or Exchange on-premises server. There are, however, some
exceptions, and you'll want to make sure that your application can handle them. Use the
information in this article to help you design your client to target both Exchange Online
and Exchange on-premises.
SOAP Autodiscover
Exchange Online and versions of Exchange on-premises starting
with Exchange 2010
Service connection point Versions of Exchange on-premises starting with Exchange 2007
(SCP) lookup
In addition to the client configuration information, that SOAP and POX Autodiscover
also return the Exchange service version and indicate whether the service is hosted by
Exchange Online. This information is returned in different elements, depending on the
type of Autodiscover you use.
Table 2. Autodiscover elements that return service version and Exchange Online
hosting information
Autodiscover XML element that contains XML element that indicates whether the
service type service version user has an Exchange Online account
SOAP Setting (SOAP) element with Setting (SOAP) element with the
Autodiscover the CasVersion text value. UserMSOnline text value.
Autodiscover
Ensure that your client captures this information so that it can target the feature set that
is available on the Exchange server. This can be useful to determine whether your client
can expect different behavior based on whether the user's mailbox is located in an
Exchange Online or Exchange on-premises organization.
Tip
You can use the EWSRelentless tool to perform an EWS load test. You can use
this tool with a test server, the EWS protocol logs, EWS performance counters,
service events, and the EWS throttling settings to better understand how EWS
performs under load.
Throttling settings
Authentication settings
For details about the cmdlets that are available for Exchange Online, see PowerShell
cmdlets in Exchange Online . For more about cmdlets that are available for Exchange
on-premises, see Exchange 2013 cmdlets .
Authentication
Clients can authenticate with Exchange Online by using either Basic or OAuth. Versions
of Exchange on-premises starting with Exchange 2013 use NTLM by default; however,
it's possible to configure Exchange on-premises to use Basic authentication as well.
The following EWS Managed API functionality is only applicable to Exchange Online:
Basic pre-authentication
Because feature availability can change, we recommend that you check the Exchange
Online plans and Exchange Server editions to evaluate how feature availability might
affect your client. You can also design your client to check feature availability by using
the GetServiceConfiguration operation or by sending test requests for the operations
that implement the features. If the feature isn't available, the response from the server
will indicate as such.
Other considerations
You can do the following when targeting Exchange on-premises but not Exchange
Online:
Create a client that is installed on the Exchange server.
Install custom transport agents that can affect the delivery and content of
messages you create and send with EWS and other clients.
See also
EWS client design overview for Exchange
Comparing Exchange Online and Exchange Server 2013
Compare all Office 365 for business plans
EwsRelentless - EWS load generation tool
Web service API feature availability in Exchange and the EWS Managed API
EWS throttling in Exchange
EWS throttling in Exchange
Article • 02/11/2022 • 25 minutes to read
Learn about the throttling policies that affect EWS when you are using Exchange.
The article provides information about EWS throttling in Exchange Online, Exchange
Online as part of Office 365, and on-premises versions of Exchange starting with
Exchange 2010. Throttling in Exchange helps to ensure server reliability and uptime by
limiting the amount of server resources that a single user or application can consume.
Throttling is a reactive response to overuse of system resources that may affect service
reliability and functionality. Exchange constantly monitors the health of critical
infrastructure resources, such as mailbox databases. When high load factors are
detected that degrade the performance of these resources, EWS connections are
throttled proportionally based on the amount that each caller has contributed to this
high load condition. The result is that a user may be within their throttling limit and still
experience slowdowns until the health of the resource is back to operational levels.
Each client access protocol in Exchange, including EWS, has a throttling policy. When
you design applications that use EWS, it is important to account for throttling policies,
to help ensure application reliability and the health of your Exchange server. This article
identifies the different throttling policies and service limits for EWS, whether you are
targeting Exchange Online or versions of Exchange on-premises starting with Exchange
Server 2010. As applicable, this article also identifies differences in throttling policies in
different versions of Exchange.
) Important
If you are an application developer, you need to factor throttling into your application
design. Different versions of Exchange have different default values for the EWS
throttling parameters. Client and service applications that are designed to access
different versions of Exchange will need to account for these settings, whether they be
default values, custom values set by an Exchange administrator, or, as for Exchange
Online, set by default and not discoverable. Because throttling parameter values cannot
be discovered programmatically, your client design specifications should include a plan
for the application to adapt to different potential throttling limits. When you design
multi-threaded applications that will access a large number of mailboxes, or when many
clients are accessing the same mailbox, consider the limits on concurrency that the
default policy applies to Exchange.
The CPUStartPercent throttling policy can affect EWS performance when you are
running Exchange 2010. When the average CPU utilization of Exchange processes
running on the Client Access server — including, but not limited to, the EWS process —
exceeds the value specified by this policy, inbound requests will be delayed to reduce
CPU utilization. You cannot change the value of this policy, but knowing about it can
help you troubleshoot performance issues. The sampling logic the Client Access server
performs for this value is an average over a 10 second rolling window. This allows the
process to respond appropriately to quick spikes in CPU utilization. When this threshold
is exceeded, inbound connections to EWS are delayed. This delay is capped at 500
milliseconds (msecs) at a theoretical 100% CPU usage per EWS request. If a batch EWS
request to get 100 items is passed, the server will check the CPU usage 100 times (once
per item) for a maximum delay of 50 seconds. The delay time is linearly proportional to
CPU usage. At CPUStartPercent, the delay is 0 (a thread yield) and it increases linearly
up to 500 msec at 100% CPU usage. Because throttling policies apply to all Exchange
users, it's unlikely that CPU usage would exceed the CPUStartPercent limit on an
Exchange Client Access server, because individual users or applications cannot gain
enough CPU utilization to affect server operation.
The following table lists the throttling policy parameters that affect applications that use
EWS.
U Caution
Do not set throttling polices to null. This will set the policy to equal unlimited,
which indicates that a throttling policy isn't set.
Use the following cmdlets to display throttling polices for an on-premises Exchange
Server deployment:
Use the following command to show the default throttling policy for Exchange 2010.
Use the following command to show the global throttling policy (which equates to the
default throttling policy in Exchange 2010) in Exchange 2013.
Use the following command to show the throttling policy associated with a user in
Exchange 2010 or Exchange 2013. Replace the user name [email protected] with the
user name of the target user for whom you want to get throttling policy information.
PowerShell
PS C:\>Get-ThrottlingPolicyAssociation [email protected]
RunspaceId : 72153d6-9dce-2fae-8dbd-5ca5f760g2df
ObjectId : john
ThrottlingPolicyId :
Name : john
Identity : FHXB-28178dom.contoso.com/Users/john
IsValid : True
NeedsToSuppressPii : False
DistinguishedName : CN=john,CN=Users,DC=FHXB-
28178dom,DC=contoso,DC=com
Guid : 2c10dab6-de28-1937-ad8g-535832613a08
7 Note
When the ThrottlingPolicyId property is blank, the default policy is applied to the
mailbox.
You can set throttling policy on an Exchange server by using the Set-ThrottlingPolicy
and Set-ThrottlingPolicyAssociation cmdlets. You can create and remove non-default
throttling policies by using the New-ThrottlingPolicy and Remove-ThrottlingPolicy
cmdlets.
Tip
When impersonation is used, the budgets for all the throttling thresholds apply
differently depending on the version of Exchange. The budget is either calculated
against the account that is impersonated, or the service account. If your application is
multi-threaded and makes concurrent requests against multiple mailboxes, you should
consider how the throttling threshold will affect your application's performance. In
general, be aware of the following limits on service accounts when you create a service-
based application that uses impersonation to access all mailboxes:
When you use Impersonation, the service account has a separate budget for the
following policy parameters:
EWSMaxConcurrency
EWSPercentTimeInAD
EWSPercentTimeInCAS
EWSPercentTimeInMailboxRPC
EWSMaxSubscriptions
EWSFastSearchTimeoutInSeconds
EWSFindCountLimit
The EWSMaxConcurrency budget is shared for the service account and the
account being impersonated for all connections to versions of Exchange earlier
than Exchange 2010 Service Pack 2 (SP2) Update Rollup 4 (RU4). Starting with
Exchange 2010 SP2 RU4, and including Exchange Online, the service account
access uses a separate budget from the user EWSMaxConcurrency budget. For
more information about the update to the Exchange concurrent connection
throttling policy for EWS, see Description of Update Rollup 4 for Exchange Server
2010 Service Pack 2 .
For example, let's assume that EWSMaxConcurrency is equal to five. A user can
have five open pull notification connections, while an service account can have five
concurrent pull notification connections against the user's mailbox at the same
time as the user.
Exchange Charged against the calling account. Starting with Exchange 2010 SP2 RU4,
2010 SP2 the budget is charged against the target mailbox.
To determine the optimum batch size for an application, perform unit testing using
various input sets to ensure that the application does not encounter any errors in a
production environment.
Both of these types of searches can result in timeouts. When possible, use the Exchange
Search service because these searches are often targeted against mailbox indexes and
use AQS queries. The following example shows how to perform an AQS search of the
Inbox by using EWS and the Exchange Search service.
C#
FindItemsResults<Item> fiitems =
service.FindItems(WellKnownFolderName.Inbox, "subject:football", iv);
If you can't use an AQS search, avoid using overly complex search filters. Also try to
avoid creating search filters based on computed values if the query involves extended
MAPI properties. AQS search was introduced in Exchange 2010.
7 Note
The first time you run a complex Exchange store search query, it runs very slowly
and may time out. After that, the query will respond more quickly. For more
information about the backend Exchange server processes that occur during
Exchange store search queries, see Understanding the Performance Impact of
High Item Counts and Restricted Views on TechNet. Using a SearchFilter creates
a dynamic restriction that helps similar queries in the future, but because these
restrictions are dynamic in nature, they are not permanent or reliable, and are
deleted after a maximum of three days.
The EWSFindCountLimit policy parameter specifies the maximum number of items from
the results of a FindItem or FindFolder operation that can exist in memory on a Client
Access server at the same time for one user. Every item or folder that EWS processes in a
FindItem or FindFolder request is counted against the budget specified in the
EWSFindCountLimit element. When the response is sent back to the requester, the find
count charge for the current call is released. The response the server returns to a
requester when the budget is exceeded is based on the RequestServerVersion element
value and whether the requester specified paging. When the value of the
RequestServerVersion element indicates Exchange 2010 or an earlier version of
Exchange, the server sends a failure response with error code ErrorServerBusy. If the
value of the RequestServerVersion element indicates a version of Exchange starting with
Exchange 2010 SP1 or Exchange Online, and the client is using paging, EWS may return
a partial result set instead of an error. Your application should expect that EWS might
not return all items. If the value of the IncludesLastItemInRange element is false, the
application should make another FindItem or FindFolder request with the new offset
and continue until the IncludesLastItemInRange element returns true.
When you use a FindItem or FindFolder operation, it is important to use paging. The
EWS Managed API enforces the use of paging, but if you are using other methods, such
as EWS proxy objects or raw SOAP, you need to explicitly set paging. The following
example shows how to use paging in the EWS Managed API.
C#
ItemView iv = new ItemView(1000);
FindItemsResults<Item> fiFindItemResults =
service.FindItems(WellKnownFolderName.Inbox, iv);
7 Note
The default policy in Exchange limits the page size to 1000 items. Setting the page
size to a value that is greater than this number has no practical effect.
Applications should also account for the fact that the EWSFindCountLimit throttling
parameter value may result in a partial result set being returned for applications that
make concurrent requests. The following example shows how to use the MoreAvailable
property in the EWS Managed API to ensure that all results are included in a query.
C#
service.TraceEnabled = false;
Do
The EWSFindCountLimit policy parameter specifies the maximum result size a FindItem
or FindFolder operation can use on a Client Access server at the same time for one user.
If an application (or potentially multiple applications) makes two concurrent EWS
FindItem requests that return 100 items each for a specific user, the
EWSFindCountLimit charge against that specific user's budget will be 200. When the
first request returns, the budget drops to 100, and when the second request returns, the
budget drops to zero. If the same application were to make two simultaneous requests
for 1000 items, the budget value would be 2000 items, which exceeds the
EWSFindCountLimit value. If the user's budget for items drops below zero, the next
request results in an error until the user's budget recharges to one or more.
The EWSMaxConcurrency policy parameter can also be an issue for EWS notifications;
for example:
When EWS increments the connection count for the owner of the subscription
while the notification is being generated by a push subscription.
EWSPercentTimeInAD
EWSPercentTimeInCAS
EWSPercentTimeInMailboxRPC
The values specified in the PercentTimeIn policy parameters indicate the amount of
time that one thread making one request is allocated. For example, assuming a
EWSPercentTimeInCAS value of 90, if a process makes two concurrent requests that
spend 54 seconds each running code on the Client Access server, the process uses 108
seconds in a 60 second window. This represents an EWSPercentTimeInCAS parameter
value of 180 percent.
7 Note
The amount of CPU time an application may take in a 60-second period might exceed
these throttling limits; therefore, it is important to consider the volume and type of
requests that are being made. For example, a large batch of ResolveNames operations
that are made simultaneously can exceed the EWSPercentTimeInAD policy parameter
value. The policy values that are contained in the default throttling policy are designed
to allow most EWS applications to function without issue; however, when multi-
threaded high-volume applications place a large volume of requests on one particular
Client Access server, this can create problems. To avoid this, consider limiting the size of
batches that are going to execute against the server.
7 Note
In general, we recommend that you do not use EWS to send bulk email. Use an
SMTP host that specializes in bulk mail services to submit frequent large bulk email
messages.
The MessageRateLimit policy parameter specifies the number of messages per minute
that can be submitted by any Exchange client, including EWS. By default, this policy is
set to 30 messages per minute in Exchange Online (it's unlimited in Exchange Server).
For ordinary users in Exchange Online, this rate limit is generally sufficient. However,
applications that send large batches of email messages, for example as part of an
invoicing program, can run into problems. When this policy limit is exceeded, message
delivery for the mailbox is delayed. Specifically, messages will appear in the Outbox or
Drafts folder for longer periods of time when a user or application submits a larger
number of messages than the value specified by the MessageRateLimit parameter. Be
sure to consider this when you are developing a delivery tracking system, especially if
your application uses a mailbox that users connect to via Outlook. When deferred items
are stored in the Outbox or drafts folder, users might interpret that as an error.
The RecipientRateLimit policy parameter specifies the limit on the number of recipients
that a user can address in a 24-hour period. For example, if this value is set to 500, it
means that a single Exchange mailbox account can send messages to no more than 500
recipients each day. This limit applies to messages to recipients that are inside and
outside the organization. This default limit might cause problems for some line-of-
business applications that do end-of-month invoice runs and need to send messages to
more than this number of recipients. You can use external services that enable batch
processing of messages or separate on-premises outbound relay solutions to work
around this limitation.
The ForwardeeLimit policy parameter specifies the maximum number of recipients that
messages can be forwarded or redirected to by means of Inbox rules. This parameter
doesn't limit the number of messages that can be forwarded or redirected to the
recipients.
ErrorServerBusy EWSPercentTimeInMailboxRPC
Occurs when the server is
EWSPercentTimeInCAS
busy. The
EWSPercentTimeInAD BackOffMilliseconds value
returned with
ErrorServerBusy errors
indicates to the client the
amount of time it should
wait until it should resubmit
the request that caused the
response that returned this
error code.
The following table lists the HTTP status codes that are returned by throttling errors.
HTTP Description
status
code
HTTP Indicates that EWS requests are queuing with IIS. The client should delay sending
503 additional requests until a later time.
HTTP Indicates an internal server error with the ErrorServerBusy error code. This indicates that
500 the client should delay sending additional requests until a later time. The response may
contain a back off hint called BackOffMilliseconds. If present, the value of
BackOffMilliseconds should be used as the duration until the client resubmits a request.
Find out how you can redistribute the EWS Managed API assemblies with your
application.
As you design your EWS Managed API application, you'll also want to consider how you
will release it to your users.
The EWS Managed API was designed such that you can download it and distribute
it with your application that targets an Exchange server. Alternatively, your
application can download the EWS Managed API.
You can use the EWS Managed API to communicate with an Exchange server
running Exchange Online, Exchange Online as part of Office 365, or an on-
premises version of Exchange starting with Exchange Server 2007.
In versions of the EWS Managed API starting with version 2.1, you can install the
API in the Global Assembly Cache (GAC). The MSI will automatically add the DLL to
the GAC and will be accessible on per computer basis, not on a per user basis.
The license terms are included in the EWS Managed API download. Review the terms for
the authoritative information about what you can do with the EWS Managed API.
See also
EWS client design overview for Exchange
Learn about the HTTP headers in EWS and REST requests and responses that can help
you monitor and troubleshoot your Exchange application.
Has this ever happened to you? A user of your application reports an unexpected error.
You want to investigate, but you can't reproduce it. The error has disappeared for the
user, and you're left with very little actionable data. Frustrating, isn't it? Let's look at how
you can proactively prepare for this scenario and hopefully avoid frustration in the
future.
User-Agent ExchangeService.UserAgent
Set this to a unique value that
identifies your client application.
client- ExchangeService.ClientRequestId
Set this to a different unique value
request-id for every request your application
sends.
X- ExchangeService.SendClientLatencies
Used to report EWS latencies to
ClientStatistics Microsoft if your application is
accessing Exchange Online or
Exchange Online as part of Office
365.
7 Note
If you are using the EWS Managed API, there is no direct equivalent for the HTTP
headers. However, all HTTP response headers can be accessed via the
ExchangeService.HttpResponseHeaders property.
id
This header is only present if the request contains the return-client-request-id
header with a value of true.
X-FEServer The FQDN of the Client Access server that processed the request.
x-ms- This header is only applicable if OAuth authentication is used in the request.
diagnostics
It contains an explicit error code that specifies why an OAuth authentication
failed.
The errorId field is an integer, and the error_type field is the string
representation of that integer, as follows:
2000000: invalid_signature
2000001: invalid_token
2000002: token_expired
2000003: invalid_resource
2000004: invalid_tenant
2000005: invalid_user
2000006: invalid_client
2000007: internal_error
2000008: invalid_grant
milliseconds>,SoapAction=<EWS operation>
We maintain reports for these latencies and use them to continuously improve EWS
services in Exchange Online.
Next steps
After you've added client instrumentation to your application, you're better prepared if
something goes wrong. If that happens, you can use your instrumentation data to
troubleshoot your application.
See also
EWS client design overview for Exchange
Trace requests and responses to troubleshoot EWS Managed API applications
Tools and resources for troubleshooting EWS applications for Exchange
Develop web service clients for
Exchange
Article • 09/14/2022 • 2 minutes to read
Find information to help you develop EWS and web service client applications for
Exchange.
The articles in this section explain how to use EWS and web services in your Exchange
client applications for Exchange Online, Exchange Online as part of Office 365, and on-
premises versions of Exchange starting with Exchange 2013, and provide examples that
show you how to perform specific tasks.
In this section
Archiving in EWS in Exchange
Identifiers in Exchange
See also
Explore the EWS Managed API, EWS, and web services in Exchange
Start using web services in Exchange
EWS client design overview for Exchange
Web services reference for Exchange
Archiving in EWS in Exchange
Article • 09/15/2021 • 2 minutes to read
Archive mailboxes are secondary mailboxes that are associated with a user. Archive
mailboxes are typically used to manage email storage limits. For example, older email
items might periodically be moved from the Inbox to the archive mailbox.
Exchange Online, Exchange Online as part of Office 365, and Exchange Server 2013
introduce two new Exchange Web Services (EWS) operations that you can use to archive
a set of mail items from a primary mailbox. Archiving Inbox items in this way preserves
the folder hierarchy of the items. In addition, archive mailboxes can now be stored either
locally on a client, or remotely, in a way that is mostly opaque to a user, by using a
folder path to point to the contents of the archive.
ArchiveItem
Moves an item from the primary mailbox to the archive mailbox.
CreateFolderPath
Creates a URI that points to the storage location for the archive mailbox.
See also
Develop web service clients for Exchange
Learn about attachments and how your EWS Managed API or EWS in Exchange client
represents them.
Usually, attachments are associated with email items, but in fact, all EWS items — email
messages, calendar items, contacts, tasks — can include attachments.
Types of attachments
EWS categorizes attachments into two groups: file attachments and item attachments.
File attachments: Any file, such as a .txt, .jpg, .zip, .pdf, or even a .msg file. A file
attachment only has a few properties, one of which is the base-64 encoded
content of the file.
When you add or retrieve attachments from an item, you'll do it differently depending
on whether it's a file attachment or an item attachment. For example, to add a file
attachment to an item, you can just pass in the location of the file. To add an existing
item as an item attachment, you actually have to copy the properties or the MIME
content of the existing item to a new item attachment; you can't just bind to the existing
item. So distinguishing between the two types of attachments is important. More details
about the differences between item attachments and file attachments are discussed in
the articles In this section.
Attachment ID Attachment.Id
AttachmentId
ItemAttachment<TItem>
Inline attachments
Inline attachments are a special breed of attachment. Both file attachments and item
attachments can be inline attachments. An inline attachment appears as part of the
body content and retains its position relative to the rest of the content in the item.
Note that the EWS Managed API HasAttachments property and the EWS
HasAttachments element do not reflect the existence of inline attachments, and that's
why inline attachments are also called hidden attachments. So if you set the EWS
Managed API IsInline property or the EWS IsInline element to true, and the item has
no other attachments, HasAttachments will be set to false. If your client uses
HasAttachments to populate an attachment indicator or icon on an email, be aware that
the icon will not appear for emails with inline attachments.
In this section
Add attachments by using EWS in Exchange
See also
Develop web service clients for Exchange
Learn how to create new items with attachments, or add attachments to existing items
by using the EWS Managed API or EWS in Exchange.
You can add file attachments or item attachments to new or existing items by using the
EWS Managed API or EWS. If you are using the EWS Managed API, you use the same
method to add attachments to new or existing items; however, the method changes if
you're using a file or item attachment. Conversely, if you are using EWS, you use the
same operation to add either a file or item attachment to an item, but the operation
changes if you're adding the attachment to a new or existing item.
Table 1. EWS Managed API methods and EWS operations for adding attachments
This code example shows the four ways in which a file attachment can be added to an
item by using the EWS Managed API:
By using a stream.
Note that the item attachment in this example is created at the same time as the email
message. To add an existing email message as an item attachment, see Add an existing
item to a new email by using the MimeContent and the EWS Managed API.
This example assumes that service is a valid ExchangeService object and that the user
has been authenticated to an Exchange server.
C#
message.ToRecipients.Add("[email protected]");
message.ToRecipients.Add("[email protected]");
message.Attachments.AddFileAttachment("C:\\temp\\FileAttachment.txt");
message.Attachments.AddFileAttachment("SecondAttachment.txt",
"C:\\temp\\FileAttachment2.txt");
// Add a file attachment by using a byte array.
message.Attachments.AddFileAttachment("ThirdAttachment.jpg", theBytes);
ItemAttachment<EmailMessage> itemAttachment =
message.Attachments.AddItemAttachment<EmailMessage>();
itemAttachment.Item.ToRecipients.Add("[email protected]");
itemAttachment.Item.ToRecipients.Add("[email protected]");
// Send the mail and save a copy in the Sent Items folder.
message.SendAndSaveCopy();
Note that the item attachment in this example is created at the same time as the email
message. To add an existing email message as an item attachment, see Add an existing
item to a new email by using the MimeContent and the EWS Managed API.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:CreateItem MessageDisposition="SaveOnly">
<m:Items>
<t:Message>
<t:Attachments>
<t:FileAttachment>
<t:Name>FileAttachment.txt</t:Name>
<t:IsInline>false</t:IsInline>
<t:IsContactPhoto>false</t:IsContactPhoto>
<t:Content>VGhpcyBpcyBhIGZpbGUgYXR0YWNobWVudC4=</t:Content>
</t:FileAttachment>
<t:FileAttachment>
<t:Name>SecondAttachment.txt</t:Name>
<t:IsInline>false</t:IsInline>
<t:IsContactPhoto>false</t:IsContactPhoto>
<t:Content>VGhpcyBpcyB0aGUgc2Vjb25kIGZpbGUgYXR0YWNobWVudC4=
</t:Content>
</t:FileAttachment>
<t:FileAttachment>
<t:Name>ThirdAttachment.jpg</t:Name>
<t:IsInline>false</t:IsInline>
<t:IsContactPhoto>false</t:IsContactPhoto>
<t:Content>nAoAXNIZMVEZs5GKhdzRcLH/9k=</t:Content>
</t:FileAttachment>
<t:FileAttachment>
<t:Name>FourthAttachment.txt</t:Name>
<t:IsInline>false</t:IsInline>
<t:IsContactPhoto>false</t:IsContactPhoto>
<t:Content>obWVudC4=…</t:Content>
</t:FileAttachment>
<t:ItemAttachment>
<t:IsInline>false</t:IsInline>
<t:Message>
<t:ToRecipients>
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:ToRecipients>
</t:Message>
</t:ItemAttachment>
</t:Attachments>
<t:ToRecipients>
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:ToRecipients>
</t:Message>
</m:Items>
</m:CreateItem>
</soap:Body>
</soap:Envelope>
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="939"
MinorBuildNumber="12"
Version="V2_11"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:CreateItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:CreateItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:Message>
<t:ItemId Id="upV4AAA="
ChangeKey="CQAAABYAAAAFI5DJmZv+TLtyLOLIF1S5AAAXuktU"
/>
<t:Attachments>
<t:FileAttachment>
</t:FileAttachment>
<t:FileAttachment>
</t:FileAttachment>
<t:FileAttachment>
</t:FileAttachment>
<t:FileAttachment>
</t:FileAttachment>
<t:ItemAttachment>
</t:ItemAttachment>
</t:Attachments>
</t:Message>
</m:Items>
</m:CreateItemResponseMessage>
</m:ResponseMessages>
</m:CreateItemResponse>
</s:Body>
</s:Envelope>
1. If you're working with email messages specifically, you can copy the value of the
MimeContent property from the email into the newly created item attachment.
You will lose some properties during this process, such as follow up flags and
categories, but it works great for standard email messages.
2. If you need full fidelity for all item types, you can bind to an existing item and copy
all the properties and extended properties into the new attachment.
The following code example shows the first approach, copying the MimeContent into
the new item attachment. Following this example is a procedure that shows how you
can modify the code to use the second approach.
This example assumes that service is a valid ExchangeService object and that the user
has been authenticated to an Exchange server, and that the itemId is the ItemId of the
item to attach.
C#
message.ToRecipients.Add("[email protected]");
// Add an email message item attachment and set properties on the item.
ItemAttachment<EmailMessage> itemAttachment =
message.Attachments.AddItemAttachment<EmailMessage>();
itemAttachment.Item.MimeContent = msgToAttach.MimeContent;
itemAttachment.Name = msgToAttach.Subject;
// Send the mail and save a copy in the Sent Items folder.
message.SendAndSaveCopy();
To modify this example to copy each of the properties on the existing item into the new
item attachment, do the following:
C#
2. Remove the following line, because you do not need the MimeContent property.
C#
itemAttachment.Item.MimeContent = msgToAttach.MimeContent;
3. Repeat this line for each property to copy from the existing item to the new
attachment. Do not copy the ItemId into the new item attachment because that's a
read-only property.
C#
itemAttachment.Item.Subject = msgToAttach.Subject;
C#
ExtendedPropertyDefinition sent = new ExtendedPropertyDefinition(3591,
MapiPropertyType.Integer);
msgToAttach.Item.SetExtendedProperty(sent, "1");
1. If you're working with email messages specifically, you can copy the value of the
MimeContent element from the email into the newly created item attachment.
You will lose some properties during this process, such as follow up flags and
categories, but it works great for standard email messages.
2. If you need full fidelity for all item types, you can bind to an existing item and copy
all the properties and extended properties into the new attachment.
The following code example shows how to use the MimeContent element to copy the
content of the original item into the MimeContent value of the new item attachment.
The example uses the following operations:
1. GetItem — To get the MimeContent and Subject of the message that will
become the item attachment on the new message.
The example starts by retrieving the MimeContent and the Subject of the existing item.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<m:GetItem>
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:ItemShape>
<m:ItemIds>
</m:ItemIds>
</m:GetItem>
</soap:Body>
</soap:Envelope>
The server responds to the GetItem request with a GetItemResponse message that
includes a ResponseCode value of NoError, which indicates that the email was
retrieved successfully, and the MimeContent and Subject of the email.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="944"
MinorBuildNumber="11"
Version="V2_12"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:Message>
<t:MimeContent CharacterSet="UTF-8">tDQe/Eo=…</t:MimeContent>
<t:ItemId Id="jCrTAAA="
ChangeKey="CQAAABYAAAAFI5DJmZv+TLtyLOLIF1S5AAAZi+7u"
/>
<t:Subject>Play tennis?</t:Subject>
</t:Message>
</m:Items>
</m:GetItemResponseMessage>
</m:ResponseMessages>
</m:GetItemResponse>
</s:Body>
</s:Envelope>
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:CreateItem MessageDisposition="SaveOnly">
<m:Items>
<t:Message>
<t:ToRecipients>
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:ToRecipients>
</t:Message>
</m:Items>
</m:CreateItem>
</soap:Body>
</soap:Envelope>
Next, create the new item attachment by using the MimeContent and Subject retrieved
by the GetItem operation. The value of the ParentItemId element is populated by
using the ItemId value returned in the CreateItem response.
XML
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:CreateAttachment>
<m:Attachments>
<t:ItemAttachment>
<t:Name>Play tennis?</t:Name>
<t:IsInline>false</t:IsInline>
<t:Message>
<t:MimeContent CharacterSet="UTF-8">tDQe/Eo=…</t:MimeContent>
</t:Message>
</t:ItemAttachment>
</m:Attachments>
</m:CreateAttachment>
</soap:Body>
</soap:Envelope>
Now that the new message has been created, and the item was attached, you can send
this newly created message by calling the SendItem operation.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:SendItem SaveItemToFolder="true">
<m:ItemIds>
<t:ItemId Id="jDKsAAA="
ChangeKey="CQAAABYAAAAFI5DJmZv+TLtyLOLIF1S5AAAZi/q/" />
</m:ItemIds>
<m:SavedItemFolderId>
</m:SavedItemFolderId>
</m:SendItem>
</soap:Body>
</soap:Envelope>
The server responds to the SendItem request with a SendItemResponse message that
includes a ResponseCode value of NoError, which indicates that the email was sent
successfully.
This example assumes that service is a valid ExchangeService object and that the user
has been authenticated to an Exchange server.
C#
// Create the HTML body with the content identifier of the attachment.
<head>
</head>
<body>
</body>
</html>";
message.ToRecipients.Add("[email protected]");
message.Attachments.AddFileAttachment("Party.jpg", file);
message.Attachments[0].IsInline = true;
message.Attachments[0].ContentId = "Party.jpg";
// Send the mail and save a copy in the Sent Items folder.
message.SendAndSaveCopy();
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:CreateItem MessageDisposition="SaveOnly">
<m:Items>
<t:Message>
<t:Subject>Inline Attachment</t:Subject>
<t:Body BodyType="HTML">
&lt;html&gt;
&lt;head&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;/body&gt;
&lt;/html&gt;
</t:Body>
<t:ToRecipients>
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:ToRecipients>
</t:Message>
</m:Items>
</m:CreateItem>
</soap:Body>
</soap:Envelope>
This example assumes that service is a valid ExchangeService object and that the user
has been authenticated to an Exchange server.
XML
message.Attachments.AddFileAttachment("C:\\temp\\FileAttachment.txt");
message.Update(ConflictResolutionMode.AlwaysOverwrite);
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Central Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:CreateAttachment>
<m:Attachments>
<t:FileAttachment>
<t:Name>FileAttachment.txt</t:Name>
<t:Content>VGhpcyBpcyBhIGZpbGUgYXR0YWNobWVudC4=</t:Content>
</t:FileAttachment>
</m:Attachments>
</m:CreateAttachment>
</soap:Body>
</soap:Envelope>
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="939"
MinorBuildNumber="12"
Version="V2_11"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:CreateAttachmentResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:CreateAttachmentResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Attachments>
<t:FileAttachment>
<t:AttachmentId Id="yRLhCh8="
RootItemId="uqE2AAA="
RootItemChangeKey="CQAAABYAAAAFI5DJmZv+TLtyLOLIF1S5AAAXulcf" />
</t:FileAttachment>
</m:Attachments>
</m:CreateAttachmentResponseMessage>
</m:ResponseMessages>
</m:CreateAttachmentResponse>
</s:Body>
</s:Envelope>
See also
Attachments and EWS in Exchange
Learn how to get attachments from EWS items by using the EWS Managed API or EWS
in Exchange.
You can get attachments from an item by using the EWS Managed API or EWS. Because
the initial call to get an item only includes metadata about the attachment collection on
the item, retrieving attachments is always a two-step process. First, retrieve the item.
Next, retrieve the attachment.
Table 1. EWS Managed API methods and EWS operations for adding attachments
This example assumes that service is a valid ExchangeService object, that itemId is the
ItemId of the message from which attachments will be retrieved, and that the user has
been authenticated to an Exchange server.
C#
if (attachment is FileAttachment)
fileAttachment.Load("C:\\temp\\" + fileAttachment.Name);
// This does not save the file like it does with a file
attachment.
itemAttachment.Load();
The following code example shows how to use the GetItem operation to get an email
message and the collection of attachments on the message. This is also the first XML
request that the EWS Managed API sends when you use the EWS Managed API to get all
attachments from an email. The values of some attributes are shortened for readability.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetItem>
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:ItemShape>
<m:ItemIds>
</m:ItemIds>
</m:GetItem>
</soap:Body>
</soap:Envelope>
The server responds to the GetItem request with a GetItemResponse message that
includes a ResponseCode value of NoError, which indicates that the email was
retrieved successfully, and the AttachmentId values of the existing attachments.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="939"
MinorBuildNumber="12"
Version="V2_11"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:Message>
<t:ItemId Id="ERu/AAA="
ChangeKey="CQAAABYAAAAFI5DJmZv+TLtyLOLIF1S5AAAYEMnd"
/>
<t:Attachments>
<t:FileAttachment>
<t:Name>FileAttachment.txt</t:Name>
<t:Size>212</t:Size>
<t:LastModifiedTime>2014-05-
14T17:59:30</t:LastModifiedTime>
<t:IsInline>false</t:IsInline>
<t:IsContactPhoto>false</t:IsContactPhoto>
</t:FileAttachment>
<t:ItemAttachment>
<t:Size>3063</t:Size>
<t:LastModifiedTime>2014-05-
14T17:59:30</t:LastModifiedTime>
<t:IsInline>false</t:IsInline>
</t:ItemAttachment>
</t:Attachments>
</t:Message>
</m:Items>
</m:GetItemResponseMessage>
</m:ResponseMessages>
</m:GetItemResponse>
</s:Body>
</s:Envelope>
Now that you have the AttachmentId values, call GetAttachment on each
attachment you want to retrieve.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetAttachment>
<m:AttachmentIds>
<t:AttachmentId Id="5zTzlqU=" />
</m:AttachmentIds>
</m:GetAttachment>
</soap:Body>
</soap:Envelope>
When retrieving an item attachment, the server responds to the GetAttachment request
with a GetAttachmentResponse message that includes a ResponseCode value of
NoError, which indicates that the attachment was retrieved successfully, and all the
elements for the attached item, which in this case is an email message.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="939"
MinorBuildNumber="12"
Version="V2_11"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetAttachmentResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetAttachmentResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Attachments>
<t:ItemAttachment>
<t:Message>
<t:ItemClass>IPM.Note</t:ItemClass>
<t:Size>2859</t:Size>
<t:IsSubmitted>false</t:IsSubmitted>
<t:IsDraft>true</t:IsDraft>
<t:IsFromMe>false</t:IsFromMe>
<t:IsResend>false</t:IsResend>
<t:IsUnmodified>false</t:IsUnmodified>
<t:DateTimeCreated>2014-05-14T17:59:37Z</t:DateTimeCreated>
<t:ResponseObjects>
<t:ForwardItem />
</t:ResponseObjects>
<t:DisplayCc />
<t:DisplayTo>primary; emaildelegate</t:DisplayTo>
<t:HasAttachments>false</t:HasAttachments>
<t:Culture>en</t:Culture>
<t:EffectiveRights>
<t:CreateAssociated>false</t:CreateAssociated>
<t:CreateContents>false</t:CreateContents>
<t:CreateHierarchy>false</t:CreateHierarchy>
<t:Delete>true</t:Delete>
<t:Modify>true</t:Modify>
<t:Read>true</t:Read>
</t:EffectiveRights>
<t:LastModifiedName>primary</t:LastModifiedName>
<t:LastModifiedTime>2014-05-
14T17:59:30Z</t:LastModifiedTime>
<t:IsAssociated>false</t:IsAssociated>
<t:WebClientReadFormQueryString>?
ItemID=AAMk3D&amp;exvsurl=1&amp;viewmodel=
ReadMessageItem</t:WebClientReadFormQueryString>
<t:ConversationId Id="AAQkADIwM2ZlM2ZlLWMwYjctNDg2N/Rc+d0="
/>
<t:ToRecipients>
<t:Mailbox>
<t:Name>primary</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
<t:MailboxType>Mailbox</t:MailboxType>
</t:Mailbox>
<t:Mailbox>
<t:Name>emaildelegate</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
<t:MailboxType>Mailbox</t:MailboxType>
</t:Mailbox>
</t:ToRecipients>
<t:IsReadReceiptRequested>false</t:IsReadReceiptRequested>
<t:ConversationIndex>AQHPb55BxR5Fm0Arx0yY4xbL9Fz53Q==
</t:ConversationIndex>
<t:ConversationTopic>Message Item
Subject</t:ConversationTopic>
<t:IsRead>true</t:IsRead>
</t:Message>
</t:ItemAttachment>
</m:Attachments>
</m:GetAttachmentResponseMessage>
</m:ResponseMessages>
</m:GetAttachmentResponse>
</s:Body>
</s:Envelope>
When retrieving a file attachment, the server responds to the GetAttachment request
with a GetAttachmentResponse message that includes a ResponseCode value of
NoError, which indicates that the attachment was retrieved successfully, and all the
elements of the file attachment.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="939"
MinorBuildNumber="12"
Version="V2_11"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetAttachmentResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetAttachmentResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Attachments>
<t:FileAttachment>
<t:Content>VGhpcyBpcyBhIGZpbGUgYXR0YWNobWVudC4=</t:Content>
</t:FileAttachment>
</m:Attachments>
</m:GetAttachmentResponseMessage>
</m:ResponseMessages>
</m:GetAttachmentResponse>
</s:Body>
</s:Envelope>
Note that you cannot move or copy the item attachment to another folder because the
item attachment is not a strongly-typed item, so if you're trying to move an attachment
to a different folder, use the following code example and then import the file into a
different folder.
C#
if (attachment is ItemAttachment)
itemAttachment.Load(ItemSchema.MimeContent);
File.WriteAllBytes(fileName,
itemAttachment.Item.MimeContent.Content);
See also
Attachments and EWS in Exchange
Learn how to delete attachments from items by using the EWS Managed API or EWS in
Exchange.
You have a number of options when it comes to deleting file and item attachments from
items by using the EWS Managed API. You can delete all the attachments from the
message, delete by a file name, or delete by position in the collection. For each of these
options, there is an AttachmentCollection method.
Conversely, with EWS, no matter whether you're deleting all attachments from an item
or just one, the sequence of operations is same. Unlike the EWS Managed API, EWS
does not include separate operations to delete based on name or position in the
attachments array.
Table 1. EWS Managed API methods and EWS operations for deleting attachments
This example assumes that service is a valid ExchangeService object, itemId is the
ItemId of the message from which attachments will be deleted, and that the user has
been authenticated to an Exchange server.
C#
message.Attachments.Clear();
message.Update(ConflictResolutionMode.AlwaysOverwrite);
This example assumes that service is a valid ExchangeService object, itemId is the
ItemId of the message from which the attachment will be deleted, and that the user
has been authenticated to an Exchange server.
C#
public static void DeleteNamedAttachments(ExchangeService service, ItemId
itemId)
if (attachment.Name == "FileAttachment.txt")
message.Attachments.Remove(attachment);
break;
message.Update(ConflictResolutionMode.AlwaysOverwrite);
This example assumes that service is a valid ExchangeService object, itemId is the
ItemId of the message from which the attachment will be deleted, and that the user
has been authenticated to an Exchange server.
C#
if (message.HasAttachments)
message.Attachments.RemoveAt(0);
message.Update(ConflictResolutionMode.AlwaysOverwrite);
The following code example shows how to use the GetItem operation to get an email
message and the collection of attachments on the message. This is also the first XML
request that the EWS Managed API sends when you use the EWS Managed API to delete
all attachments from an email. The values of some attributes are shortened for
readability.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Central Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:GetItem>
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:ItemShape>
<m:ItemIds>
</m:ItemIds>
</m:GetItem>
</soap:Body>
</soap:Envelope>
The server responds to the GetItem request with a GetItemResponse message that
includes a ResponseCode value of NoError, which indicates that the email was
retrieved successfully, and the AttachmentId values of the existing attachments.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="939"
MinorBuildNumber="12"
Version="V2_11"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:Message>
<t:ItemId Id="uqE1AAA="
ChangeKey="CQAAABYAAAAFI5DJmZv+TLtyLOLIF1S5AAAXulcd"
/>
<t:Attachments>
<t:FileAttachment>
<t:Name>FileAttachment.txt</t:Name>
</t:FileAttachment>
<t:FileAttachment>
<t:Name>SecondAttachment.txt</t:Name>
</t:FileAttachment>
<t:FileAttachment>
<t:Name>ThirdAttachment.jpg</t:Name>
</t:FileAttachment>
<t:FileAttachment>
<t:Name>FourthAttachment.txt</t:Name>
</t:FileAttachment>
<t:ItemAttachment>
</t:ItemAttachment>
</t:Attachments>
</t:Message>
</m:Items>
</m:GetItemResponseMessage>
</m:ResponseMessages>
</m:GetItemResponse>
</s:Body>
</s:Envelope>
After you determine which attachment to delete, call the DeleteAttachment operation
and include the AttachmentId values of the attachments to delete.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Central Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:DeleteAttachment>
<m:AttachmentIds>
<t:AttachmentId Id="IpHLObE=" />
</m:AttachmentIds>
</m:DeleteAttachment>
</soap:Body>
</soap:Envelope>
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="939"
MinorBuildNumber="12"
Version="V2_11"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:DeleteAttachmentResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:DeleteAttachmentResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
</m:DeleteAttachmentResponseMessage>
<m:DeleteAttachmentResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
</m:DeleteAttachmentResponseMessage>
<m:DeleteAttachmentResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
</m:DeleteAttachmentResponseMessage>
<m:DeleteAttachmentResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
</m:DeleteAttachmentResponseMessage>
<m:DeleteAttachmentResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
</m:DeleteAttachmentResponseMessage>
</m:ResponseMessages>
</m:DeleteAttachmentResponse>
</s:Body>
</s:Envelope>
See also
Attachments and EWS in Exchange
Learn about calendars, calendar folders and items, appointments, and meetings in
Exchange.
You're probably familiar with many of the calendar features in email clients like Outlook,
which enable you to track appointments, schedule meetings, check people's availability,
invite attendees, and change or cancel meetings.
Calendar-related features in Exchange are a little different than what you see in a client
like Outlook. Instead of displaying information, EWS in Exchange enables you to do
things like create, store, send, or change information. To use EWS to work with
calendars, you'll need to be familiar with concepts such as information storage, time,
recurrence, and message flow. More specifically, you'll need to be familiar with the
following:
Time durations, time zones, and start and end times of meetings and
appointments
Fortunately, EWS and the EWS Managed API provide a rich set of operations and
methods that enable you to perform a wide range of calendar-related tasks. For
example, using the EWS Managed API, you can create a meeting and send invitations to
attendees with just a few lines of code, as shown in the following example.
C#
meeting.Start = DateTime.Now.AddDays(2);
meeting.End = meeting.Start.AddHours(2);
meeting.RequiredAttendees.Add("[email protected]");
meeting.RequiredAttendees.Add("[email protected]");
meeting.OptionalAttendees.Add("[email protected]");
meeting.ReminderMinutesBeforeStart = 60;
meeting.Save(SendInvitationsMode.SendToAllAndSaveCopy);
Items in a Calendar folder are a little different from items in other folders in a mailbox
because occurrences in a recurring series and exceptions to a recurring series are not
actual items in the mailbox, but rather are stored internally as attachments to a recurring
master. Therefore, in order to retrieve all appointments in a given date range, you need
to use a calendar view. To learn more about retrieving appointments and calendar views,
see Get appointments and meetings by using EWS in Exchange.
Both appointments and meetings can be single instances or part of a recurring series,
but because appointments don't include attendees, rooms, or resources, they do not
require a message to be sent.
Because meetings include sending and responding to requests and updates, they
involve more than just accessing items in a Calendar folder. They also have an
associated workflow. Meetings must be scheduled when attendees are available, and
can also involve reserving a meeting room, or resources such as a projector or other
equipment.
1. A meeting is created and populated with information such as start and end time,
location, and a message body.
2. A list of prospective attendees, resources, and rooms is created.
3. The availability status of attendees is checked.
4. A meeting request is sent to attendees.
5. Attendees reply to the meeting with their intention to attend or not. Attendees
may also propose a new time for the meeting.
6. Meetings can be canceled or updated, which typically trigger new messages to be
sent to attendees.
Times are stored internally on an Exchange server in Coordinated Universal Time (UTC).
Exchange converts them to local time zone based on client settings. DateTime
properties are scoped to the computer's local time zone.
Recurring series
A recurring series of appointments or meetings is comprised of a recurring master, a set
of occurrence items, and optionally, a set of exception items. Recurrence information is
stored on the recurring master item. The RecurringMasterItemId EWS element is
associated with occurrences and exceptions in a series, or you can use the
Appointment.BindToRecurringMaster EWS Managed API method to get the recurring
master. Using an instance of a series, you can find all the elements and information
associated with the series.
Note that recurrence properties exist on all calendar items, but they are populated only
on recurring master items. In addition to an index of all occurrences in a series, the
recurring master has a reference to modified and deleted occurrences and the
recurrence pattern of a series (for example, daily, weekly, monthly, or yearly).
In this section
Create appointments and meetings by using EWS in Exchange 2013
See also
Develop web service clients for Exchange
Start using web services in Exchange
EWS client design overview for Exchange
Create appointments and meetings by
using EWS in Exchange 2013
Article • 01/15/2020 • 6 minutes to read
Learn how to create appointments and meetings by using the EWS Managed API or
EWS in Exchange.
The essential difference between meetings and appointments is that meetings have
attendees, and appointments don't. Both appointments and meetings can be single
instances or part of a recurring series, but because appointments don't include
attendees, rooms, or resources, they do not require a message to be sent. Internally,
Exchange uses the same object for both meetings and appointments. You use the EWS
Managed API Appointment class or the EWS [CalendarItem]
(https://msdn.microsoft.com/library/Title Topic ID Project Name Writer Editor Publish
Preview.aspx) element to work with meetings and appointments.
Table 1. EWS Managed API methods and EWS operations for working with
appointments and meetings
Appointment.Save
CreateItem operation (calendar item)
Item.Bind
GetItem operation (calendar item)
This example assumes that you have authenticated to an Exchange server and have
acquired an ExchangeService object named service.
C#
appointment.Start = DateTime.Now.AddDays(2);
appointment.End = appointment.Start.AddHours(1);
appointment.ReminderDueBy = DateTime.Now;
appointment.Save(SendInvitationsMode.SendToNone);
// Verify that the appointment was created by using the appointment's item
ID.
After setting the properties on the appointment object, you save the appointment to the
calendar folder by using the appointment object's Save method.
Note that in the verification step, you use the item Id associated with the appointment
to verify that the appointment is in the calendar folder. As a best practice, limit the
properties returned by the server to only what you need — in this case, the
appointment's subject.
The following example shows the request XML when you use the CreateItem
operation to create an appointment.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Pacific Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:CreateItem SendMeetingInvitations="SendToNone">
<m:Items>
<t:CalendarItem>
<t:Subject>Tennis lesson</t:Subject>
<t:ReminderDueBy>2013-09-19T14:37:10.732-07:00</t:ReminderDueBy>
<t:Start>2013-09-21T19:00:00.000Z</t:Start>
<t:End>2013-09-21T20:00:00.000Z</t:End>
<t:Location>Tennis club</t:Location>
</t:CalendarItem>
</m:Items>
</m:CreateItem>
</soap:Body>
</soap:Envelope>
The following example shows the response XML that is returned by the CreateItem
operation.
7 Note
The ItemId and ChangeKey attributes have been shortened for readability.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:CreateItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:CreateItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:CalendarItem>
</t:CalendarItem>
</m:Items>
</m:CreateItemResponseMessage>
</m:ResponseMessages>
</m:CreateItemResponse>
</s:Body>
</s:Envelope>
The following example shows the request XML that is generated when you use the
GetItem operation to verify that the appointment was created.
7 Note
The ItemId and ChangeKey attributes have been shortened for readability.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Pacific Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:GetItem>
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:ItemShape>
<m:ItemIds>
</m:ItemIds>
</m:GetItem>
</soap:Body>
</soap:Envelope>
The following example shows the response XML that is returned by the GetItem
operation.
7 Note
The ItemId and ChangeKey attributes have been shortened for readability.
XML
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:CalendarItem>
<t:Subject>Tennis lesson</t:Subject>
</t:CalendarItem>
</m:Items>
</m:GetItemResponseMessage>
</m:ResponseMessages>
</m:GetItemResponse>
</s:Body>
</s:Envelope>
This example assumes that you have authenticated to an Exchange server and have
acquired an ExchangeService object named service.
C#
meeting.Body = "Let's learn to really work as a team and then have lunch!";
meeting.Start = DateTime.Now.AddDays(2);
meeting.End = meeting.Start.AddHours(4);
meeting.RequiredAttendees.Add("[email protected]");
meeting.RequiredAttendees.Add("[email protected]");
meeting.OptionalAttendees.Add("[email protected]");
meeting.ReminderMinutesBeforeStart = 60;
// Save the meeting to the Calendar folder and send the meeting request.
meeting.Save(SendInvitationsMode.SendToAllAndSaveCopy);
After setting the properties on the Appointment object, save the meeting to your
calendar folder by using the Save method. When you set the SendInvitationsMode
enumeration value to SendOnlyToAll or SendToAllAndSaveCopy, invitations are sent to
attendees.
Use the item Id associated with the meeting to verify that it was saved in the calendar
folder. As a best practice, limit the properties returned by the server to only what you
need - in this case, the meeting's subject.
The following example shows the request XML when you use the CreateItem
operation to create a meeting.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Pacific Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:CreateItem SendMeetingInvitations="SendToAllAndSaveCopy">
<m:Items>
<t:CalendarItem>
<t:ReminderMinutesBeforeStart>60</t:ReminderMinutesBeforeStart>
<t:Start>2013-09-21T16:00:00.000Z</t:Start>
<t:End>2013-09-21T20:00:00.000Z</t:End>
<t:RequiredAttendees>
<t:Attendee>
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:Attendee>
<t:Attendee>
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:Attendee>
</t:RequiredAttendees>
<t:OptionalAttendees>
<t:Attendee>
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:Attendee>
</t:OptionalAttendees>
</t:CalendarItem>
</m:Items>
</m:CreateItem>
</soap:Body>
</soap:Envelope>
The following example shows the response XML that is returned by the CreateItem
operation.
7 Note
The ItemId and ChangeKey attributes have been shortened for readability.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:CreateItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:CreateItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:CalendarItem>
</t:CalendarItem>
</m:Items>
</m:CreateItemResponseMessage>
</m:ResponseMessages>
</m:CreateItemResponse>
</s:Body>
</s:Envelope>
The following example shows the request XML that is generated by the GetItem
operation when you verify that the meeting was created.
7 Note
The ItemId and ChangeKey attributes have been shortened for readability.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Pacific Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:GetItem>
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:ItemShape>
<m:ItemIds>
</m:ItemIds>
</m:GetItem>
</soap:Body>
</soap:Envelope>
The following example shows the response XML that is returned by the GetItem
operation.
7 Note
The ItemId and ChangeKey attributes have been shortened for readability.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:CalendarItem>
</t:CalendarItem>
</m:Items>
</m:GetItemResponseMessage>
</m:ResponseMessages>
</m:GetItemResponse>
</s:Body>
</s:Envelope>
See also
Calendars and EWS in Exchange
Get appointments and meetings by using EWS in Exchange
Update appointments and meetings by using EWS in Exchange
Delete appointments and cancel meetings by using EWS in Exchange
Propose a new meeting time by using EWS in Exchange
Create all-day events by using EWS in
Exchange
Article • 02/11/2022 • 3 minutes to read
Learn how to create all-day events by using the EWS Managed API or EWS in Exchange.
All-day events provide a way to represent something that happens for an entire day or
multiple days—for example, a holiday, or vacation days. Creating all-day events with the
EWS Managed API or EWS is a snap. It's just like creating appointments, but with a few
small changes.
When a request is received to create a new all-day event with non-midnight (in the time
zone of the request or appointment) start and/or end times, those times get adjusted to
midnight in the appropriate time zone according to the following rules:
Non-midnight start times are adjusted to the midnight prior to the time specified.
For example, 1:00 PM on June 6 gets adjusted to 12:00 AM on June 6.
Non-midnight end times are adjusted to the midnight after the time specified. For
example, 1:00 PM on June 6 gets adjusted to 12:00 AM on June 7.
So the all-day event that you create is always inclusive of the start and end time that you
specify, but might claim additional time on the user's calendar due to the shift to
midnight. Because the server will adjust the start and end time to midnight, we
recommend that you specify your start and end time at midnight to avoid any
unintended changes to the times.
It's also important to consider time zones when creating all-day events. Because the
Exchange server enforces a midnight start and end time in the time zone of the request
or appointment, viewing that all-day event in a client configured for a different time
zone can yield unexpected results. Depending on the client, it might appear as an all-
day event with extra days that you did not intend to include, or it might not appear as
an all-day event altogether. Because of this, we recommend that you use the user's
preferred time zone whenever possible when you create all-day events.
Create an all-day event by using the EWS
Managed API
The following example shows how to use the EWS Managed API to create an all-day
event, starting on the date specified by the startDate parameter and lasting for the
number of days specified by the numDays parameter. Note that the appointment will be
created in the time zone specified by the ExchangeService.TimeZone property. This
example assumes that the ExchangeService object passed in the service parameter has
been initialized with valid values for the Credentials and Url properties.
C#
allDayEvent.Subject = "Vacation";
allDayEvent.LegacyFreeBusyStatus = LegacyFreeBusyStatus.OOF;
allDayEvent.Start = startDateMidnight;
allDayEvent.End = endDateMidnight;
try
allDayEvent.Save(WellKnownFolderName.Calendar,
SendInvitationsMode.SendToNone);
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Eastern Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:CreateItem SendMeetingInvitations="SendToNone">
<m:SavedItemFolderId>
</m:SavedItemFolderId>
<m:Items>
<t:CalendarItem>
<t:Subject>Vacation</t:Subject>
<t:Start>2014-06-09T04:00:00.000Z</t:Start>
<t:End>2014-06-10T04:00:00.000Z</t:End>
<t:IsAllDayEvent>true</t:IsAllDayEvent>
<t:LegacyFreeBusyStatus>OOF</t:LegacyFreeBusyStatus>
</t:CalendarItem>
</m:Items>
</m:CreateItem>
</soap:Body>
</soap:Envelope>
Learn how to get appointments and meetings by using the EWS Managed API or EWS in
Exchange.
You can retrieve appointments and meetings from a calendar folder by using the
CalendarFolder.FindAppointments EWS Managed API method or the FindItem EWS
operation.
C#
// Initialize values for the start and end times, and the number of
appointments to retrieve.
FindItemsResults<Appointment> appointments =
calendar.FindAppointments(cView);
Console.WriteLine("\nThe first " + NUM_APPTS + " appointments on
your calendar from " + startDate.Date.ToShortDateString() +
Console.WriteLine();
text
Subject: Lunch with sales team Start: 8/21/2013 2:30:00 PM End: 8/21/2013
3:30:00 PM
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetFolder>
<m:FolderShape>
<t:BaseShape>IdOnly</t:BaseShape>
</m:FolderShape>
<m:FolderIds>
</m:FolderIds>
</m:GetFolder>
</soap:Body>
</soap:Envelope>
The following XML shows the GetFolder response. Note that the FolderID and
ChangeKey attributes are shortened for readability.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetFolderResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetFolderResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Folders>
<t:CalendarFolder>
</t:CalendarFolder>
</m:Folders>
</m:GetFolderResponseMessage>
</m:ResponseMessages>
</m:GetFolderResponse>
</s:Body>
</s:Envelope>
The following XML shows the FindItem request used to return the requested
appointments. Note that the FolderID and ChangeKey attributes are shortened for
readability.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:FindItem Traversal="Shallow">
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:ItemShape>
<m:ParentFolderIds>
</m:ParentFolderIds>
</m:FindItem>
</soap:Body>
</soap:Envelope>
The following XML shows the FindItem response. Note that the ItemID and ChangeKey
attributes are shortened for readability.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:FindItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:FindItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:RootFolder TotalItemsInView="33"
IncludesLastItemInRange="false">
<t:Items>
<t:CalendarItem>
<t:Start>2013-08-21T19:30:00Z</t:Start>
<t:End>2013-08-21T20:00:00Z</t:End>
</t:CalendarItem>
<t:CalendarItem>
<t:Start>2013-08-21T20:00:00Z</t:Start>
<t:End>2013-08-21T21:00:00Z</t:End>
</t:CalendarItem>
<t:CalendarItem>
<t:Start>2013-08-21T21:30:00Z</t:Start>
<t:End>2013-08-21T22:30:00Z</t:End>
</t:CalendarItem>
<t:CalendarItem>
<t:Start>2013-08-22T18:00:00Z</t:Start>
<t:End>2013-08-22T19:00:00Z</t:End>
</t:CalendarItem>
<t:CalendarItem>
<t:Start>2013-08-22T21:00:00Z</t:Start>
<t:End>2013-08-22T22:00:00Z</t:End>
</t:CalendarItem>
</t:Items>
</m:RootFolder>
</m:FindItemResponseMessage>
</m:ResponseMessages>
</m:FindItemResponse>
</s:Body>
</s:Envelope>
Instead, what you really want to do is something akin to applying a Dataview onto a
union of two SQL tables, using a CalendarView object. Note that for performance
reasons, we recommend that you use the PropertySet property to limit the size of the
response by indicating the number of appointments or meetings you want returned, as
well as the specific properties you want.
See also
Calendars and EWS in Exchange
Create appointments and meetings by using EWS in Exchange 2013
Update appointments and meetings by using EWS in Exchange
Delete appointments and cancel meetings by using EWS in Exchange
Develop web service clients for Exchange
Update appointments and meetings by
using EWS in Exchange
Article • 03/04/2022 • 5 minutes to read
Learn how to update appointments and meetings by using the EWS Managed API or
EWS in Exchange.
The essential difference between meetings and appointments is that meetings have
attendees, and appointments don't. Both appointments and meetings can be single
instances or part of a recurring series, but because appointments don't include
attendees, rooms, or resources, they do not require a message to be sent. Internally,
Exchange uses the same object for both meetings and appointments. You use the EWS
Managed API Appointment class or the EWS CalendarItem element to work with
meetings and appointments.
Table 1. EWS Managed API method and EWS operations for updating appointments
and meetings
Appointment.Update
UpdateItem
UpdateItemResponse
This example assumes that you have authenticated to an Exchange server and have
acquired an ExchangeService object named service. The local variable appointmentId
is an identifier associated with an existing appointment.
C#
// As a best practice, limit the properties returned to only the ones you
need.
// Update properties on the appointment with a new subject, start time, and
end time.
appointment.Start.AddHours(25);
appointment.End.AddHours(25);
SendInvitationsOrCancellationsMode.SendToAllAndSaveCopy :
SendInvitationsOrCancellationsMode.SendToNone;
appointment.Update(ConflictResolutionMode.AlwaysOverwrite, mode);
The following example shows the request XML when you use the UpdateItem
operation to update an appointment.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Pacific Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:UpdateItem MessageDisposition="SaveOnly"
ConflictResolution="AlwaysOverwrite"
SendMeetingInvitationsOrCancellations="SendToNone">
<m:ItemChanges>
<t:ItemChange>
<t:Updates>
<t:SetItemField>
<t:CalendarItem>
</t:CalendarItem>
</t:SetItemField>
</t:Updates>
</t:ItemChange>
</m:ItemChanges>
</m:UpdateItem>
</soap:Body>
</soap:Envelope>
The following example shows the XML that is returned in response to an UpdateItem
request. The ItemId and ChangeKey attributes have been shortened for readability.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:UpdateItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exc
hange/services/2006/types">
<m:ResponseMessages>
<m:UpdateItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:CalendarItem>
</t:CalendarItem>
</m:Items>
<m:ConflictResults>
<t:Count>0</t:Count>
</m:ConflictResults>
</m:UpdateItemResponseMessage>
</m:ResponseMessages>
</m:UpdateItemResponse>
</s:Body>
</s:Envelope>
This example assumes that you have authenticated to an Exchange server and have
acquired an ExchangeService object named service. The local variable meetingId is an
identifier that is associated with an existing appointment.
C#
AppointmentSchema.Location,
AppointmentSchema.RequiredAttendees,
AppointmentSchema.Resources));
meeting.RequiredAttendees.Add("[email protected]");
meeting.Resources.Add("[email protected]");
meeting.Update(ConflictResolutionMode.AlwaysOverwrite,
SendInvitationsOrCancellationsMode.SendToAllAndSaveCopy);
After setting the properties on the Appointment object, save the meeting to your
calendar folder and send updated meeting requests by using the Update method.
You can pass in one of two enumeration values as parameters when you call the
Update method:
The following example shows the request XML when you use the UpdateItem
operation to update a meeting.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Pacific Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:UpdateItem MessageDisposition="SaveOnly"
ConflictResolution="AlwaysOverwrite"
SendMeetingInvitationsOrCancellations="SendToAllAndSaveCopy">
<m:ItemChanges>
<t:ItemChange>
<t:Updates>
<t:SetItemField>
<t:CalendarItem>
</t:CalendarItem>
</t:SetItemField>
<t:SetItemField>
<t:CalendarItem>
</t:CalendarItem>
</t:SetItemField>
<t:SetItemField>
<t:CalendarItem>
<t:RequiredAttendees>
<t:Attendee>
<t:Mailbox>
<t:Name>[email protected]</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
</t:Mailbox>
</t:Attendee>
<t:Attendee>
<t:Mailbox>
<t:Name>[email protected]</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
</t:Mailbox>
</t:Attendee>
<t:Attendee>
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:Attendee>
</t:RequiredAttendees>
</t:CalendarItem>
</t:SetItemField>
<t:SetItemField>
<t:CalendarItem>
<t:Resources>
<t:Attendee>
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:Attendee>
</t:Resources>
</t:CalendarItem>
</t:SetItemField>
</t:Updates>
</t:ItemChange>
</m:ItemChanges>
</m:UpdateItem>
</soap:Body>
</soap:Envelope>
The following example shows the XML that is returned in response to an UpdateItem
request. The ChangeKey and ItemId attributes have been shortened for readability.
XML
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:UpdateItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:UpdateItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:CalendarItem>
</t:CalendarItem>
</m:Items>
<m:ConflictResults>
<t:Count>0</t:Count>
</m:ConflictResults>
</m:UpdateItemResponseMessage>
</m:ResponseMessages>
</m:UpdateItemResponse>
</s:Body>
</s:Envelope>
See also
Calendars and EWS in Exchange
Create appointments and meetings by using EWS in Exchange 2013
Get appointments and meetings by using EWS in Exchange
Delete appointments and cancel meetings by using EWS in Exchange
Propose a new meeting time by using EWS in Exchange
Delete appointments and cancel
meetings by using EWS in Exchange
Article • 03/04/2022 • 8 minutes to read
Learn how to delete appointments and meetings by using the EWS Managed API or
EWS in Exchange.
The essential difference between meetings and appointments is that meetings have
attendees, and appointments don't. Both appointments and meetings can be single
instances or part of a recurring series, but because appointments don't include
attendees, rooms, or resources, they do not require a message to be sent. Internally,
Exchange uses the same object for both meetings and appointments. You use the EWS
Managed API Appointment class or the EWS [CalendarItem]
(https://msdn.microsoft.com/library/Title Topic ID Project Name Writer Editor Publish
Preview.aspx) element to work with meetings and appointments.
Table 1. EWS Managed API methods and EWS operations for deleting appointments
and meetings
Appointment.Delete
DeleteItem
Deletes an appointment.
Appointment.Delete
CreateItem (calendar item)
Deletes a meeting.
Note that when you delete an appointment by using EWS, you use the DeleteItem
operation, but when you delete a meeting, you use the CreateItem operation. This might
seem counterintuitive, but it is because you have to create a meeting response object to
send meeting cancellation messages to attendees.
This example assumes that you have authenticated to an Exchange server and have
acquired an ExchangeService object named service. The local variable appointmentId
is an identifier associated with an existing appointment.
C#
// As a best practice, limit the properties returned to only the ones you
need.
// Delete the appointment. Note that the item ID will change when the item
is moved to the Deleted Items folder.
appointment.Delete(DeleteMode.MoveToDeletedItems);
// Verify that the appointment has been deleted by looking for a matching
subject in the Deleted Items folder's first entry.
itemView.Traversal = ItemTraversal.Shallow;
FindItemsResults<Item> deletedItems =
service.FindItems(WellKnownFolderName.DeletedItems, itemView);
This example shows a simple way to verify that the appointment was deleted, by
verifying that the subject of the first item in the Deleted Items folder matches that of the
deleted appointment. How you choose to verify that your appointment was deleted will
vary based the needs of your application.
As you can see, deleting an appointment is straightforward and pretty much what you
might expect. Note when you create your verification step that the appointment item in
the Deleted Items folder has a different ItemId than the appointment item in the
calendar folder. The item is copied and deleted rather than simply moved to the Deleted
Items folder.
The following example shows the request XML for the DeleteItem operation to delete an
appointment.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Pacific Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:DeleteItem DeleteType="MoveToDeletedItems"
SendMeetingCancellations="SendToAllAndSaveCopy">
<m:ItemIds>
</m:ItemIds>
</m:DeleteItem>
</soap:Body>
</soap:Envelope>
The following example shows the response XML that is returned by the DeleteItem
operation. The ItemId and ChangeKey attributes are shortened for readability.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:DeleteItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:DeleteItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
</m:DeleteItemResponseMessage>
</m:ResponseMessages>
</m:DeleteItemResponse>
</s:Body>
</s:Envelope>
The following example shows the request XML for the FindItem operation that
retrieves the first item in the Deleted Items folder in order to compare the item's subject
with that of the deleted appointment object.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages
" xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Pacific Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:FindItem Traversal="Shallow">
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:ItemShape>
<m:ParentFolderIds>
</m:ParentFolderIds>
</m:FindItem>
</soap:Body>
</soap:Envelope>
The following example shows the response XML that is returned by the FindItem
operation during the verification step.
7 Note
XML
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:FindItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:FindItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<t:Items>
<t:CalendarItem>
<t:Subject>Tennis lesson</t:Subject>
</t:CalendarItem>
</t:Items>
</m:RootFolder>
</m:FindItemResponseMessage>
</m:ResponseMessages>
</m:FindItemResponse>
</s:Body>
</s:Envelope>
Appointment.Delete
Appointment.CancelMeeting
CancelMeetingMessage
The method that you choose depends on the level of detail you need to provide in your
cancellation message. Appointment.CancelMeeting makes it easy to update the
cancellation message by passing an updated message as a parameter.
CancelMeetingMessage allows you to modify properties on your message before
sending a cancellation, so you can do things like request a receipt.
The code examples in this section show the different ways to delete a meeting and send
meeting cancellations. The examples assume that you have authenticated to an
Exchange server and have acquired an ExchangeService object named service. The
local variable meetingId is an identifier associated with an existing meeting where the
target user is the meeting organizer.
The following code example shows how to delete a meeting by using the
Appointment.Delete method.
C#
meeting.Delete(DeleteMode.MoveToDeletedItems,
SendCancellationsMode.SendToAllAndSaveCopy);
// Verify that the meeting has been deleted by looking for a matching
subject in the Deleted Items folder's first entry.
itemView.Traversal = ItemTraversal.Shallow;
FindItemsResults<Item> deletedItems =
service.FindItems(WellKnownFolderName.DeletedItems, itemView);
The following code example shows how to delete a meeting by using the
CancelMeeting method.
C#
The following code example shows how to delete a meeting by using the
Appointment.CreateCancelMeetingMessage method.
C#
cancelMessage.IsReadReceiptRequested = true;
cancelMessage.SendAndSaveCopy();
The following example shows the request XML when you use the CreateItem
operation to send cancellation messages to attendees and delete a meeting.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Pacific Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:CreateItem MessageDisposition="SendAndSaveCopy">
<m:Items>
<t:CancelCalendarItem>
</t:CancelCalendarItem>
</m:Items>
</m:CreateItem>
</soap:Body>
</soap:Envelope>
The following example shows the XML that is returned in response to a CreateItem
operation request used to delete a meeting.
7 Note
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:CreateItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:CreateItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:CalendarItem>
</t:CalendarItem>
</m:Items>
</m:CreateItemResponseMessage>
</m:ResponseMessages>
</m:CreateItemResponse>
</s:Body>
</s:Envelope>
The following example shows the request XML for the FindItem operation that
retrieves the first item in the Deleted Items folder in order to compare the item's subject
with that of the deleted appointment object.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Pacific Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:FindItem Traversal="Shallow">
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:ItemShape>
<m:ParentFolderIds>
</m:ParentFolderIds>
</m:FindItem>
</soap:Body>
</soap:Envelope>
The following example shows the XML that is returned by the FindItem operation
during the verification step.
7 Note
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:FindItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:FindItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<t:Items>
<t:CalendarItem>
</t:CalendarItem>
</t:Items>
</m:RootFolder>
</m:FindItemResponseMessage>
</m:ResponseMessages>
</m:FindItemResponse>
</s:Body>
</s:Envelope>
See also
Calendars and EWS in Exchange
Create appointments and meetings by using EWS in Exchange 2013
Get appointments and meetings by using EWS in Exchange
Update appointments and meetings by using EWS in Exchange
Propose a new meeting time by using EWS in Exchange
Propose a new meeting time by using EWS in Exchange
Get room lists by using EWS in
Exchange
Article • 01/15/2020 • 3 minutes to read
Learn how to get a list of all the room lists in your organization or a single room list
from an Exchange server by using the EWS Managed API or EWS.
You can use the EWS Managed API or EWS to get information about rooms and how the
rooms are grouped in your organization. Room lists don't exist by default; your
administrator needs to create and organize them. Typically, they're organized by
location or department, as shown in the following example.
Each room in a room list has a name and email address associated with it.
You can get a list that contains all room lists by using either the
ExchangeService.GetRoomLists EWS Managed API method or the GetRoomLists
EWS operation.
You can retrieve a single room list that contains all the rooms for a location or
department by supplying its email address by using the GetRooms EWS Managed API
method or the GetRooms EWS operation. When you have a collection of rooms
associated with a room list, you can then search through the collection to identify the
room or rooms you want, either by email address, or by looking for key words in the
name, such as "AV", or "Lab".
Get all room lists by using the EWS Managed
API
The following example shows how to get a list that contains all the room lists in your
organization by using the GetRoomLists method.
This example assumes that you have authenticated to an Exchange server and have
acquired an ExchangeService object named service.
C#
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetRoomLists />
</soap:Body>
</soap:Envelope>
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetRoomListsResponse ResponseClass="Success"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseCode>NoError</m:ResponseCode>
<m:RoomLists>
<t:Address>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
<t:MailboxType>PublicDL</t:MailboxType>
</t:Address>
<t:Address>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
<t:MailboxType>PublicDL</t:MailboxType>
</t:Address>
<t:Address>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
<t:MailboxType>PublicDL</t:MailboxType>
</t:Address>
</m:RoomLists>
</m:GetRoomListsResponse>
</s:Body>
</s:Envelope>
C#
System.Collections.ObjectModel.Collection<EmailAddress> myRoomAddresses =
service.GetRooms(myRoomList);
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetRooms>
<m:RoomList>
<t:EmailAddress>[email protected]</t:EmailAddress>
</m:RoomList>
</m:GetRooms>
</soap:Body>
</soap:Envelope>
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
Version="V2_9"
xmlns:h="http://scemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetRoomsResponse ResponseClass="Success"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://scemas.microsoft.com/exchange/services/2006/types">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Rooms>
<t:Room>
<t:Id>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
<t:MailboxType>Mailbox</t:MailboxType>
</t:Id>
</t:Room>
<t:Room>
<t:Id>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
<t:MailboxType>Mailbox</t:MailboxType>
</t:Id>
</t:Room>
<t:Room>
<t:Id>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
<t:MailboxType>Mailbox</t:MailboxType>
</t:Id>
</t:Room>
</m:Rooms>
</m:GetRoomsResponse>
</s:Body>
</s:Envelope>
See also
Calendars and EWS in Exchange
Learn how to get free/busy information and suggested meeting times by using the EWS
Managed API or EWS in Exchange.
Using the EWS Managed API or EWS to programmatically create a meeting and send
out meeting requests is great, but finding a time that works for all your attendees is
often a challenge. If you have to manually check to see when everyone is available, it
defeats the purpose of automating the task. Fortunately, the
ExchangeService.GetUserAvailability EWS Managed API method and the
GetUserAvailability EWS operation come to your rescue. You can use this method or
operation to query an Exchange server to find the best time to schedule a meeting or
just get free/busy information for attendees. You can get the free/busy information for a
list of attendees, or have your Exchange server find a meeting time for you, or both
This example assumes that you have authenticated to an Exchange server and have
acquired an ExchangeService object named service.
C#
attendees.Add(new AttendeeInfo()
SmtpAddress = "[email protected]",
AttendeeType = MeetingAttendeeType.Organizer
});
attendees.Add(new AttendeeInfo()
SmtpAddress = "[email protected]",
AttendeeType = MeetingAttendeeType.Required
});
availabilityOptions.GoodSuggestionThreshold = 49;
availabilityOptions.MaximumNonWorkHoursSuggestionsPerDay = 0;
availabilityOptions.MaximumSuggestionsPerDay = 2;
availabilityOptions.MeetingDuration = 60;
availabilityOptions.MinimumSuggestionQuality = SuggestionQuality.Good;
availabilityOptions.DetailedSuggestionsWindow = new
TimeWindow(DateTime.Now.AddDays(1), DateTime.Now.AddDays(2));
availabilityOptions.RequestedFreeBusyView = FreeBusyViewType.FreeBusy;
GetUserAvailabilityResults results =
service.GetUserAvailability(attendees,
availabilityOptions.DetailedSuggestionsWindow,
AvailabilityData.FreeBusyAndSuggestions,
availabilityOptions);
Console.WriteLine();
Console.WriteLine("\t{0} - {1}\n",
timeSuggestion.MeetingTime.ToShortTimeString(),
timeSuggestion.MeetingTime.Add(TimeSpan.FromMinutes(availabilityOptions.Meet
ingDuration)).ToShortTimeString());
int i = 0;
i++;
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Name="(UTC-08:00) Pacific Time (US &amp;
Canada)" Id="Pacific Standard Time">
<t:Periods>
</t:Periods>
<t:TransitionsGroups>
<t:TransitionsGroup Id="0">
<t:RecurringDayTransition>
<t:To Kind="Period">Dlt/1</t:To>
<t:TimeOffset>P0DT2H0M0.0S</t:TimeOffset>
<t:Month>4</t:Month>
<t:DayOfWeek>Sunday</t:DayOfWeek>
<t:Occurrence>1</t:Occurrence>
</t:RecurringDayTransition>
<t:RecurringDayTransition>
<t:To Kind="Period">Std</t:To>
<t:TimeOffset>P0DT2H0M0.0S</t:TimeOffset>
<t:Month>10</t:Month>
<t:DayOfWeek>Sunday</t:DayOfWeek>
<t:Occurrence>-1</t:Occurrence>
</t:RecurringDayTransition>
</t:TransitionsGroup>
<t:TransitionsGroup Id="1">
<t:RecurringDayTransition>
<t:To Kind="Period">Dlt/2007</t:To>
<t:TimeOffset>P0DT2H0M0.0S</t:TimeOffset>
<t:Month>3</t:Month>
<t:DayOfWeek>Sunday</t:DayOfWeek>
<t:Occurrence>2</t:Occurrence>
</t:RecurringDayTransition>
<t:RecurringDayTransition>
<t:To Kind="Period">Std</t:To>
<t:TimeOffset>P0DT2H0M0.0S</t:TimeOffset>
<t:Month>11</t:Month>
<t:DayOfWeek>Sunday</t:DayOfWeek>
<t:Occurrence>1</t:Occurrence>
</t:RecurringDayTransition>
</t:TransitionsGroup>
</t:TransitionsGroups>
<t:Transitions>
<t:Transition>
<t:To Kind="Group">0</t:To>
</t:Transition>
<t:AbsoluteDateTransition>
<t:To Kind="Group">1</t:To>
<t:DateTime>2007-01-01T08:00:00.000Z</t:DateTime>
</t:AbsoluteDateTransition>
</t:Transitions>
</t:TimeZoneDefinition>
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:GetUserAvailabilityRequest>
<m:MailboxDataArray>
<t:MailboxData>
<t:Email>
<t:Address>[email protected]</t:Address>
</t:Email>
<t:AttendeeType>Organizer</t:AttendeeType>
<t:ExcludeConflicts>false</t:ExcludeConflicts>
</t:MailboxData>
<t:MailboxData>
<t:Email>
<t:Address>[email protected]</t:Address>
</t:Email>
<t:AttendeeType>Required</t:AttendeeType>
<t:ExcludeConflicts>false</t:ExcludeConflicts>
</t:MailboxData>
</m:MailboxDataArray>
<t:FreeBusyViewOptions>
<t:TimeWindow>
<t:StartTime>2014-02-13T00:00:00</t:StartTime>
<t:EndTime>2014-02-14T00:00:00</t:EndTime>
</t:TimeWindow>
<t:MergedFreeBusyIntervalInMinutes>30</t:MergedFreeBusyIntervalInMinutes>
<t:RequestedView>FreeBusy</t:RequestedView>
</t:FreeBusyViewOptions>
<t:SuggestionsViewOptions>
<t:GoodThreshold>49</t:GoodThreshold>
<t:MaximumResultsByDay>2</t:MaximumResultsByDay>
<t:MaximumNonWorkHourResultsByDay>0</t:MaximumNonWorkHourResultsByDay>
<t:MeetingDurationInMinutes>60</t:MeetingDurationInMinutes>
<t:MinimumSuggestionQuality>Good</t:MinimumSuggestionQuality>
<t:DetailedSuggestionsWindow>
<t:StartTime>2014-02-13T00:00:00</t:StartTime>
<t:EndTime>2014-02-14T00:00:00</t:EndTime>
</t:DetailedSuggestionsWindow>
</t:SuggestionsViewOptions>
</m:GetUserAvailabilityRequest>
</soap:Body>
</soap:Envelope>
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetUserAvailabilityResponse
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<FreeBusyResponseArray>
<FreeBusyResponse>
<ResponseMessage ResponseClass="Success">
<ResponseCode>NoError</ResponseCode>
</ResponseMessage>
<FreeBusyView>
<FreeBusyViewType
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">FreeBusy<
/FreeBusyViewType>
<CalendarEventArray
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<CalendarEvent>
<StartTime>2014-02-13T08:00:00</StartTime>
<EndTime>2014-02-13T10:00:00</EndTime>
<BusyType>Free</BusyType>
</CalendarEvent>
<CalendarEvent>
<StartTime>2014-02-13T11:00:00</StartTime>
<EndTime>2014-02-13T12:00:00</EndTime>
<BusyType>Busy</BusyType>
</CalendarEvent>
</CalendarEventArray>
<WorkingHours
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<TimeZone>
<Bias>480</Bias>
<StandardTime>
<Bias>0</Bias>
<Time>02:00:00</Time>
<DayOrder>1</DayOrder>
<Month>11</Month>
<DayOfWeek>Sunday</DayOfWeek>
</StandardTime>
<DaylightTime>
<Bias>-60</Bias>
<Time>02:00:00</Time>
<DayOrder>2</DayOrder>
<Month>3</Month>
<DayOfWeek>Sunday</DayOfWeek>
</DaylightTime>
</TimeZone>
<WorkingPeriodArray>
<WorkingPeriod>
<StartTimeInMinutes>480</StartTimeInMinutes>
<EndTimeInMinutes>1020</EndTimeInMinutes>
</WorkingPeriod>
</WorkingPeriodArray>
</WorkingHours>
</FreeBusyView>
</FreeBusyResponse>
<FreeBusyResponse>
<ResponseMessage ResponseClass="Success">
<ResponseCode>NoError</ResponseCode>
</ResponseMessage>
<FreeBusyView>
<FreeBusyViewType
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">FreeBusy<
/FreeBusyViewType>
<CalendarEventArray
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<CalendarEvent>
<StartTime>2014-02-12T00:00:00</StartTime>
<EndTime>2014-02-13T00:00:00</EndTime>
<BusyType>Free</BusyType>
</CalendarEvent>
<CalendarEvent>
<StartTime>2014-02-13T08:00:00</StartTime>
<EndTime>2014-02-13T10:00:00</EndTime>
<BusyType>Free</BusyType>
</CalendarEvent>
<CalendarEvent>
<StartTime>2014-02-13T11:00:00</StartTime>
<EndTime>2014-02-13T12:00:00</EndTime>
<BusyType>Busy</BusyType>
</CalendarEvent>
<CalendarEvent>
<StartTime>2014-02-13T15:00:00</StartTime>
<EndTime>2014-02-13T16:00:00</EndTime>
<BusyType>Tentative</BusyType>
</CalendarEvent>
</CalendarEventArray>
<WorkingHours
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<TimeZone>
<Bias>480</Bias>
<StandardTime>
<Bias>0</Bias>
<Time>02:00:00</Time>
<DayOrder>1</DayOrder>
<Month>11</Month>
<DayOfWeek>Sunday</DayOfWeek>
</StandardTime>
<DaylightTime>
<Bias>-60</Bias>
<Time>02:00:00</Time>
<DayOrder>2</DayOrder>
<Month>3</Month>
<DayOfWeek>Sunday</DayOfWeek>
</DaylightTime>
</TimeZone>
<WorkingPeriodArray>
<WorkingPeriod>
<StartTimeInMinutes>540</StartTimeInMinutes>
<EndTimeInMinutes>1020</EndTimeInMinutes>
</WorkingPeriod>
</WorkingPeriodArray>
</WorkingHours>
</FreeBusyView>
</FreeBusyResponse>
</FreeBusyResponseArray>
<SuggestionsResponse>
<ResponseMessage ResponseClass="Success">
<ResponseCode>NoError</ResponseCode>
</ResponseMessage>
<SuggestionDayResultArray>
<SuggestionDayResult
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Date>2014-02-13T00:00:00</Date>
<DayQuality>Excellent</DayQuality>
<SuggestionArray>
<Suggestion>
<MeetingTime>2014-02-13T09:00:00</MeetingTime>
<IsWorkTime>true</IsWorkTime>
<SuggestionQuality>Excellent</SuggestionQuality>
<AttendeeConflictDataArray>
<IndividualAttendeeConflictData>
<BusyType>Free</BusyType>
</IndividualAttendeeConflictData>
<IndividualAttendeeConflictData>
<BusyType>Free</BusyType>
</IndividualAttendeeConflictData>
</AttendeeConflictDataArray>
</Suggestion>
<Suggestion>
<MeetingTime>2014-02-13T09:30:00</MeetingTime>
<IsWorkTime>true</IsWorkTime>
<SuggestionQuality>Excellent</SuggestionQuality>
<AttendeeConflictDataArray>
<IndividualAttendeeConflictData>
<BusyType>Free</BusyType>
</IndividualAttendeeConflictData>
<IndividualAttendeeConflictData>
<BusyType>Free</BusyType>
</IndividualAttendeeConflictData>
</AttendeeConflictDataArray>
</Suggestion>
</SuggestionArray>
</SuggestionDayResult>
</SuggestionDayResultArray>
</SuggestionsResponse>
</GetUserAvailabilityResponse>
</s:Body>
</s:Envelope>
See also
Calendars and EWS in Exchange
Find out how to propose new meeting times from your Exchange client application by
using EWS in Exchange.
The propose new time feature enables attendees to propose new meeting times to the
meeting organizer as part of the Exchange calendar workflow. When an attendee
proposes a new meeting, the organizer can use the proposed new meeting time to
update the meeting and send updates to all attendees. Before you can enable attendees
to propose new meeting times, you need to determine whether the organizer allows for
new time proposals. This article describes how to determine whether you can propose a
new time and how to use EWS to propose a new time.
7 Note
1. Use the FindItem EWS operation (or the Folder.FindItems EWS Managed API
method) to find the target meeting request or calendar item. Alternatively, you can
use the SyncFolderItems EWS operation to get the identifier of the target
meeting request or calendar item.
2. Parse the results of the FindItem operation (or Folder.FindItems method) to get
the item identifier of the meeting item.
3. Use the GetItem EWS operation to get the response objects for the meeting.
The following XML shows what is sent to request the response objects on an item.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
<t:MailboxCulture>en-US</t:MailboxCulture>
</soap:Header>
<soap:Body>
<m:GetItem>
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
<t:FieldURI FieldURI="item:ResponseObjects"/>
<t:FieldURI FieldURI="item:Subject"/>
<t:FieldURI FieldURI="calendar:Start"/>
<t:FieldURI FieldURI="calendar:End"/>
</t:AdditionalProperties>
</m:ItemShape>
<m:ItemIds>
</m:ItemIds>
</m:GetItem>
</soap:Body>
</soap:Envelope>
The GetItem operation response will look similar to the following XML if you request the
item identifier, the meeting start and end time, the response object collection, and if the
organizer allows for proposed changes to the meeting time. The response object
collection, which is represented by the ResponseObjects element, contains the set of
responses that are valid for the calendar item. The ProposeNewTime element is a
response object that indicates that the user can propose a new time for the meeting.
The AcceptItem , TentativelyAcceptItem , and DeclineItem elements represent the
response objects that you can use to propose a new meeting time to the meeting
organizer.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="815"
MinorBuildNumber="6"
Version="V2_7"
xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetItemResponse
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:MeetingRequest>
<t:ResponseObjects>
<t:AcceptItem/>
<t:TentativelyAcceptItem/>
<t:DeclineItem/>
<t:ProposeNewTime/>
<t:ReplyToItem/>
<t:ReplyAllToItem/>
<t:ForwardItem/>
</t:ResponseObjects>
<t:Start>2013-11-09T17:00:00Z</t:Start>
<t:End>2013-11-09T17:30:00Z</t:End>
</t:MeetingRequest>
</m:Items>
</m:GetItemResponseMessage>
</m:ResponseMessages>
</m:GetItemResponse>
</s:Body>
</s:Envelope>
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
<t:RequestServerVersion Version="Exchange2013"/>
</soap:Header>
<soap:Body>
<m:CreateItem>
<m:Items>
<t:AcceptItem>
<t:ReferenceItemId Id="AAMkADEzOTExYjJkL1AAA="
ChangeKey="CwAAAB/G6X"/>
<t:ProposedStart>2013-11-28T04:00:00Z</t:ProposedStart>
<t:ProposedEnd>2013-11-28T04:30:00Z</t:ProposedEnd>
</t:AcceptItem>
</m:Items>
</m:CreateItem>
</soap:Body>
</soap:Envelope>
The response to this request contains the identifier of the calendar item that was added
to the attendee's calendar and a copy of the meeting request that was placed in the
attendee's Deleted Items folder. The response message with the new time proposal was
also saved in the attendee's Sent Items folder (you will need to find the meeting
response message to get a handle on it).
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="815"
MinorBuildNumber="6"
Version="V2_7"
xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:CreateItemResponse
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:CreateItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:CalendarItem>
</t:CalendarItem>
<t:MeetingRequest>
</t:MeetingRequest>
</m:Items>
</m:CreateItemResponseMessage>
</m:ResponseMessages>
</m:CreateItemResponse>
</s:Body>
</s:Envelope>
The organizer will receive a MeetingResponse message when the attendee responds
with a proposed new meeting time. The MeetingResponse message contains the
proposed new meeting start time and end time, and the identifier of the associated
calendar item in the organizer's calendar. The organizer can use that information to
update their existing calendar item for the meeting. The following is the workflow for
the organizer to respond to a MeetingResponse message that proposes a new meeting
time:
2. Get the organizer's existing calendar item for the meeting by using the EWS
identifier returned in the AssociatedCalendarItemId element.
3. Compare the original start and end time with the proposed new meeting time. If
the proposed new meeting time is acceptable to the organizer, go to step 4.
Otherwise, the meeting organizer can either ignore the proposed meeting time, or
send an email response to the attendee that proposed the new meeting time.
5. The organizer can then update their meeting with the new proposed meeting
times and send the updates to all attendees by using the UpdateItem EWS
operation (or the Appointment.Update EWS Managed API method).
The following figure shows the process that occurs between the meeting organizer, the
attendee, and the Exchange server that handled the EWS calls.
See also
Calendars and EWS in Exchange
Learn how to create, get, update, or delete batches of calendar items in a single call by
using the EWS Managed API or EWS in Exchange.
You can use the EWS Managed API or EWS to work with batches of appointments and
meetings to reduce the number of calls a client makes to an Exchange server. When you
use the EWS Managed API to create, get, update, and delete a batch of calendar items,
you use ExchangeService object methods, whereas when you work with single
calendar items, you use Appointment object methods. If you are using EWS, you use
the same operation for batch calls that you use for single calls.
Table 1. EWS Managed API methods and EWS operations for working with batches of
calendar items
In order to… Use this EWS Managed API Use this EWS
method operation
In this article, you'll learn how to complete basic tasks for batches of calendar items by
using the EWS Managed API or EWS.
Note that in the EWS Managed API examples in this article, if the methods are called
sequentially, you can create, get, update, and then delete a batch of calendar items.
C#
BatchDeleteCalendarItemsTwice(service, itemIds);
This example assumes that you have authenticated to an Exchange server and have
acquired an ExchangeService object named service.
C#
appt1.Start = DateTime.Now.AddDays(2);
appt1.End = appt1.Start.AddHours(3);
appt1.ReminderMinutesBeforeStart = 30;
recurrAppt2.Start = DateTime.Now.AddDays(1);
recurrAppt2.End = recurrAppt2.Start.AddHours(1);
arecurrAppt2.ReminderMinutesBeforeStart = 30;
recurrAppt2.Recurrence = new
Recurrence.WeeklyPattern(recurrAppt2.Start.Date, 1, dow);
recurrAppt2.Recurrence.StartDate = recurrAppt2.Start.Date;
recurrAppt2.Recurrence.NumberOfOccurrences = 10;
meeting3.Body = "Let's get together to finish all the methods and unit
tests for the ContosoLive project.";
meeting3.Start = DateTime.Now.AddDays(3);
meeting3.End = meeting3.Start.AddHours(6);
meeting3.RequiredAttendees.Add("[email protected]");
meeting3.RequiredAttendees.Add("[email protected]");
meeting3.RequiredAttendees.Add("[email protected]");
meeting3.ReminderMinutesBeforeStart = 30;
// Note that multiple calls to the Exchange server might be made when
Appointment objects have attachments.
// Note also that the the ID of the item collection passed as the first
parameter to CreateItems is set on return.
ServiceResponseCollection<ServiceResponse> response =
service.CreateItems(calendarItems,
WellKnownFolderName.Calendar,
MessageDisposition.SendAndSaveCopy,
SendInvitationsMode.SendToAllAndSaveCopy);
if (response.OverallResult == ServiceResult.Success)
itemIds.Add(appt.Id);
int counter = 1;
counter++;
return itemIds;
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Pacific Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:CreateItem MessageDisposition="SendAndSaveCopy"
SendMeetingInvitations="SendToAllAndSaveCopy">
<m:SavedItemFolderId>
</m:SavedItemFolderId>
<m:Items>
<t:CalendarItem>
<t:ReminderDueBy>2014-01-07T12:13:40.333-08:00</t:ReminderDueBy>
<t:Start>2014-01-08T13:13:37.717-08:00</t:Start>
<t:End>2014-01-08T16:13:37.717-08:00</t:End>
</t:CalendarItem>
<t:CalendarItem>
<t:Start>2014-01-07T13:13:40.333-08:00</t:Start>
<t:End>2014-01-07T14:13:40.333-08:00</t:End>
<t:Recurrence>
<t:WeeklyRecurrence>
<t:Interval>1</t:Interval>
<t:DaysOfWeek>Tuesday</t:DaysOfWeek>
</t:WeeklyRecurrence>
<t:NumberedRecurrence>
<t:StartDate>2014-01-07-08:00</t:StartDate>
<t:NumberOfOccurrences>10</t:NumberOfOccurrences>
</t:NumberedRecurrence>
</t:Recurrence>
</t:CalendarItem>
<t:CalendarItem>
<t:Subject>Code Blast</t:Subject>
<t:ReminderMinutesBeforeStart>30</t:ReminderMinutesBeforeStart>
<t:Start>2014-01-09T13:13:44.998-08:00</t:Start>
<t:End>2014-01-09T19:13:44.998-08:00</t:End>
<t:Location>The lounge</t:Location>
<t:RequiredAttendees>
<t:Attendee>
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:Attendee>
<t:Attendee>
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:Attendee>
<t:Attendee>
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:Attendee>
</t:RequiredAttendees>
</t:CalendarItem>
</m:Items>
</m:CreateItem>
</soap:Body>
</soap:Envelope>
Note that the calendar items are either meetings or appointments, or single instances or
a recurring series, according to the element values of each calendar item passed to the
Exchange server.
The following is the response from the server. The ItemId and ChangeKey attributes are
shortened for readability.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:CreateItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:CreateItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:CalendarItem>
</t:CalendarItem>
</m:Items>
</m:CreateItemResponseMessage>
<m:CreateItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:CalendarItem>
</t:CalendarItem>
</m:Items>
</m:CreateItemResponseMessage>
<m:CreateItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:CalendarItem>
</t:CalendarItem>
</m:Items>
</m:CreateItemResponseMessage>
</m:ResponseMessages>
</m:CreateItemResponse>
</s:Body>
</s:Envelope>
This example assumes that you have authenticated to an Exchange server and have
acquired an ExchangeService object named service.
C#
AppointmentSchema.Subject,
AppointmentSchema.Body,
AppointmentSchema.ReminderMinutesBeforeStart,
AppointmentSchema.Start,
AppointmentSchema.End,
AppointmentSchema.AppointmentType,
AppointmentSchema.Location,
AppointmentSchema.RequiredAttendees);
ServiceResponseCollection<GetItemResponse> response =
service.BindToItems(itemIds, appointmentProps);
calendarItems.Add(appointmentItem);
if (response.OverallResult == ServiceResult.Success)
Console.WriteLine("\r\n");
else
int counter = 1;
Console.WriteLine("\r\n");
counter++;
return calendarItems;
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Pacific Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:GetItem>
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:ItemShape>
<m:ItemIds>
</m:ItemIds>
</m:GetItem>
</soap:Body>
</soap:Envelope>
The server responds to the GetItem request with a GetItemResponse message with
the requested properties for each item, as shown in the following example.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:CalendarItem>
<t:Body BodyType="HTML">
&lt;html&gt;
&lt;head&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;/body&gt;
&lt;/html&gt;
</t:Body>
<t:ReminderMinutesBeforeStart>30</t:ReminderMinutesBeforeStart>
<t:Start>2014-01-19T18:59:07Z</t:Start>
<t:End>2014-01-19T21:59:07Z</t:End>
<t:CalendarItemType>Single</t:CalendarItemType>
</t:CalendarItem>
</m:Items>
</m:GetItemResponseMessage>
<m:GetItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:CalendarItem>
<t:Body BodyType="HTML">
&lt;html&gt;
&lt;head&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;/body&gt;
&lt;/html&gt;
</t:Body>
<t:ReminderMinutesBeforeStart>15</t:ReminderMinutesBeforeStart>
<t:Start>2014-01-18T18:59:07Z</t:Start>
<t:End>2014-01-18T19:59:07Z</t:End>
<t:CalendarItemType>RecurringMaster</t:CalendarItemType>
</t:CalendarItem>
</m:Items>
</m:GetItemResponseMessage>
<m:GetItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:CalendarItem>
<t:Subject>Code Blast</t:Subject>
<t:Body BodyType="HTML">
&lt;html&gt;
&lt;head&gt;
&lt;/head&gt;
&lt;body&gt;
Let's get together to finish all the methods and unit tests
for the ContosoLive project.
&lt;/body&gt;
&lt;/html&gt;
</t:Body>
<t:ReminderMinutesBeforeStart>30</t:ReminderMinutesBeforeStart>
<t:Start>2014-01-20T18:59:08Z</t:Start>
<t:End>2014-01-21T00:59:08Z</t:End>
<t:Location>The lounge</t:Location>
<t:CalendarItemType>Single</t:CalendarItemType>
<t:RequiredAttendees>
<t:Attendee>
<t:Mailbox>
<t:Name>[email protected]</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
</t:Mailbox>
<t:ResponseType>Unknown</t:ResponseType>
</t:Attendee>
<t:Attendee>
<t:Mailbox>
<t:Name>[email protected]</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
</t:Mailbox>
<t:ResponseType>Unknown</t:ResponseType>
</t:Attendee>
<t:Attendee>
<t:Mailbox>
<t:Name>[email protected]</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
</t:Mailbox>
<t:ResponseType>Unknown</t:ResponseType>
</t:Attendee>
</t:RequiredAttendees>
</t:CalendarItem>
</m:Items>
</m:GetItemResponseMessage>
</m:ResponseMessages>
</m:GetItemResponse>
</s:Body>
</s:Envelope>
This example assumes that you have authenticated to an Exchange server and have
acquired an ExchangeService object named service.
C#
public static Collection<ItemId> BatchUpdateCalendarItems(ExchangeService
service, Collection<Appointment> calendarItems)
int i = 1;
i++;
itemIds.Add(appointment.Id);
ServiceResponseCollection<UpdateItemResponse> response =
service.UpdateItems(calendarItems,
WellKnownFolderName.Calendar,
ConflictResolutionMode.AutoResolve,
MessageDisposition.SendAndSaveCopy,
SendInvitationsOrCancellationsMode.SendToChangedAndSaveCopy);
if (response.OverallResult == ServiceResult.Success)
else
i = 1;
Console.WriteLine("ErrorMessage: {0}\r\n",
srvResponse.ErrorMessage);
i++;
return itemIds;
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Pacific Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:UpdateItem MessageDisposition="SendAndSaveCopy"
ConflictResolution="AutoResolve"
SendMeetingInvitationsOrCancellations="SendToChangedAndSaveCopy">
<m:SavedItemFolderId>
</m:SavedItemFolderId>
<m:ItemChanges>
<t:ItemChange>
<t:Updates>
<t:SetItemField>
<t:CalendarItem>
</t:Subject>
</t:CalendarItem>
</t:SetItemField>
</t:Updates>
</t:ItemChange>
<t:ItemChange>
<t:Updates>
<t:SetItemField>
<t:CalendarItem>
</t:CalendarItem>
</t:SetItemField>
</t:Updates>
</t:ItemChange>
<t:ItemChange>
<t:Updates>
<t:SetItemField>
<t:CalendarItem>
</t:CalendarItem>
</t:SetItemField>
</t:Updates>
</t:ItemChange>
</m:ItemChanges>
</m:UpdateItem>
</soap:Body>
</soap:Envelope>
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
Version="V2_8"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:UpdateItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:UpdateItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:CalendarItem>
</t:CalendarItem>
</m:Items>
<m:ConflictResults>
<t:Count>1</t:Count>
</m:ConflictResults>
</m:UpdateItemResponseMessage>
<m:UpdateItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:CalendarItem>
</t:CalendarItem>
</m:Items>
<m:ConflictResults>
<t:Count>1</t:Count>
</m:ConflictResults>
</m:UpdateItemResponseMessage>
<m:UpdateItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:CalendarItem>
</t:CalendarItem>
</m:Items>
<m:ConflictResults>
<t:Count>1</t:Count>
</m:ConflictResults>
</m:UpdateItemResponseMessage>
</m:ResponseMessages>
</m:UpdateItemResponse>
</s:Body>
</s:Envelope>
C#
ServiceResponseCollection<ServiceResponse> response =
service.DeleteItems(itemIds,
DeleteMode.MoveToDeletedItems,
SendCancellationsMode.SendToAllAndSaveCopy,
AffectedTaskOccurrence.AllOccurrences);
int counter = 1;
counter++;
response = service.DeleteItems(itemIds,
DeleteMode.MoveToDeletedItems,
SendCancellationsMode.SendToAllAndSaveCopy,
AffectedTaskOccurrence.AllOccurrences);
counter = 1;
counter++;
When the DeleteItems method is called the second time, no exception is thrown, but
the server returns an ErrorItemNotFound error in the result.
Delete calendar items in batches by using EWS
You can delete calendar items in batches by using the DeleteItem EWS operation, as
shown in the following code example. This is also the XML request that the EWS
Managed API sends when you use the EWS Managed API to delete calendar items in
batches.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Pacific Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:DeleteItem DeleteType="MoveToDeletedItems"
AffectedTaskOccurrences="AllOccurrences"
SendMeetingCancellations="SendToAllAndSaveCopy">
<m:ItemIds>
</m:ItemIds>
</m:DeleteItem>
</soap:Body>
</soap:Envelope>
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:DeleteItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:DeleteItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
</m:DeleteItemResponseMessage>
<m:DeleteItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
</m:DeleteItemResponseMessage>
<m:DeleteItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
</m:DeleteItemResponseMessage>
</m:ResponseMessages>
</m:DeleteItemResponse>
</s:Body>
</s:Envelope>
Note that if the DeleteItem request is made when the associated items have already
been deleted, no exception will be thrown, but the server will return an
ErrorItemNotFound error in the result. The following example shows the server
response to a DeleteItem request when the associated items have already been deleted.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:DeleteItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:DeleteItemResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorItemNotFound</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
</m:DeleteItemResponseMessage>
<m:DeleteItemResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorItemNotFound</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
</m:DeleteItemResponseMessage>
<m:DeleteItemResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorItemNotFound</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
</m:DeleteItemResponseMessage>
</m:ResponseMessages>
</m:DeleteItemResponse>
</s:Body>
</s:Envelope>
To verify the success of a batch process by using the EWS Managed API, you can check
that the OverallResult property of the ServiceResponseCollection is equal to
ServiceResult.Success . If so, all the calendar items were processed successfully. If the
OverallResult is not equal to ServiceResult.Success, one or more of the calendar items
were not processed successfully. Each of the objects returned in the
ServiceResponseCollection contains the following properties:
ErrorCode
ErrorDetails
ErrorMessage
ErrorProperties
Result
These properties contain information about why the calendar items could not be
processed as requested. The examples in this article print out the Result, ErrorCode, and
ErrorMessage for each failed item. You can use these results to investigate the issue.
For EWS, to verify the success of a batched process, check the ResponseClass attribute
for each item being processed. The following is the basic structure of the
ResponseMessageType, the base type from which all response messages are derived.
XML
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</ResponseMessage>
The ResponseClass attribute is set to Success if the calendar item was processed
successfully, or Error if it was not processed successfully. For calendar items, you will not
encounter a Warning during batch processing. If the ResponseClass is Success, the
ResponseCode element that follows is also always set to NoError. If the
ResponseClass is Error, you need to check the values of the MessageText ,
ResponseCode, and MessageXml elements to determine what caused the problem.
DescriptiveLinkKey is currently unused.
See also
Calendars and EWS in Exchange
Recurring masters
Occurrences in a series
In this article, we'll look at the three types of calendar items that are part of a recurring
series.
It's helpful to understand how recurring series are implemented on the Exchange server.
Instead of creating a separate distinct item for each occurrence in a recurring series, the
server creates only one actual item in the calendar, known as the recurring master. The
format of a recurring master is very similar to a non-recurring appointment, with the
addition of recurrence pattern information. The server then generates occurrences
based on the recurrence pattern in response to client requests for appointment
information, using a process called expansion. These generated occurrences are not
permanently stored on the server. This is important to understand because the way that
you search for calendar items determines what information you receive and whether
expansion occurs.
Recurrence patterns
The key piece to a recurring series that makes expansion possible is the recurrence
pattern. The recurrence pattern is found on the recurring master, and describes a set of
criteria for calculating occurrences based on the date and time of the recurring master.
Recurrence.DailyPattern
DailyRecurrence
Repeat every day.
Repeat every other day.
Recurrence.MonthlyPattern
AbsoluteMonthlyRecurrence Repeat every month on
the tenth day of the
month.
Repeat every other
month on the twenty-
first day of the month.
Recurrence.RelativeMonthlyPattern RelativeMonthlyRecurrence
Repeat on the second
Tuesday of every month.
Repeat on the third
Thursday of the month
every three months.
Recurrence.RelativeYearlyPattern
RelativeYearlyRecurrence
Repeat on the first
Monday of August every
year.
Recurrence.WeeklyPattern
WeeklyRecurrence
Repeat every Monday.
Repeat every Tuesday
and Thursday every
other week.
Recurrence.YearlyPattern
AbsoluteYearlyRecurrence
Repeat on September
1st every year.
The other important piece of information for a recurrence pattern is when the
recurrence ends. This can be expressed as either a set number of occurrences, as an end
date, or as having no end.
Recurrence.EndDate
EndDateRecurrence
The last occurrence in the
series falls on or before the
date specified by this property
or element.
Recurrence.HasEnd
NoEndRecurrence
The series has no end.
Recurrence.NeverEnds
ExchangeService.FindItems
FindItem operation No Non-recurring
with an appointments
IndexedPageItemView and recurring
element or master
FractionalPageItemView appointments
element
Sadie has just signed her son up for swim team. The team has practice every Wednesday
morning at 8:30 AM, starting July 2, with the last practice being on August 6. Not
wanting to forget about practice, Sadie adds a recurring appointment to her calendar to
remind her.
A quick look at a calendar shows that the team will have a total of six practices.
However, there aren't six distinct appointment items in the calendar. Instead, there is
just one recurring master appointment representing the series.
Now let's look at finding appointments on Sadie's calendar that occur within the month
of July. The following code example uses the FindItems method in the Exchange
Managed API to produce a non-expanded view of Sadie's calendar.
C#
AppointmentSchema.Location,
AppointmentSchema.Start,
AppointmentSchema.End,
AppointmentSchema.AppointmentType);
itemView.PropertySet = propSet;
filterList.Add(startFilter);
filterList.Add(endFilter);
Console.WriteLine(appt.Subject);
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Pacific Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:FindItem Traversal="Shallow">
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:ItemShape>
<m:Restriction>
<t:And>
<t:IsGreaterThan>
<t:FieldURIOrConstant>
</t:FieldURIOrConstant>
</t:IsGreaterThan>
<t:IsLessThan>
<t:FieldURIOrConstant>
</t:FieldURIOrConstant>
</t:IsLessThan>
</t:And>
</m:Restriction>
<m:ParentFolderIds>
</m:ParentFolderIds>
</m:FindItem>
</soap:Body>
</soap:Envelope>
The server's response includes only a single item, the recurring master, indicated by the
CalendarItemType element value of RecurringMaster. The value of the ItemId
element has been shortened for readability.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:FindItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:FindItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<t:Items>
<t:CalendarItem>
<t:Start>2014-07-02T15:30:00Z</t:Start>
<t:End>2014-07-02T17:00:00Z</t:End>
<t:CalendarItemType>RecurringMaster</t:CalendarItemType>
</t:CalendarItem>
</t:Items>
</m:RootFolder>
</m:FindItemResponseMessage>
</m:ResponseMessages>
</m:FindItemResponse>
</s:Body>
</s:Envelope>
Now let's compare with an expanded view. The following code example uses the
FindAppointments method in the EWS Managed API to create an expanded view of
Sadie's calendar.
C#
AppointmentSchema.Location,
AppointmentSchema.Start,
AppointmentSchema.End,
AppointmentSchema.AppointmentType);
calView.PropertySet = propSet;
FindItemsResults<Appointment> results =
service.FindAppointments(WellKnownFolderName.Calendar, calView);
Console.WriteLine(appt.Subject);
This code results in the following FindItem operation request with a CalendarView
element.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Pacific Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:FindItem Traversal="Shallow">
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:ItemShape>
<m:ParentFolderIds>
</m:ParentFolderIds>
</m:FindItem>
</soap:Body>
</soap:Envelope>
This time, the server response includes five occurrences, one for each Wednesday in July.
The CalendarItemType elements on these items all have a value of Occurrence. Note
that the recurring master is not present in the response. The values of the ItemId
elements have been shortened for readability.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:FindItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:FindItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<t:Items>
<t:CalendarItem>
<t:Start>2014-07-02T15:30:00Z</t:Start>
<t:End>2014-07-02T17:00:00Z</t:End>
<t:CalendarItemType>Occurrence</t:CalendarItemType>
</t:CalendarItem>
<t:CalendarItem>
<t:Start>2014-07-09T15:30:00Z</t:Start>
<t:End>2014-07-09T17:00:00Z</t:End>
<t:CalendarItemType>Occurrence</t:CalendarItemType>
</t:CalendarItem>
<t:CalendarItem>
<t:Start>2014-07-16T15:30:00Z</t:Start>
<t:End>2014-07-16T17:00:00Z</t:End>
<t:CalendarItemType>Occurrence</t:CalendarItemType>
</t:CalendarItem>
<t:CalendarItem>
<t:Start>2014-07-23T15:30:00Z</t:Start>
<t:End>2014-07-23T17:00:00Z</t:End>
<t:CalendarItemType>Occurrence</t:CalendarItemType>
</t:CalendarItem>
<t:CalendarItem>
<t:Start>2014-07-30T15:30:00Z</t:Start>
<t:End>2014-07-30T17:00:00Z</t:End>
<t:CalendarItemType>Occurrence</t:CalendarItemType>
</t:CalendarItem>
</t:Items>
</m:RootFolder>
</m:FindItemResponseMessage>
</m:ResponseMessages>
</m:FindItemResponse>
</s:Body>
</s:Envelope>
After you have a recurring master, an occurrence, or an exception, you can always
retrieve the other related items. Given an occurrence or exception, you can retrieve the
recurring master, and vice versa.
In this section
Access a recurring series by using EWS in Exchange
Create a recurring series by using EWS in Exchange
See also
Calendars and EWS in Exchange
Learn how to access calendar items in a recurring series by using the EWS Managed API
or EWS in Exchange.
This example assumes that you have authenticated to an Exchange server and have
acquired an ExchangeService object named service.
C#
DateTime
startSearchDate,
DateTime
endSearchDate)
// Create a calendar view to search the calendar folder and specify the
properties to return.
AppointmentSchema.Start,
AppointmentSchema.IsRecurring,
AppointmentSchema.AppointmentType);
FindItemsResults<Appointment> findResults =
service.FindAppointments(WellKnownFolderName.Calendar, calView);
if (appt.AppointmentType == AppointmentType.Occurrence ||
appt.AppointmentType == AppointmentType.Exception)
foundAppointments.Add(appt);
else
return foundAppointments;
This example assumes that you have authenticated to an Exchange server and have
acquired an ExchangeService object named service.
C#
AppointmentType myAppointmentType,
DateTime startSearchDate)
searchFilter.Add(new
SearchFilter.IsGreaterThanOrEqualTo(AppointmentSchema.Start,
startSearchDate));
AppointmentSchema.Subject,
AppointmentSchema.Start,
AppointmentSchema.AppointmentType,
AppointmentSchema.IsRecurring);
// Get the appointment items from the server with the properties we
specified.
FindItemsResults<Item> findResults =
service.FindItems(WellKnownFolderName.Calendar, searchFilter, view);
// Add each of the appointments of the type you want to the collection.
if (appt.AppointmentType == myAppointmentType)
foundAppointments.Add(appt);
return foundAppointments;
Table 1. EWS Managed API property or method to use to get related recurrence
calendar items
The following code example shows how to get a recurring master, the first or last
occurrence in a series, or an occurrence given its index.
This example assumes that you have authenticated to an Exchange server and have
acquired an ExchangeService object named service.
C#
AppointmentSchema.Subject,
AppointmentSchema.FirstOccurrence,
AppointmentSchema.LastOccurrence,
AppointmentSchema.ModifiedOccurrences,
AppointmentSchema.DeletedOccurrences);
switch (calendarItem.AppointmentType)
case AppointmentType.RecurringMaster:
break;
case AppointmentType.Single:
case AppointmentType.Occurrence:
recurrMaster = Appointment.BindToRecurringMaster(service,
itemId, props);
break;
case AppointmentType.Exception:
recurrMaster = Appointment.BindToRecurringMaster(service,
itemId, props);
break;
recurrMaster.FirstOccurrence.ItemId.ToString().Substring(144),
recurrMaster.FirstOccurrence.Start.ToString());
recurrMaster.LastOccurrence.ItemId.ToString().Substring(144),
recurrMaster.LastOccurrence.Start.ToString());
recurrMaster.Id,
1, // Index
of first item is 1, not 0.
new
PropertySet(AppointmentSchema.AppointmentType,
AppointmentSchema.Start));
firstOccurrence.Start.ToString(),
recurrMaster.FirstOccurrence.Start.ToString());
The following XML shows the GetItem request used to return an occurrence in a series
specified by its index. Note that the ItemID of the recurring master has been shortened
for readability.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetItem>
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:ItemShape>
<m:ItemIds>
</m:ItemIds>
</m:GetItem>
</soap:Body>
</soap:Envelope>
The server responds to the GetItem request with a GetItemResponse message that
includes a ResponseCode value of NoError, which indicates that the email was created
successfully, and the ItemId of the newly created message.
See also
Calendars and EWS in Exchange
Get appointments and meetings by using EWS in Exchange
Create a recurring series by using EWS
in Exchange
Article • 09/15/2021 • 6 minutes to read
Learn how to create recurring meetings by using the EWS Managed API or EWS in
Exchange.
Creating a recurring appointment or meeting isn't all that much different than creating a
single instance appointment or meeting. You just need to assign values to a few
additional recurrence-related properties. These are set on an
ExchangeService.Appointment object's Recurrence object (if you're using the EWS
Managed API), or the Recurrence child element of a CalendarItem element (if you're
using EWS). One thing to consider when you create a recurring, rather than a single-
instance meeting, is that the calendar item you create is the recurring master for a
series. A number of properties are set only on a recurring master; these properties can
help you find, modify, or delete individual instances in a series. For this reason, it might
be useful to keep track of the ID of the recurring master when you create a recurring
series.
Recurrence class
Recurrence Contains recurrence-related
The Recurrence class is the base class (RecurrenceType)
information, including the
for a derived pattern class, either recurrence pattern (daily,
IntervalPattern , weekly, monthly, and so on),
RelativeYearlyPattern , or start and end date, number of
YearlyPattern . occurrences, and so on.
FirstOccurrence property
FirstOccurrence
Contains the start and end
times and the item ID for the
first meeting in a series.
LastOccurrence property
LastOccurrence
Contains the start and end
times and the item ID for the
last meeting in a series.
ModifiedOccurrences property
ModifiedOccurrences Contains the set of all
meetings in the series that
have been modified from the
original recurrence pattern.
EWS Managed API class or property EWS XML element Description
DeletedOccurrences property
DeletedOccurrences
Contains the set of all
meetings in the series that
have been deleted from the
original recurrence pattern.
Because meetings are essentially appointments that include attendees, the code
examples in this article show how to create recurring meetings. If you want to create a
recurring appointment, you can modify the examples by removing code related to
attendees.
This example assumes that you have authenticated to an Exchange server and have
acquired an ExchangeService object named service. The method in this example
returns the item ID of the recurring series' recurring master.
C#
recurrMeeting.Start = DateTime.Now.AddDays(1);
recurrMeeting.End = recurrMeeting.Start.AddHours(1);
recurrMeeting.RequiredAttendees.Add("[email protected]");
recurrMeeting.RequiredAttendees.Add("[email protected]");
recurrMeeting.RequiredAttendees.Add("[email protected]");
recurrMeeting.ReminderMinutesBeforeStart = 30;
recurrMeeting.Recurrence = new
Recurrence.WeeklyPattern(recurrMeeting.Start.Date, 1, dow);
recurrMeeting.Recurrence.StartDate = recurrMeeting.Start.Date;
recurrMeeting.Recurrence.NumberOfOccurrences = 10;
recurrMeeting.Save(SendInvitationsMode.SendToAllAndSaveCopy);
// Retrieve the meeting subject and the properties that are set on a
recurring master when a recurring series is created.
AppointmentSchema.AppointmentType,
AppointmentSchema.Recurrence,
AppointmentSchema.FirstOccurrence,
AppointmentSchema.LastOccurrence,
AppointmentSchema.ModifiedOccurrences,
AppointmentSchema.DeletedOccurrences));
recurrMeeting.FirstOccurrence.ItemId.ToString().Substring(144));
recurrMeeting.LastOccurrence.ItemId.ToString().Substring(144));
return recurrMeeting.Id;
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Name="(UTC-08:00) Pacific Time (US &amp;
Canada)" Id="Pacific Standard Time">
<t:Periods>
</t:Periods>
<t:TransitionsGroups>
<t:TransitionsGroup Id="0">
<t:RecurringDayTransition>
<t:To Kind="Period">Dlt/1</t:To>
<t:TimeOffset>P0DT2H0M0.0S</t:TimeOffset>
<t:Month>4</t:Month>
<t:DayOfWeek>Sunday</t:DayOfWeek>
<t:Occurrence>1</t:Occurrence>
</t:RecurringDayTransition>
<t:RecurringDayTransition>
<t:To Kind="Period">Std</t:To>
<t:TimeOffset>P0DT2H0M0.0S</t:TimeOffset>
<t:Month>10</t:Month>
<t:DayOfWeek>Sunday</t:DayOfWeek>
<t:Occurrence>-1</t:Occurrence>
</t:RecurringDayTransition>
</t:TransitionsGroup>
<t:TransitionsGroup Id="1">
<t:RecurringDayTransition>
<t:To Kind="Period">Dlt/2007</t:To>
<t:TimeOffset>P0DT2H0M0.0S</t:TimeOffset>
<t:Month>3</t:Month>
<t:DayOfWeek>Sunday</t:DayOfWeek>
<t:Occurrence>2</t:Occurrence>
</t:RecurringDayTransition>
<t:RecurringDayTransition>
<t:To Kind="Period">Std</t:To>
<t:TimeOffset>P0DT2H0M0.0S</t:TimeOffset>
<t:Month>11</t:Month>
<t:DayOfWeek>Sunday</t:DayOfWeek>
<t:Occurrence>1</t:Occurrence>
</t:RecurringDayTransition>
</t:TransitionsGroup>
</t:TransitionsGroups>
<t:Transitions>
<t:Transition>
<t:To Kind="Group">0</t:To>
</t:Transition>
<t:AbsoluteDateTransition>
<t:To Kind="Group">1</t:To>
<t:DateTime>2007-01-01T08:00:00.000Z</t:DateTime>
</t:AbsoluteDateTransition>
</t:Transitions>
</t:TimeZoneDefinition>
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:CreateItem SendMeetingInvitations="SendToAllAndSaveCopy">
<m:Items>
<t:CalendarItem>
<t:ReminderMinutesBeforeStart>30</t:ReminderMinutesBeforeStart>
<t:Start>2014-03-08T13:21:32.868-08:00</t:Start>
<t:End>2014-03-08T14:21:32.868-08:00</t:End>
<t:RequiredAttendees>
<t:Attendee>
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:Attendee>
<t:Attendee>
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:Attendee>
<t:Attendee>
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:Attendee>
</t:RequiredAttendees>
<t:Recurrence>
<t:WeeklyRecurrence>
<t:Interval>1</t:Interval>
<t:DaysOfWeek>Saturday</t:DaysOfWeek>
</t:WeeklyRecurrence>
<t:NumberedRecurrence>
<t:StartDate>2014-03-08-08:00</t:StartDate>
<t:NumberOfOccurrences>10</t:NumberOfOccurrences>
</t:NumberedRecurrence>
</t:Recurrence>
</t:CalendarItem>
</m:Items>
</m:CreateItem>
</soap:Body>
</soap:Envelope>
The following example shows the response XML that is returned by the CreateItem
operation.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
Version="V2_10"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:CreateItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:CreateItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:CalendarItem>
</t:CalendarItem>
</m:Items>
</m:CreateItemResponseMessage>
</m:ResponseMessages>
</m:CreateItemResponse>
</s:Body>
</s:Envelope>
The following example shows the request XML that is generated when you use the
GetItem operation and the ItemId for the series you created, and request properties
only set on a recurring master to confirm that the ItemId returned by the server when
creating a recurring series is for a recurring master.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetItem>
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:ItemShape>
<m:ItemIds>
</m:ItemIds>
</m:GetItem>
</soap:Body>
</soap:Envelope>
The following example shows the response XML that is returned by the GetItem
operation.
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
Version="V2_10"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:CalendarItem>
<t:CalendarItemType>RecurringMaster</t:CalendarItemType>
<t:Recurrence>
<t:WeeklyRecurrence>
<t:Interval>1</t:Interval>
<t:DaysOfWeek>Saturday</t:DaysOfWeek>
</t:WeeklyRecurrence>
<t:NumberedRecurrence>
<t:StartDate>2014-03-08-08:00</t:StartDate>
<t:NumberOfOccurrences>10</t:NumberOfOccurrences>
</t:NumberedRecurrence>
</t:Recurrence>
<t:FirstOccurrence>
<t:Start>2014-03-08T21:21:00Z</t:Start>
<t:End>2014-03-08T22:21:00Z</t:End>
<t:OriginalStart>2014-03-08T21:21:00Z</t:OriginalStart>
</t:FirstOccurrence>
<t:LastOccurrence>
<t:Start>2014-05-10T20:21:00Z</t:Start>
<t:End>2014-05-10T21:21:00Z</t:End>
<t:OriginalStart>2014-05-10T20:21:00Z</t:OriginalStart>
</t:LastOccurrence>
</t:CalendarItem>
</m:Items>
</m:GetItemResponseMessage>
</m:ResponseMessages>
</m:GetItemResponse>
</s:Body>
</s:Envelope>
See also
Calendars and EWS in Exchange
Learn how to delete appointments in a recurring series by using the EWS Managed API
or EWS in Exchange.
You can use the EWS Managed API or EWS to delete a series of appointments or
meetings, or just one instance in the series. The process you use to delete an entire
series is essentially the same as the process you use to delete just a single occurrence.
You use the same EWS Managed API methods or EWS operations that you use to delete
a single instance appointment or meeting. The difference is in the item ID that is
included in the method or operation. Let's start by looking at how both scenarios are
the same.
In order to delete a recurring series or a single occurrence in a recurring series, you need
to find the occurrence or series that you want to delete, and then call the appropriate
method or operation to remove it. While you can simply delete any type of
appointment, we recommend that you keep any attendees or the organizer up to date
and cancel meetings that the user has organized and decline meetings that the user did
not organize.
So how are the scenarios different? It's all about the Appointment object used to
invoke the method (for the EWS Managed API) or the item ID included in the operation
request (for EWS). To delete an entire series, you need the Appointment object or item
ID for the recurring master. To delete a single occurrence, you need the Appointment
object or item ID for the occurrence.
C#
public static bool DeleteRecurringItem(ExchangeService service, Appointment
recurringItem, bool deleteEntireSeries)
if (recurringItem.AppointmentType == AppointmentType.Single)
return false;
if (recurringItem.AppointmentType == AppointmentType.RecurringMaster)
if (!deleteEntireSeries)
return false;
else
appointmentToDelete = recurringItem;
else
if (deleteEntireSeries)
// The item passed is not the recurring master, but the caller
try
appointmentToDelete =
Appointment.BindToRecurringMaster(service, recurringItem.Id);
return false;
else
// The item passed is not the recurring master, but the caller
appointmentToDelete = recurringItem;
if (appointmentToDelete != null)
if (appointmentToDelete.IsMeeting)
CalendarActionResults results;
// the presence of the second bit. This bit indicates that the
appointment
int isReceived = 2;
return true;
else
results = appointmentToDelete.Decline(true);
return true;
else
appointmentToDelete.Delete(DeleteMode.MoveToDeletedItems);
return true;
return false;
In order to use this example, you need to bind to either an occurrence or the recurring
master, and pass the resulting Appointment object to the method. Keep in mind that if
you access appointments by using a CalendarView class, the resulting items are all
single occurrences. Conversely, if you use the ItemView class, the resulting items are
all recurring masters.
7 Note
In the code examples that follow, the ItemId, ChangeKey, and RecurringMasterId
attributes are shortened for readability.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Eastern Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:CreateItem MessageDisposition="SendAndSaveCopy">
<m:Items>
<t:CancelCalendarItem>
</t:CancelCalendarItem>
</m:Items>
</m:CreateItem>
</soap:Body>
</soap:Envelope>
This example uses the CreateItem operation with a DeclineItem element to decline a
meeting for which the user is not the organizer. As in the previous example, the value of
the ReferenceItemId element indicates the item to decline, and can be the item ID of a
recurring master or a single occurrence.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Eastern Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:CreateItem MessageDisposition="SendAndSaveCopy">
<m:Items>
<t:DeclineItem>
</t:DeclineItem>
</m:Items>
</m:CreateItem>
</soap:Body>
</soap:Envelope>
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Eastern Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:DeleteItem DeleteType="MoveToDeletedItems"
SendMeetingCancellations="SendToAllAndSaveCopy">
<m:ItemIds>
<t:OccurrenceItemId RecurringMasterId="AAMkADA8..."
InstanceIndex="3" />
</m:ItemIds>
</m:DeleteItem>
</soap:Body>
</soap:Envelope>
Note that you can get the same result by replacing the OccurrenceItemId element with
an ItemId element that contains the item ID of the occurrence, as shown.
XML
<m:ItemIds>
</m:ItemIds>
See also
Recurrence patterns and EWS
Access a recurring series by using EWS in Exchange
Create a recurring series by using EWS in Exchange
Update a recurring series by using EWS
Update a recurring series by using EWS in Exchange
Calendars and EWS in Exchange
Create appointments and meetings by using EWS in Exchange 2013
Delete appointments and cancel meetings by using EWS in Exchange
Update a recurring series by using EWS
Article • 03/04/2022 • 4 minutes to read
Learn how to modify appointments in a recurring series by using the EWS Managed API
or EWS in Exchange.
You can use the EWS Managed API or EWS to update a recurring series by either
updating the entire series, or by updating a single occurrence. In this article we'll discuss
how to update a single occurrence.
When you change a single occurrence in a series, that occurrence is added to an array of
modified appointments associated with the recurring master for the series. You can use
the Appointment.ModifiedOccurrences EWS Managed API property or the
ModifiedOccurrences EWS element to access all the appointments in a series that
have been modified.
The following example updates an appointment in a recurring series and verifies that
the modified appointment is updated on the recurring master. This example assumes
that you have authenticated to an Exchange server and have acquired an
ExchangeService object named service. The recurrenceMasterId parameter is an
identifier associated with the recurring master for the occurrence to modify.
C#
if (calendarItem.AppointmentType == AppointmentType.RecurringMaster)
recurrMaster = Appointment.Bind(service,
recurrenceMasterId,
new
PropertySet(AppointmentSchema.AppointmentType,
AppointmentSchema.Subject,
AppointmentSchema.FirstOccurrence,
AppointmentSchema.LastOccurrence,
AppointmentSchema.ModifiedOccurrences,
AppointmentSchema.DeletedOccurrences));
else
return recurrenceMasterId;
recurrMaster.Id,
2,
new
PropertySet(AppointmentSchema.Location,
AppointmentSchema.Start,
AppointmentSchema.End,
AppointmentSchema.RequiredAttendees,
AppointmentSchema.Subject));
occurrenceToModify.Start = occurrenceToModify.Start.AddDays(1);
occurrenceToModify.End = occurrenceToModify.End.AddDays(1);
occurrenceToModify.RequiredAttendees.Add("Contoso CEO",
"sadie@contoso");
occurrenceToModify.Subject = occurrenceToModify.Subject.ToString() +
":Mandatory";
// Update the occurrence in your calendar folder and send meeting update
requests to attendees.
occurrenceToModify.Update(ConflictResolutionMode.AlwaysOverwrite,
SendInvitationsOrCancellationsMode.SendToAllAndSaveCopy);
AppointmentSchema.DeletedOccurrences));
return recurrMaster.Id;
The following example shows the request XML when you use the UpdateItem
operation to update an occurrence in a recurring series of appointments. The ItemId
and ChangeKey are shortened for readability.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:UpdateItem ConflictResolution="AlwaysOverwrite"
SendMeetingInvitationsOrCancellations="SendToAllAndSaveCopy">
<m:ItemChanges>
<t:ItemChange>
<t:Updates>
<t:SetItemField>
<t:CalendarItem>
</t:CalendarItem>
</t:SetItemField>
<t:SetItemField>
<t:CalendarItem>
<t:Start>2014-03-27T19:33:00.000-07:00</t:Start>
</t:CalendarItem>
</t:SetItemField>
<t:SetItemField>
<t:CalendarItem>
<t:End>2014-03-27T20:33:00.000-07:00</t:End>
</t:CalendarItem>
</t:SetItemField>
<t:SetItemField>
<t:CalendarItem>
<t:RequiredAttendees>
<t:Attendee>
<t:Mailbox>
<t:Name>[email protected]</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
</t:Mailbox>
</t:Attendee>
<t:Attendee>
<t:Mailbox>
<t:Name>[email protected]</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
</t:Mailbox>
</t:Attendee>
<t:Attendee>
<t:Mailbox>
<t:Name>[email protected]</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
</t:Mailbox>
</t:Attendee>
<t:Attendee>
<t:Mailbox>
<t:Name>Contoso CEO</t:Name>
<t:EmailAddress>sadie@contoso</t:EmailAddress>
</t:Mailbox>
</t:Attendee>
<t:Attendee>
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:Attendee>
<t:Attendee>
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:Attendee>
</t:RequiredAttendees>
</t:CalendarItem>
</t:SetItemField>
<t:SetItemField>
<t:CalendarItem>
</t:CalendarItem>
</t:SetItemField>
</t:Updates>
</t:ItemChange>
</m:ItemChanges>
</m:UpdateItem>
</soap:Body>
</soap:Envelope>
See also
Calendars and EWS in Exchange
Learn how to update an entire recurring series at once by using the EWS Managed API
or EWS in Exchange.
You can use the EWS Managed API or EWS to update a recurring series by either
updating the entire series, or by updating a single occurrence. In this article we'll discuss
how to update the entire series at once.
However, there is one key difference to consider when updating a recurring series:
updating the recurrence pattern. Updating the recurrence pattern is only possible with
the recurring master, and changes to the pattern can add or remove occurrences. For
example, if you modify the Recurrence.EndDate property to a date later than its
current value, the recurrence pattern is reevaluated, and additional occurrences might
be added.
The following example updates a recurring series to change the location, add an
attendee, and modify the recurrence pattern. This example assumes that the
ExchangeService object passed in the service parameter has been initialized with valid
values in the Credentials and Url properties. The recurringAppointment parameter is
an Appointment object bound to either an occurrence or the recurring master for the
series to be updated.
C#
using Microsoft.Exchange.WebServices.Data;
if (recurringAppointment.AppointmentType == AppointmentType.Single)
return false;
if (recurringAppointment.AppointmentType !=
AppointmentType.RecurringMaster)
try
recurringMaster = Appointment.BindToRecurringMaster(service,
recurringAppointment.Id);
return false;
else
recurringMaster = Appointment.Bind(service,
recurringAppointment.Id);
// Add an attendee.
recurringMaster.RequiredAttendees.Add(newAttendee);
// master.
// If the series has an end date, extend the series to add two more
occurrences.
if (recurringMaster.Recurrence.HasEnd)
if (recurringMaster.Recurrence.NumberOfOccurrences != null)
recurringMaster.Recurrence.NumberOfOccurrences += 2;
else
switch (recurrenceType.Name)
case "DailyPattern":
recurringMaster.Recurrence.EndDate =
recurringMaster.Recurrence.EndDate.Value.AddDays(2);
break;
case "WeeklyPattern":
recurringMaster.Recurrence.EndDate =
recurringMaster.Recurrence.EndDate.Value.AddDays(14);
break;
case "YearlyPattern":
recurringMaster.Recurrence.EndDate =
recurringMaster.Recurrence.EndDate.Value.AddYears(2);
break;
default:
break;
else
recurringMaster.Recurrence.EndDate = DateTime.Now.AddDays(14);
try
recurringMaster.Update(ConflictResolutionMode.AutoResolve);
return false;
return true;
The following example updates the recurring series in the following ways:
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Eastern Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:UpdateItem MessageDisposition="SaveOnly"
ConflictResolution="AutoResolve"
SendMeetingInvitationsOrCancellations="SendToAllAndSaveCopy">
<m:ItemChanges>
<t:ItemChange>
<t:Updates>
<t:SetItemField>
<t:CalendarItem>
</t:CalendarItem>
</t:SetItemField>
<t:SetItemField>
<t:CalendarItem>
<t:RequiredAttendees>
<t:Attendee>
<t:Mailbox>
<t:Name>Mack Chaves</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
</t:Mailbox>
</t:Attendee>
<t:Attendee>
<t:Mailbox>
<t:Name>Sadie Daniels</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
</t:Mailbox>
</t:Attendee>
</t:RequiredAttendees>
</t:CalendarItem>
</t:SetItemField>
<t:SetItemField>
<t:CalendarItem>
<t:Recurrence>
<t:WeeklyRecurrence>
<t:Interval>1</t:Interval>
<t:DaysOfWeek>Tuesday</t:DaysOfWeek>
</t:WeeklyRecurrence>
<t:EndDateRecurrence>
<t:StartDate>2014-05-06</t:StartDate>
<t:EndDate>2014-06-22-04:00</t:EndDate>
</t:EndDateRecurrence>
</t:Recurrence>
</t:CalendarItem>
</t:SetItemField>
<t:SetItemField>
<t:CalendarItem>
</t:CalendarItem>
</t:SetItemField>
</t:Updates>
</t:ItemChange>
</m:ItemChanges>
</m:UpdateItem>
</soap:Body>
</soap:Envelope>
See also
Calendars and EWS in Exchange
Recurrence patterns and EWS
Update appointments and meetings by using EWS in Exchange
Update a recurring series by using EWS
Access a recurring series by using EWS in Exchange
Delegate access and EWS in Exchange
Article • 06/14/2022 • 9 minutes to read
Find out how to use the EWS Managed API and EWS in Exchange to provide delegate
access to users' mailboxes.
You can enable users to access other users' mailboxes in one of three ways:
By using impersonation.
Delegation and folder permissions are best when you're only granting access to a few
users, because you have to add permissions individually to each mailbox. Impersonation
is the best choice when you're dealing with quantities of mailboxes, because you can
easily enable one service account to access every mailbox in a database. Figure 1 shows
some of the differences between each type of access.
When is it appropriate to modify folder permissions directly? Generally, when you want
to provide a user access to a folder, but do not want to grant the user "send on behalf
of" permissions, when your permissions requirements do not map to the
DelegateFolderPermissionLevel EWS Managed API enumeration values or the
PermissionLevel EWS element values, or when you want to provide a user access to a
single custom folder.
If you only need to modify folder permissions to achieve your goal, and do not need to
add a delegate (that is, you don't need "send on behalf of" permissions), see Set folder
permissions for another user by using EWS in Exchange.
Note that you can also use Outlook or the Exchange Server PowerShell (Exchange
Management Shell) to set up delegate access.
Calendar
Tasks
Inbox
Contacts
Notes
Journal
When a user has delegate access to one or more of these folders, they can create, get,
update, delete, copy, and search for items in that folder and any child folders,
depending on the permissions set on the folder. The way in which the application
performs these actions depends on whether explicit or implicit access is required.
Delegate permissions
When an administrator or mailbox owner adds a delegate to a mailbox, they can also set
the permission level for one or more folders. If a permission level is not set for a folder,
the permission value defaults to None. Multiple users can have the same permission
level on a folder, and users can have different permission levels for different folders. If
you're using the EWS Managed API, you use the DelegateUser.Permissions property,
which contains one of the DelegateFolderPermissionLevel enumeration values for
each folder, to set delegate permissions on folders. If you're using EWS, you use the
DelegatePermissions element to set delegate permissions, and the PermissionLevel
element to define the permission level.
Permission Description
level
Author A delegate can read and create items, and modify and delete items they create. For
example, a delegate can create task requests and meeting requests directly in the
mailbox owner's Task or Calendar folder, and then send either item on the mailbox
owner's behalf.
Editor A delegate can do everything an Author can do, and also modify and delete the
items the mailbox owner created.
Reviewer A delegate can read items; for example a delegate with Reviewer permission can
read messages in another person's Inbox.
Custom The mailbox owner has granted a custom set of permissions to the delegate.
Explicit access
Simply put, explicit access is the entry way for delegates to perform actions on a
mailbox owner's folders or items. Explicit access is granted to a delegate when they
include the well-known folder name for a mailbox owner's folder along with the mailbox
owner's SMTP address in a request to the server. The access is explicit because the
delegate's request explicitly states that the context for the method or operation is the
mailbox owner's mailbox, and not the delegate's mailbox.
Explicit access defines the context for all methods or operations performed on the
folders or items moving forward. All item and folder IDs returned when the explicit
access is set uniquely identify themselves as belonging to the mailbox owner (although
not in any human readable format). This way, the application doesn't need to specify the
mailbox owner's SMTP address again and again; the context is hidden in the identifiers.
After an item or folder is identified, a delegate actually uses implicit access to modify the
item. The following figure shows the process of getting explicit and implicit access.
You can set explicit access in many different scenarios. Essentially, any time you're
sending a folder ID in a method or operation, you can set explicit access. This can
include finding folders, finding appointments, getting items, finding conversations, and
so on.
ExchangeService.FindItems
ExchangeService.FindAppointments
ExchangeService.FindFolders
And more!
You can use the FolderId parameter in each of these methods to identify the mailbox
owner's target folder, as follows.
C#
For example, to bind to the Calendar folder, the FolderId in this Bind method specifies
the well-known folder name, and the mailbox owner's SMTP address.
C#
By specifying the well-known folder name and the SMTP address, the delegate can bind
to the mailbox owner's Calendar folder — thereby gaining explicit access to the folder.
All subsequent requests for implicit access to items in the folder then rely on the context
returned in the item IDs and folder IDs. Essentially, the identifiers contain the context for
the implied delegate access calls. Or, to retrieve the item ID of an item that meets
specific criteria, use the following.
C#
In this case the item ID is returned, and then the delegate can then use implicit access to
make changes to the item by using the item ID.
You don't have to initiate explicit access again until you require an item ID or a folder ID
that you didn't access via the existing explicit access.
Explicit access and EWS
You can initiate explicit access by using the GetFolder , FindItem , or FindFolder
operations. These operations provide the option to use the DistinguishedFolderId
element to identify the target folder. The DistinguishedFolderId element has a single
optional child element, the Mailbox element. The Mailbox element, when used as a
child of the DistinguishedFolderId element, specifies the mailbox for the delegate to
access. If the calling user has permission to access the mailbox owner's folder, the
response will contain a collection of identifiers to items or folders in that mailbox. The
item and folder identifiers that are returned in the response can be used for implicit
delegate access.
Implicit access
Implicit access is used after a delegate has retrieved the ID for an item or folder in the
mailbox owner's mailbox and the delegate wants to update, delete, or copy the item.
When the delegate uses that item or folder ID in a request, the changes are made to the
item in the mailbox owner's mailbox. The delegate does not have to include the mailbox
owner's SMTP address.
For example, when a delegate has the ID of one of the mailbox owner's folders, the
delegate can perform a FindItem operation on that folder by using the folder ID,
without explicitly identifying the mailbox owner's mailbox. At that point, the delegate
can perform actions on the mailbox owner's folder by using the IDs that are returned in
the responses.
In this section
Add and remove delegates by using EWS in Exchange
See also
Develop web service clients for Exchange
Add- MailboxPermission
Add and remove delegates by using
EWS in Exchange
Article • 09/15/2021 • 6 minutes to read
Learn how to add delegates to or remove delegates from users' mailboxes by using the
EWS Managed API or EWS in Exchange.
You can use the EWS Managed API or EWS to enable delegates to act on behalf of a
mailbox owner or remove a delegate's access to a mailbox. Users who are added as a
delegate, and are given permissions, can perform tasks on behalf of the mailbox owner.
For example, they can create and send meeting invitations, send emails, and respond to
meeting requests on the mailbox owner's behalf.
Table 1. EWS Managed API methods and EWS operations for adding and removing
delegates
After a delegate is granted permissions to a folder, they can act on items in the folder
and any subfolders, according to their delegate permissions. Permissions for delegates
only apply to subfolders that are created after the delegate access was granted. To
update folder permissions for pre-existing folders, or other folders, see Set folder
permissions for another user by using EWS in Exchange.
Note that delegates can only be added to mailbox-enabled accounts, including mail-
enabled security groups. By default, a single EWS delegate access call can access a
maximum of 255 different mailboxes.
C#
// Create a new delegate that has editor access to the mailbox owner's
Calendar folder.
calendarDelegate.Permissions.CalendarFolderPermissionLevel =
DelegateFolderPermissionLevel.Editor;
newDelegates.Add(calendarDelegate);
// Create a new delegate that has editor access to the mailbox owner's
Contacts folder.
contactDelegate.Permissions.ContactsFolderPermissionLevel =
DelegateFolderPermissionLevel.Editor;
newDelegates.Add(contactDelegate);
// Create a new delegate that has editor access to the mailbox owner's
Inbox folder.
emailDelegate.Permissions.InboxFolderPermissionLevel =
DelegateFolderPermissionLevel.Editor;
newDelegates.Add(emailDelegate);
Collection<DelegateUserResponse> response =
service.AddDelegates(mailbox,
MeetingRequestsDeliveryScope.DelegatesAndSendInformationToMe, newDelegates);
// Print out the result and the last eight characters of the item
ID.
Console.WriteLine("\r\n");
return response;
This is also the XML request that the EWS Managed API sends when you use the
AddDelegates method to add delegates.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:AddDelegate>
<m:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</m:Mailbox>
<m:DelegateUsers>
<t:DelegateUser>
<t:UserId>
<t:PrimarySmtpAddress>[email protected]</t:PrimarySmtpAddress>
</t:UserId>
<t:DelegatePermissions>
<t:CalendarFolderPermissionLevel>Editor</t:CalendarFolderPermissionLevel>
<t:TasksFolderPermissionLevel>None</t:TasksFolderPermissionLevel>
<t:InboxFolderPermissionLevel>None</t:InboxFolderPermissionLevel>
<t:ContactsFolderPermissionLevel>None</t:ContactsFolderPermissionLevel>
<t:NotesFolderPermissionLevel>None</t:NotesFolderPermissionLevel>
<t:JournalFolderPermissionLevel>None</t:JournalFolderPermissionLevel>
</t:DelegatePermissions>
<t:ReceiveCopiesOfMeetingMessages>false</t:ReceiveCopiesOfMeetingMessages>
<t:ViewPrivateItems>false</t:ViewPrivateItems>
</t:DelegateUser>
<t:DelegateUser>
<t:UserId>
<t:PrimarySmtpAddress>[email protected]</t:PrimarySmtpAddress>
</t:UserId>
<t:DelegatePermissions>
<t:CalendarFolderPermissionLevel>None</t:CalendarFolderPermissionLevel>
<t:TasksFolderPermissionLevel>None</t:TasksFolderPermissionLevel>
<t:InboxFolderPermissionLevel>None</t:InboxFolderPermissionLevel>
<t:ContactsFolderPermissionLevel>Editor</t:ContactsFolderPermissionLevel>
<t:NotesFolderPermissionLevel>None</t:NotesFolderPermissionLevel>
<t:JournalFolderPermissionLevel>None</t:JournalFolderPermissionLevel>
</t:DelegatePermissions>
<t:ReceiveCopiesOfMeetingMessages>false</t:ReceiveCopiesOfMeetingMessages>
<t:ViewPrivateItems>false</t:ViewPrivateItems>
</t:DelegateUser>
<t:DelegateUser>
<t:UserId>
<t:PrimarySmtpAddress>[email protected]</t:PrimarySmtpAddress>
</t:UserId>
<t:DelegatePermissions>
<t:CalendarFolderPermissionLevel>None</t:CalendarFolderPermissionLevel>
<t:TasksFolderPermissionLevel>None</t:TasksFolderPermissionLevel>
<t:InboxFolderPermissionLevel>Editor</t:InboxFolderPermissionLevel>
<t:ContactsFolderPermissionLevel>None</t:ContactsFolderPermissionLevel>
<t:NotesFolderPermissionLevel>None</t:NotesFolderPermissionLevel>
<t:JournalFolderPermissionLevel>None</t:JournalFolderPermissionLevel>
</t:DelegatePermissions>
<t:ReceiveCopiesOfMeetingMessages>false</t:ReceiveCopiesOfMeetingMessages>
<t:ViewPrivateItems>false</t:ViewPrivateItems>
</t:DelegateUser>
</m:DelegateUsers>
<m:DeliverMeetingRequests>DelegatesAndSendInformationToMe</m:DeliverMeetingR
equests>
</m:AddDelegate>
</soap:Body>
</soap:Envelope>
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="888"
MinorBuildNumber="9"
Version="V2_10"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:AddDelegateResponse ResponseClass="Success"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseCode>NoError</m:ResponseCode>
<m:ResponseMessages>
<m:DelegateUserResponseMessageType ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:DelegateUser>
<t:UserId>
<t:SID>S-1-5-21-1337771579-694202782-848329751-1535221</t:SID>
<t:PrimarySmtpAddress>[email protected]</t:PrimarySmtpAddress>
<t:DisplayName>calendardelegate</t:DisplayName>
</t:UserId>
<t:ReceiveCopiesOfMeetingMessages>false</t:ReceiveCopiesOfMeetingMessages>
<t:ViewPrivateItems>false</t:ViewPrivateItems>
</m:DelegateUser>
</m:DelegateUserResponseMessageType>
<m:DelegateUserResponseMessageType ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:DelegateUser>
<t:UserId>
<t:SID>S-1-5-21-1337771579-694202782-848329751-1535264</t:SID>
<t:PrimarySmtpAddress>[email protected]</t:PrimarySmtpAddress>
<t:DisplayName>contactdelegate</t:DisplayName>
</t:UserId>
<t:ReceiveCopiesOfMeetingMessages>false</t:ReceiveCopiesOfMeetingMessages>
<t:ViewPrivateItems>false</t:ViewPrivateItems>
</m:DelegateUser>
</m:DelegateUserResponseMessageType>
<m:DelegateUserResponseMessageType ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:DelegateUser>
<t:UserId>
<t:SID>S-1-5-21-1337771579-694202782-848329751-1535223</t:SID>
<t:PrimarySmtpAddress>[email protected]</t:PrimarySmtpAddress>
<t:DisplayName>emaildelegate</t:DisplayName>
</t:UserId>
<t:ReceiveCopiesOfMeetingMessages>false</t:ReceiveCopiesOfMeetingMessages>
<t:ViewPrivateItems>false</t:ViewPrivateItems>
</m:DelegateUser>
</m:DelegateUserResponseMessageType>
</m:ResponseMessages>
</m:AddDelegateResponse>
</s:Body>
</s:Envelope>
This example assumes that service is a valid ExchangeService object for the mailbox
owner, and that the user has been authenticated to an Exchange server.
C#
deletedDelegates.Add("[email protected]");
deletedDelegates.Add("[email protected]");
deletedDelegates.Add("[email protected]");
Collection<DelegateUserResponse> response =
service.RemoveDelegates(mailbox, deletedDelegates);
// Print out the result and the last eight characters of the item
ID.
return response;
This is also the XML request that the EWS Managed API sends when you use the
RemoveDelegates method to remove delegates.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:RemoveDelegate>
<m:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</m:Mailbox>
<m:UserIds>
<t:UserId>
<t:PrimarySmtpAddress>[email protected]</t:PrimarySmtpAddress>
</t:UserId>
<t:UserId>
<t:PrimarySmtpAddress>[email protected]</t:PrimarySmtpAddress>
</t:UserId>
<t:UserId>
<t:PrimarySmtpAddress>[email protected]</t:PrimarySmtpAddress>
</t:UserId>
</m:UserIds>
</m:RemoveDelegate>
</soap:Body>
</soap:Envelope>
Next steps
After you add delegates to calendar, email, and task folders, the delegate can access the
items in the folders. To learn more, see the following articles:
If the folders for which you added delegates include child folders that were created
before you granted the delegate access, the delegate will not be able to access those
folders without additional permissions. To add these permissions, or modify permissions
for any other folders, see Set folder permissions for another user by using EWS in
Exchange.
See also
Delegate access and EWS in Exchange
Exchange 2013: Add delegate users to an email account programmatically
Exchange 2013: Update delegates associated with email accounts
programmatically
Exchange 2013: Remove delegates associated with email accounts
programmatically
Access a calendar as a delegate by using
EWS in Exchange
Article • 03/15/2022 • 9 minutes to read
Learn how to access a calendar as a delegate by using the EWS Managed API or EWS in
Exchange.
You can use the EWS Managed API or EWS to give a user delegate access to a mailbox
owner's Calendar folder. The delegate can then create meeting requests on behalf of the
mailbox owner, create appointments, respond to meeting requests, and retrieve, update,
and delete meetings from the mailbox owner's Calendar folder, depending on their
permissions.
As a delegate, you use the same methods and operations to access a mailbox owner's
Calendar folder that you use to access your own Calendar folder. The main difference is
that you have to use explicit access to find or create a calendar item or calendar
subfolder, and then after you identify the item ID or folder ID, you can use implicit
access to get, update, or delete the item.
Table 1. EWS Managed API methods and EWS operations for accessing a calendar as a
delegate
If you want to… Use this EWS Managed API method… Use this EWS operation…
Get an Appointment.Bind
GetItem
appointment or
meeting as a
delegate
If you want to… Use this EWS Managed API method… Use this EWS operation…
meeting as a
delegate
meeting as a
delegate
7 Note
Prerequisite tasks
Before a user can access a mailbox owner's Calendar folder as a delegate, the user must
be added as a delegate with permissions to the mailbox owner's Calendar folder.
A delegate must have a mailbox attached to their account to update the calendar of a
mailbox owner.
If a delegate needs to work with meeting requests and responses only, you can add the
delegate to the Calendar folder, and use the default
MeetingRequestsDeliveryScope.DelegatesAndSendInformationToMe EWS Managed
API enumeration value or the DeliverMeetingRequests EWS element value of
DelegatesAndSendInformationToMe to send the requests to the delegate and
informational messages to the mailbox owner. The delegate then does not need to be
given access to the mailbox owner's Inbox folder.
This example assumes that service is a valid ExchangeService object for the delegate
and that the delegate has been granted the appropriate permissions for the mailbox
owner's Calendar folder.
C#
meeting.Start = DateTime.Now.AddDays(2);
meeting.End = meeting.Start.AddHours(4);
meeting.RequiredAttendees.Add("[email protected]");
meeting.ReminderMinutesBeforeStart = 60;
meeting.Save(new FolderId(WellKnownFolderName.Calendar,
SendInvitationsMode.SendToAllAndSaveCopy);
Note that when you save the item, the Save method call must identify the mailbox
owner's Calendar folder. If the mailbox owner's Calendar folder is not specified, the
meeting request gets saved to the delegate's calendar and not the mailbox owner's
Calendar folder. You can include the mailbox owner's Calendar folder in the Save
method call in two ways. We recommend that you instantiate a new instance of the
FolderId object by using the WellKnownFolderName and the SMTP address of the
mailbox owner.
C#
meeting.Save(new FolderId(WellKnownFolderName.Calendar,
"[email protected]"), SendInvitationsMode.SendToAllAndSaveCopy);
However, you can also Bind to the Calendar folder first, and then use the ID of the
folder in the Save method call. Be aware, however, that this creates an extra EWS call.
C#
// Save the meeting to the Calendar folder for the mailbox owner and
send the meeting request.
meeting.Save(primaryCalendar.Id,
SendInvitationsMode.SendToAllAndSaveCopy);
This is also the XML request that the EWS Managed API sends when you use the Save
method to create a meeting or appointment as a delegate.
The SOAP header has been removed from the following example for brevity.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<m:CreateItem SendMeetingInvitations="SendToAllAndSaveCopy">
<m:SavedItemFolderId>
<t:DistinguishedFolderId Id="calendar">
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:DistinguishedFolderId>
</m:SavedItemFolderId>
<m:Items>
<t:CalendarItem>
<t:ReminderMinutesBeforeStart>60</t:ReminderMinutesBeforeStart>
<t:Start>2014-03-09T23:26:33.756-05:00</t:Start>
<t:End>2014-03-10T03:26:33.756-05:00</t:End>
<t:RequiredAttendees>
<t:Attendee>
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:Attendee>
</t:RequiredAttendees>
</t:CalendarItem>
</m:Items>
</m:CreateItem>
</soap:Body>
</soap:Envelope>
C#
ItemSchema.DateTimeReceived,
EmailMessageSchema.IsRead);
view.Traversal = ItemTraversal.Shallow;
view.OrderBy.Add(ItemSchema.DateTimeReceived, SortDirection.Descending);
try
new FolderId(WellKnownFolderName.Calendar,
filter,
view);
Console.WriteLine("Exception while
After the FindItems call returns a response with an ID, you can get, update or delete that
meeting by using the ID and implicit access — and you do not need to specify the
mailbox owner's SMTP address.
This is also the XML request that the EWS Managed API sends when you use the
FindItem method to search for a meeting or appointment as a delegate.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:FindItem Traversal="Shallow">
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:ItemShape>
<m:IndexedPageItemView MaxEntriesReturned="10"
Offset="0"
BasePoint="Beginning" />
<m:Restriction>
<t:Contains ContainmentMode="Substring"
ContainmentComparison="IgnoreCase">
</t:Contains>
</m:Restriction>
<m:SortOrder>
<t:FieldOrder Order="Descending">
</t:FieldOrder>
</m:SortOrder>
<m:ParentFolderIds>
<t:DistinguishedFolderId Id="calendar">
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:DistinguishedFolderId>
</m:ParentFolderIds>
</m:FindItem>
</soap:Body>
</soap:Envelope>
The server responds to the FindItem request with a FindItemResponse message that
includes a ResponseCode element value of NoError, which indicates that the search
completed successfully. The response contains a CalendarItem for any appointments
or meetings that met the search criteria. In this case, only one meeting is found.
The value of the ItemId element has been shortened for readability.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="893"
MinorBuildNumber="10"
Version="V2_10"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" />
</s:Header>
<s:Body>
<m:FindItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:FindItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:RootFolder IndexedPagingOffset="1"
TotalItemsInView="1"
IncludesLastItemInRange="true">
<t:Items>
<t:CalendarItem>
<t:ItemId Id="IJpUAAA="
ChangeKey="DwAAABYAAADOilbYa8KaT7ZgMoTz2P+hAAAAIKhS" />
<t:DateTimeReceived>2014-03-
04T21:27:22Z</t:DateTimeReceived>
</t:CalendarItem>
</t:Items>
</m:RootFolder>
</m:FindItemResponseMessage>
</m:ResponseMessages>
</m:FindItemResponse>
</s:Body>
</s:Envelope>
Now that you have the ItemId for the meeting that meets your criteria, you can get,
update, or delete that meeting by using the ItemId and implicit access — and you do
not need to specify the mailbox owner's SMTP address.
Table 2. EWS Managed API methods for working with appointments and meetings as
a delegate
Task EWS Managed API Code example
method
Table 3. EWS operations for working with appointments and meetings as a delegate
meeting
See also
Delegate access and EWS in Exchange
Add and remove delegates by using EWS in Exchange
Set folder permissions for another user by using EWS in Exchange
Calendars and EWS in Exchange
Access contacts as a delegate by using
EWS in Exchange
Article • 09/15/2021 • 8 minutes to read
Learn how to access contacts as a delegate by using the EWS Managed API or EWS in
Exchange.
You can use the EWS Managed API or EWS to give a user access to a mailbox owner's
Contacts folder. The delegate can then create contacts on behalf of the mailbox owner,
and retrieve, update, and delete contacts from the mailbox owner's Contacts folder,
depending on their permissions.
As a delegate, you use the same methods and operations to access a mailbox owner's
Contacts folder that you use to access your own Contacts folder. The main difference is
that you have to use explicit access to find or create a contact item, and then after you
identify the item ID, you can use implicit access to get, update, or delete the item.
Table 1. EWS Managed API methods and EWS operations for accessing a contact as a
delegate
If you want Use this EWS Managed API method… Use this EWS operation…
to…
Get a Contact.Bind
GetItem
contact as a
delegate
delegate
7 Note
Prerequisite tasks
Before a user can access the mailbox owner's Contacts folder as a delegate, the user
must be added as a delegate with permissions to the mailbox owner's Contacts folder.
This example assumes that service is a valid ExchangeService object for the delegate
and that the delegate has been granted the appropriate permissions for the mailbox
owner's Contacts folder.
C#
contact.GivenName = "Brian";
contact.MiddleName = "David";
contact.Surname = "Johnson";
contact.FileAsMapping = FileAsMapping.SurnameCommaGivenName;
contact.CompanyName = "Contoso";
contact.PhoneNumbers[PhoneNumberKey.BusinessPhone] = "425-555-0110";
contact.PhoneNumbers[PhoneNumberKey.HomePhone] = "425-555-0120";
contact.PhoneNumbers[PhoneNumberKey.CarPhone] = "425-555-0130";
contact.EmailAddresses[EmailAddressKey.EmailAddress1] =
new EmailAddress("[email protected]");
contact.EmailAddresses[EmailAddressKey.EmailAddress2] =
new EmailAddress("[email protected]");
// The contact identifier contains the context for the mailbox owner's
contact.Save(new FolderId(WellKnownFolderName.Contacts,
"[email protected]"));
Note that when you save the item, the Save method call must identify the mailbox
owner's Contacts folder. If the mailbox owner's Contacts folder is not specified, the
meeting request gets saved to the delegate's Contacts folder and not the mailbox
owner's Contacts folder. You can include the mailbox owner's Contacts folder in the
Save method call in two way. We recommend that you instantiate a new instance of the
FolderId object by using the WellKnownFolderName and the SMTP address of the
mailbox owner.
C#
contact.Save(new FolderId(WellKnownFolderName.Contacts,
"[email protected]"));
However, you can also Bind to the Contacts folder first, and then use the ID of the
folder in the Save method call. Be aware, however, that this creates an extra EWS call.
C#
meeting.Save(primaryContacts.Id);
This is also the XML request that the EWS Managed API sends when you use the Save
method to create a contact.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:CreateItem MessageDisposition="SaveOnly">
<m:SavedItemFolderId>
<t:DistinguishedFolderId Id="contacts">
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:DistinguishedFolderId>
</m:SavedItemFolderId>
<m:Items>
<t:Contact>
<t:FileAsMapping>LastCommaFirst</t:FileAsMapping>
<t:GivenName>Brian</t:GivenName>
<t:MiddleName>David</t:MiddleName>
<t:CompanyName>Contoso</t:CompanyName>
<t:EmailAddresses>
<t:Entry Key="EmailAddress1">[email protected]</t:Entry>
<t:Entry Key="EmailAddress2">[email protected]</t:Entry>
</t:EmailAddresses>
<t:PhoneNumbers>
<t:Entry Key="BusinessPhone">425-555-0110</t:Entry>
<t:Entry Key="HomePhone">425-555-0120</t:Entry>
<t:Entry Key="CarPhone">425-555-0130</t:Entry>
</t:PhoneNumbers>
<t:Surname>Johnson</t:Surname>
</t:Contact>
</m:Items>
</m:CreateItem>
</soap:Body>
</soap:Envelope>
C#
folders.Add(new FolderId(WellKnownFolderName.Contacts,
"[email protected]"));
After the ResolveNames method call returns a response with an ID, you can get, update
or delete the contact using the ID and implicit access—and you do not need to specify
the mailbox owner's SMTP address.
Resolve a contact as a delegate by using EWS
EWS enables you to use the service object for the delegate user to resolve partial names
in the mailbox owner's Contacts folder. This example shows how to use the
ResolveNames operation to find meetings in the mailbox owner's Contacts folder that
contain the word "johnson".
This is also the XML request that the EWS Managed API sends when you use the
ResolveName method to resolve a contact.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:ResolveNames ReturnFullContactData="true"
SearchScope="Contacts">
<m:ParentFolderIds>
<t:DistinguishedFolderId Id="contacts">
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:DistinguishedFolderId>
</m:ParentFolderIds>
<m:UnresolvedEntry>johnson</m:UnresolvedEntry>
</m:ResolveNames>
</soap:Body>
</soap:Envelope>
The value of the ItemId element has been shortened for readability.
XML
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="893"
MinorBuildNumber="17"
Version="V2_10"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" />
</s:Header>
<s:Body>
<m:ResolveNamesResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:ResolveNamesResponseMessage ResponseClass="Warning">
<m:ResponseCode>ErrorNameResolutionMultipleResults</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
<m:ResolutionSet TotalItemsInView="2"
IncludesLastItemInRange="true">
<t:Resolution>
<t:Mailbox>
<t:Name>[email protected]</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
<t:MailboxType>Contact</t:MailboxType>
<t:ItemId Id="iMihAAA="
ChangeKey="EQAAABYAAADOilbYa8KaT7ZgMoTz2P+hAAABiPQo" />
</t:Mailbox>
</t:Resolution>
<t:Resolution>
<t:Mailbox>
<t:Name>[email protected]</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
<t:MailboxType>Contact</t:MailboxType>
<t:ItemId Id="iMihAAA="
ChangeKey="EQAAABYAAADOilbYa8KaT7ZgMoTz2P+hAAABiPQo" />
</t:Mailbox>
</t:Resolution>
</m:ResolutionSet>
</m:ResolveNamesResponseMessage>
</m:ResponseMessages>
</m:ResolveNamesResponse>
</s:Body>
</s:Envelope>
Now that you have the ItemId for the contacts that match the ambiguous name, you
can Get, update, or delete contact items as a delegate by using EWS by using the ItemId
and implicit access—and you do not need to specify the mailbox owner's SMTP address.
Update a contact Bind followed by Update an item by using the EWS Managed
Update
API
Delete a contact Bind followed by Delete Delete an item by using the EWS Managed API
See also
Delegate access and EWS in Exchange
Add and remove delegates by using EWS in Exchange
Set folder permissions for another user by using EWS in Exchange
People and contacts in EWS in Exchange
Resolve ambiguous names by using EWS in Exchange 2013
Access email as a delegate by using
EWS in Exchange
Article • 09/15/2021 • 9 minutes to read
Learn how to access email as a delegate by using the EWS Managed API or EWS in
Exchange.
You can use the EWS Managed API or EWS to give a user delegate access to a mailbox
owner's Inbox folder. The delegate can then create meeting requests on behalf of the
mailbox owner, search for email, and retrieve, update, and delete email from the
mailbox owner's Inbox folder, depending on their permissions.
As a delegate, you use the same methods and operations to access a mailbox owner's
Inbox folder that you use to access an Inbox folder without delegate access. The main
difference is that you have to use explicit access to find or create an email item, and
then after you identify the item ID, you can use implicit access to get, update, or delete
the item.
Table 1. EWS Managed API methods and EWS operations for accessing email as a
delegate
If you want Use this EWS Managed API method… Use this EWS operation…
to…
as a delegate
If you want Use this EWS Managed API method… Use this EWS operation…
to…
delegate
delegate
Keep the following things in mind when working with emails as a delegate:
If a delegate only needs to work with meeting requests and responses, the
delegate does not need access to the Inbox folder. For more information, see
prerequisite tasks for accessing calendars as a delegate.
When a recipient receives a message that was sent on behalf of a mailbox owner,
the sender appears as " Delegate on behalf of mailbox owner ."
7 Note
Prerequisite tasks
Before a user can access the mailbox owner's Inbox folder as a delegate, the user must
be added as a delegate with permissions to the mailbox owner's Inbox folder.
This example assumes that service is a valid ExchangeService object for the delegate
and that the delegate has been granted the appropriate permissions for the mailbox
owner's Inbox, Drafts, and Sent Items folder.
C#
message.ToRecipients.Add("[email protected]");
// owner's mailbox.
This is also the first XML request that the EWS Managed API sends when you use the
Save method to create and send an email.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:CreateItem MessageDisposition="SaveOnly">
<m:SavedItemFolderId>
<t:DistinguishedFolderId Id="drafts">
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:DistinguishedFolderId>
</m:SavedItemFolderId>
<m:Items>
<t:Message>
<t:ToRecipients>
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:ToRecipients>
</t:Message>
</m:Items>
</m:CreateItem>
</soap:Body>
</soap:Envelope>
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="893"
MinorBuildNumber="17"
Version="V2_10"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" />
</s:Header>
<s:Body>
<m:CreateItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:CreateItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:Message>
<t:ItemId Id="iNRaAAA="
ChangeKey="CQAAABYAAADOilbYa8KaT7ZgMoTz2P+hAAABiQPU"
/>
</t:Message>
</m:Items>
</m:CreateItemResponseMessage>
</m:ResponseMessages>
</m:CreateItemResponse>
</s:Body>
</s:Envelope>
Next, use the SendItem operation to send the message on behalf of the mailbox owner
and save it in the mailbox owner's Sent Items folder.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:SendItem SaveItemToFolder="true">
<m:ItemIds>
<t:ItemId Id="iNRaAAA="
ChangeKey="CQAAABYAAADOilbYa8KaT7ZgMoTz2P+hAAABiQPU" />
</m:ItemIds>
<m:SavedItemFolderId>
<t:DistinguishedFolderId Id="sentitems">
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:DistinguishedFolderId>
</m:SavedItemFolderId>
</m:SendItem>
</soap:Body>
</soap:Envelope>
The server responds to the SendItem request with a SendItemResponse message that
includes a ResponseCode element value of NoError, which indicates that the email
was sent and saved to the mailbox owner's Sent Items folder successfully.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="893"
MinorBuildNumber="17"
Version="V2_10"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" />
</s:Header>
<s:Body>
<m:SendItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:SendItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
</m:SendItemResponseMessage>
</m:ResponseMessages>
</m:SendItemResponse>
</s:Body>
</s:Envelope>
C#
static void DelegateAccessSearchEmailWithFilter(ExchangeService service)
ItemSchema.DateTimeReceived,
EmailMessageSchema.IsRead);
view.Traversal = ItemTraversal.Shallow;
// Sorting.
view.OrderBy.Add(ItemSchema.DateTimeReceived, SortDirection.Descending);
try
FolderId(WellKnownFolderName.Inbox, "[email protected]"),
filter, view);
if (item is EmailMessage)
After the FindItems call returns a response with an ID, you can get, update or delete that
email by using the ID and implicit access - and you do not need to specify the mailbox
owner's SMTP address.
This is also the XML request that the EWS Managed API sends when you search for an
email.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:FindItem Traversal="Shallow">
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:ItemShape>
<m:IndexedPageItemView MaxEntriesReturned="10"
Offset="0"
BasePoint="Beginning" />
<m:Restriction>
<t:Contains ContainmentMode="Substring"
ContainmentComparison="IgnoreCase">
</t:Contains>
</m:Restriction>
<m:SortOrder>
<t:FieldOrder Order="Descending">
</t:FieldOrder>
</m:SortOrder>
<m:ParentFolderIds>
<t:DistinguishedFolderId Id="inbox">
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:DistinguishedFolderId>
</m:ParentFolderIds>
</m:FindItem>
</soap:Body>
</soap:Envelope>
The server responds to the FindItem request with a FindItemResponse message that
includes a ResponseCode element value of NoError, which indicates that the search
completed successfully. The response contains a Message element for any emails that
met the search criteria. In this case, only one email is found.
The value of the ItemId element has been shortened for readability.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="893"
MinorBuildNumber="17"
Version="V2_10"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" />
</s:Header>
<s:Body>
<m:FindItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:FindItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:RootFolder IndexedPagingOffset="1"
TotalItemsInView="1"
IncludesLastItemInRange="true">
<t:Items>
<t:Message>
<t:ItemId Id="iNwoAAA="
ChangeKey="CQAAABYAAADOilbYa8KaT7ZgMoTz2P+hAAABiQuu" />
<t:Subject>Soccer team</t:Subject>
<t:DateTimeReceived>2014-03-
10T06:16:55Z</t:DateTimeReceived>
<t:IsRead>false</t:IsRead>
</t:Message>
</t:Items>
</m:RootFolder>
</m:FindItemResponseMessage>
</m:ResponseMessages>
</m:FindItemResponse>
</s:Body>
</s:Envelope>
Now that you have the ItemId for the email that meets your criteria, you can get,
update, or delete that email by using the ItemId and implicit access - and you do not
need to specify the mailbox owner's SMTP address.
Update an email Bind followed by Update an item by using the EWS Managed
Update
API
See also
Delegate access and EWS in Exchange
Add and remove delegates by using EWS in Exchange
Set folder permissions for another user by using EWS in Exchange
Calendars and EWS in Exchange
Set folder permissions for another user
by using EWS in Exchange
Article • 09/15/2021 • 12 minutes to read
Learn how to set permission levels on a folder by using the EWS Managed API or EWS in
Exchange.
Folder-level permissions enable users to access one or more folders in another user's
mailbox. Folder permissions are similar to delegate access, but they differ in the
following ways:
Folder permissions do not enable a user to "send on behalf of" or "send as"
another user. They only enable access to folders. Users can create items in those
folders, but they can't send them.
You can set folder permissions on any folder in the mailbox, but you can only add
a delegate to the Calendar, Contacts, Inbox, Journal, Notes, and Tasks folders.
You can set a number of permissions on a specific folder. When you add a
delegate, you can assign one of only five permission levels.
You can set folder permissions for anonymous and default users. You can only
grant delegate access to a mail-enabled account.
If you're familiar with Access Control Entries (ACEs) and Discretionary Access Control
Lists (DACLs), you know that a user can only have one set of permissions for each folder.
If you try to add a set of permissions for a user and they already have a set of
permissions, you'll get an error. When you add, remove, or update permissions on a
folder, you get the current DACL, add or remove any ACEs, and then send the updated
DACL. You cannot add multiple ACEs for the same user. When you update permissions
by using the EWS Managed API, you need to remove the user's current ACE and then
add their new ACE to the collection. If you're using EWS, you just replace the previous
set of ACEs with the new ones.
If you're making multiple permission changes to a single folder, you can batch additions,
removals, or updates —just note that you cannot batch user updates on multiple
folders. One call is required to get the permissions on a single folder, and a second call
is required to update the permissions on that folder. When you add, remove, or update
user permissions, you use the same two method calls or operations for each task.
Table 1. EWS Managed API methods and EWS operations for setting folder
permissions
If you want to… Use this EWS Managed API Use this EWS operation…
method…
folder permissions
Folder permissions
You have quite a few options when it comes to setting folder permissions on a specific
folder. You can set a permission level on a folder for each user, which adds a set of
predefined individual permissions to the DACL, or you can set individual permissions on
a folder — but you can't mix and match.
Can create
Can create subfolders
Is folder owner
Is folder visible
Is folder contact
Edit items
Delete items
Read items
In addition, the following permission levels are available, which define a subset of
individual permissions and values, as shown in Table 2:
None
Owner
PublishingEditor
Editor
PublishingAuthor
Author
NoneditingAuthor
Reviewer
Contributor
Custom - This value cannot be set by the application. The server sets this value if
the application includes a custom collection of individual permissions.
FreeBusyTimeOnly - This can only be set on Calendar folders.
FreeBusyTimeAndSubjectAndLocation - This can only be set on Calendar folders.
The following table shows which individual permissions are applied by default based on
permission level.
If you specify a non-custom permission level in the folder-level permissions request, you
don't need to specify the individual permission settings. If you do specify an individual
permission when you set a permission level, an ErrorInvalidPermissionSettings error will
be returned in the response.
Get the current permissions for a folder by using the Bind method.
Call the Update method to save the new permissions to the server.
This example assumes that service is a valid ExchangeService object for the mailbox
owner and that the user has been authenticated to an Exchange server.
C#
// Specify the SMTP address of the new user and the folder permissions
level.
// Add the permissions for the new user to the Sent Items DACL.
sentItemsFolder.Permissions.Add(fldperm);
sentItemsFolder.Update();
C#
If you want to use the custom permission level, use this code instead.
C#
fldperm.UserId = "[email protected]";
fldperm.CanCreateItems = true;
fldperm.CanCreateSubFolders = true;
You can set any or all of the writable FolderPermission properties when you create a
FolderPermission object with a custom permission level. Note, however, that the
FolderPermissionLevel is never explicitly set to Custom by the application. The
FolderPermissionLevel is set to Custom only when you create a FolderPermission object
and set individual permissions.
Adding folder permissions by using EWS
The following EWS code examples show how to add permissions to a specific folder by
retrieving the current permissions and then submitting a list of new permissions.
The first step is to send a GetFolder request, where the DistinguishedFolderId value
specifies the folder in which to add permissions (the Sent Items folder in this example)
and the FieldURI value includes folder:PermissionSet. This request will retrieve the
permission settings for the folder specified.
This is also the XML request that the EWS Managed API sends when you call the Bind
method to add folder permissions.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetFolder>
<m:FolderShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:FolderShape>
<m:FolderIds>
</m:FolderIds>
</m:GetFolder>
</soap:Body>
</soap:Envelope>
The server responds to the GetFolder request with a GetFolderResponse message that
includes a ResponseCode element value of NoError, which indicates that the folder
was retrieved successfully. The FolderId and ParentFolderId values have been
shortened for readability.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="893"
MinorBuildNumber="17"
Version="V2_10"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetFolderResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetFolderResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Folders>
<t:Folder>
<t:FolderId Id="CgAAAA=="
ChangeKey="AQAAABYAAADOilbYa8KaT7ZgMoTz2P+hAAABiRd1" />
<t:PermissionSet>
<t:Permissions>
<t:Permission>
<t:UserId>
<t:DistinguishedUser>Default</t:DistinguishedUser>
</t:UserId>
<t:CanCreateItems>false</t:CanCreateItems>
<t:CanCreateSubFolders>false</t:CanCreateSubFolders>
<t:IsFolderOwner>false</t:IsFolderOwner>
<t:IsFolderVisible>false</t:IsFolderVisible>
<t:IsFolderContact>false</t:IsFolderContact>
<t:EditItems>None</t:EditItems>
<t:DeleteItems>None</t:DeleteItems>
<t:ReadItems>None</t:ReadItems>
<t:PermissionLevel>None</t:PermissionLevel>
</t:Permission>
<t:Permission>
<t:UserId>
<t:DistinguishedUser>Anonymous</t:DistinguishedUser>
</t:UserId>
<t:CanCreateItems>false</t:CanCreateItems>
<t:CanCreateSubFolders>false</t:CanCreateSubFolders>
<t:IsFolderOwner>false</t:IsFolderOwner>
<t:IsFolderVisible>false</t:IsFolderVisible>
<t:IsFolderContact>false</t:IsFolderContact>
<t:EditItems>None</t:EditItems>
<t:DeleteItems>None</t:DeleteItems>
<t:ReadItems>None</t:ReadItems>
<t:PermissionLevel>None</t:PermissionLevel>
</t:Permission>
</t:Permissions>
</t:PermissionSet>
</t:Folder>
</m:Folders>
</m:GetFolderResponseMessage>
</m:ResponseMessages>
</m:GetFolderResponse>
</s:Body>
</s:Envelope>
Next, use the UpdateFolder operation to send the updated PermissionSet , which
includes the Permission for the new user. Note that including the SetFolderField
element for the respective folder in the UpdateFolder operation will overwrite all the
permission settings on the folder. Likewise, including the DeleteFolderField option of
the UpdateFolder operation will also delete all the permission settings on the folder.
This is also the XML request that the EWS Managed API sends when you call the Update
method to add folder permissions.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:UpdateFolder>
<m:FolderChanges>
<t:FolderChange>
<t:FolderId Id="CgAAAA=="
ChangeKey="AQAAABYAAADOilbYa8KaT7ZgMoTz2P+hAAABiRd1"
/>
<t:Updates>
<t:SetFolderField>
<t:Folder>
<t:PermissionSet>
<t:Permissions>
<t:Permission>
<t:UserId>
<t:DistinguishedUser>Default</t:DistinguishedUser>
</t:UserId>
<t:PermissionLevel>None</t:PermissionLevel>
</t:Permission>
<t:Permission>
<t:UserId>
<t:DistinguishedUser>Anonymous</t:DistinguishedUser>
</t:UserId>
<t:PermissionLevel>None</t:PermissionLevel>
</t:Permission>
<t:Permission>
<t:UserId>
<t:PrimarySmtpAddress>[email protected]</t:PrimarySmtpAddress>
</t:UserId>
<t:PermissionLevel>Editor</t:PermissionLevel>
</t:Permission>
</t:Permissions>
</t:PermissionSet>
</t:Folder>
</t:SetFolderField>
</t:Updates>
</t:FolderChange>
</m:FolderChanges>
</m:UpdateFolder>
</soap:Body>
</soap:Envelope>
XML
<t:Permission>
<t:UserId>
<t:PrimarySmtpAddress>[email protected]</t:PrimarySmtpAddress>
</t:UserId>
<t:PermissionLevel>Editor</t:PermissionLevel>
</t:Permission>
If you want to use the custom permission level, use this code instead.
XML
<t:Permission>
<t:UserId>
</t:UserId>
<t:CanCreateItems>true</t:CanCreateItems>
<t:CanCreateSubFolders>true</t:CanCreateSubFolders>
<t:IsFolderOwner>false</t:IsFolderOwner>
<t:IsFolderVisible>false</t:IsFolderVisible>
<t:IsFolderContact>false</t:IsFolderContact>
<t:EditItems>None</t:EditItems>
<t:DeleteItems>None</t:DeleteItems>
<t:ReadItems>None</t:ReadItems>
<t:PermissionLevel>Custom</t:PermissionLevel>
</t:Permission>
1. Getting the current permissions for a folder by using the Bind method.
This example removes all user permissions on a folder. If you want to modify this
example to remove permissions only for a specific user, change the following line of
code to identify either the display name or SMTP address of the user.
C#
if (sentItemsFolder.Permissions[t].UserId.DisplayName != null ||
sentItemsFolder.Permissions[t].UserId.PrimarySmtpAddress != null)
This example assumes that service is a valid ExchangeService object for the mailbox
owner and that the user has been authenticated to an Exchange server.
C#
// user with a display name or SMTP address. This leaves the anonymous
and
if (sentItemsFolder.Permissions.Count != 0)
if (sentItemsFolder.Permissions[t].UserId.DisplayName != null ||
sentItemsFolder.Permissions[t].UserId.PrimarySmtpAddress != null)
sentItemsFolder.Permissions.Remove(sentItemsFolder.Permissions[t]);
sentItemsFolder.Update();
First, send a GetFolder request where the DistinguishedFolderId value specifies the
folder in which to remove permissions (the Sent Items folder in this example) and the
FieldURI value includes folder:PermissionSet. This request will retrieve the
PermissionSet for the folder specified.
This is also the XML request that the EWS Managed API sends when you call the Bind
method to remove folder permissions.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetFolder>
<m:FolderShape>
<t:BaseShape>AllProperties</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:FolderShape>
<m:FolderIds>
<t:DistinguishedFolderId Id="drafts">
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:DistinguishedFolderId>
</m:FolderIds>
</m:GetFolder>
</soap:Body>
</soap:Envelope>
The server responds to the GetFolder request with a GetFolderResponse message that
includes a ResponseCode element value of NoError, which indicates that the folder
was retrieved successfully. The values of the FolderId and ParentFolderId elements have
been shortened for readability.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="893"
MinorBuildNumber="17"
Version="V2_10"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetFolderResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetFolderResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Folders>
<t:Folder>
<t:FolderId Id="EAAAAA=="
ChangeKey="AQAAABYAAADOilbYa8KaT7ZgMoTz2P+hAAABiRd5" />
<t:ParentFolderId Id="CQAAAA=="
ChangeKey="AQAAAA==" />
<t:FolderClass>IPF.Note</t:FolderClass>
<t:DisplayName>Drafts</t:DisplayName>
<t:TotalCount>0</t:TotalCount>
<t:ChildFolderCount>0</t:ChildFolderCount>
<t:EffectiveRights>
<t:CreateAssociated>true</t:CreateAssociated>
<t:CreateContents>true</t:CreateContents>
<t:CreateHierarchy>true</t:CreateHierarchy>
<t:Delete>true</t:Delete>
<t:Modify>true</t:Modify>
<t:Read>true</t:Read>
<t:ViewPrivateItems>true</t:ViewPrivateItems>
</t:EffectiveRights>
<t:PermissionSet>
<t:Permissions>
<t:Permission>
<t:UserId>
<t:DistinguishedUser>Default</t:DistinguishedUser>
</t:UserId>
<t:CanCreateItems>false</t:CanCreateItems>
<t:CanCreateSubFolders>false</t:CanCreateSubFolders>
<t:IsFolderOwner>false</t:IsFolderOwner>
<t:IsFolderVisible>false</t:IsFolderVisible>
<t:IsFolderContact>false</t:IsFolderContact>
<t:EditItems>None</t:EditItems>
<t:DeleteItems>None</t:DeleteItems>
<t:ReadItems>None</t:ReadItems>
<t:PermissionLevel>None</t:PermissionLevel>
</t:Permission>
<t:Permission>
<t:UserId>
<t:DistinguishedUser>Anonymous</t:DistinguishedUser>
</t:UserId>
<t:CanCreateItems>false</t:CanCreateItems>
<t:CanCreateSubFolders>false</t:CanCreateSubFolders>
<t:IsFolderOwner>false</t:IsFolderOwner>
<t:IsFolderVisible>false</t:IsFolderVisible>
<t:IsFolderContact>false</t:IsFolderContact>
<t:EditItems>None</t:EditItems>
<t:DeleteItems>None</t:DeleteItems>
<t:ReadItems>None</t:ReadItems>
<t:PermissionLevel>None</t:PermissionLevel>
</t:Permission>
<t:Permission>
<t:UserId>
<t:SID>S-1-5-21-1337771579-694202782-848329751-
1535223</t:SID>
<t:PrimarySmtpAddress>[email protected]</t:PrimarySmtpAddress>
<t:DisplayName>Sadie Daniels</t:DisplayName>
</t:UserId>
<t:CanCreateItems>true</t:CanCreateItems>
<t:CanCreateSubFolders>false</t:CanCreateSubFolders>
<t:IsFolderOwner>false</t:IsFolderOwner>
<t:IsFolderVisible>true</t:IsFolderVisible>
<t:IsFolderContact>false</t:IsFolderContact>
<t:EditItems>All</t:EditItems>
<t:DeleteItems>All</t:DeleteItems>
<t:ReadItems>FullDetails</t:ReadItems>
<t:PermissionLevel>Editor</t:PermissionLevel>
</t:Permission>
</t:Permissions>
</t:PermissionSet>
<t:UnreadCount>0</t:UnreadCount>
</t:Folder>
</m:Folders>
</m:GetFolderResponseMessage>
</m:ResponseMessages>
</m:GetFolderResponse>
</s:Body>
</s:Envelope>
Next, use the UpdateFolder operation to send the updated PermissionSet, which does
not include the Permission for the removed user.
This is also the XML request that the EWS Managed API sends when you call the Update
method to remove folder permissions.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:UpdateFolder>
<m:FolderChanges>
<t:FolderChange>
<t:FolderId Id="EAAAAA=="
ChangeKey="AQAAABYAAADOilbYa8KaT7ZgMoTz2P+hAAABiRd5"
/>
<t:Updates>
<t:SetFolderField>
<t:Folder>
<t:PermissionSet>
<t:Permissions>
<t:Permission>
<t:UserId>
<t:DistinguishedUser>Default</t:DistinguishedUser>
</t:UserId>
<t:PermissionLevel>None</t:PermissionLevel>
</t:Permission>
<t:Permission>
<t:UserId>
<t:DistinguishedUser>Anonymous</t:DistinguishedUser>
</t:UserId>
<t:PermissionLevel>None</t:PermissionLevel>
</t:Permission>
</t:Permissions>
</t:PermissionSet>
</t:Folder>
</t:SetFolderField>
</t:Updates>
</t:FolderChange>
</m:FolderChanges>
</m:UpdateFolder>
</soap:Body>
</soap:Envelope>
1. Remove the folder permissions for the outdated permissions, but do not call the
Update method (yet).
If you try to add two sets of permissions for the same user, you will receive a
ServiceResponseException error with the following description: "The specified
permission set contains duplicate UserIds". In that case, remove the current permissions
from the Permission collection, then add the new permissions to the Permission
collection.
These are the same two operations you use to enable or remove access by using EWS.
The only difference is that when you receive the GetFolder response, it will contain a
Permission set for user. Simply replace that existing Permission element with the new
Permission element, and then send the UpdateFolder operation with the new
Permission value or values.
If you try to add two sets of permissions for the same user, you will receive a
ResponseCode value of ErrorDuplicateUserIdsSpecified. In that case, remove the
outdated Permission value for the user from the request and then retry the request.
Next steps
After you give a user permission to a specific folder, the user can access the folder as a
delegate. For more information, see:
See also
Delegate access and EWS in Exchange
Add and remove delegates by using EWS in Exchange
Folders and items in EWS in Exchange
Handling delegation-related errors in
EWS in Exchange
Article • 09/15/2021 • 2 minutes to read
Find out how to handle delegation-related errors in applications that you develop by
using the EWS Managed API or EWS in Exchange.
If your application uses delegation or adds or removes delegates, you might have to
handle delegation-related errors. You can handle these errors at runtime, or while you
are developing your EWS application. These errors are defined by the EWS Managed API
ServiceError enumeration and the EWS ResponseCode element.
Delegation-related errors
Error Occurs when Handle it by…
you try to…
See also
Delegate access and EWS in Exchange
Learn about the different types of distribution groups that are available in Exchange and
how you can manage them in your EWS Managed API or EWS application.
A distribution group is a collection of email addresses that are associated with a single
alias or email address. Distribution groups (also sometimes called distribution lists)
enable a user to send email to multiple people by using a single recipient address.
Because distribution group membership, and therefore the message recipients, can be
managed outside of individual email threads, distribution groups provide an excellent
way to enable the distribution of mail to a group of users. You can programmatically
create and manage distribution groups by using the EWS Managed API, EWS, and the
Exchange Management Shell. Before you start programming, let's explore the different
types of distribution groups that are available and your options for managing them.
Security groups — Active Directory objects that are mail-enabled; also known as
universal security groups. Security groups are used to assign access permissions to
resources in Active Directory Domain Services (AD DS) as well as to distribute
messages.
Contact groups — Private distribution groups that are located in a user's mailbox.
The type of distribution group that you choose will depend on where you plan to store
the distribution group, who will use it, and what it will be used for.
You can also use universal distribution groups to contain a collection of rooms; for
example, to make it easier for users to find a conference room for a meeting. Users can
add a room list — a universal distribution group that contains room resource mailboxes
— to a meeting request to find an available room without having to add each room
individually.
You can create a static universal distribution group that stays the same until you to
update the membership, or you can create a dynamic universal distribution group. A
dynamic universal distribution group queries Active Directory mail-enabled objects and
builds the group membership based on the results. The group membership is
recalculated whenever an email message is sent to the group.
Security groups
Universal distribution groups and security groups are identical in most ways. However,
unlike universal distribution groups, you can use security groups to assign permissions
to network resources in AD DS. You cannot use the EWS Managed API or EWS to create
and manage security groups; instead, you use Exchange Management Shell cmdlets.
But, just like universal distribution groups, you can use the EWS Managed API or EWS to
expand security groups.
Contact groups
If you don't want to give every user administrative access to the server to create
distribution groups, but you want to enable them to send a single message to a large
collection of people, you can do this by using contact groups. A contact group does not
have an email address associated with it, and it exists only in one user's mailbox; other
users won't have access to it. You can use the EWS Managed API or EWS to create
contact groups.
ContactGroup CreateItem
Create a contact group in the Exchange store.
class
methods NOTE: You cannot create a universal distribution group or
security group by using EWS Managed API or EWS.
ExpandGroup ExpandDL
Expand a universal distribution group, security group, or
contact group by retrieving a list of its members.
FindItems FindItem
Search for contact groups in the mailbox.
GetRooms
GetRooms
Retrieve a collection of all rooms in a specified room list in
an organization. A room list is a distribution group that only
contains room resource mailboxes.
You can use the information returned by the ExpandGroup method or the
ExpandDL operation to determine what types of members are in the group. The
member types are defined by the MailboxType EWS Managed API enumeration and
the MailboxType EWS element.
PublicGroup PublicDL A distribution group contained within the group you just
expanded. To get a full list of members, expand this group as
well.
ContactGroup PrivateDL A group of contacts that is located in the mailbox and is only
available to users of that mailbox.
7 Note
You cannot use Exchange Management Shell cmdlets to manage contact groups.
Table 3. Exchange Management Shell cmdlets for working with distribution groups
Enable-DistributionGroup
Mail-enable an existing universal group.
Get-DistributionGroup
Query for existing distribution groups.
New-DistributionGroup
Create a distribution group.
Set-DistributionGroup
Modify the settings of an existing distribution group.
In this section
Create contact groups by using EWS in Exchange
Expand distribution groups by using EWS in Exchange 2013
See also
Develop web service clients for Exchange
Calling Exchange Management Shell Cmdlets from Managed Code
Create contact groups by using EWS in
Exchange
Article • 09/15/2021 • 2 minutes to read
Learn how to create a contact group by using the EWS Managed API or EWS in
Exchange.
You can create a contact group, which is a private distribution group, by using the EWS
Managed API or EWS. To create contact groups, use the methods in the ContactGroup
EWS Managed API class, or use the CreateItem EWS operation.
Note that you can't use the EWS Managed API or EWS to create a universal distribution
group or security group. To create a universal distribution group or security group, you
can use the New-DistributionGroup Exchange Management Shell cmdlet .
C#
myContactGroup.Members.Add(new GroupMember("[email protected]"));
myContactGroup.Save();
<CreateItem
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
MessageDisposition="SaveOnly">
<Items
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<DistributionList
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<DisplayName
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
My Contact Group
</DisplayName>
<Members
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Member
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Mailbox
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<EmailAddress
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
</EmailAddress>
</Mailbox>
</Member>
<Member
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Mailbox
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<EmailAddress
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
</EmailAddress>
</Mailbox>
</Member>
</Members>
</DistributionList>
</Items>
</CreateItem>
The following is an example of a successful XML response to the request. Notice that the
values returned include an item ID for the new contact group and a change key that you
can use in other code to modify the contact group or expand the group to see the
members. The item ID is shortened for readability.
XML
<CreateItemResponse
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseMessages
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<CreateItemResponseMessage ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
NoError
</ResponseCode>
<Items
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<DistributionList
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<ItemId
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
Id="AAMkADBlY…"
ChangeKey="EgAAABYAAAAD7hO1SJPWTbICFWZ4U3NMAABXzQiK" />
</DistributionList>
</Items>
</CreateItemResponseMessage>
</ResponseMessages>
</CreateItemResponse>
See also
Distribution groups and EWS in Exchange
Learn how to expand a distribution group by using the EWS Managed API or EWS in
Exchange.
You can use the ExchangeService.ExpandGroup EWS Managed API method or the
ExpandDL EWS operation to expand a distribution group to identify all recipients.
Because the ExpandGroup method is overloaded, you can call it in several ways:
C#
ExpandGroupResults myGroupMembers =
service.ExpandGroup("[email protected]");
That's not a lot of code, but it's also pretty basic and might not give you what you are
looking for. So let's take it a step further. Distribution groups can also contain other
distribution groups. Simply expanding it will output the email address of the contained
distribution groups but not expand them. By adding a few more lines of code, you can
recursively expand the groups to output every contact.
C#
if (address.MailboxType == MailboxType.PublicGroup)
// distribution group.
ExpandDistributionLists(service, address.Address);
else
And now you can call this new function in the your code and expand all the public
distribution groups contained within the first one.
C#
ExpandDistributionLists(service, "[email protected]");
if (address.MailboxType == MailboxType.PublicGroup)
ExpandDistributionLists(service, address.Address);
else
Now you can call this function by using the Exchange service object and the ItemId of
the contact group. Note that the ItemId in the example is shortened for readability.
C#
XML
<soap:Envelope xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<ExpandDL
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</Mailbox>
</ExpandDL>
</soap:Body>
</soap:Envelope>
The following example shows the XML response message that is sent from the server to
the client. Notice that both mailboxes and universal distribution groups are returned.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ExpandDLResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ResponseMessages
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ExpandDLResponseMessage ResponseClass="Success">
<ResponseCode>NoError</ResponseCode>
<Mailbox
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Name>Sadie Daniels</Name>
<EmailAddress>[email protected]</EmailAddress>
<RoutingType>SMTP</RoutingType>
<MailboxType>Mailbox</MailboxType>
</Mailbox>
<Mailbox
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Name>Alfred Welker</Name>
<EmailAddress>[email protected]</EmailAddress>
<RoutingType>SMTP</RoutingType>
<MailboxType>Mailbox</MailboxType>
</Mailbox>
<Mailbox
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Name>Contoso Sales</Name>
<EmailAddress>[email protected]</EmailAddress>
<RoutingType>SMTP</RoutingType>
<MailboxType>PublicDL</MailboxType>
</Mailbox>
<Mailbox
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Name>Contoso Support</Name>
<EmailAddress>[email protected]</EmailAddress>
<RoutingType>SMTP</RoutingType>
<MailboxType>PublicDL</MailboxType>
</Mailbox>
</DLExpansion>
</ExpandDLResponseMessage>
</ResponseMessages>
</ExpandDLResponse>
</s:Body>
</s:Envelope>
Unlike when you use the EWS Managed API, when you use EWS to expand a universal
distribution group, you can't recursively expand the distribution groups that are
returned. You will need to send an additional request to expand each of the distribution
groups included in the response.
XML
<soap:Envelope xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<ExpandDL
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<Mailbox>
<ItemId
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
Id="AAMkADBlY…" />
</Mailbox>
</ExpandDL>
</soap:Body>
</soap:Envelope>
The structure of the XML response to a request to expand a contact group is the same
as the response to a request to expand a universal distribution group.
See also
Distribution groups and EWS in Exchange
Discovery consists of several phases, including identifying and preserving key data,
culling down and reviewing the data, and producing data in court. eDiscovery queries
facilitate the discovery process by providing a single discovery workflow across
Exchange and SharePoint.
eDiscovery operations
The eDiscovery functionality that is exposed by EWS is available via operations
introduced in Exchange Online, Exchange Online as part of Office 365, and versions of
Exchange starting with Exchange 2013.
GetHoldOnMailboxes
Gets the status of a query-based hold, which is set by using
the SetHoldOnMailboxes operation .
GetNonIndexableItemDetails
Retrieves details about items that cannot be indexed. This
includes, but is not limited to, the item identifier, an error
code, an error description, when an attempt was made to
index the item, and additional information about the file.
GetNonIndexableItemStatistics
Retrieves the count of items that cannot be indexed in a
mailbox.
GetSearchableMailboxes
Gets a list of mailboxes that the client has permission to
search or perform eDiscovery on.
SearchMailboxes
Searches for items in specific mailboxes that match query
keywords.
SetHoldOnMailboxes
Sets a query-based hold on items.
See also
Develop web service clients for Exchange
Find out how to work with email messages, including how to create an email and how to
perform other email-related tasks by using the EWS Managed API or EWS in Exchange.
At its core, Exchange is about email. But what makes an email an email? Well, email
messages are one of the strongly typed items in Exchange, which means that they
contain a particular set of properties, even before they're sent. Email messages are
represented by the EmailMessage class in the EWS Managed API and by the
Message element and its child elements in EWS.
In the EWS Managed API, the EmailMessage object derives from the Item object. The
EmailMessage class extends the Item class by providing additional properties like
EmailMessage.Sender and EmailMessage.IsRead , which are now common to nearly
all messaging scenarios. When you get, update, or delete an email message, in most
cases you can do that by using the EmailMessage object or the base Item object,
depending on whether the properties you're working with are in the
EmailMessageSchema or the ItemSchema class. Item creation is different because
the Item class does not have a constructor, so when you're creating an email, you'll use
the EmailMessage constructor to create it and the EmailMessage.Save or
EmailMessage.SendAndSaveCopy methods to save it, or send it and save it.
Similarly, in EWS, use the CreateItem operation with the Message element to create
an email message. To get, update, or delete emails by using EWS, the fact that the item
being modified is an email message is not important, aside from the fact that additional
properties are available on email messages. The same operations that are used for other
strongly typed items are also used for email messages.
Create EmailMessage.Save
CreateItem
Get EmailMessage.Bind
GetItem
Update Item.Update
UpdateItem
Delete Item.Delete
DeleteItem
Because email messages are simply strongly typed items, in some cases you work with
them in the same way that you work with generic items.
Create an email message by using the EWS
Managed API
You can create an email message by using the EWS Managed API Save method, as
shown in the code in the following example. Note that the example only saves the
message in the Drafts folder, it does not send the message. For information about how
to send the message or create and send the message in one step, see Send email
messages by using EWS in Exchange.
This example assumes that service is a valid ExchangeService object and that the user
has been authenticated to an Exchange server.
C#
message.ToRecipients.Add("[email protected]");
// Save the email message to the Drafts folder (where it can be retrieved,
updated, and sent at a later time).
message.Save(WellKnownFolderName.Drafts);
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:CreateItem MessageDisposition="SaveOnly">
<m:SavedItemFolderId>
</m:SavedItemFolderId>
<m:Items>
<t:Message>
<t:Subject>Project priorities</t:Subject>
<t:ToRecipients>
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:ToRecipients>
</t:Message>
</m:Items>
</m:CreateItem>
</soap:Body>
</soap:Envelope>
If you're updating an email message, see Email properties and elements in EWS in
Exchange for a list of writable email message properties. To send a draft message after
you've updated it, see Send a draft email message by using the EWS Managed API.
If you're updating an email message, see Email properties and elements in EWS in
Exchange for a list of writable email message properties. To send a draft message after
you've updated it, see Send a draft email message by using EWS.
In this section
Email properties and elements in EWS in Exchange
See also
Develop web service clients for Exchange
Folders and items in EWS in Exchange
Email properties and elements in EWS in
Exchange
Article • 01/15/2020 • 4 minutes to read
Learn about the first-class and other properties and elements that you can get on email
messages by using the EWS Managed API or EWS in Exchange.
Email messages have more than 50 properties, and getting the ones you want, when
you want them, can be confusing if you don't know where to look. The most important
thing to know about working with email properties and elements is which are included
in the set of first-class properties and elements that is returned by each of the main
retrieval methods and operations. The set of first-class properties that is returned varies
based on the retrieval method that you use. It's also important not to be fooled by the
AllProperties value of the BaseShape EWS element, which corresponds to the
BasePropertySet.FirstClassMessageProperties enumeration value in the EWS Managed
API. This value doesn't actually include all properties, it only includes the first-class
properties.
Id
ItemId
Yes Read-
only
ItemClass
ItemClass
Yes Read-
write
Subject
Subject
Yes Read-
write
Sensitivity
Sensitivity
Yes Read-
only
Body
Body
No Read-
write
Attachments
Attachments
No Read-
write
DateTimeReceived
DateTimeReceived
Yes Read-
only
Size
Size
Yes Read-
only
Categories
Categories
No Read-
write
Importance
Importance
Yes Read-
write
InReplyTo
InReplyTo
Yes Read-
write
IsSubmitted
IsSubmitted
Yes Read-
only
EWS Managed API property EWS element First-class Read-
property for write
the FindItems or
method or read-
the FindItem only
operation?
IsDraft
IsDraft
Yes Read-
only
IsFromMe
IsFromMe
Yes Read-
only
IsResend
IsResend
Yes Read-
only
IsUnmodified
IsUnmodified
Yes Read-
only
InternetMessageHeaders
InternetMessageHeaders
No Read-
only
DateTimeSent
DateTimeSent
Yes Read-
only
DateTimeCreated
DateTimeCreated
Yes Read-
only
AllowedResponseActions
ResponseObjects
No Read-
only
ReminderDueBy
ReminderDueBy
Yes Read-
write
IsReminderSet
ReminderIsSet
Yes Read-
write
ReminderMinutesBeforeStart
ReminderMinutesBeforeStart
Yes Read-
write
DisplayCc
DisplayCc
Yes Read-
only
DisplayTo
DisplayTo
Yes Read-
only
HasAttachments
HasAttachments
Yes Read-
only
Culture
Culture
Yes Read-
write
EWS Managed API property EWS element First-class Read-
property for write
the FindItems or
method or read-
the FindItem only
operation?
EffectiveRights
EffectiveRights
Yes Read-
only
LastModifiedName
LastModifiedName
Yes Read-
only
LastModifiedTime
LastModifiedTime
Yes Read-
only
IsAssociated
IsAssociated
Yes Read-
write
WebClientEditFormQueryString
WebClientEditFormQueryString
Yes Read-
only
ConversationId
ConversationId
Yes Read-
only
Flag
Flag
Yes Read-
write
InstanceKey
InstanceKey
Yes Read-
only
EntityExtractionResult
EntityExtractionResult
No Read-
only
Sender
Sender
Yes Read-
write
ToRecipients
ToRecipients
No Read-
only
CcRecipients
CcRecipients
No Read-
only
BccRecipients
BccRecipients
No Read-
only
IsReadReceiptRequested
IsReadReceiptRequested
Yes Read-
write
EWS Managed API property EWS element First-class Read-
property for write
the FindItems or
method or read-
the FindItem only
operation?
IsDeliveryReceiptRequested
IsDeliveryReceiptRequested
Yes Read-
write
ConversationIndex
ConversationIndex
Yes Read-
only
ConversationTopic
ConversationTopic
Yes Read-
only
From
From
Yes Read-
write
InternetMessageId
InternetMessageId
Yes Read-
only
IsRead
IsRead
Yes Read-
write
IsResponseRequested
IsResponseRequested
Yes Read-
write
ReplyTo
ReplyTo
No Read-
only
References
References
Yes Read-
write
ReceivedBy
ReceivedBy
Yes Read-
only
ReceivedRepresenting
ReceivedRepresenting
Yes Read-
only
PropertySet(BasePropertySet.IdOnly, ItemSchema.TextBody,
ItemSchema.MimeContent);
Or if you're using EWS, add the elements to the AdditionalProperties element in your
GetItem operation request, as shown.
XML
<t:AdditionalProperties>
</t:AdditionalProperties>
EmailMessage properties inherited from the EWS Managed API ServiceObject object
cannot be included in a property set for the Bind method; however, all the
ServiceObject properties are readable on the EmailMessage object and are retrieved by
the Bind method.
ArchiveTag
ArchiveTag
Read-write
ExtendedProperties
ExtendedProperty
Read-only
IconIndex
IconIndex
Read-only
IsAttachment
Not available Read-only
IsDirty
Not available Read-only
IsNew
Not available Read-only
Item
Item
Read-only
MimeContent
MimeContent
Read-only
NormalizedBody
NormalizedBody
Read-only
PolicyTag
PolicyTag
Read-write
Preview
Preview
Read-write
RetentionDate
RetentionDate
Read-only
EWS Managed API property EWS element Read-write or read-only
Schema
Not available Read-only
Service
Not available Read-only
StoreEntryId
StoreEntryId
Read-only
TextBody
TextBody
Read-only
UniqueBody
UniqueBody
Read-only
See also
Email and EWS in Exchange
Learn how to send new or draft email messages, or to send a delayed email message by
using the EWS Managed API or EWS in Exchange.
Whether you are using the EWS Managed API or EWS, you can send email messages in
two ways. You can either send an existing message, such as a message stored in your
Drafts folder, or you can create and send an email in one step. The methods and
operations that you use to send the message are the same whether you're sending a
message immediately, or sending a delayed message.
Table 1. EWS Managed API methods and EWS operations for sending email messages
This example assumes that service is a valid ExchangeService object and that the user
has been authenticated to an Exchange server.
C#
message.ToRecipients.Add("[email protected]");
message.SendAndSaveCopy();
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:CreateItem MessageDisposition="SendAndSaveCopy">
<m:SavedItemFolderId>
</m:SavedItemFolderId>
<m:Items>
<t:Message>
<t:ToRecipients>
<t:Mailbox>
<t:EmailAddress>[email protected] </t:EmailAddress>
</t:Mailbox>
</t:ToRecipients>
</t:Message>
</m:Items>
</m:CreateItem>
</soap:Body>
</soap:Envelope>
This example assumes that service is a valid ExchangeService object and that the user
has been authenticated to an Exchange server.
C#
message.Send();
The first message, the GetItem request message, specifies the ItemId of the draft
email message to bind to, and elements in the ItemShape element limit the results to
include in the GetItem response. The ItemShape element has a BaseShape of IdOnly,
and the AdditionalProperties element includes the FieldURI values for the Subject
property from the Item schema and the ToRecipients property from the Message
schema, which means that only the ItemId, Subject , and ToRecipients elements will
be returned to the client in the response. For more information about limiting the values
returned in calls and the meaning of the BaseShape element, see Property sets and
response shapes in EWS in Exchange.
This is also the XML request that is sent by the EWS Managed API when calling the
Bind method. The values of some attributes and elements have been shortened for
readability.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetItem>
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:ItemShape>
<m:ItemIds>
</m:ItemIds>
</m:GetItem>
</soap:Body>
</soap:Envelope>
The following example shows the XML response that the server returns after it processes
the GetItem operation. The response indicates that the email message was retrieved
successfully, and includes the Subject and ToRecipient elements as requested. The
values of some attributes and elements have been shortened for readability.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="842"
MinorBuildNumber="10"
Version="V2_8"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:Message>
<t:ItemId Id="AAMkADE4="
ChangeKey="CQAAABYA" />
<t:Subject>Project priorities</t:Subject>
<t:ToRecipients>
<t:Mailbox>
<t:Name>[email protected]</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
<t:MailboxType>OneOff</t:MailboxType>
</t:Mailbox>
</t:ToRecipients>
</t:Message>
</m:Items>
</m:GetItemResponseMessage>
</m:ResponseMessages>
</m:GetItemResponse>
</s:Body>
</s:Envelope>
The second message, the SendItem request message, specifies the ItemId of the email
message to send, as well as the SavedItemFolderId , which specifies the folder in which
to save the sent item.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:SendItem SaveItemToFolder="true">
<m:ItemIds>
<t:ItemId Id="AAMkADE4="
ChangeKey="CQAAABYA" />
</m:ItemIds>
<m:SavedItemFolderId>
</m:SavedItemFolderId>
</m:SendItem>
</soap:Body>
</soap:Envelope>
The server responds to the SendItem request with a SendItemResponse message that
includes a ResponseCode value of NoError, which indicates that the email was sent
successfully.
This example assumes that service is a valid ExchangeService object and that the user
has been authenticated to an Exchange server.
C#
message.ToRecipients.Add("[email protected]");
// Identify the extended property that can be used to specify when to send
the email.
// Set the time that will be used to specify when the email is sent.
// In this example, the email will be sent one minute after the next line
executes,
// Specify when to send the email by setting the value of the extended
property.
message.SetExtendedProperty(PidTagDeferredSendTime, sendTime);
message.Body = str.ToString();
Console.WriteLine("");
message.SendAndSaveCopy();
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:CreateItem MessageDisposition="SendAndSaveCopy">
<m:SavedItemFolderId>
</m:SavedItemFolderId>
<m:Items>
<t:Message>
<t:Subject>Delayed email</t:Subject>
<t:Body BodyType="HTML">
</t:Body>
<t:ExtendedProperty>
<t:ExtendedFieldURI PropertyTag="16367"
PropertyType="SystemTime" />
<t:Value>2014-01-02T21:09:52.000</t:Value>
</t:ExtendedProperty>
<t:ToRecipients>
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:ToRecipients>
</t:Message>
</m:Items>
</m:CreateItem>
</soap:Body>
</soap:Envelope>
See also
Email and EWS in Exchange
Learn how to respond to email messages by using the EWS Managed API or EWS in
Exchange.
You can use the EWS Managed API or EWS to respond to messages by replying to them
or forwarding them to recipients.
Table 1. EWS Managed API methods and EWS operations for responding to email
messages
Reply to an EmailMessage.Reply
CreateItem , where the Items element has
email EmailMessage.CreateReply
a child element of either ReplyToItem or
message ReplyAllToItem .
Forward an EmailMessage.Forward
CreateItem , where the Items element has
email EmailMessage.CreateForward a child element of ForwardItem .
message
The following code example shows how to use the Reply method to respond to an
email message.
This example assumes that service is a valid ExchangeService object and that the user
has been authenticated to an Exchange server. The local variable ItemId is the Id of
the item to respond to. The example calls the FindRecentlySent method to verify that
the message was marked as replied to.
C#
message.Reply(myReply, replyToAll);
FindRecentlySent(message);
The following code example shows how to use the CreateReply method to respond to
an email message.
C#
// Create the reply response message from the original email message.
responseMessage.BodyPrefix = myReply;
responseMessage.SendAndSaveCopy();
FindRecentlySent(message);
If you need to add an attachment to the response message, replace the call to the
SendAndSaveCopy method with the following code.
C#
reply.Attachments.AddFileAttachment("attachmentname.txt");
reply.Update(ConflictResolutionMode.AutoResolve);
reply.SendAndSaveCopy();
This is also the XML request that the EWS Managed API sends when calling either the
Reply or the CreateReply method.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:CreateItem MessageDisposition="SendAndSaveCopy">
<m:Items>
<t:ReplyAllToItem>
<t:ReferenceItemId Id="AAMkADE4="
ChangeKey="CQAAABYA" />
</t:ReplyAllToItem>
</m:Items>
</m:CreateItem>
</soap:Body>
</soap:Envelope>
If you need to add an attachment to your response message, call the CreateItem
operation as specified above, but change the MessageDisposition to SaveOnly. Then
call the CreateAttachment operation, followed by the SendItem operation.
Forward an email message by using the EWS
Managed API
The EWS Managed API provides two methods that you can use to forward messages:
Forward and CreateForward . The Forward method only takes two parameters: the
message to prepend to the existing body, and an array or collection of recipients,
depending on the overload you choose to use. If you need to add an attachment to the
message you're forwarding, or set additional properties on the new message, use the
CreateForward method, which enables you to set all the properties that are available on
an EmailMessage object.
The following code example shows how to use the Forward method to forward an email
message to one recipient.
This example assumes that service is a valid ExchangeService object and that the user
has been authenticated to an Exchange server. The local variable ItemId is the Id of
the item to forward. The example calls the FindRecentlySent method to verify that the
message was marked as forwarded.
C#
message.Forward(myForward, "[email protected]");
FindRecentlySent(message);
The following code example shows how to use the CreateForward method to forward
an email message to one recipient.
C#
// Create the reply response message from the original email message.
forwardMessage.ToRecipients.Add("[email protected]");
// Send and save a copy of the replied email message in the default Sent
Items folder.
forwardMessage.SendAndSaveCopy();
// Verify that the forwarded message was sent by calling FindRecentlySent.
FindRecentlySent(message);
If you need to add an attachment to the forwarded message, replace the call to the
SendAndSaveCopy method with the following code.
C#
forward.Attachments.AddFileAttachment("attachmentname.txt");
forward.Update(ConflictResolutionMode.AutoResolve);
forward.SendAndSaveCopy();
This is also the XML request that the EWS Managed API sends when calling either the
Forward or the CreateForward method.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:CreateItem MessageDisposition="SendAndSaveCopy">
<m:Items>
<t:ForwardItem>
<t:ToRecipients>
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:ToRecipients>
<t:ReferenceItemId Id="AAAMkADE="
ChangeKey="CQAAABYA" />
</t:ForwardItem>
</m:Items>
</m:CreateItem>
</soap:Body>
</soap:Envelope>
If you need to add an attachment to your response message, call the CreateItem
operation, but change the MessageDisposition to SaveOnly. Then call the
CreateAttachment operation, followed by the SendItem operation.
C#
// Determine the last verb executed on the message and display output.
object responseType;
if (messageToCheck.TryGetProperty(PidTagLastVerbExecuted, out
responseType))
switch (((Int32)responseType))
break;
break;
break;
if (messageToCheck.TryGetProperty(PidTagLastVerbExecutionTime, out
ReplyTime))
Console.WriteLine(((DateTime)ReplyTime).ToString() + ".");
else
See also
Email and EWS in Exchange
Learn how to move and copy email messages by using the EWS Managed API or EWS in
Exchange.
You can use the EWS Managed API or EWS to move and copy email messages in a
mailbox.
Table 1. EWS Managed API methods and EWS operations for moving and copying
email messages
It's important to note that when you move or copy an email message into a different
folder, a new item is created in the new folder with a unique item ID, and the original
message is deleted. If you're moving or copying an email message between two folders
in the same mailbox, the new item is returned in the response, which gives you access to
the new item ID. However, if you're moving or copying an email message between two
mailboxes or between a mailbox and a public folder, the new item is not returned in the
response. To access the moved message in that scenario, use the EWS Managed API
FindItems method or EWS FindItem operation, create an extended property
definition for the PidTagSearchKey (0x300B0102) property, or create and set a custom
extended property and then search for the custom extended property in the new folder.
Deleting an email message is different than moving an item to the Deleted Items folder.
If you use the EWS Managed API Item.Delete method or the EWS DeleteItem
operation, the item specified in the request is removed from the original folder, and a
copy is placed in the Deleted Items folder with a new item ID. Unlike when you move or
copy any item, the new item is not returned in the Delete method or the DeleteItem
operation response. The steps involved in deleting an email by using the EWS Managed
API or EWS are the same as those for deleting any generic item from the Exchange
store.
Move an email message by using the EWS
Managed API
The following code example shows how to use the EmailMessage.Move method to
move an existing email message from one folder to another.
This example assumes that service is a valid ExchangeService object, and that ItemId
is the Id of the email message to move or copy.
C#
// Move the specified mail to the JunkEmail folder and store the returned
item.
// Check that the item was moved by binding to the moved email message
This is also the XML request that is sent by the EWS Managed API when calling the
Move method. The values of some attributes and elements have been shortened for
readability.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:MoveItem>
<m:ToFolderId>
</m:ToFolderId>
<m:ItemIds>
<t:ItemId Id="AfwDoAAA="
ChangeKey="CQAAABYAAAApjGm7TnMWQ5TzjbhziLL0AAF25sM1" />
</m:ItemIds>
</m:MoveItem>
</soap:Body>
</soap:Envelope>
This example assumes that service is a valid ExchangeService object, and that ItemId
is the Id of the email message to copy. The values of some parameters have been
shortened for readability.
C#
// Copy the orignal message into another folder in the mailbox and store the
returned item.
// Check that the item was copied by binding to the copied email message
This is also the XML request that is sent by the EWS Managed API when calling the
Copy method. The values of some attributes and elements have been shortened for
readability.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:CopyItem>
<m:ToFolderId>
</m:ToFolderId>
<m:ItemIds>
<t:ItemId Id="2TSeSAAA="
ChangeKey="CQAAABYAAAApjGm7TnMWQ5TzjbhziLL0AAF2d+3+" />
</m:ItemIds>
</m:CopyItem>
</soap:Body>
</soap:Envelope>
The server responds to the CopyItem request with a CopyItemResponse message that
includes a ResponseCode value of NoError, which indicates that the email message
was copied successfully. The response also includes the ItemId for the email message in
the new folder, which is important to store because the ItemId is different in the new
folder.
See also
Email and EWS in Exchange
Learn about how to find conversations, apply actions to conversations, and get items in
conversations by using the EWS Managed API or EWS in Exchange.
In the context of Exchange, conversations are a way to group and manage a related set of
email messages. They can also provide a way to view related messages. Exchange defines
conversations based on the Message-ID value of the first email message in a thread. All
replies and related messages reference the original message's Message-ID header in their
References and In-Reply-To headers.
Additionally, inside the SOAP envelope, for each message received in a mailbox, Exchange
sets specific properties and elements.
ConversationTopic ConversationTopic Contains a normalized form of the subject value that was
set on the original message. This is the same as the
Thread-Topic message header. This value is read-only.
Exchange applies the same ConversationTopic value to replies to the first message and then
updates the ConversationIndex value to represent the message's position relative to the
original message. If the subject of the email thread changes, Exchange applies a new
ConversationTopic value and new ConversationIndex values to the new conversation.
Table 2. EWS Managed API methods and EWS operations for working with conversations
In order to… Use this EWS Managed API method or methods Use this EWS operation
Find ExchangeService.FindConversation
FindConversation
conversations
In order to… Use this EWS Managed API method or methods Use this EWS operation
Apply Conversation.EnableAlwaysCategorizeItems
ApplyConversationAction
conversation Conversation.EnableAlwaysDeleteItems
actions Conversation.EnableAlwaysMoveItems
ExchangeService.CopyItemsInConversations
ExchangeService.DeleteItemsInConversations
ExchangeService.DisableAlwaysCategorizeItemsInConversations
ExchangeService.DisableAlwaysDeleteItemsInConversations
ExchangeService.DisableAlwaysMoveItemsInConversations
ExchangeService.EnableAlwaysCategorizeItemsInConversations
ExchangeService.EnableAlwaysDeleteItemsInConversations
ExchangeService.EnableAlwaysMoveItemsInConversations
ExchangeService.MoveItemsInConversations
ExchangeService.SetFlagStatusForItemsInConversations
ExchangeService.SetReadStateForItemsInConversations
ExchangeService.SetRetentionPolicyForItemsInConversations
one or more
conversations
This example assumes that service is a valid ExchangeService object and that the user has
been authenticated to an Exchange server.
C#
// Create the view of conversations returned in the response. This view will
return at most 10 results.
// Search the Inbox for conversations and return a results set with the
specified view.
ApplyConversationActions(service, conversation);
Console.WriteLine("");
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:FindConversation>
<m:IndexedPageItemView MaxEntriesReturned="10"
Offset="0"
BasePoint="Beginning" />
<m:ParentFolderId>
</m:ParentFolderId>
<m:QueryString>subject:news</m:QueryString>
</m:FindConversation>
</soap:Body>
</soap:Envelope>
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="883"
MinorBuildNumber="10"
Version="V2_10"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<FindConversationResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<Conversations>
<Conversation
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<UniqueRecipients>
<String>Sadie Daniels</String>
</UniqueRecipients>
<GlobalUniqueRecipients>
<String>Sadie Daniels</String>
</GlobalUniqueRecipients>
<UniqueUnreadSenders>
<String>Ronnie Sturgis</String>
</UniqueUnreadSenders>
<GlobalUniqueUnreadSenders>
<String>Ronnie Sturgis</String>
</GlobalUniqueUnreadSenders>
<UniqueSenders>
<String>Ronnie Sturgis</String>
</UniqueSenders>
<GlobalUniqueSenders>
<String>Ronnie Sturgis</String>
</GlobalUniqueSenders>
<LastDeliveryTime>2014-02-18T20:42:26Z</LastDeliveryTime>
<GlobalLastDeliveryTime>2014-02-18T20:42:26Z</GlobalLastDeliveryTime>
<HasAttachments>false</HasAttachments>
<GlobalHasAttachments>false</GlobalHasAttachments>
<MessageCount>1</MessageCount>
<GlobalMessageCount>1</GlobalMessageCount>
<UnreadCount>1</UnreadCount>
<GlobalUnreadCount>1</GlobalUnreadCount>
<Size>9330</Size>
<GlobalSize>9330</GlobalSize>
<ItemClasses>
<ItemClass>IPM.Note</ItemClass>
</ItemClasses>
<GlobalItemClasses>
<ItemClass>IPM.Note</ItemClass>
</GlobalItemClasses>
<Importance>Normal</Importance>
<GlobalImportance>Normal</GlobalImportance>
<ItemIds>
<ItemId Id="sVCyAAA="
ChangeKey="CQAAAA==" />
</ItemIds>
<GlobalItemIds>
<ItemId Id="sVCyAAA="
ChangeKey="CQAAAA==" />
</GlobalItemIds>
<LastModifiedTime>2014-02-18T20:42:26Z</LastModifiedTime>
<InstanceKey>AQAAAAAAAQABAAAACbFYggAAAAA=</InstanceKey>
<HasIrm>false</HasIrm>
<GlobalHasIrm>false</GlobalHasIrm>
</Conversation>
</Conversations>
<TotalConversationsInView>1</TotalConversationsInView>
<IndexedOffset>1</IndexedOffset>
</FindConversationResponse>
</s:Body>
</s:Envelope>
This example assumes that service is a valid ExchangeService object and that the user has
been authenticated to an Exchange server.
For a complete list of methods that apply conversation actions, see Table 2.
C#
categories.Add("Customer");
categories.Add("System Integrator");
// synchronously after enabling this rule and after all item categorization
has been applied.
conversation.EnableAlwaysCategorizeItems(categories, true);
// Apply an always move rule to all items in the conversation and move the
items
// to the Drafts folder. Process the request asynchronously and return the
response.
conversation.EnableAlwaysMoveItems(WellKnownFolderName.Drafts, false);
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:ApplyConversationAction>
<m:ConversationActions>
<t:ConversationAction>
<t:Action>AlwaysMove</t:Action>
<t:ProcessRightAway>false</t:ProcessRightAway>
<t:DestinationFolderId>
</t:DestinationFolderId>
</t:ConversationAction>
</m:ConversationActions>
</m:ApplyConversationAction>
</soap:Body>
</soap:Envelope>
In this example, all conversation items in the default Deleted Items and Drafts folders are
ignored.
This example assumes that service is a valid ExchangeService object and that the user has
been authenticated to an Exchange server.
C#
try
FindItemsResults<Item> results =
service.FindItems(WellKnownFolderName.Inbox,
new ItemView(1));
ItemSchema.Subject,
ItemSchema.DateTimeReceived);
{ WellKnownFolderName.DeletedItems, WellKnownFolderName.Drafts };
properties,
null,
foldersToIgnore,
ConversationSortOrder.TreeOrderDescending);
items.Add(item);
Console.WriteLine(srException);
We recommend that you cache the SyncState property for subsequent requests to get items
in the conversation.
In this example, all conversation items in the default Deleted Items and Drafts folders are
ignored.
This example assumes that service is a valid ExchangeService object and that the user has
been authenticated to an Exchange server.
C#
try
// Find the first two items in the Inbox. This item will be used to call
the GetConversationItems operation.
FindItemsResults<Item> results =
service.FindItems(WellKnownFolderName.Inbox, new ItemView(2));
// Get the conversation identifier of the first two items in the Inbox.
convR1.ConversationId = convId1;
convR2.ConversationId = convId2;
conversations.Add(convR1);
conversations.Add(convR2);
// Specify the properties that will be returned for the items in the
conversation.
ItemSchema.Subject,
ItemSchema.DateTimeReceived);
{ WellKnownFolderName.DeletedItems, WellKnownFolderName.Drafts };
ServiceResponseCollection<GetConversationItemsResponse> responses =
service.GetConversationItems(conversations, properties,
foldersToIgnore,
ConversationSortOrder.TreeOrderDescending);
Console.WriteLine(srException);
As a best practice, we recommend that you return only the properties that the client
application requires, rather than using the FirstClassProperties option for the
BasePropertySet class. We recommend that you cache the SyncState property for subsequent
requests to get items in the conversation.
In this example, all conversation items in the default Deleted Items and Drafts folders are
ignored.
To get items from more than one conversation, include additional Conversation elements.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m=https://schemas.microsoft.com/exchange/services/2006/messages
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetConversationItems>
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:ItemShape>
<m:FoldersToIgnore>
</m:FoldersToIgnore>
<m:SortOrder>TreeOrderDescending</m:SortOrder>
<m:Conversations>
<t:Conversation>
</t:Conversation>
</m:Conversations>
</m:GetConversationItems>
</soap:Body>
</soap:Envelope>
The ItemId, SyncState, and ConversationId elements have been shortened for readability.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="873"
MinorBuildNumber="9"
Version="V2_9"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetConversationItemsResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetConversationItemsResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Conversation>
<t:SyncState>AAAAYAm1</t:SyncState>
<t:ConversationNodes>
<t:ConversationNode>
<t:InternetMessageId>&lt;994051d7c1a346efbfce8dec2cbad509
@SN2SR01MB006.com&gt;</t:InternetMessageId>
<t:ParentInternetMessageId>&lt;faa2b1df30074380abe3527b0cd18ca5
@SN2SR01MB001.com&gt;</t:ParentInternetMessageId>
<t:Items>
<t:Message>
<t:ItemId Id="AYB1NAAA="
ChangeKey="CQAAABYAAAD/oydcA+SPQZGbKWNyvNIZAAAAYCHq" />
<t:DateTimeReceived>2014-01-02T13:15:00Z</t:DateTimeReceived>
</t:Message>
</t:Items>
</t:ConversationNode>
<t:ConversationNode>
<t:InternetMessageId>&lt;faa2b1df30074380abe3527b0cd18ca5
@SN2SR01MB001.com&gt;</t:InternetMessageId>
<t:ParentInternetMessageId>&lt;6a8e7658524b41cda7cdc3f23c1074a5
@SN2SR01MB001.com&gt;</t:ParentInternetMessageId>
<t:Items>
<t:Message>
<t:ItemId Id="lQAAAA=="
ChangeKey="CQAAABYAAAD/oydcA+SPQZGbKWNyvNIZAAAAYAu8" />
<t:DateTimeReceived>2014-01-02T10:02:08Z</t:DateTimeReceived>
</t:Message>
</t:Items>
</t:ConversationNode>
<t:ConversationNode>
<t:InternetMessageId>&lt;bcdb185495834370a874a1e7ebedbb96
@SN2SR01MB005.com&gt;</t:InternetMessageId>
<t:ParentInternetMessageId>&lt;e52a4de6b98d484887e141da094a2ce6
@SN2SR01MB006.com&gt;</t:ParentInternetMessageId>
<t:Items>
<t:Message>
<t:ItemId Id="igAAAA=="
ChangeKey="CQAAABYAAAD/oydcA+SPQZGbKWNyvNIZAAAAYAuj" />
<t:DateTimeReceived>2014-01-02T16:20:10Z</t:DateTimeReceived>
</t:Message>
</t:Items>
</t:ConversationNode>
<t:ConversationNode>
<t:InternetMessageId>&lt;e52a4de6b98d484887e141da094a2ce6
@SN2SR01MB006.com&gt;</t:InternetMessageId>
<t:ParentInternetMessageId>&lt;f0db3ead01db4fe087d98022149aa16f
@SN2SR01MB001.com&gt;</t:ParentInternetMessageId>
<t:Items>
<t:Message>
<t:ItemId Id="iwAAAA=="
ChangeKey="CQAAABYAAAD/oydcA+SPQZGbKWNyvNIZAAAAYAul" />
<t:DateTimeReceived>2014-01-02T15:30:10Z</t:DateTimeReceived>
</t:Message>
</t:Items>
</t:ConversationNode>
<t:ConversationNode>
<t:InternetMessageId>&lt;f0db3ead01db4fe087d98022149aa16f
@SN2SR01MB001.com&gt;</t:InternetMessageId>
<t:ParentInternetMessageId>&lt;88b1884ecaaa4f68b081c009d827e8c6
@SN2SR01MB003.com&gt;</t:ParentInternetMessageId>
<t:Items>
<t:Message>
<t:ItemId Id="jQAAAA=="
ChangeKey="CQAAABYAAAD/oydcA+SPQZGbKWNyvNIZAAAAYAuq" />
<t:DateTimeReceived>2014-01-02T14:20:10Z</t:DateTimeReceived>
</t:Message>
</t:Items>
</t:ConversationNode>
<t:ConversationNode>
<t:InternetMessageId>&lt;88b1884ecaaa4f68b081c009d827e8c6
@SN2SR01MB003.com&gt;</t:InternetMessageId>
<t:ParentInternetMessageId>&lt;faa2b1df30074380abe3527b0cd18ca5
@SN2SR01MB001.com&gt;</t:ParentInternetMessageId>
<t:Items>
<t:Message>
<t:ItemId Id="kAAAAA=="
ChangeKey="CQAAABYAAAD/oydcA+SPQZGbKWNyvNIZAAAAYAux" />
<t:DateTimeReceived>2014-01-02T12:52:09Z</t:DateTimeReceived>
</t:Message>
</t:Items>
</t:ConversationNode>
</t:ConversationNodes>
</m:Conversation>
</m:GetConversationItemsResponseMessage>
</m:ResponseMessages>
</m:GetConversationItemsResponse>
</s:Body>
</s:Envelope>
Version differences
When you are using Exchange Server 2010 Service Pack 1 (SP1), the FindConversation
method has fewer options available, and the FindConversation operation has fewer
elements in the request.
Table 3. Exchange 2010 SP1 version support for FindConversation
SortOrder
ParentFolderId
The FindConversation EWS Managed API method and the FindConversation EWS method are
not available in the initial release version of Exchange 2010 or in Exchange 2007.
See also
Email and EWS in Exchange
Use search filters with EWS in Exchange
Exchange 2013: Find conversations in mailboxes programmatically
Exchange 2013: Apply actions to manage conversations in a mailbox
Extract an entity from an email message
by using EWS in Exchange
Article • 01/15/2020 • 7 minutes to read
Learn how to extract information from the body of an email message by using the EWS
Managed API or EWS in Exchange.
You can use the EWS Managed API or EWS to access the addresses, contacts, email
addresses, meeting suggestions, phone numbers, tasks, and URLs that an Exchange
server extracts from email messages. You can then use this information for new
applications or to suggest follow up actions in existing applications. For example, if a
contact entity, meeting suggestion, or task suggestion is identified in an email, your
application can suggest that a new item with prepopulated information be created. By
using extracted entities, you can capitalize on the intent behind the data — and help
users seamlessly integrate their email message content into actionable results.
Entity extraction for addresses, contacts, email addresses, meeting suggestions, phone
numbers, tasks, and URLs is already built in to every item in the Exchange store. If you're
using the EWS Managed API, the Item.EntityExtractionResult property retrieves the
entities for you in an Item.Bind method call. If you're using EWS, the
EntityExtractionResult element gets all the extracted entities for you in a GetItem
operation call. After you retrieve the results of the extracted entities, you can walk
through each entity collection to gather pertinent information. For example, if a meeting
suggestion was extracted, you can retrieve the suggested meeting subject, attendee list,
start time, and end time.
Table 1. EWS Managed API properties and EWS elements that contain extracted
entities
Addresses EntityExtractionResult.Addresses
Addresses
Contacts EntityExtractionResult.Contacts
Contacts
URLs EntityExtractionResult.Urls
Urls
Hi Sadie
Are you free this Friday at 7 to join us for a dinner party at our house?
Please RSVP to either myself or Mara ([email protected]) before Friday morning. Best
for you organics (http://www.bestforyouorganics.com) will be catering so we can
Also, can you forward this to Magdalena? I don't have her contact information.
Ronnie
This example assumes that service is a valid ExchangeService object, and that ItemId
is the Id of the email message to move or copy.
C#
public static void ExtractEntities(ExchangeService service, ItemId ItemId)
Console.WriteLine(" ");
if (item.EntityExtractionResult != null)
if (item.EntityExtractionResult.Addresses != null)
Console.WriteLine("--------------------Addresses----------------
-----------");
Console.WriteLine(" ");
if (item.EntityExtractionResult.Contacts != null)
Console.WriteLine("--------------------Contacts-----------------
-----------");
Console.WriteLine("Addresses: {0}",
contact.Addresses);
Console.WriteLine(" ");
if (item.EntityExtractionResult.EmailAddresses != null)
Console.WriteLine("--------------------Email addresses----------
-----------");
Console.WriteLine(" ");
if (item.EntityExtractionResult.MeetingSuggestions != null)
Console.WriteLine("--------------------Meeting suggestions------
-----------");
Console.WriteLine("Location: {0}",
meetingSuggestion.Location);
Console.WriteLine(" ");
if (item.EntityExtractionResult.PhoneNumbers != null)
Console.WriteLine("--------------------Phone numbers------------
-----------");
Console.WriteLine("Type: {0}",
phone.Type);
Console.WriteLine(" ");
if (item.EntityExtractionResult.TaskSuggestions != null)
Console.WriteLine("--------------------Task suggestions---------
-----------");
Console.WriteLine(" ");
if (item.EntityExtractionResult.Urls != null)
Console.WriteLine("--------------------URLs---------------------
-----------");
Console.WriteLine(" ");
text
--------------------Addresses---------------------------
--------------------Contacts----------------------------
Addresses:
Business name:
Phone numbers:
URLs:
--------------------Email addresses---------------------
--------------------Meeting suggestions-----------------
Meeting string: Are you free this Friday at 7 to join us for a dinner
party at our house?
Location:
--------------------Phone numbers-----------------------
Type: Unspecified
--------------------Task suggestions--------------------
--------------------URLs--------------------------------
URL: http://www.bestforyouorganics.com
Notice that all addresses, contacts, email addresses, phone numbers, tasks, and URLs
were extracted as expected. The meeting suggestion, however, is a bit more complex.
Notice the start time and end time of the meeting suggestion are not what you might
expect. The start time in the email is "this Friday at 7", but the extracted value for the
start time is 10/1/0104 2:00:00 PM. This is because the start time and end time extracted
by the server are encoded dates. For more information about how to interpret dateTime
values in meeting suggestions, see [MS-OXCEXT]: Client Extension Message Object
Protocol .
This is also the XML request that is sent by the EWS Managed API when you use the
Bind method to Extract all entities from an email by using the EWS Managed API.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetItem>
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:ItemShape>
<m:ItemIds>
</m:ItemIds>
</m:GetItem>
</soap:Body>
</soap:Envelope>
The server responds to the GetItem request with a GetItemResponse message that
includes a ResponseCode value of NoError, which indicates that the email message
was retrieved successfully. The response also includes the EntityExtractionResult for
each extracted entity.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="883"
MinorBuildNumber="10"
Version="V2_10"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:Message>
<t:ItemId Id="sVC5AAA="
ChangeKey="CQAAABYAAAD32nSTjepyT63rYH17n9THAAAOOqJN"
/>
<t:EntityExtractionResult>
<t:Addresses>
<t:AddressEntity>
<t:Position>LatestReply</t:Position>
</t:AddressEntity>
</t:Addresses>
<t:MeetingSuggestions>
<t:MeetingSuggestion>
<t:Position>LatestReply</t:Position>
<t:Attendees>
<t:EmailUser>
<t:Name>Ronnie Sturgis</t:Name>
<t:UserId>[email protected]</t:UserId>
</t:EmailUser>
<t:EmailUser>
<t:Name>Sadie Daniels</t:Name>
<t:UserId>[email protected]</t:UserId>
</t:EmailUser>
</t:Attendees>
<t:Subject>dinner party</t:Subject>
<t:StartTime>0104-10-01T19:00:00Z</t:StartTime>
<t:EndTime>0104-10-01T19:30:00Z</t:EndTime>
</t:MeetingSuggestion>
</t:MeetingSuggestions>
<t:TaskSuggestions>
<t:TaskSuggestion>
<t:Position>LatestReply</t:Position>
<t:Assignees>
<t:EmailUser>
<t:Name>Sadie Daniels</t:Name>
<t:UserId>[email protected]</t:UserId>
</t:EmailUser>
</t:Assignees>
</t:TaskSuggestion>
</t:TaskSuggestions>
<t:EmailAddresses>
<t:EmailAddressEntity>
<t:Position>LatestReply</t:Position>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:EmailAddressEntity>
</t:EmailAddresses>
<t:Contacts>
<t:Contact>
<t:Position>LatestReply</t:Position>
<t:PersonName>Mara</t:PersonName>
<t:EmailAddresses>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:EmailAddresses>
<t:ContactString>Mara
([email protected]</t:ContactString>
</t:Contact>
</t:Contacts>
<t:Urls>
<t:UrlEntity>
<t:Position>LatestReply</t:Position>
<t:Url>http://www.bestforyouorganics.com</t:Url>
</t:UrlEntity>
</t:Urls>
<t:PhoneNumbers>
<t:Phone>
<t:Position>LatestReply</t:Position>
<t:OriginalPhoneString>612-555-
0158</t:OriginalPhoneString>
<t:PhoneString>6125550158</t:PhoneString>
<t:Type>Unspecified</t:Type>
</t:Phone>
</t:PhoneNumbers>
</t:EntityExtractionResult>
</t:Message>
</m:Items>
</m:GetItemResponseMessage>
</m:ResponseMessages>
</m:GetItemResponse>
</s:Body>
</s:Envelope>
Notice that all addresses, contacts, email addresses, phone numbers, tasks, and URLs
were extracted as expected. The meeting suggestion, however, is a bit more complex.
Notice the start time and end time of the meeting suggestion are not what you might
expect. The start time in the email was "this Friday at 7", but the extracted value for the
start time is 10/1/0104 2:00:00 PM. This is because the start time and end time extracted
by the server are encoded dates. For more information about interpreting dateTime
values in meeting suggestions, see [MS-OXCEXT]: Client Extension Message Object
Protocol .
See also
Email and EWS in Exchange
Item.EntityExtractionResult
EntityExtractionResult
Process email messages in batches by
using EWS in Exchange
Article • 01/15/2020 • 12 minutes to read
Learn how to create, get, update, and delete batches of email messages in a single call
by using the EWS Managed API or EWS in Exchange.
You can use the EWS Managed API or EWS to work with batches of email messages to
reduce the number of calls a client makes to an Exchange server. When you use the EWS
Managed API to create, get, update, delete, and send messages in batches, you use
ExchangeService object methods, whereas when you work with single email messages,
you use EmailMessage object methods. If you are using EWS, you use the same
operations to work with both single and batches of email messages.
Table 1. EWS Managed API methods and EWS operations for working with batches of
email messages
In order to… Use this EWS Managed API Use this EWS
method operation
batches
In this article, you'll learn how to complete basic tasks for batches of email messages by
using the EWS Managed API or EWS.
This example assumes that service is a valid ExchangeService object and that the user
has been authenticated to an Exchange server.
C#
message1.ToRecipients.Add("[email protected]");
message2.ToRecipients.Add("[email protected]");
message3.ToRecipients.Add("[email protected]");
ServiceResponseCollection<ServiceResponse> response =
service.CreateItems(messageItems, WellKnownFolderName.Drafts,
MessageDisposition.SaveOnly, null);
try
itemIds.Add(message.Id);
// Print out the exception and the last eight characters of the
item ID.
if (response.OverallResult == ServiceResult.Success)
Console.WriteLine("\r\n");
// If the method did not return success, print the result message for
each email.
else
int counter = 1;
// Print out the result and the last eight characters of the
item ID.
Console.WriteLine("\r\n");
counter++;
return itemIds;
Note that the example only saves the messages in the Drafts folder; it does not send the
messages. For more about how to send the messages, see Send email messages in
batches by using the EWS Managed API.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:CreateItem MessageDisposition="SaveOnly">
<m:SavedItemFolderId>
</m:SavedItemFolderId>
<m:Items>
<t:Message>
<t:Subject>Project priorities</t:Subject>
<t:ToRecipients>
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:ToRecipients>
</t:Message>
<t:Message>
<t:ToRecipients>
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:ToRecipients>
</t:Message>
<t:Message>
<t:Subject>Code Blast</t:Subject>
<t:ToRecipients>
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:ToRecipients>
</t:Message>
</m:Items>
</m:CreateItem>
</soap:Body>
</soap:Envelope>
Note that the example only saves the messages in the Drafts folder; it does not send the
messages. For more about how to send the messages, see Send email messages in
batches by using EWS.
Send email messages in batches by using the
EWS Managed API
You use the same code to send email messages in batches that you use to create email
messages in batches, except that a few of the CreateItems method parameters
change. So, to send email messages by using the EWS Managed API, use the code you
use to create email messages in batches, and replace the call to the CreateItems
method with the call in the following example. In this example, the messages are created
in the Sent Items folder, and the message disposition is changed to
MessageDisposition.SendAndSaveCopy , so that the message is sent, and not just
saved locally.
C#
ServiceResponseCollection<ServiceResponse> response =
service.CreateItems(messageItems, WellKnownFolderName.SentItems,
MessageDisposition.SendAndSaveCopy, null);
XML
<m:CreateItem MessageDisposition="SendAndSaveCopy">
<m:SavedItemFolderId>
<t:DistinguishedFolderId Id="sentitems" />
</m:SavedItemFolderId>
This example assumes that service is a valid ExchangeService object and that the user
has been authenticated to an Exchange server.
C#
// Create a property set that limits the properties returned by the Bind
method to only those that are required.
ServiceResponseCollection<GetItemResponse> response =
service.BindToItems(itemIds, propSet);
try
messageItems.Add(message);
if (response.OverallResult == ServiceResult.Success)
Console.WriteLine("\r\n");
return messageItems;
The ItemId and ChangeKey attributes have been shortened for readability.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetItem>
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:ItemShape>
<m:ItemIds>
<t:ItemId Id="m4NxAAA="
ChangeKey="CQAAABYAAAApjGm7TnMWQ5TzjbhziLL0AAF/yKB0" />
<t:ItemId Id="m4NyAAA="
ChangeKey="CQAAABYAAAApjGm7TnMWQ5TzjbhziLL0AAF/yKB1" />
<t:ItemId Id="m4NzAAA="
ChangeKey="CQAAABYAAAApjGm7TnMWQ5TzjbhziLL0AAF/yKB2" />
</m:ItemIds>
</m:GetItem>
</soap:Body>
</soap:Envelope>
The server responds to the GetItem request with a GetItemResponse message that
includes the first class properties for each of the requested messages.
Update email messages in batches by using the
EWS Managed API
You can get email messages in batches by using the EWS Managed API UpdateItems
method, as shown in the following example.
For a list of writable email message properties, see Email properties and elements in
EWS in Exchange.
For details about how to send a draft message after it's been updated, see Sending
email messages by using the EWS Managed API.
This example assumes that service is a valid ExchangeService object and that the user
has been authenticated to an Exchange server.
C#
// Print out confirmation with the last eight characters of the item
ID and the email subject.
ServiceResponseCollection<UpdateItemResponse> response =
service.UpdateItems(messageItems, WellKnownFolderName.Drafts,
ConflictResolutionMode.AutoResolve, MessageDisposition.SaveOnly, null);
if (response.OverallResult == ServiceResult.Success)
// If the method did not return success, print the result message for
each email.
else
int counter = 1;
counter++;
return messageItems;
For a list of writable email message elements, see Email properties and elements in EWS
in Exchange.
For details about how to send a draft message after it's been updated, see Send a draft
email message by using EWS.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:UpdateItem MessageDisposition="SaveOnly"
ConflictResolution="AutoResolve">
<m:SavedItemFolderId>
</m:SavedItemFolderId>
<m:ItemChanges>
<t:ItemChange>
<t:ItemId Id="m4OVAAA="
ChangeKey="CQAAABYAAAApjGm7TnMWQ5TzjbhziLL0AAF/yKCy" />
<t:Updates>
<t:SetItemField>
<t:Message>
</t:Message>
</t:SetItemField>
</t:Updates>
</t:ItemChange>
<t:ItemChange>
<t:ItemId Id="m4OWAAA="
ChangeKey="CQAAABYAAAApjGm7TnMWQ5TzjbhziLL0AAF/yKCz" />
<t:Updates>
<t:SetItemField>
<t:Message>
</t:Message>
</t:SetItemField>
</t:Updates>
</t:ItemChange>
<t:ItemChange>
<t:ItemId Id="m4OXAAA="
ChangeKey="CQAAABYAAAApjGm7TnMWQ5TzjbhziLL0AAF/yKC0" />
<t:Updates>
<t:SetItemField>
<t:Message>
</t:Message>
</t:SetItemField>
</t:Updates>
</t:ItemChange>
</m:ItemChanges>
</m:UpdateItem>
</soap:Body>
</soap:Envelope>
This example assumes that service is a valid ExchangeService object and that the user
has been authenticated to an Exchange server.
C#
ServiceResponseCollection<ServiceResponse> response =
service.DeleteItems(itemIds, DeleteMode.SoftDelete, null,
AffectedTaskOccurrence.AllOccurrences);
// DeleteItems returns success even if it does not find all the item
IDs.
if (response.OverallResult == ServiceResult.Success)
else
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:DeleteItem DeleteType="SoftDelete"
AffectedTaskOccurrences="AllOccurrences">
<m:ItemIds>
<t:ItemId Id="m4OkAAA="
ChangeKey="CQAAABYAAAApjGm7TnMWQ5TzjbhziLL0AAF/yKDE" />
<t:ItemId Id="m4OlAAA="
ChangeKey="CQAAABYAAAApjGm7TnMWQ5TzjbhziLL0AAF/yKDF" />
<t:ItemId Id="m4OmAAA="
ChangeKey="CQAAABYAAAApjGm7TnMWQ5TzjbhziLL0AAF/yKDG" />
</m:ItemIds>
</m:DeleteItem>
</soap:Body>
</soap:Envelope>
To verify the success of a batch process by using the EWS Managed API, you can check
that the OverallResult property of the ServiceResponseCollection is equal to
ServiceResult.Success . If so, all the emails were processed successfully. If the
OverallResult is not equal to ServiceResult.Success, one or more of the emails were not
processed successfully. Each of the objects returned in the ServiceResponseCollection
contains the following properties:
ErrorCode
ErrorDetails
ErrorMessage
ErrorProperties
Result
These properties contain information about why the email messages could not be
processed as requested. The examples in this article print out the Result, ErrorCode, and
ErrorMessage for each failed message. You can use these results to investigate the issue.
For EWS, to verify the success of a batched process, check the ResponseClass attribute
for each item being processed. The following is the basic structure of the
ResponseMessageType, the base type from which all response messages are derived.
XML
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</ResponseMessage>
The ResponseClass attribute is set to Success if the email was processed successfully, or
Error if the email was not processed successfully. For email messages, you will not
encounter a Warning during batch processing. If the ResponseClass is Success, the
ResponseCode element that follows is also always set to NoError. If the
ResponseClass is Error, you need to check the values of the MessageText ,
ResponseCode, and MessageXml elements to determine what caused the problem.
DescriptiveLinkKey is currently unused.
See also
Email and EWS in Exchange
Learn about folders and mailbox items and how your EWS Managed API or EWS client represents
them.
Folders are the organizing element of an Exchange mailbox. Folders can contain mailbox items,
such as email messages, contacts, appointments, meetings, and tasks, or they can contain other
folders. Exchange includes different types of folders, but the folder types are similar to each other.
The main difference between them is the type of item they contain.
Items, however, have unique types. Each item type has a different set of properties or schema to
define it. In this article, we'll discuss the types of folders and items that are available and the
differences between them.
Folders
Folders all derive from the same base class or base type, the Folder class in the EWS Managed
API, or the Folder type in EWS. The following figure shows the EWS Managed API classes and
EWS types.
Figure 1. EWS Managed API folder classes and EWS folder types
The primary difference between each of the folder classes and folder types is that you can only
create a certain type of item in each type of folder. One other difference is in how the client
displays information in a folder. For example, Exchange allows you to create appointments in the
Calendar folder. You can move other types of items into the Calendar folder after you create
them, but Outlook won't display them. Outlook only displays calendar items such as
appointments and meetings in the Calendar folder, even if another type of item exists in the
folder.
Table 1. EWS Managed API folder classes and EWS folder types
EWS Managed EWS type FolderClass Contains Notes
API class value
Folder
Folder
IPF.Note Email This is the generic folder class or type
messages or for the following EWS Managed API
folders. WellKnownFolderName folders and
EWS DistinguishedFolderId folders:
SearchFolder
SearchFolder
IPF.Note Contents are The items that meet the search criteria
determined are not actually contained in the search
by a folder; instead, they are located
restriction or elsewhere in the mailbox.
filter. Search To ensure that Search folders are
folders do not available in Outlook, create them in the
have Finder folder.
subfolders.
EWS Managed EWS type FolderClass Contains Notes
API class value
TasksFolder
TasksFolder
IPF.Task Contains work None.
items to
complete.
Folder structure
Folders provide a mailbox structure. This includes the IPM Subtree, known as the Top of
Information Store in EWS, where most users interact with their mailbox, as well as system folders
that most users never see, which are in the Non-IPM Subtree or Root in EWS. The following figure
shows the folder structure for a user and indicates which folders are for the user's items and
which are system folders.
Well-known folders
Of the folders in a mailbox, some are special folders. These equate to well-known folders in the
EWS Managed API, or distinguished folders in EWS. Some of these folders have restrictions on the
folder name, where they are located in the folder structure, and whether they can be deleted.
Other "generic" (non-special) folders do not have the same restrictions. It is important for you to
be familiar with the following well-known or distinguished folders because they are the root
system, user, and search folders, and are applicable to most implementations.
For a complete list of the EWS Managed API WellKnownFolderName property values, see the
WellKnownFolderName enumeration. For a complete list of the EWS DistinguishedFolderId
values, see DistinguishedFolderId .
Folder properties
In the EWS Managed API, the folder properties are all derived from the base Folder class. And
in EWS, all folders use the folder elements that are available on the Folder type. Most of the
folder-related properties and elements are straightforward (parent folder ID, display name, and so
on), but a few require a little more explanation.
The following caveats apply to the EWS Managed API Folder.FolderClass property or the EWS
FolderClass element:
If set, the value of the property or element must agree with the derived class or type of the
folder. For example, the FolderClass property or element can't indicate that the folder is a
Contacts folder while the class or type of the folder indicates the folder is a Calendar folder.
You can either create folders of a specific type without setting the FolderClass property or
element, or you can create a folder with the generic folder type and specify the FolderClass
property or element. Both options create the same result.
After you set the FolderClass value by creating a specific type of folder or by setting the
FolderClass property or element itself, you cannot change it. For example, you cannot
change an IPF.Note folder to an IPF.Contact folder. You can, however, change it to an
IPF.Note.Contoso folder.
Any FolderClass value that does not use one of the predefined prefixes is treated as an
IPF.Note folder. For example, a FolderClass value of IAmAFolderClass is treated as an
IPF.Note folder.
The folder class value is extensible. This means that the default FolderClass values listed in Table 1
are treated as prefixes and you can add custom values. For example, you can create a folder with
a FolderClass value of IPF.Contact.Contoso, and it is treated as a Contacts folder.
You can determine what permissions the client has on the folders, such as delete, read, and
modify, by using the EWS Managed API Folder.EffectiveRights property or the EWS
EffectiveRights element.
Public folders
Public folders are designed for shared access and provide an easy and effective way to collect,
organize, and share information with other people in your workgroup or organization. You can
also use public folders to archive distribution group content. For in-depth information about
public folders, see Public folder access with EWS in Exchange.
Hidden folders
All the folders that Exchange creates at the root of the mailbox are hidden, and you can use the
EWS Managed API or EWS to hide additional folders under the Top of Information Store. For more
information about hidden folders, see Work with hidden folders by using EWS in Exchange.
Search folders
Search folders are just like regular folders, except that they have a property or element that
defines the search filter. You can create search folders in any folder in an Exchange mailbox, and
you create them in the same way that you create any other folder. However, for a search folder to
appear in Outlook, Outlook Web App, or Outlook Live, SearchFolder objects that you create by
using the EWS Managed API must be located in the WellKnownFolderName.SearchFolders
folder, and SearchFolder types that you create by using EWS must be located in the
DistinguishedFolderId.SearchFolders folder. If the search folder is created in a different location,
it is still available and you can view it in custom client applications.
Items
EWS in Exchange uses Items to represent individual email messages, appointments, meetings,
contacts, distribution lists, tasks, posts, and other items, in a mailbox. Items are either strongly
typed, which means that they have a specific associated class or schema, or not strongly typed,
also known as generic items. Generic items are Item objects in the EWS Managed API and
Item types in EWS. Common items like email messages, contacts, distribution lists, posts, and
tasks are strongly typed, and you can set specific schematized properties or elements on them.
Appointment
CalendarItem
Contact
Contact
ContactGroup
DistributionList
EmailMessage
Message
PostItem
PostItem
Task
Task
EWS Managed API strongly typed items derive from the base Item class. However, you usually
work with one of the derived types listed in Table 3, and not with the Item class directly. When
you work with the ItemCollection class, however, you might work directly with instances of the
Item class. In that case, you should implement logic that determines the type of item in the store
that the instance of the Item class represents. To work with that item, you should bind to the item
by using an instance of the class that represents the item.
Items in folders
Some folders have restrictions about the types of items that they can contain. These are
restrictions that the Exchange mailbox database applies to folders, not client view limitations.
CalendarFolder CalendarFolder You can only create new EWS Managed API Appointment objects
and EWS CalendarItem types in the Calendar folder. You can
move other item types into the Calendar folder, but the client might
not display them.
ContactsFolder ContactsFolder You can only create new EWS Managed API Contact and
ContactGroup objects, or EWS Contact types or
DistributionList types in the Contacts folder. You can move other
item types into the Contacts folder, but the client might not display
them
SearchFolder
SearchFolder
No restrictions. Items are not actually located in the Search folder;
they are located elsewhere in the mailbox.
TasksFolder
TasksFolder
You can only create new EWS Managed API Task objects or EWS
Task types in the Tasks folder. You can move other item types into
the Tasks folder, but the client might not display them
In this section
Work with folders by using EWS in Exchange
See also
Develop web service clients for Exchange
Start using web services in Exchange
EWS client design overview for Exchange
Work with folders by using EWS in
Exchange
Article • 02/11/2022 • 12 minutes to read
Learn how to create, get, update, and delete folders by using the EWS Managed API or
EWS in Exchange.
EWS in Exchange uses folders to structure and organize mailboxes. You can create new,
get, update, and delete folders by using the EWS Managed API or EWS. Each of the
methods or operations listed in the following table is performed on a Folder object, a
Folder type, or one of the derived folder classes or types.
Table 1. Methods and operations for creating, getting, updating and deleting folders
These examples assume that service is a valid ExchangeService object and that the
user has been authenticated to an Exchange server.
C#
folder.FolderClass = "IPF.Note";
folder.Save(WellKnownFolderName.Inbox);
C#
folder.Save(WellKnownFolderName.Inbox);
If you try to create an instance of a specific class and also set the FolderClass property,
the ErrorNoFolderClassOverride error is thrown.
Note that you cannot batch the creation of multiple folders in a single method call by
using the EWS Managed API.
This is also the XML request that the EWS Managed API sends when you create a new
folder and call the Folder.Save method.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:CreateFolder>
<m:ParentFolderId>
</m:ParentFolderId>
<m:Folders>
<t:Folder>
<t:FolderClass>IPF.Note</t:FolderClass>
<t:DisplayName>Custom Folder</t:DisplayName>
</t:Folder>
</m:Folders>
</m:CreateFolder>
</soap:Body>
</soap:Envelope>
7 Note
This example assumes that service is a valid ExchangeService object and that the user
has been authenticated to an Exchange server.
C#
// As a best practice, limit the properties returned to only those that are
required.
// Bind to an existing folder and get only the properties specified in the
PropertySet.
If you need to return additional properties, add properties from the FolderSchema
class to the PropertySet, or use one of the overloaded Bind methods that returns all
first class properties.
Note that you cannot get multiple folders at one time by using the EWS Managed API.
You have to call the Bind method on each folder separately.
To get a single folder, send a GetFolder operation request message to the server. In
the following example, the BaseShape is set to IdOnly, so only the FolderId of the
specified folder is returned. The FolderIds element indicates that the folder to retrieve
is the Inbox folder.
This is also the XML request that the EWS Managed API sends when you bind to a folder
by using the Folder.Bind method.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetFolder>
<m:FolderShape>
<t:BaseShape>IdOnly</t:BaseShape>
</m:FolderShape>
<m:FolderIds>
</m:FolderIds>
</m:GetFolder>
</soap:Body>
</soap:Envelope>
The following XML example shows the GetFolderResponse message that is sent from
the server to the client in response to the GetFolder operation request. It only contains
the FolderId value of the Inbox folder. The values of some attributes and elements
have been shortened for readability.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="800"
MinorBuildNumber="16"
Version="V2_6"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetFolderResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetFolderResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Folders>
<t:Folder>
<t:FolderId Id="AAAENAAA="
ChangeKey="AQAAABYAAAAPxolXAHv3TaHUnjW8wWqXAAAEkbCr"/>
</t:Folder>
</m:Folders>
</m:GetFolderResponseMessage>
</m:ResponseMessages>
</m:GetFolderResponse>
</s:Body>
</s:Envelope>
In this example, a FolderView class object is created to limit the results of the
Folder.FindFolders method response. This scenario limits the properties to return to
the following: Id , DisplayName , and the extended property that indicates whether
the folder is a hidden folder. Set the FolderView.Traversal value to Deep to perform a
recursive search so that the server retrieves the subfolders, and set the root folder to
MsgFolderRoot, so that the server returns all the user's folders (and the server does not
return system folders in the Non-IPM Subtree).
This example assumes that service is a valid ExchangeService object and that the user
has been authenticated to an Exchange server.
C#
// Create a new folder view, and pass in the maximum number of folders to
return.
// so that your results will indicate whether the folder is a hidden folder.
// In this case, return the folder ID, DisplayName, and the value of the
isHiddenProp
// extended property.
view.Traversal = FolderTraversal.Deep;
FindFoldersResults findFolderResults =
service.FindFolders(WellKnownFolderName.MsgFolderRoot, view);
This is also the XML request that the EWS Managed API sends when you call the
FindFolders method.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:FindFolder Traversal="Deep">
<m:FolderShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
<t:ExtendedFieldURI PropertyTag="4340"
PropertyType="Boolean" />
</t:AdditionalProperties>
</m:FolderShape>
<m:IndexedPageFolderView MaxEntriesReturned="100"
Offset="0"
BasePoint="Beginning" />
<m:ParentFolderIds>
</m:ParentFolderIds>
</m:FindFolder>
</soap:Body>
</soap:Envelope>
The following XML example shows the FindFolderResponse message that is sent from
the server to the client in response to the FindFolder operation request. It contains only
the FolderId , the DisplayName , and the value of the PR_ATTR_HIDDEN extended
property for all the subfolders under the msgrootfolder folder. If the Value element is
set to true, the folder should be hidden in the client view.
This is also the XML response that the EWS Managed API sends when you get multiple
folders by using the FindFolder method. The values of some attributes and elements
have been shortened for readability, and some folders have not been included for
brevity.
XML
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="815"
MinorBuildNumber="6"
Version="V2_7"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:FindFolderResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:FindFolderResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:RootFolder IndexedPagingOffset="16"
TotalItemsInView="16"
IncludesLastItemInRange="true">
<t:Folders>
<t:CalendarFolder>
<t:FolderId Id="AAAEOAAA="
ChangeKey="AgAAABYAAAAPxolXAHv3TaHUnjW8wWqXAAAAAAA3"/>
<t:DisplayName>Calendar</t:DisplayName>
<t:ExtendedProperty>
<t:ExtendedFieldURI PropertyTag="0x10f4"
PropertyType="Boolean"/>
<t:Value>false</t:Value>
</t:ExtendedProperty>
</t:CalendarFolder>
<t:ContactsFolder>
<t:FolderId Id="AAAEPAAA="
ChangeKey="AwAAABYAAAAPxolXAHv3TaHUnjW8wWqXAAAAAAA4"/>
<t:DisplayName>Contacts</t:DisplayName>
<t:ExtendedProperty>
<t:ExtendedFieldURI PropertyTag="0x10f4"
PropertyType="Boolean"/>
<t:Value>false</t:Value>
</t:ExtendedProperty>
</t:ContactsFolder>
<t:ContactsFolder>
<t:FolderId Id="AAAUKAAA="
ChangeKey="AwAAABYAAAAPxolXAHv3TaHUnjW8wWqXAAAAAAS5"/>
<t:DisplayName>Recipient Cache</t:DisplayName>
<t:ExtendedProperty>
<t:ExtendedFieldURI PropertyTag="0x10f4"
PropertyType="Boolean"/>
<t:Value>true</t:Value>
</t:ExtendedProperty>
</t:ContactsFolder>
<t:Folder>
<t:FolderId Id="AAAUJAAA="
ChangeKey="AQAAABYAAAAPxolXAHv3TaHUnjW8wWqXAAAAAASx"/>
<t:ExtendedProperty>
<t:ExtendedFieldURI PropertyTag="0x10f4"
PropertyType="Boolean"/>
<t:Value>true</t:Value>
</t:ExtendedProperty>
</t:Folder>
</t:Folders>
</m:RootFolder>
</m:FindFolderResponseMessage>
</m:ResponseMessages>
</m:FindFolderResponse>
</s:Body>
</s:Envelope>
First, create a PropertySet to limit the number of properties that the server returns in
the Folder.Bind response. We recommend that you use the IdOnly BasePropertySet
to reduce calls to the Exchange database. Next, use the Bind method to bind to the
folder to update. Then, update the DisplayName property, and use the
Folder.Update method to save the changes.
In this example, we assume that service is a valid ExchangeService object and that the
user has been authenticated to an Exchange server. The local variable folderId is the Id
of the folder to update.
C#
folder.Update();
First, send a GetFolder operation request message to get the folder to update, as
shown in Get a folder hierarchy by using EWS.
This is also the XML request that the EWS Managed API sends when you update a folder
by using the Folder.Update method. The values of some attributes and elements have
been shortened for readability.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:UpdateFolder>
<m:FolderChanges>
<t:FolderChange>
<t:FolderId Id="OrV9ZAAA="
ChangeKey="AQAAABYAAABVzRdyy/cHS4XTC9itCRdUAAAOrXWb" />
<t:Updates>
<t:SetFolderField>
<t:Folder>
</t:Folder>
</t:SetFolderField>
</t:Updates>
</t:FolderChange>
</m:FolderChanges>
</m:UpdateFolder>
</soap:Body>
</soap:Envelope>
To delete a folder by using the EWS Managed API, first, use the Folder.Bind method to
bind to the service object to the folder to delete. Next, use the Folder.Delete method
to delete the folder by using the HardDelete deletion mode.
This example assumes that service is a valid ExchangeService object and that the user
has been authenticated to an Exchange server. The local variable folderId is the Id of
the folder to delete.
C#
folder.Delete(DeleteMode.HardDelete);
To delete a folder by using EWS, first, send a GetFolder operation request message to
get the folder to update as shown in Get a folder by using EWS.
Next, send a DeleteFolder operation request message to the server to delete the
folder. The DeleteFolder operation request indicates that the DeleteType is HardDelete
and it includes the FolderId of the folder to delete.
This is also the XML request that the EWS Managed API sends when you delete a folder
by using the Folder.Delete method. The values of some attributes and elements have
been shortened for readability.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:DeleteFolder DeleteType="HardDelete">
<m:FolderIds>
<t:FolderId Id="OrV9ZAAA="
ChangeKey="AQAAABYAAABVzRdyy/cHS4XTC9itCRdUAAAOrXWf" />
</m:FolderIds>
</m:DeleteFolder>
</soap:Body>
</soap:Envelope>
Next steps
After you have retrieved the folders on the server, or made changes to folders, you
might want to synchronize your folder hierarchy or subscribe to notifications about
folder changes on the server.
See also
Folders and items in EWS in Exchange
Work with Exchange mailbox items by using EWS in Exchange
Deleting items by using EWS in Exchange
Develop web service clients for Exchange
Work with hidden folders by using EWS
in Exchange
Article • 03/15/2022 • 7 minutes to read
Learn how to make a folder hidden and find hidden folders by using the EWS Managed
API or EWS in Exchange.
With one exception, folders in the root of an Exchange mailbox (the non-IPM subtree)
are hidden from the user. Conversely, all folders in the MsgFolderRoot (the IPM subtree)
are visible to the user. So how do you hide a folder under the MsgFolderRoot? It's not
that tricky — it comes down to just one property, the PidTagAttributeHidden
(0x10F4000B) extended property. When this property is set to true, Outlook or another
client that uses the property to determine folder visibility will hide the folder from the
user's view. Because this is an extended property, it's more complex to use than your
average folder property, so this article will walk you through the main scenarios.
Table 1. EWS Managed API methods and EWS operations for working with hidden
folders
folders
Are you wondering what the one exception is — that is, what folder in the root IS visible
to users? It's the Finder folder (also known as the SearchFoldersWellKnownFolder
enumeration value, or the searchfoldersDistinguishedFolderId element value), which
contains users' search folders. Search folders created in the Finder folder are visible to
Outlook users. If you need to create a search folder that is not visible to users, move it
under the root folder to hide it. Unlike for other folders, setting the
PidTagAttributeHidden property to true will not hide a search folder in the Finder
folder.
This example assumes that service is a valid ExchangeService object for the mailbox
owner, that the user has been authenticated to an Exchange server, and that folderId is
a valid Folder.Id that identifies the folder to hide.
C#
folder.SetExtendedProperty(isHiddenProp, true);
folder.Update();
This is also the XML request that the EWS Managed API sends when you use the Bind
method to get a folder before making it a hidden folder.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetFolder>
<m:FolderShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
<t:ExtendedFieldURI PropertyTag="4340"
PropertyType="Boolean" />
</t:AdditionalProperties>
</m:FolderShape>
<m:FolderIds>
</m:FolderIds>
</m:GetFolder>
</soap:Body>
</soap:Envelope>
The server responds to the GetFolder request with a GetFolderResponse message that
includes a ResponseCode element value of NoError, which indicates that the folder
was retrieved successfully. The response also includes a Value for the
ExtendedProperty . In this example, the Value is set to false, which means that the
folder is currently not hidden.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="898"
MinorBuildNumber="23"
Version="V2_10"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetFolderResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetFolderResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Folders>
<t:Folder>
<t:FolderId Id="IQywAAAA=="
ChangeKey="AQAAABYAAAD32nSTjepyT63rYH17n9THAAAAABED" />
<t:ExtendedProperty>
<t:ExtendedFieldURI PropertyTag="0x10f4"
PropertyType="Boolean" />
<t:Value>false</t:Value>
</t:ExtendedProperty>
</t:Folder>
</m:Folders>
</m:GetFolderResponseMessage>
</m:ResponseMessages>
</m:GetFolderResponse>
</s:Body>
</s:Envelope>
This is also the XML request that the EWS Managed API sends when you use the Update
method to update a folder to make it a hidden folder.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:UpdateFolder>
<m:FolderChanges>
<t:FolderChange>
<t:FolderId Id="IQywAAAA=="
ChangeKey="AQAAABYAAAD32nSTjepyT63rYH17n9THAAAAABED"
/>
<t:Updates>
<t:SetFolderField>
<t:ExtendedFieldURI PropertyTag="4340"
PropertyType="Boolean" />
<t:Folder>
<t:ExtendedProperty>
<t:ExtendedFieldURI PropertyTag="4340"
PropertyType="Boolean" />
<t:Value>true</t:Value>
</t:ExtendedProperty>
</t:Folder>
</t:SetFolderField>
</t:Updates>
</t:FolderChange>
</m:FolderChanges>
</m:UpdateFolder>
</soap:Body>
</soap:Envelope>
This example assumes that service is a valid ExchangeService object for the mailbox
owner, and that the user has been authenticated to an Exchange server.
C#
folderView.Traversal = FolderTraversal.Deep;
FindFoldersResults findFolder =
service.FindFolders(WellKnownFolderName.MsgFolderRoot,
This is also the XML request that the EWS Managed API sends when you use the
FindFolders method to find all hidden folders.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Central Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:FindFolder Traversal="Deep">
<m:FolderShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
<t:ExtendedFieldURI PropertyTag="4340"
PropertyType="Boolean" />
</t:AdditionalProperties>
</m:FolderShape>
<m:IndexedPageFolderView MaxEntriesReturned="100"
Offset="0"
BasePoint="Beginning" />
<m:Restriction>
<t:IsEqualTo>
<t:ExtendedFieldURI PropertyTag="4340"
PropertyType="Boolean" />
<t:FieldURIOrConstant>
</t:FieldURIOrConstant>
</t:IsEqualTo>
</m:Restriction>
<m:ParentFolderIds>
</m:ParentFolderIds>
</m:FindFolder>
</soap:Body>
</soap:Envelope>
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="898"
MinorBuildNumber="23"
Version="V2_10"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:FindFolderResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:FindFolderResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:RootFolder IndexedPagingOffset="6"
TotalItemsInView="6"
IncludesLastItemInRange="true">
<t:Folders>
<t:ContactsFolder>
<t:FolderId Id="IBHgAAAA=="
ChangeKey="AwAAABYAAAD32nSTjepyT63rYH17n9THAAAAAACz" />
<t:DisplayName>{06967759-274D-40B2-A3EB-D7F9E73727D7}
</t:DisplayName>
<t:ExtendedProperty>
<t:ExtendedFieldURI PropertyTag="0x10f4"
PropertyType="Boolean" />
<t:Value>true</t:Value>
</t:ExtendedProperty>
</t:ContactsFolder>
<t:ContactsFolder>
<t:FolderId Id="IBHwAAAA=="
ChangeKey="AwAAABYAAAD32nSTjepyT63rYH17n9THAAAAAAC7" />
<t:DisplayName>{A9E2BC46-B3A0-4243-B315-60D991004455}
</t:DisplayName>
<t:ExtendedProperty>
<t:ExtendedFieldURI PropertyTag="0x10f4"
PropertyType="Boolean" />
<t:Value>true</t:Value>
</t:ExtendedProperty>
</t:ContactsFolder>
<t:ContactsFolder>
<t:FolderId Id="IBIQAAAA=="
ChangeKey="AwAAABYAAAD32nSTjepyT63rYH17n9THAAAAAADO" />
<t:DisplayName>GAL Contacts</t:DisplayName>
<t:ExtendedProperty>
<t:ExtendedFieldURI PropertyTag="0x10f4"
PropertyType="Boolean" />
<t:Value>true</t:Value>
</t:ExtendedProperty>
</t:ContactsFolder>
<t:ContactsFolder>
<t:FolderId Id="IBHQAAAA=="
ChangeKey="AwAAABYAAAD32nSTjepyT63rYH17n9THAAAAAACa" />
<t:DisplayName>Recipient Cache</t:DisplayName>
<t:ExtendedProperty>
<t:ExtendedFieldURI PropertyTag="0x10f4"
PropertyType="Boolean" />
<t:Value>true</t:Value>
</t:ExtendedProperty>
</t:ContactsFolder>
<t:Folder>
<t:FolderId Id="HAAAAA=="
ChangeKey="AQAAABYAAAD32nSTjepyT63rYH17n9THAAAAAACS" />
<t:ExtendedProperty>
<t:ExtendedFieldURI PropertyTag="0x10f4"
PropertyType="Boolean" />
<t:Value>true</t:Value>
</t:ExtendedProperty>
</t:Folder>
<t:Folder>
<t:FolderId Id="IQywAAAA=="
ChangeKey="AQAAABYAAAD32nSTjepyT63rYH17n9THAAAeZIBf" />
<t:DisplayName>TestFolder</t:DisplayName>
<t:ExtendedProperty>
<t:ExtendedFieldURI PropertyTag="0x10f4"
PropertyType="Boolean" />
<t:Value>true</t:Value>
</t:ExtendedProperty>
</t:Folder>
</t:Folders>
</m:RootFolder>
</m:FindFolderResponseMessage>
</m:ResponseMessages>
</m:FindFolderResponse>
</s:Body>
</s:Envelope>
After you have hidden or unhidden folders, you might want to get the folder hierarchy
or synchronize the folder hierarchy. The examples that show you how to get a folder
hierarchy by using the EWS Managed API or get a folder hierarchy by using EWS also
indicate which folders in the hierarchy are hidden.
See also
Folders and items in EWS in Exchange
Learn how to create, get, update, and delete items by using the EWS Managed API or
EWS in Exchange.
You can use the EWS Managed API or EWS to work with items in a mailbox. You can use
generic items — EWS Managed API Item objects or EWS Item types — to perform
some operations (getting an item or deleting an item by using the item's identifier);
however, most of the time you'll have to use a strongly typed item to perform a get or
update operation because you'll need access to the properties that are specific to the
strongly typed item.
For example, you can't use a generic item to retrieve an item that contains a start and
end date - you need an EWS Managed API Appointment object or an EWS
CalendarItem type to do that. And if you're using the EWS Managed API, you always
have to create strongly typed items, because the generic Item class does not have a
constructor. If you're working with an item that is not strongly typed, you can always use
the base Item class to work with the item.
Table 1. EWS Managed API methods and EWS operations for working with items
Create a None. You can only create specific item types by using the EWS CreateItem
Update an Item.Update
UpdateItem
item
Delete an Item.Delete
DeleteItem
item
In this article, you'll learn when you can use the generic base class and when you need
to use a strongly typed item to complete your task. The code examples will show you
how to use the base class, and what to do when you can't use the base class or it
doesn't fit your needs.
Create an item by using the EWS Managed API
The EWS Managed API does not have a publicly available constructor for the Item
class, so you must use the constructor for the specific item type you want to create in
order to create an item. For example, use the EmailMessage class constructor to
create a new email message, and the Contact class constructor to create a new
contact. Likewise, the server never returns generic Item objects in responses; all generic
items are returned as EmailMessage objects.
When you know the type of item to create, you can complete the task in just a few
steps. The steps are similar for all item types:
1. Initialize a new instance of one of the Item classes with the ExchangeService
object as a parameter.
2. Set properties on the item. The schemas are different for each item type, so
different properties are available for different items.
For example, you can create an EmailMessage object, set the Subject , Body , and
ToRecipients properties, and then send it by using the
EmailMessage.SendAndSaveCopy method.
C#
message.ToRecipients.Add("[email protected]");
message.SendAndSaveCopy();
To learn how to create a meeting or appointment item by using the EWS Managed API,
see Create appointments and meetings by using EWS in Exchange 2013.
For example, you can create an email message and send it by using the code in the
following example. This is also the XML request that the EWS Managed API sends when
you call the SendAndSaveCopy method.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:CreateItem MessageDisposition="SendAndSaveCopy">
<m:SavedItemFolderId>
</m:SavedItemFolderId>
<m:Items>
<t:Message>
<t:ToRecipients>
<t:Mailbox>
<t:EmailAddress>[email protected] </t:EmailAddress>
</t:Mailbox>
</t:ToRecipients>
</t:Message>
</m:Items>
</m:CreateItem>
</soap:Body>
</soap:Envelope>
To learn how to create a meeting or appointment item by using EWS, see Create
appointments and meetings by using EWS in Exchange 2013.
Get an item by using the EWS Managed API
To use the EWS Managed API to get an item if you know the Item.Id of the item to
retrieve, you simply call one of the Bind methods on the item, and the item is
retrieved. As a best practice, we recommend that you limit the properties returned to
only those that are required. This example returns the item Id property and the Subject
property.
This example assumes that service is a valid ExchangeService object and that the user
has been authenticated to an Exchange server. The local variable itemId is the Id of
the item to update.
C#
// As a best practice, limit the properties returned to only those that are
required.
If you're searching for an item that meets specific criteria, do the following:
For example, if you want to retrieve unread email messages in the Inbox, use the code in
the following example. This example uses a SearchFilterCollection to limit the results of
the FindItems method to unread messages, and limits the ItemView to limit results to
one item. This particular code only works on EmailMessage objects because the
EmailMessageSchema.IsRead value is part of the SearchFilter.
C#
SearchFilter sf = new
SearchFilter.SearchFilterCollection(LogicalOperator.And, new
SearchFilter.IsEqualTo(EmailMessageSchema.IsRead, false));
FindItemsResults<Item> findResults =
service.FindItems(WellKnownFolderName.Inbox, sf, view);
Alternatively, you can use a PropertySet to limit the results of the search as shown in
the following code example. This example uses the FindAppointments method to
retrieve up to five appointments that occur in the next 30 days. This code of course only
works on calendar items.
C#
// Initialize values for the start and end times, and the number of
appointments to retrieve.
// Set the start and end time and number of appointments to retrieve.
FindItemsResults<Appointment> appointments =
calendar.FindAppointments(cView);
Note that the information the server returns in the Bind method response is different
than the information that the server returns for a FindItem or FindAppointment method
response. The Bind method can return all the schematized properties, whereas the
FindItem and FindAppointment methods do not return all the schematized properties.
So if you need full access to the item, you'll have to use the Bind method. If you don't
have the item Id of the item you'd like to retrieve, use the FindItem or
FindAppointment methods to retrieve the Id, and then use the Bind method to retrieve
the properties you need.
To learn how to get a meeting or appointment item by using the EWS Managed API, see
Get appointments and meetings by using EWS in Exchange.
Get an item by using EWS
If you know the ItemId of the item to retrieve, you can get the item by using the
GetItem operation.
The following example shows the XML request to get the Subject of an item with a
specific ItemId. This is also the XML request that the EWS Managed API sends when
calling the Bind method on an ItemId. The values of some attributes and elements
have been shortened for readability.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetItem>
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:ItemShape>
<m:ItemIds>
</m:ItemIds>
</m:GetItem>
</soap:Body>
</soap:Envelope>
The following example shows the XML response that the server returns after it processes
the GetItem operation. The response indicates the item was retrieved successfully. The
values of some attributes and elements have been shortened for readability.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="815"
MinorBuildNumber="6"
Version="V2_7"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:Message>
<t:ItemId Id="GJc/NAAA="
ChangeKey="CQAAABYAAAAPxolXAHv3TaHUnjW8wWqXAAAGJd9Z"/>
</t:Message>
</m:Items>
</m:GetItemResponseMessage>
</m:ResponseMessages>
</m:GetItemResponse>
</s:Body>
</s:Envelope>
If you do not know the ItemId of the item you want to retrieve, you can use the
FindItem operation to find the item. In order to use the FindItem operation, you must
first identify the folder that you're searching. You can identify the folder by using its
DistinguinguishedFolderName or by using the FolderId . You can use either the
FindFolder or SyncFolderHierarchy operations to get the FolderId you need. Then
use the FindItem operation to search that folder for results that match the search filter.
Unlike the EWS Managed API, EWS does not provide a separate find operation for
appointments. The FindItem operation retrieves items of all types.
The following example shows the XML FindItem operation request that is sent to the
server to find appointments in the Calendar folder that occur in the next 30 days. The
values of some attributes and elements have been shortened for readability.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:FindItem Traversal="Shallow">
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:ItemShape>
<m:ParentFolderIds>
<t:FolderId Id="AAAEOAAA="
ChangeKey="AgAAABYAAAAqRr3mNdNMSasqx/o9J13UAAAAAAA3" />
</m:ParentFolderIds>
</m:FindItem>
</soap:Body>
</soap:Envelope>
The server responds to the FindItem request with a FindItemResponse message that
includes the ResponseCode value of NoError, which indicates that the operation
completed successfully. If any calendar items meet the filtering criteria, they are included
in the response.
Note that the information the server returns in the GetItem operation response is
different than the information the server returns in a FindItem or FindAppointment
operation response. The GetItem operation can return all the schematized properties,
whereas the FindItem and FindAppointment operations do not return all the
schematized properties. So if you need full access to the item, you'll have to use the
GetItem operation. If you don't have the ItemId of the item you'd like to retrieve, use
the FindItem or FindAppointment operations to retrieve the ItemId, and then use the
GetItem operation to retrieve the elements you need.
To learn how to get a meeting or appointment item by using EWS, see Get
appointments and meetings by using EWS in Exchange.
1. Use the Bind method to get the latest version of the item, unless you already
have it. To update properties specific to a strongly typed item, you'll have to bind
to that item type. To update properties available on the generic item type, you can
bind to the Item object.
For example, you can update the subject of an email by using the generic item type, as
shown in the code in the following example.
This example assumes that service is a valid ExchangeService object and that the user
has been authenticated to an Exchange server. The local variable itemId is the Id of
the item to update.
C#
item.Update(ConflictResolutionMode.AlwaysOverwrite);
To learn how to update a meeting or appointment item by using the EWS Managed API,
see Update appointments and meetings by using EWS in Exchange.
1. Use the GetItem operation to get the latest version of the item, unless you
already have it.
2. Use the UpdateItem operation to specify fields to update and assign new values
to those fields.
The following example shows the XML UpdateItem operation request that is sent to the
server to update the Subject value of the email message. The values of some
attributes and elements have been shortened for readability.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:UpdateItem MessageDisposition="SaveOnly"
ConflictResolution="AlwaysOverwrite">
<m:ItemChanges>
<t:ItemChange>
<t:ItemId Id="APdZjAAA="
ChangeKey="CQAAABYAAAAqRr3mNdNMSasqx/o9J13UAAAAPdgr" />
<t:Updates>
<t:SetItemField>
<t:Message>
<t:Subject>New subject</t:Subject>
</t:Message>
</t:SetItemField>
</t:Updates>
</t:ItemChange>
</m:ItemChanges>
</m:UpdateItem>
</soap:Body>
</soap:Envelope>
To learn how to update a meeting or appointment item by using EWS, see Update
appointments and meetings by using EWS in Exchange.
If you need to find the item before deleting it, do the following:
1. Call the FindItems or FindAppointments method to find the item to delete.
For example, the following code shows how to move an email message to the Deleted
Items folder.
This example assumes that service is a valid ExchangeService object and that the user
has been authenticated to an Exchange server. The local variable itemId is the Id of
the item to update.
C#
item.Delete(DeleteMode.MoveToDeletedItems);
For more details about deleting items, see Deleting items by using EWS in Exchange. To
learn how to delete a meeting or appointment item by using the EWS Managed API, see
Delete appointments and cancel meetings by using EWS in Exchange.
The following example shows the XML request that is sent to the server to move the
email message to the Deleted Items folder. The values of some attributes and elements
have been shortened for readability.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:DeleteItem DeleteType="MoveToDeletedItems">
<m:ItemIds>
<t:ItemId Id="APdZjAAA="
ChangeKey="CQAAABYAAAAqRr3mNdNMSasqx/o9J13UAAANIFzC" />
</m:ItemIds>
</m:DeleteItem>
</soap:Body>
</soap:Envelope>
For more details about deleting items, see Deleting items by using EWS in Exchange. To
learn how to delete a meeting or appointment item by using EWS, see Delete
appointments and cancel meetings by using EWS in Exchange.
See also
Folders and items in EWS in Exchange
Work with folders by using EWS in Exchange
Deleting items by using EWS in Exchange
Deleting items by using EWS in
Exchange
Article • 09/14/2022 • 7 minutes to read
Find out how you can use the EWS Managed API or EWS in Exchange to delete items
either by moving them to the Deleted Items folder or to the dumpster.
Have you ever asked yourself what the difference is between moving items to the
Deleted Items folder, and moving them to the dumpster? You might be curious about
the different options for handling deleted items and how to implement those options in
your application. Exchange Web Services (EWS) includes three options for handling
deleted items. This article will hopefully clear up any confusion you might have about
the differences between them.
The Deleted Items folder - When you delete items in a mailbox, this is where they
go.
The dumpster (aka the Recoverable Items folder) - When you remove items from a
mailbox, this is where they go.
Figures 1 and 2 show what the deletion process looks like for items and folders in a
mailbox.
You can delete items and folders three different ways, depending on how "permanent"
you would like the deletion to be.
to the
Deleted This is like putting a piece of paper in the recycle bin by your desk. You can easily grab
Items it if you need it again.
folder
You can use any deletion operation that implements the move to the Deleted Items
folder option to perform this action.
You can also use the MoveItem operation ( Item.Move() ) or the MoveFolder
operation ( Folder.Move() ) to move an item or folder to the Deleted Items folder.
delete
This is like emptying your recycle bin into your curbside container. You can still access
the item if you need to, it's just a little harder.
For more about the dumpster (also called the Recoverable Items folder) and scenarios
such as eDiscovery or litigation holds, see Recoverable Items Folder on TechNet.
Soft deletions aren't recommended for applications that target Exchange 2007. In
Exchange 2007, soft deletions are handled by setting a bit on the item to indicate that it
will be moved to the dumpster at an unspecified time.
Soft delete traversals, or searches of items that have been soft deleted via the FindItem
operation , are not supported in Exchange Online, Exchange Online as part of Office
365, and versions of Exchange starting with Exchange 2010.
delete
Hard-deleted items are placed in the Purges folder of the dumpster. This is like when
the recycling truck empties your curbside recycle container. The items cannot be
accessed from an email client like Outlook or Outlook Web App, and, unless there is a
hold set on the mailbox, the items will be permanently deleted after a set period of
time.
You can read more about item retention in the article Configure Deleted Item Retention
and Recoverable Items Quotas .
NOTE: Folders are not placed in the Purges folder when they are hard deleted. Hard-
deleted folders are removed from the mailbox.
The move to the Deleted Items folder and the hard delete options are transactional,
which means that by the time the web service call finishes, the item has been moved to
the Deleted Items folder or the dumpster.
To help you better understand the ecosystem of folders that are used to store deleted
items, the following figure shows the hierarchy of folders that can contain deleted items.
The folder names are as they appear in the DistinguishedFolderIdNameType schema
type, or the WellKnownFolderName enumeration in the EWS Managed API.
Table 3: EWS operations and EWS Managed API methods for deleting items
DeleteItem operation
Item.Delete method
Exchange Deletes items
2007 from a
ExchangeService.DeleteItems mailbox.
method
CreateItem operation
Appointment.Accept method
Exchange Indirectly
2007 moves an
Appointment.AcceptTentatively item to the
method
Deleted Items
folder
Appointment.CancelMeeting whenever a
method
response to a
meeting
Appointment.Decline
request is
sent or the
MeetingRequest.Accept method
response is
set on the
MeetingRequest.AcceptTentatively appointment.
method
The deletion
MeetingRequest.Decline method
type is not set
on this
operation.
The meeting
messages are
moved to the
Deleted Items
folder when a
response
object is
successfully
processed by
the service.
You can also move items to the Deleted Items folder by using Inbox rules. For example,
you can create rules that have a delete action.
Deleting an occurrence of a recurring item does not trigger a move to the Deleted
Items folder or the dumpster. This results in an update to the recurring master item
of the recurring series.
See also
Folders and items in EWS in Exchange
Develop web service clients for Exchange
Recoverable Items Folder
Single Item Recovery in Exchange Server 2010
Exchange 2013: Delete a recurring series programmatically from Exchange
servers
Exchange 2013: Delete tasks from an account on Exchange servers
programmatically
Exchange 2013: Empty folders on Exchange servers programmatically
Exchange 2013: Delete folders programmatically from Exchange servers
Exchange 2013: Delete many items programmatically from Exchange servers
Exchange 2013: Delete contacts programmatically from Exchange servers
Delete appointments and cancel meetings by using EWS in Exchange
Manage persistent application settings by using EWS in Exchange
Pull notifications for EWS deletion-
related mailbox events in Exchange
Article • 09/15/2021 • 3 minutes to read
Discover which mailbox events are raised when you delete items by using EWS in
Exchange.
When you delete items and folders from a mailbox, this triggers a mailbox event.
Different versions of Exchange return different mailbox events in response to changes to
items and folders in a mailbox. The following table identifies the mailbox events that are
returned for deletions when you use pull notifications to subscribe to mailbox events.
See also
Notification subscriptions, mailbox events, and EWS in Exchange
Find out how to handle deletion-related errors in applications that you develop by using
the EWS Managed API or EWS in Exchange.
If your application deletes items and folders, you might have to handle deletion-related
errors. You can handle these errors at runtime, or while you are developing your EWS
application.
See also
Deleting items by using EWS in Exchange
Learn about exporting and importing appointments, emails, contacts, tasks, and other
mailbox items by using the EWS Managed API or EWS in Exchange.
Exchange is a gold mine of important information: email, contacts, tasks, and calendars
are core to an organization's functions. EWS enables you to export and import core item
types via three different approaches:
Exchange item types. We recommend this approach for importing and exporting
items to and from other systems and files.
MIME streams in the form of common standard file formats such as iCalendar and
vCard. Because the property set is limited and MIME conversion is costly, we
recommend the approach only for importing or exporting a small amount of data.
) Important
EWS is not designed for mailbox backup and restore. To back up and restore
databases, use the backup and restore API. See also Backup, restore, and disaster
recovery on TechNet.
Task.Save
You might have to set special
Task EWS Managed API EWS Notes
method operation
Appointment objects in
Exchange can have complex
relationships and settings.
Programmatically
reestablishing meeting
organizer/attendee
relationships directly on the
appointments is not supported.
Import a copy of a Not applicable UploadItems This is the only option for
contact, email, task, importing items that were
or calendar item in exported by the ExportItems
full-fidelity. operation.
and frequent
importing/exporting of items,
because Exchange performs
content conversion for the
MIME and this can affect
performance.
Use PowerShell to call EWS and format the output into a .csv file.
Use third-party libraries that implement MAPI to export and import items. Third-
party libraries that convert EWS to .msg files are available too.
In this section
Export items by using EWS in Exchange
Import items by using EWS in Exchange
See also
Backup, Restore, and Disaster Recovery
Journaling
Internet Calendaring and Scheduling Core Object Specification (RFC 5545)
Mailbox synchronization and EWS in Exchange
Export items by using EWS in Exchange
Article • 03/15/2022
Learn how to export appointments, emails, contacts, tasks, and other items by using the
EWS Managed API or EWS in Exchange.
You can export items from Exchange by using the EWS Managed API or EWS in a
number of different ways. The option you use depends on:
The degree of fidelity that you want maintained between the item state in
Exchange and the exported item.
This article shows you how to use each of the different options to export items. You can
use any option to batch export items out of Exchange.
We recommend that you use the ExportItems operation to export items that you plan
to import into an Exchange mailbox.
The following example shows how to use the ExportItems operation. In this example,
the item identifier is shortened for readability.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
<t:RequestServerVersion Version="Exchange2013"/>
</soap:Header>
<soap:Body>
<m:ExportItems>
<m:ItemIds>
<t:ItemId Id="AAMkAGYzZjZmRiUsidkC+NAAAAY89GAAA="/>
</m:ItemIds>
</m:ExportItems>
</soap:Body>
</soap:Envelope>
XML
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:ExportItemsResponse
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:ExportItemsResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:ItemId Id="AAMkAGYzZjZmRiUsidkC+NAAAAY89GAAA="
ChangeKey="FwAAAA=="/>
<m:Data>
AQAAAAgAAAAAAAAALgBlAHgAdABlAHMAdAAuAG0AaQBjAHIAbwBzAG8AZgB0AC4A
cgAyAEAAYQB1AGoAaQBuAGcALQBkAG8AbQAuAGUAeAB0AGUAcwB0AC4AbQBpAGMAcgBvAHMA
bwBmAHQALgBjAG8AbQAAAAMAADkAAAAAAwD+DwYAAAADAARAAwACQAMADkA=
</m:Data>
</m:ExportItemsResponseMessage>
</m:ResponseMessages>
</m:ExportItemsResponse>
</s:Body>
C#
// Save as .eml.
fs.Write(email.MimeContent.Content, 0,
email.MimeContent.Content.Length);
// Save as .mht.
fs.Write(email.MimeContent.Content, 0,
email.MimeContent.Content.Length);
This example assumes that service is a valid ExchangeService object, and that the user
can authenticate to an Exchange server. This example also assumes that you have an
appointment with the subject "2015 Financial Projections" in the calendar folder.
C#
// Save as .ics.
fs.Write(email.MimeContent.Content, 0,
email.MimeContent.Content.Length);
This example assumes that service is a valid ExchangeService object, and that the user
can authenticate to an Exchange server.
C#
// Save as .vcf.
fs.Write(email.MimeContent.Content, 0,
email.MimeContent.Content.Length);
7 Note
You cannot import vCard files by using the MimeContent property. You can import
contacts by using the Contact.Save EWS Managed API method or the
CreateItem EWS operation.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetItem>
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:IncludeMimeContent>true</t:IncludeMimeContent>
</m:ItemShape>
<m:ItemIds>
<t:ItemId Id="AAMkADEzYjJkLTYxMwB8GqYicWAAA="
ChangeKey="CQAAABzXv"/>
</m:ItemIds>
</m:GetItem>
</soap:Body>
</soap:Envelope>
The following example shows the response to a request to get the MIME stream. The
MIME stream has been shortened for readability.
XML
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="893"
MinorBuildNumber="17"
Version="V2_10"
xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetItemResponse
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:Message>
<t:MimeContent CharacterSet="UTF-
8">UmVjZ6IGZyb2b2suY29y5hMzgwZTA1YtDQo=</t:MimeContent>
<t:ItemId Id="AAMkADEzYjJkLTYxMwB8GqYicWAAA="
ChangeKey="CQAAABzXv"/>
</t:Message>
</m:Items>
</m:GetItemResponseMessage>
</m:ResponseMessages>
</m:GetItemResponse>
</s:Body>
</s:Envelope>
After exporting items, you might want to import items into Exchange.
See also
Exporting and importing items by using EWS in Exchange
Learn how to import appointments, emails, contacts, tasks, and other items by using the
EWS Managed API or EWS in Exchange.
Many systems contain appointments, emails, contacts, and tasks, and you can import
those items into Exchange in a number of different ways. Importing items into Exchange
is simple when mailbox relationships aren't maintained on those items. You can use the
Item.Save EWS Managed API method or the CreateItem EWS operation to create
the items in an Exchange mailbox. The simple approach does not support all scenarios,
however; for example:
You cannot maintain the relationship between organizers and attendees when
importing appointments with attendees (meetings). This means that the meeting
organizer will need to resend meeting invites to attendees in order to reestablish
the relationship between the organizer and attendees. If the appointment was
imported into an attendee's calendar, the appointment will not be related to the
meeting organizer's appointment. The attendees will need to accept the resent
meeting invite from the organizer in order to reestablish the organizer-attendee
relationship.
Information about the assignees is not preserved when assigned tasks are
imported.
All the import options can be used to batch import items into Exchange.
EmailMessage
Message
Contact
Contact
Appointment
CalendarItem
Task
Task
Use the Item.Save EWS Managed API method or the CreateItem EWS operation to
perform the import of items. We recommend this approach when you're importing
items from other systems because you have control over which properties get imported.
For more information about how to set properties on items and then save the item, see
Create an item by using the EWS Managed API or Create an item by using EWS.
This is the easiest way to import items that have been exported from another Exchange
server.
In the following example, the identifiers and the Data element content are shortened for
readability.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
<t:RequestServerVersion Version="Exchange2013_SP1"/>
</soap:Header>
<soap:Body>
<m:UploadItems>
<m:Items>
<t:Item CreateAction="CreateNew">
<t:Data>AQAAAAgAAAAAAQAAAAADABZADQASDkANABMO</t:Data>
</t:Item>
</m:Items>
</m:UploadItems>
</soap:Body>
</soap:Envelope>
C#
int numBytesRead = 0;
if (n == 0)
break;
numBytesRead += n;
numBytesToRead -= n;
// Indicate that this email is not a draft. Otherwise, the email will
appear as a
// draft to clients.
email.SetExtendedProperty(PR_MESSAGE_FLAGS_msgflag_read, 1);
email.Save(WellKnownFolderName.Inbox);
The following code example shows you how to import a simple .ics file into a user's
mailbox.
C#
int numBytesRead = 0;
if (n == 0)
break;
numBytesRead += n;
numBytesToRead -= n;
appointment.Save(WellKnownFolderName.Calendar);
XML
<soap:Envelope xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
<t:MailboxCulture>en-US</t:MailboxCulture>
</soap:Header>
<soap:Body >
<m:CreateItem>
<m:SavedItemFolderId>
<t:DistinguishedFolderId Id="inbox"/>
</m:SavedItemFolderId>
<m:Items>
<t:Message>
<t:MimeContent CharacterSet="UTF-8">
</t:MimeContent>
</t:Message>
</m:Items>
</m:CreateItem>
</soap:Body>
</soap:Envelope>
Next steps
After you import items into a mailbox, you might want to create a custom folder to store
your imported items, or synchronize your client and mailbox items.
See also
Exporting and importing items by using EWS in Exchange
Export items by using EWS in Exchange
Find out about identifiers in Exchange and how you can use them in your EWS Managed API and EWS
applications.
Every object in the Exchange store has a unique identifier. You can use an object's identifier to reference
the object and to distinguish it from other objects. The two most common identifiers that you might work
with are folder and item identifiers.
In order to understand identifiers and how they're important to your application, it's helpful to understand
the relationship between objects in Exchange. When your EWS Managed API or EWS application
communicates with Exchange, you work with an object hierarchy that includes mailbox, folder, and item
objects. A store can be any one of these object types. Most commonly, it is a mailbox on the Exchange
server, but it can also be a public folder on the Exchange server. (Keep in mind that in Exchange Online,
Exchange Online as part of Office 365, and versions of Exchange starting with Exchange 2013, public
folders are just another type of mailbox and not a different kind of store.) The store contains folders and
the folders contain items, and each of these folders and items has an identifier, as shown in the following
figure.
EWS identifiers
Identifiers that EWS uses for folders and items are called EWS identifiers, or EwsIds. EwsIds can be found in
many different objects within EWS, but are called something different for different objects. Because you
might use these objects in your application, you'll want to understand how the identifiers for these objects
relate to the EwsId.
The identifiers in EWS are applicable to the EWS Managed API as well. In the EWS Managed API, the
identifiers are properties of the objects and are internally managed to map to the EWS elements.
CalendarItem
The ItemId child element contains The ItemId child element is the same as the
the unique identifier of the calendar EwsId for this item.
item.
ConversationId
The Id attribute contains the The Id attribute is the same as the EwsId for
identifier for the conversation that this item.
this item is part of.
AttachmentId
Provides the unique identifier of the Attachments can be other items in the
attachment. The RootItemId Exchange store, in which case the
attribute contains the unique AttachmentId is the same as the EwsId. In
identifier of the root store item to all cases, the RootItemId is an EwsId
which the attachment is attached. because it references an item in the store.
PersonaId
The Id attribute returns a string that The Id attribute is the same as the EwsId for
contains the identifier of the persona. the persona.
ContactId
The Id attribute returns a string that The Id attribute is the same as the EwsId for
contains the identifier of the contact. the contact.
GroupId
The Id attribute returns a string that The Id attribute is the same as the EwsId for
contains the identifier of the group. the group.
AssociatedCalendarItemId
The Id attribute identifies the The Id attribute is the same as the EwsId for
calendar item that is associated with the calendar item.
a MeetingMessage ,
MeetingRequest ,
MeetingResponse , or
MeetingCancellation .
UserConfigurationProperties The Id value for this element specifies This identifier does not directly map to the
the identifier property. EwsId since it an property identifier and not
an item.
OccurrenceItemId
The RecurringMasterId attribute The OccurrenceItemId value does not map
identifies the master of a recurring directly to the EwsId, but the
item. RecurringMasterId does because it
references the top-level object of the
recurring item.
StoreEntryId
Contains the Exchange store The StoreEntryId value does not map to the
identifier of an item. EwsId, but it does give the identifier of the
store where the items are kept.
The ItemID element value for folders and items is case-sensitive. If you look at the item ID for a folder
or item that is returned by the FindItem operation (or the FindItems EWS Managed API method),
you might think that it is a duplicate of another item ID; however, one or more characters in the item
IDs for the two items will have a different case.
If you are going to store the item ID in a database to retrieve later, we recommend that the field size
be 512 bytes, so that it's large enough to hold the GUID.
Don't assume that your item ID will always be valid if you need to retrieve the item at a later time. If
an item is moved in the store, the ID can change because of the way a move is handled. An item is
actually copied, and a new ID is generated, and then the original item is deleted. Note that folder IDs
are immutable, and won't change when moved in the store.
Identifiers in Exchange are opaque. For example, the EwsId is created from several pieces of
information that are not important to you as the developer, but are important to Exchange.
When you work with items in Exchange, another value to keep in mind is the ChangeKey attribute.
This value, in addition to the item ID, is used to keep track of the state of an item. Any time an item is
changed, a new change key is generated. When you perform an UpdateItem operation , for
example, you can use the ChangeKey attribute to let the server know that your update is being
applied to the most current version of the item. If another application made a change to the item
you're updating, the change keys won't match and you will not be able to perform the update.
Other folders that you create to organize email items also have an ID that is unique to that folder. That ID
does not change even if you change other properties on the folder.
You can use distinguished folder IDs as an entry point for delegate access. When you initiate delegate
access, you search for items or folders and provide the distinguished folder ID to specify where to search.
When a delegate user accesses the server, a Mailbox element that is a child of the DistinguishedFolderId
element is used to explicitly specify the mailbox for the delegate to access.
Handling errors
Every program is bound to get an error every now and then, and EWS-based applications are no exception
(pun intended). You might receive some identifier-related errors in the ResponseCode EWS element or as
part of the of the ServiceError EWS Managed API enumeration.
The following errors can occur in your EWS Managed API or EWS application. If you're working with an
EWS Managed API application, the errors are typically issues with property values; for EWS applications,
the errors are associated with XML element values or operations.
ErrorCalendarCannotUseIdForOccurrenceId The value of the OccurenceID does not The value of the
correspond to a valid recurring calendar item. OccurenceId that was
specified in the request
might be valid in
structure, but the request
could not match it to an
existing recurring master.
The recurring item might
be removed from the
calendar. Verify that the
item still exists and that
you are using the correct
identifier.
ErrorCannotUseFolderIdForItemId The ID that was passed represents a folder The identifier might be
instead of an item. valid in format, but not
what the server was
expecting for the
operation. Verify that you
are referencing the
correct identifier for the
operation.
ErrorCannotUseItemIdForFolderId The ID that was passed in represents an item The identifier might be
instead of a folder. valid in format, but not
what the server was
expecting for the
operation. Verify that you
are referencing the
correct ID for the
operation.
ErrorChangeKeyRequiredForWriteOperations A valid change key must be provided when you Either you omitted a
are performing certain update operations. ChangeKey value when
you requested an update,
or the change key was
incorrect. Verify that you
have the correct change
key when you perform
update operations.
Error Occurs when… Description
ErrorInvalidAttachmentId The attachment was not found within the You might receive this
attachments collection for the item. response code if you have
an attachment ID and
then the attachment is
deleted and you try to call
the GetAttachment
operation on the
attachment ID. Verify that
the attachment exists in
the attachment collection.
ErrorInvalidChangeKey An invalid change key was passed in. Note that many
operations and methods
do not require a change
key to be passed.
However, if you do
provide a change key, it
must be valid, although it
does not necessarily have
to be up-to-date.
ErrorInvalidIdMalformedEwsLegacyIdFormat A folder or item ID that is using the Exchange You cannot use Exchange
2007 format was specified for a request with a 2007 IDs in Exchange
version of Exchange 2007 SP1 or later. 2007 SP1 or later
requests. You must use
the ConvertId EWS
operation or the
ConvertId EWS
Managed API method to
convert them first.
ErrorInvalidIdNotAnItemAttachmentId The AttachmentId property does not refer to The identifier might be
an item attachment. valid in format, but not
what the server was
expecting for the
operation. Verify that you
are referencing the
correct identifier for the
operation.
ErrorInvalidImContactId This error can be returned when the contact The value of the
cannot be found in the IM group when you use ContactId property that
the RemoveImContactFromGroup operation . was specified in the
This error applies to clients that target request might be valid in
Exchange Online and versions of Exchange structure, but no contacts
starting with Exchange 2013. in the mailbox match this
structure. The contact
might have been
removed already.
Error Occurs when… Description
ErrorInvalidImGroupId This error can be returned when the group The value of the GroupId
cannot be found in the mailbox when you use property that was
the RemoveImGroup operation . This error specified in the request
applies to clients that target Exchange Online might be valid in
and versions of Exchange starting with structure, but no groups
Exchange 2013. in the mailbox match this
structure. The group
might have been
removed already.
ErrorMissingManagedFolderId The policy IDs property, property tag 0x6732, The folder is corrupted.
for the folder is missing. Consider recreating it.
Converting identifiers
You might need to convert an identifier from one format to another. For example, you might need to
convert an identifier from outside EWS, such as an identifier that comes from a MAPI connection, to a
format that your application can use. To do this, you can use the ConvertId EWS operation, or the
ConvertId EWS Managed API method.
For example, an EntryID is a unique identifier generated by the MAPI message store that is assigned by the
store when the item is saved. To use an EntryID in your application, you first need to convert it to an EwsId.
Outlook Web App uses its own version of identifiers, called OwaId, in URLs to access folders and items. If
your application needs to access items in Outlook Web App, you need to convert the OwaId into an EwsId.
You can use the ConvertId operation or method to convert several different identifier formats.
Format Description
EwsId The EwsId that applies to Exchange Online and versions of Exchange starting with Exchange 2007 SP1.
StoreId The Exchange store identifier where the folders and items are stored.
OwaId The Outlook Web App identifier used with Outlook Web App in Exchange 2007 and Exchange 2010.
NOTE: Exchange Online and versions of Exchange starting with Exchange 2013 use the EwsId for
Outlook Web App.
EntryId A MAPI identifier that is commonly known as the PR_ENTRYID property of a MAPI message.
Format Description
HexEntryId A hexadecimal-encoded representation of the PR_ENTRYID property that is used for the availability
calendar event identifier. This is also the identifier format that Outlook uses.
See also
Develop web service clients for Exchange
ConvertId operation
ServiceError enumeration
Deleting items by using EWS in Exchange
Impersonation and EWS in Exchange
Article • 09/14/2022 • 3 minutes to read
Learn how and when to use impersonation in your Exchange service applications.
You can enable users to access other users' mailboxes in one of three ways:
By using impersonation.
When should you choose impersonation over delegation or folder permissions? The
following guidelines will help you decide:
Use folder permissions when you want to provide a user access to a folder but do
not want the user to have "send on behalf of" permissions.
Use delegate access when you want to give one user permission to perform work
on behalf of another user. Typically, this is a one-to-one or one-to-a-few
permission - for example, a single administrative assistant managing the calendar
for an administrator, or a single room scheduler managing the calendars for a
group of meeting rooms.
Use impersonation when you have a service application that needs to access
multiple mailboxes and "act as" the mailbox owner.
Impersonation is the best choice when you're dealing with multiple mailboxes because
you can easily grant one service account access to every mailbox in a database.
Delegation and folder permissions are best when you're only granting access to a few
users, because you have to add permissions individually to each mailbox. Figure 1 shows
some of the differences between each type of access.
For Exchange Online, you should create application access policies to limit the
scope of the impersonation. Please see New-ApplicationAccessPolicy cmdlet. If you
do not create an application access policy, then the full_access_as_app permission
is granted to all accounts in a tenant.
You can read more about configuring impersonation, but you should work with your
Exchange administrator to ensure that the service accounts that you need are created
with the permissions and access that meet the security requirements of your
organization.
In this section
Configure impersonation
See also
Develop web service clients for Exchange
Learn how to grant the impersonation role to a service account by using the Exchange
Management Shell.
Exchange Online, Exchange Online as part of Office 365, and versions of Exchange
starting with Exchange 2013 use role-based access control (RBAC) to assign permissions
to accounts. Your Exchange server administrator will need to grant any service account
that will be impersonating other users the ApplicationImpersonation role by using the
New-ManagementRoleAssignment cmdlet.
Name – The friendly name of the role assignment. Each time that you assign a role,
an entry is made in the RBAC roles list. You can verify role assignments by using
the Get-ManagementRoleAssignment cmdlet.
Role – The RBAC role to assign. When you set up impersonation, you assign the
ApplicationImpersonation role.
User – The service account.
CustomRecipientScope – The scope of users that the service account can
impersonate. The service account will only be allowed to impersonate other users
within the specified scope. If no scope is specified, the service account is granted
the ApplicationImpersonation role over all users in an organization. You can
create custom management scopes by using the New-ManagementScope
cmdlet.
PowerShell
New-ManagementRoleAssignment -name:impersonationAssignmentName -
Role:ApplicationImpersonation -User:serviceAccount
PowerShell
New-ManagementScope -Name:scopeName -
RecipientRestrictionFilter:recipientFilter
PowerShell
Name -eq "john"
PowerShell
New-ManagementRoleAssignment -Name:impersonationAssignmentName -
Role:ApplicationImpersonation -User:serviceAccount -
CustomRecipientWriteScope:scopeName
After your administrator grants impersonation permissions, you can use the service
account to make calls against other users' accounts. You can verify role assignments by
using the Get-ManagementRoleAssignment cmdlet.
See also
Impersonation and EWS in Exchange
ApplicationImpersonation role
New-ManagementRoleAssignment
Get-ManagementRoleAssignment
Identify the account to impersonate
Article • 08/31/2021 • 2 minutes to read
Learn how your service application uses EWS to identify the user to impersonate.
Your service application identifies the user account to impersonate by using one of the
following three identifiers:
The identifier that you use depends, of course, on the information that your application
has available.
XML
<soap:Header>
<t:ExchangeImpersonation>
<t:ConnectingSID>
Identifier
</t:ConnectingSID>
</t:ExchangeImpersonation>
</soap:Header>
Each of the following sections shows how to use one of the identifiers. For an example
that shows the impersonation identifier in action, see Add appointments by using
Exchange impersonation.
C#
exchangeServiceInstance.ImpersonatedUserId = new
ImpersonatedUserId(ConnectingIdType.SMTP, "[email protected]");
XML
<soap:Header>
<t:ExchangeImpersonation>
<t:ConnectingSID>
<t:PrimarySmtpAddress>[email protected]</t:PrimarySmtpAddress>
</t:ConnectingSID>
</t:ExchangeImpersonation>
</soap:Header>
In an EWS Managed API application, you specify the UPN along with the
ConnectingIdType.PrincipalName enumeration value.
C#
exchangeServiceInstance.ImpersonatedUserId = new
ImpersonatedUserId(ConnectingIdType.PrincipalName,
"[email protected]");
XML
<soap:Header>
<t:ExchangeImpersonation>
<t:ConnectingSID>
<t:PrincipalName>[email protected]</t:PrincipalName>
</t:ConnectingSID>
</t:ExchangeImpersonation>
</soap:Header>
In an EWS Managed API application, you specify the SID along with the
ConnectingIdType.SID enumeration value.
C#
exchangeServiceInstance.ImpersonatedUserId = new
ImpersonatedUserId(ConnectingIdType.SID, "S-1-5-21-1493619105-1843311271-
3936346804-1118");
In an EWS SOAP request, the SID element contains the SID for the user account.
XML
<soap:Header>
<t:ExchangeImpersonation>
<t:ConnectingSID>
<t:SID>S-1-5-21-1493619105-1843311271-3936346804-1118</t:SID>
</t:ConnectingSID>
</t:ExchangeImpersonation>
</soap:Header>
See also
Impersonation and EWS in Exchange
ExchangeService class
ExchangeImpersonation
Add appointments by using Exchange
impersonation
Article • 06/14/2022 • 4 minutes to read
Learn how to use impersonation with the EWS Managed API or EWS in Exchange to add
appointments to users' calendars.
You can create a service application that inserts appointments directly into an Exchange
calendar by using a service account that has the ApplicationImpersonation role
enabled. When you use impersonation, the application is acting as the user; it's as if the
user added the appointment to the calendar by using a client such as Outlook.
Your ExchangeService object must be bound to the service account. You can use
the same ExchangeService object to impersonate multiple accounts by changing
the ImpersonatedUserId property for each account that you want to
impersonate.
Any item that you save to an impersonated account can only be used once. If you
want to save the same appointment in multiple accounts, for example, you have to
create an Appointment object for each account.
Prerequisites
Your application needs an account to use to connect to the Exchange server before it
can use impersonation. We suggest that you use a service account for the application
that has been granted the Application Impersonation role for the accounts that it will be
accessing. For more information, see Configure impersonation
C#
service.ImpersonatedUserId = new
ImpersonatedUserId(ConnectingIdType.SmtpAddress, emailAddress);
try
if (appointment.RequiredAttendees.Count > 0)
appointment.Save(SendInvitationsMode.SendToAllAndSaveCopy);
else
appointment.Save(SendInvitationsMode.SendToNone);
Console.WriteLine(ex.Message);
When saving the appointment, the code checks to determine whether any attendees
have been added to the RequiredAttendees property. If they have, the
Appointment.Save method is called with the SendToAllAndSaveCopy enumeration
value so that the attendees receive meeting requests; otherwise, the Appointment.Save
method is called with the SendToNone enumeration value so that the appointment is
saved into the impersonated user's calendar with the Appointment.IsMeeting
property set to false.
IAppointmentFactory interface
Because you need a new Appointment object each time that you want to save an
appointment on an impersonated user's calendar, the IAppointmentFactory interface
abstracts the object used to populate each Appointment object. This version is a simple
interface that contains only one method, GetAppointment, that takes an
ExchangeService object as a parameter and returns a new Appointment object bound
to that ExchangeService object.
C#
interface IAppointmentFactory
C#
appointment.Start = DateTime.Now.AddDays(3);
appointment.End = appointment.Start.AddHours(1);
// appointment.RequiredAttendees.Add(new
Attendee("[email protected]"));
return appointment;
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Pacific Standard Time" />
</t:TimeZoneContext>
<t:ExchangeImpersonation>
<t:ConnectingSID>
<t:SmtpAddress>[email protected]</t:SmtpAddress>
</t:ConnectingSID>
</t:ExchangeImpersonation>
</soap:Header>
<soap:Body>
<m:CreateItem SendMeetingInvitations="SendToNone">
<m:Items>
<t:CalendarItem>
<t:Subject>Tennis lesson</t:Subject>
<t:ReminderDueBy>2013-09-19T14:37:10.732-07:00</t:ReminderDueBy>
<t:Start>2013-09-21T19:00:00.000Z</t:Start>
<t:End>2013-09-21T20:00:00.000Z</t:End>
<t:Location>Tennis club</t:Location>
</t:CalendarItem>
</m:Items>
</m:CreateItem>
</soap:Body>
</soap:Envelope>
Note that other than the addition of the ExchangeImpersonation element in the SOAP
header to specify the account that we are impersonating, this is the same XML request
used to create an appointment without using impersonation.
The following example shows the response XML that is returned by the CreateItem
operation.
7 Note
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:CreateItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:CreateItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:CalendarItem>
</t:CalendarItem>
</m:Items>
</m:CreateItemResponseMessage>
</m:ResponseMessages>
</m:CreateItemResponse>
</s:Body>
</s:Envelope>
Again, this is the same XML that is returned when you use the CreateItem operation
without using impersonation.
See also
Impersonation and EWS in Exchange
ApplicationImpersonation role
Configure impersonation
Identify the account to impersonate
Create appointments and meetings by using EWS in Exchange 2013
CreateItem operation (calendar item)
ExchangeService.ImpersonatedUserId property
Inbox management and EWS in
Exchange
Article • 09/15/2021 • 6 minutes to read
Find out how you can manage your Inbox in your EWS Managed API or EWS application
by using Inbox rules and the blocked senders list.
Exchange mailboxes come equipped with features to help users organize their incoming
mail automatically. These features all operate on the server without user intervention,
but they serve different needs. The EWS Managed API and EWS provide access to these
features, enabling your users to manage their Inboxes.
Take action on incoming messages (such as moving them to another folder or Inbox
deleting them) based on specific criteria (such as sender, subject, or attachments) rules
Inbox rules
Let's face it: not every email message is created equal. For every email a user gets from
his or her manager, there's one from an Internet cat video distribution list he or she
joined years ago and never got around to leaving. While Internet cat videos are
entertaining, the amount of traffic that distribution list gets can get out of hand, and
important messages can easily be lost in the sea of distribution list mail in an Inbox.
Many users turn to Inbox rules to help pare down those messages, and make their Inbox
a much nicer place to be. With Exchange Web Services (EWS), your application can bring
the power of rules to bear.
To change the current set of rules by using EWS, you have to remove the Outlook
rules BLOB, if it is present. This means that using EWS to modify rules deletes any
rules that were previously turned off (disabled) by using Outlook.
Starting with the rule at the top of the rule list, the rules engine performs the following
steps until it reaches the end of the list of rules:
1. Checks the message to determine whether it meets all the conditions specified in
the rule.
3. If it does not meet all the conditions, the rules engine loads the next rule in the
rule list and starts over at step 1.
4. Checks the message to determine whether it meets any of the exceptions specified
in the rule.
5. If it meets any of the exceptions, the rules engine loads the next rule in the rule list
and starts over at step 1.
6. If it does not meet any of the exceptions, evaluation continues with step 3.
8. If the "stop processing more rules" action is specified, the rules engine performs all
the other actions on the message, then exits without evaluating any additional
rules against the message.
9. If the "stop processing more rules" action is not specified, the rules engine loads
the next rule in the rule list and starts over at step 1.
The following figure shows the process that the rules engine follows.
Conditions
Conditions describe when a rule should be applied. While you can omit the conditions
of a rule (resulting in a rule that applies to every message received), it is far more
common for rules to have conditions that apply to a subset of incoming messages.
Some examples are "when a message is from Sadie" or "when a message is sent to the
'Cat Video Lovers' distribution list". Rules can have multiple conditions. When rules have
more than one condition, all the conditions must be met in order for the rules engine to
take the specified action.
Actions
Actions describe what happens when a rule applies. Examples are "move the message
to the 'Cats' folder" or "mark the message with 'Low' importance". Rules can have
multiple actions. When you specify multiple actions for a rule, all the actions are
performed when the rule is applied.
Exceptions
Exceptions describe when a rule should not apply, even if the criteria specified in the
conditions are met. Examples are "except if the message is sent only to me" or "except if
the message is from Mom". A rule can have multiple exceptions. When rules have more
than one exception, and any of the exceptions are met, the rule is not applied.
These messages are sent to a distribution list called "Internet Cat Video
Enthusiasts".
Your users want to read these messages eventually, they just don't want them
cluttering their Inbox. They'd rather file them in a folder called "Cats".
Your users want to read messages sent to this distribution list by their mother right
away, because Mom sends the funniest videos.
This tells the rules engine the following: "When a message arrives that is sent to the
'Internet Cat Video Enthusiasts' distribution list, move it to the 'Cats' folder, unless the
message is from Mom."
7 Note
Notice that "stop processing more rules" is one of the actions in the resulting rule.
In general it's a good idea to include this action to avoid confusion over which rules
act on any given message. However, by omitting this action and properly ordering
your rules, you can achieve more advanced processing of your incoming mail. In
this case, it's probably a safe bet that Internet cat video messages don't require
much in the way of advanced processing.
Shortly after creating this rule, a new message comes in. A coworker Hope sends a
message to the distribution list. If we mentally perform the work of the rules engine, the
message meets all the conditions (it is sent to 'Internet Cat Videos Enthusiasts'), and it
meets none of the exceptions (it isn't from 'Mom'), so the rule applies and the message
gets moved to the 'Cats' folder.
The following figure shows how the rule is applied to an incoming mail message.
In this section
Manage Inbox rules by using EWS in Exchange
Add and remove email addresses from the Blocked Senders List by using EWS in
Exchange
See also
Develop web service clients for Exchange
GetInboxRules operation
UpdateInboxRules operation
MarkAsJunk operation
Manage Inbox rules by using EWS in
Exchange
Article • 10/11/2021 • 14 minutes to read
Find out how to get, create, update, and delete Inbox rules by using the EWS Managed
API or EWS in Exchange.
You can get, create, update, and delete Inbox rules by using the EWS Managed API or
EWS. Regardless of the technology you use, you get and modify Inbox rules as a
collection, rather than individually. You use the same method or operation to create new
rules, update existing rules, and delete rules.
Table 1. Methods and operations for getting and modifying Inbox rules
In order to create, update, or delete Inbox rules by using the EWS Managed API or EWS,
you must remove the Outlook rule, if it exists. If you're using the EWS Managed API, you
do this by setting the removeOutlookRulesBlob parameter to true in the
ExchangeService.UpdateInboxRules method call. If you're using EWS, you set the value
of the RemoveOutlookRuleBlob element to true in the UpdateInboxRules operation.
We recommend that your application check the RuleCollection.OutlookRuleBlobExists
property (if you are using the EWS Managed API), or the OutlookRuleBlobExists
element (if you're using EWS) before updating Inbox rules. If this property or element
has a value of true, your application should alert the user that any disabled rules will be
lost as part of the update, and only proceed with their permission.
When you call the UpdateInboxRules method, EWS deletes client-side send rules.
Client-side send rules are stored on the client in the rule Folder Associated Information
(FAI) Message and nowhere else. EWS deletes this rule FAI message by default, based on
the expectation that Outlook will recreate it. However, Outlook can't recreate rules that
don't also exist as an extended rule, and client-side send rules don't exist as extended
rules. As a result, these rules are lost. We suggest you consider this when designing your
solution.
7 Note
The EWS Managed API code examples in this article use a common set of utility
methods. These methods are omitted from the code samples for brevity.
In this example, each rule in the current Inbox is passed to a helper function (
ParseRuleDetails ) to display the details of the rule.
C#
using System;
using System.Collections.Generic;
using Microsoft.Exchange.WebServices.Data;
try
inboxRules = service.GetInboxRules(emailAddress);
return;
// Loop through the rules and print out the details of each.
Console.WriteLine("\n*******************************************************
********");
Console.WriteLine("Supported: {0}",
(!rule.IsNotSupported).ToString());
ParseRuleDetails(service, rule);
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetInboxRules>
<m:MailboxSmtpAddress>[email protected]</m:MailboxSmtpAddress>
</m:GetInboxRules>
</soap:Body>
</soap:Envelope>
The following EWS SOAP response contains the current Inbox rules for
[email protected].
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetInboxRulesResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<OutlookRuleBlobExists>false</OutlookRuleBlobExists>
<InboxRules>
<Rule
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<RuleId>AQAAAAAAASY=</RuleId>
<DisplayName>Alfred</DisplayName>
<Priority>1</Priority>
<IsEnabled>true</IsEnabled>
<Conditions>
<FromAddresses>
<Address>
<Name>Alfred Welker</Name>
<RoutingType>EX</RoutingType>
</Address>
</FromAddresses>
</Conditions>
<Actions>
<MoveToFolder>
<FolderId
Id="AAMkADg1OWUwODcyLTg4M2MtNDAyMS05YjI0LTI5ZGM5OTU4Njk3YwAuAAAAAADPriAxh444
TpHj2GoQxWQNAQAN+VjmVZl5Rq1ymCq5eFKOAAAAABSyAAA=" ChangeKey="AQAAAA==" />
</MoveToFolder>
<StopProcessingRules>true</StopProcessingRules>
</Actions>
</Rule>
<Rule
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<RuleId>AQAAAAAAASQ=</RuleId>
<DisplayName>Important</DisplayName>
<Priority>2</Priority>
<IsEnabled>true</IsEnabled>
<Conditions>
<ContainsSubjectStrings>
<String>Urgent</String>
</ContainsSubjectStrings>
<FromAddresses>
<Address>
<Name>Hope Gross</Name>
<RoutingType>EX</RoutingType>
</Address>
</FromAddresses>
</Conditions>
<Actions>
<MarkImportance>High</MarkImportance>
<StopProcessingRules>true</StopProcessingRules>
</Actions>
</Rule>
</InboxRules>
</GetInboxRulesResponse>
</s:Body>
</s:Envelope>
In this example, a new rule is created to move mail sent to a distribution list called
"Sales" to a subfolder of the Inbox, also called "Sales".
C#
using System;
using System.Collections.Generic;
using Microsoft.Exchange.WebServices.Data;
// result in any rules that the user has disabled via the Outlook
// UI to be lost.
try
currentRules = service.GetInboxRules(emailAddress);
return;
Console.WriteLine();
newRule.DisplayName = "Sales";
// Conditions
newRule.Conditions.SentToAddresses.Add("Sales", "[email protected]");
if (moveToFolderId == null)
// Actions
newRule.Actions.MoveToFolder = moveToFolderId;
newRule.Actions.StopProcessingRules = true;
// Exceptions
ParseRuleDetails(service, newRule);
try
// updates.
service.UpdateInboxRules(new RuleOperation[] {
createMoveIfFromSalesRule }, true);
return;
Console.WriteLine("Rule added.");
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:UpdateInboxRules>
<m:RemoveOutlookRuleBlob>true</m:RemoveOutlookRuleBlob>
<m:Operations>
<t:CreateRuleOperation>
<t:Rule>
<t:DisplayName>Sales</t:DisplayName>
<t:Priority>1</t:Priority>
<t:IsEnabled>true</t:IsEnabled>
<t:IsInError>false</t:IsInError>
<t:Conditions>
<t:SentToAddresses>
<t:Address>
<t:Name>Sales</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Address>
</t:SentToAddresses>
</t:Conditions>
<t:Exceptions>
<t:FromAddresses>
<t:Address>
<t:Name>Hope Gross</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Address>
</t:FromAddresses>
</t:Exceptions>
<t:Actions>
<t:MoveToFolder>
<t:FolderId
Id="AAMkADg1OWUwODcyLTg4M2MtNDAyMS05YjI0LTI5ZGM5OTU4Njk3YwAuAAAAAADPriAxh444
TpHj2GoQxWQNAQAN+VjmVZl5Rq1ymCq5eFKOAAAAABSxAAA="
ChangeKey="AQAAABYAAAAN+VjmVZl5Rq1ymCq5eFKOAAAAABTZ" />
</t:MoveToFolder>
<t:StopProcessingRules>true</t:StopProcessingRules>
</t:Actions>
</t:Rule>
</t:CreateRuleOperation>
</m:Operations>
</m:UpdateInboxRules>
</soap:Body>
</soap:Envelope>
In this example, the "Sales" rule is updated to add an exception. If the subject contains
the word "Urgent", the messages will not be moved to the "Sales" subfolder.
C#
using System;
using System.Collections.Generic;
using Microsoft.Exchange.WebServices.Data;
// result in any rules that the user has disabled via the Outlook
// UI to be lost.
try
currentRules = service.GetInboxRules(emailAddress);
return;
Console.WriteLine();
if (rule.DisplayName == "Sales")
ruleToUpdate = rule;
break;
if (ruleToUpdate == null)
return;
ruleToUpdate.Exceptions.ContainsSubjectStrings.Add("Urgent");
try
// updates.
return;
Console.WriteLine("Rule updated.");
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:UpdateInboxRules>
<m:RemoveOutlookRuleBlob>true</m:RemoveOutlookRuleBlob>
<m:Operations>
<t:SetRuleOperation>
<t:Rule>
<t:RuleId>AQAAAATnzOA=</t:RuleId>
<t:DisplayName>Sales</t:DisplayName>
<t:Priority>1</t:Priority>
<t:IsEnabled>true</t:IsEnabled>
<t:IsInError>false</t:IsInError>
<t:Conditions>
<t:SentToAddresses>
<t:Address>
<t:Name>Sales</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
</t:Address>
</t:SentToAddresses>
</t:Conditions>
<t:Exceptions>
<t:ContainsSubjectStrings>
<t:String>Urgent</t:String>
</t:ContainsSubjectStrings>
<t:FromAddresses>
<t:Address>
<t:Name>Hope Gross</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
</t:Address>
</t:FromAddresses>
</t:Exceptions>
<t:Actions>
<t:MoveToFolder>
<t:FolderId
Id="AAMkADg1OWUwODcyLTg4M2MtNDAyMS05YjI0LTI5ZGM5OTU4Njk3YwAuAAAAAADPriAxh444
TpHj2GoQxWQNAQAN+VjmVZl5Rq1ymCq5eFKOAAAAABSxAAA="
ChangeKey="AQAAAA==" />
</t:MoveToFolder>
<t:StopProcessingRules>true</t:StopProcessingRules>
</t:Actions>
</t:Rule>
</t:SetRuleOperation>
</m:Operations>
</m:UpdateInboxRules>
</soap:Body>
</soap:Envelope>
C#
using System;
using System.Collections.Generic;
using Microsoft.Exchange.WebServices.Data;
// result in any rules that the user has disabled via the Outlook
// UI to be lost.
try
currentRules = service.GetInboxRules(emailAddress);
return;
Console.WriteLine();
if (rule.DisplayName == "Sales")
ruleId = rule.Id;
break;
if (string.IsNullOrEmpty(ruleId))
return;
try
// updates.
return;
Console.WriteLine("Rule deleted.");
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:UpdateInboxRules>
<m:RemoveOutlookRuleBlob>true</m:RemoveOutlookRuleBlob>
<m:Operations>
<t:DeleteRuleOperation>
<t:RuleId>AQAAAATnzOA=</t:RuleId>
</t:DeleteRuleOperation>
</m:Operations>
</m:UpdateInboxRules>
</soap:Body>
</soap:Envelope>
C#
// Conditions
if (!string.IsNullOrEmpty(conditions))
Console.WriteLine("When a message:");
Console.WriteLine(conditions);
// Actions
if (!string.IsNullOrEmpty(actions))
Console.WriteLine(actions);
// Exceptions
if (!string.IsNullOrEmpty(exceptions))
Console.WriteLine(exceptions);
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
if (predicates.FlaggedForAction != null)
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
if (predicates.HasAttachments)
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
if (predicates.Importance != null)
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
if (predicates.IsApprovalRequest)
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
if (predicates.IsAutomaticForward)
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
if (predicates.IsAutomaticReply)
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
if (predicates.IsEncrypted)
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
if (predicates.IsMeetingRequest)
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
if (predicates.IsMeetingResponse)
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
if (predicates.IsNonDeliveryReport)
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
if (predicates.IsPermissionControlled)
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
if (predicates.IsReadReceipt)
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
if (predicates.IsSigned)
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
if (predicates.IsVoicemail)
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
if (predicates.NotSentToMe)
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
if (predicates.Sensitivity != null)
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
if (predicates.SentCcMe)
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
if (predicates.SentOnlyToMe)
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
if (predicates.SentToMe)
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
if (predicates.SentToOrCcMe)
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
if (predicates.WithinDateRange != null)
if (predicates.WithinDateRange.Start != null)
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
if (predicates.WithinDateRange.End != null)
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
if (predicates.WithinSizeRange != null)
if (predicates.WithinSizeRange.MinimumSize != null)
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
if (predicates.WithinSizeRange.MaximumSize != null)
humanReadablePredicates =
AppendToHumanReadableString(humanReadablePredicates,
return humanReadablePredicates;
humanReadableActions =
AppendToHumanReadableString(humanReadableActions,
if (actions.CopyToFolder != null)
humanReadableActions =
AppendToHumanReadableString(humanReadableActions,
if (actions.Delete)
humanReadableActions =
AppendToHumanReadableString(humanReadableActions,
humanReadableActions =
AppendToHumanReadableString(humanReadableActions,
humanReadableActions =
AppendToHumanReadableString(humanReadableActions,
if (actions.MarkAsRead)
humanReadableActions =
AppendToHumanReadableString(humanReadableActions,
if (actions.MarkImportance != null)
humanReadableActions =
AppendToHumanReadableString(humanReadableActions,
if (actions.MoveToFolder != null)
humanReadableActions =
AppendToHumanReadableString(humanReadableActions,
if (actions.PermanentDelete)
humanReadableActions =
AppendToHumanReadableString(humanReadableActions,
humanReadableActions =
AppendToHumanReadableString(humanReadableActions,
humanReadableActions =
AppendToHumanReadableString(humanReadableActions,
if (actions.ServerReplyWithMessage != null)
humanReadableActions =
AppendToHumanReadableString(humanReadableActions,
if (actions.StopProcessingRules)
humanReadableActions =
AppendToHumanReadableString(humanReadableActions,
return humanReadableActions;
if (isExceptions)
logicalOperator = "OR";
if (!string.IsNullOrEmpty(humanReadableString))
else
humanReadableString += appendString;
return humanReadableString;
try
catch (ServiceResponseException)
if (folder != null)
folderName = folder.DisplayName;
return folderName;
try
catch (ServiceResponseException)
if (parentFolder == null)
return null;
view.PropertySet.Add(FolderSchema.DisplayName);
view.Traversal = FolderTraversal.Shallow;
try
ex.ErrorCode.ToString());
if (subFolder.DisplayName == subFolderName)
returnId = subFolder.Id;
break;
return returnId;
See also
Inbox management and EWS in Exchange
ExchangeService.GetInboxRules method
ExchangeService.UpdateInboxRules method
GetInboxRules operation
UpdateInboxRules operation
Add and remove email addresses from
the Blocked Senders List by using EWS
in Exchange
Article • 09/15/2021 • 2 minutes to read
Find out how to use the EWS Managed API or EWS to add email addresses to and
remove them from the Blocked Senders List.
The Blocked Senders List in a user's Junk Email options provides a way to move all email
messages from specified senders to the Junk Email folder. You can enable your EWS
Managed API or EWS application to add email addresses to or remove them from the
Blocked Senders List.
Note that a message from the email address must exist in the user's mailbox before you
can add the email address to or remove it from the Blocked Senders List. The
ExchangeService.MarkAsJunk EWS Managed API method and the MarkAsJunk EWS
operation use a collection of item IDs. The item IDs in the collection indicate messages
in the mailbox for which the junk mail status should be changed.
The following example shows how to use the MarkAsJunk method to change the junk
status of a message.
C#
junkItemIds.Add(messageId);
try
return;
if (response.Result == ServiceResult.Success)
if (moveItem)
else
response.ErrorCode.ToString());
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:ItemIds>
<t:ItemId
Id="AAMkADg1OWUwODcyLTg4M2MtNDAyMS05YjI0LTI5ZGM5OTU4Njk3YwBGAAAAAADPriAxh444
TpHj2GoQxWQNBwAN+VjmVZl5Rq1ymCq5eFKOAAAAAAENAAAN+VjmVZl5Rq1ymCq5eFKOAAAAAAEu
AAA="
ChangeKey="CQAAABYAAAAN+VjmVZl5Rq1ymCq5eFKOAAAAAADi" />
</m:ItemIds>
</m:MarkAsJunk>
</soap:Body>
</soap:Envelope>
The following EWS SOAP response shows the successful response. The MovedItemId
element in the response contains the item ID for the item after it was moved.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:MarkAsJunkResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:MarkAsJunkResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:MovedItemId
Id="AAMkADg1OWUwODcyLTg4M2MtNDAyMS05YjI0LTI5ZGM5OTU4Njk3YwBGAAAAAADPriAxh444
TpHj2GoQxWQNBwAN+VjmVZl5Rq1ymCq5eFKOAAAAAAEbAAAN+VjmVZl5Rq1ymCq5eFKOAAAE59DI
AAA="
ChangeKey="CQAAABYAAAAN+VjmVZl5Rq1ymCq5eFKOAAAE59E+" />
</m:MarkAsJunkResponseMessage>
</m:ResponseMessages>
</m:MarkAsJunkResponse>
</s:Body>
</s:Envelope>
See also
Inbox management and EWS in Exchange
ExchangeService.MarkAsJunk
MarkAsJunk operation
Get-MailboxJunkEmailConfiguration
Set-MailboxJunkEmailConfiguration
Exchange Management Shell
Notification subscriptions, mailbox events, and
EWS in Exchange
Article • 03/19/2022 • 9 minutes to read
Find out about notification subscriptions and mailbox event in EWS in Exchange.
You can use both the EWS Managed API and Exchange Web Services (EWS) to subscribe to receive
notifications when events occur in a mailbox, or in one or more of the folders in a mailbox. Three
subscription types are available: streaming notifications, pull notifications, and push notifications. Each
of these subscription types uses different techniques to receive or retrieve the notifications.
Streaming Notifications Streaming notifications are generally recommended for most applications. They're
notifications that are sent similar to pull and push notifications, and offer the best of both worlds. After you
by the establish your notification subscription, the connection remains open for up to 30
server minutes to allow the server to push notifications back to the client. No need to
through a request updates, like you would with a pull subscription, and you don't have to
connection create a web service listener application like you would with a push subscription.
that remains
open for a
specified
period of
time.
Pull Notifications Pull notifications are generally most appropriate for loosely coupled clients, where
notifications that are the client is not reliably connected to the network. Pull notifications can create
requested excess traffic between the client and the server because the client is sending
(or pulled) frequent requests to the server to retrieve notifications, and not all requests result
by the client. in notifications retrieved.
Push Notifications Generally, push notifications provide for smaller notification latency than pull
notifications that are sent notifications and are suited for tightly coupled clients to which the server has
(or pushed) reliable access and the client is IP addressable. However, push notifications have
by the fallen out of favor since the advent of streaming notifications in Exchange 2010. If
server to a possible, we recommend that you use streaming notifications instead of push
client-side notifications going forward. Push notifications require that you write a listener
web service application, which is where the notifications are pushed to. This has a slight benefit
via a over pull notifications in that it reduces wire traffic, but it adds overhead by
callback requiring a separate application.
address.
What EWS events can I subscribe to?
The types of EWS events that clients subscribe to are defined by the EventType enumeration for the
EWS Managed API or the EventType element for EWS. The following EWS events are available for
subscription:
Deleted — A message was hard deleted from the Inbox. To learn more about deleted item
notifications, see Deleting items by using EWS in Exchange and Pull notifications for EWS
deletion-related mailbox events in Exchange.
Another EWS event type, the Status event, is defined by the EventType element, but you don't
subscribe to this event. Instead, it's sent by the server to check the status of the client for streaming
and push notifications only. The client needs to respond to this event or the client will time out.
A single user action often results in the creation of multiple notifications. To illustrate this, the
following figure shows some common scenarios and the notifications created for each one. Client
settings have an impact on the notifications received, so this is not an exhaustive list of all the
configuration options and resulting notifications.
It's also important to realize that the configuration settings that each user chooses will affect which
notifications are created. For example, some users' free busy data is updated automatically and the
FreeBusyChanged event is created when a new meeting request is received, even before they've read
the item. For other users, free busy data isn't updated and the FreeBusyChanged event isn't created
until after the meeting has been accepted. These settings can have a considerable impact on the
notifications created by the server.
Depending on the type of subscription you have, the ways in which the notifications are sent to the
client vary. This section describes how each type of subscription works in more detail.
EWS streaming notifications
Streaming notifications rely on a hanging get request on the server to keep a streaming subscription
connection open, so that any events that occur while the connection is active are streamed to the
client immediately. Multiple notifications can be sent over the course of a single connection, and the
connection stays open until the interval expires, or for a maximum of 30 minutes. After the connection
expires, the client sends the hanging get request again. Figure 2 shows how streaming subscriptions
and streaming notifications work.
For information about creating streaming notifications, see Stream notifications about mailbox events
by using EWS in Exchange.
For information about creating pull notifications, see Pull notifications about mailbox events by using
EWS in Exchange.
If you are using push notifications with Exchange 2010 , consider upgrading your application to use
streaming notifications , so that you don't need a separate application to receive the events.
For streaming notifications, a streaming subscription connection must be created, and then the
subscription is added to the connection. You can read more about this process in Stream notifications
about mailbox events by using EWS in Exchange.
For pull notifications, the subscription object was initialized when the subscription was created, so you
just have to call the GetEvent method or operation to retrieve the events from the server. You can
read more about this in Pull notifications about mailbox events by using EWS in Exchange.
The following table lists the operations and classes required to retrieve events.
Table 3. Elements and classes for creating a connection and getting events
StreamingSubscription.EndUnsubscribe
method
StreamingSubscription.Unsubscribe
method
PullSubscription.EndUnsubscribe
method
PullSubscription.Unsubscribe method
Push Return Unsubscribe in the StatusFrequency element Not applicable. Let the subscription time
of the SendNotificationResponseMessage
out instead.
Streaming ConnectionTimeout lifetime parameter of the For the EWS Managed API, after the
element StreamingSubscriptionConnection timeout value elapses, the
constructor OnDisconnect event is raised. If the
StreamingSubscriptionConnection.Open
method is not called, the connection is
closed.
For EWS, after the timeout value elapses,
the GetUserConfigurationResponse
message returns a ConnectionStatus
value of Closed.
Pull Timeout element timeout parameter of the After the timeout value elapses, the server
SubscribeToPullNotification deletes the subscription.
method
Push StatusFrequency frequency parameter of the If the server does not receive a response
element SubscribeToPushNotification to a push notification or status ping, it
method retries sending the notification several
times before it stops sending the
notifications. For more information, see
StatusFrequency .
In this section
Stream notifications about mailbox events by using EWS in Exchange
Pull notifications about mailbox events by using EWS in Exchange
Maintain affinity between a group of subscriptions and the Mailbox server in Exchange
Handling notification-related errors in EWS in Exchange
See also
Develop web service clients for Exchange
Web services reference for Exchange
Start using web services in Exchange
Mailbox synchronization and EWS in Exchange
Push Notification Sample Application
Stream notifications about mailbox
events by using EWS in Exchange
Article • 01/15/2020 • 3 minutes to read
Find out how to use the EWS Managed API or EWS to subscribe to streaming
notifications and get events.
EWS in Exchange uses streaming notifications to receive notifications that are sent by
the server through a connection that remains open for a specified period of time.
If you're subscribing to streaming notifications by using the EWS Managed API, you
subscribe and get streaming notifications by using the
SubscribeToStreamingNotifications method. You then create a connection to the
subscription by using the StreamingSubscriptionConnection object.
After the client receives notifications of items changed or created on the server, the next
step is to synchronize the changes.
C#
StreamingSubscription = service.SubscribeToStreamingNotifications(
EventType.NewMail,
EventType.Created,
EventType.Deleted,
EventType.Modified,
EventType.Moved,
EventType.Copied,
EventType.FreeBusyChanged);
connection.AddSubscription(StreamingSubscription);
connection.OnNotificationEvent += OnNotificationEvent;
connection.OnDisconnect += OnDisconnect;
connection.Open();
After you have received events from the server, the next step is to synchronize those
changes with the server. Use one of the unsubscribe methods listed in Table 4 to end
the subscription with the server when the subscription is no longer needed.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:Subscribe>
<m:StreamingSubscriptionRequest>
<t:FolderIds>
</t:FolderIds>
<t:EventTypes>
<t:EventType>NewMailEvent</t:EventType>
<t:EventType>CreatedEvent</t:EventType>
<t:EventType>DeletedEvent</t:EventType>
<t:EventType>ModifiedEvent</t:EventType>
<t:EventType>MovedEvent</t:EventType>
<t:EventType>CopiedEvent</t:EventType>
<t:EventType>FreeBusyChangedEvent</t:EventType>
</t:EventTypes>
</m:StreamingSubscriptionRequest>
</m:Subscribe>
</soap:Body>
</soap:Envelope>
The following XML example shows the SubscribeResponse message that is sent from
the server to the client in response to the Subscribe operation request. The inclusion
of the NoError value for the ResponseCode element means that the subscription was
created successfully. The SubscriptionId element uniquely identifies the streaming
notification subscription on the server.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="785"
MinorBuildNumber="6"
Version="V2_6"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:SubscribeResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:SubscribeResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:SubscriptionId>JgBibjFwcjAzbWIyMDIubmFtcHJkMDMucHJvZC5vdXRsb29rLmNvbRAAAA
DwXxVesOnHS5BxUHKwAW88SHjwd1iB0Ag=</m:SubscriptionId>
</m:SubscribeResponseMessage>
</m:ResponseMessages>
</m:SubscribeResponse>
</s:Body>
</s:Envelope>
After creating the subscription, you can now get the streamed events by using the
SubscriptionId returned in the SubscribeResponse message.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetStreamingEvents>
<m:SubscriptionIds>
<t:SubscriptionId>JgBibjFwcjAzbWIyMDIubmFtcHJkMDMucHJvZC5vdXRsb29rLmNvbRAAAA
DwXxVesOnHS5BxUHKwAW88SHjwd1iB0Ag=</t:SubscriptionId>
</m:SubscriptionIds>
<m:ConnectionTimeout>30</m:ConnectionTimeout>
</m:GetStreamingEvents>
</soap:Body>
</soap:Envelope>
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="785"
MinorBuildNumber="6"
Version="V2_6"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<soap:Body xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<m:GetStreamingEventsResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:GetStreamingEventsResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Notifications>
<m:Notification>
<t:SubscriptionId>JgBibjFwcjAzbWIyMDIubmFtcHJkMDMucHJvZC5vdXRsb29rLmNvbRAAAA
DwXxVesOnHS5BxUHKwAW88SHjwd1iB0Ag=</t:SubscriptionId>
<t:CreatedEvent>
<t:TimeStamp>2013-09-16T04:31:29Z</t:TimeStamp>
<t:ItemId
Id="AAMkADkzNjJjODUzLWZhMDMtNDVkMS05ZDdjLWVmMDlkYjQ1Zjc4MwBGAAAAAABSSWVKrmGU
TJE+MVIvofglBwDZGACZQpSgSpyNkexYe2b7AAAAAAENAADZGACZQpSgSpyNkexYe2b7AAANGFYw
AAA=" ChangeKey="CQAAAA==" />
<t:ParentFolderId
Id="AQMkADkzNjJjODUzLWZhMDMtNDVkMS05ZDdjLWVmMDlkYjQ1Zjc4MwAuAAADUkllSq5hlEyR
PjFSL6H4JQEA2RgAmUKUoEqcjZHsWHtm+wAAAgENAAAA" ChangeKey="AQAAAA==" />
</t:CreatedEvent>
<t:NewMailEvent>
<t:TimeStamp>2013-09-16T04:31:29Z</t:TimeStamp>
<t:ItemId
Id="AAMkADkzNjJjODUzLWZhMDMtNDVkMS05ZDdjLWVmMDlkYjQ1Zjc4MwBGAAAAAABSSWVKrmGU
TJE+MVIvofglBwDZGACZQpSgSpyNkexYe2b7AAAAAAENAADZGACZQpSgSpyNkexYe2b7AAANGFYw
AAA=" ChangeKey="CQAAAA==" />
<t:ParentFolderId
Id="AQMkADkzNjJjODUzLWZhMDMtNDVkMS05ZDdjLWVmMDlkYjQ1Zjc4MwAuAAADUkllSq5hlEyR
PjFSL6H4JQEA2RgAmUKUoEqcjZHsWHtm+wAAAgENAAAA" ChangeKey="AQAAAA==" />
</t:NewMailEvent>
<t:ModifiedEvent>
<t:TimeStamp>2013-09-16T04:31:29Z</t:TimeStamp>
<t:FolderId
Id="AQMkADkzNjJjODUzLWZhMDMtNDVkMS05ZDdjLWVmMDlkYjQ1Zjc4MwAuAAADUkllSq5hlEyR
PjFSL6H4JQEA2RgAmUKUoEqcjZHsWHtm+wAAAgENAAAA" ChangeKey="AQAAAA==" />
<t:ParentFolderId
Id="AQMkADkzNjJjODUzLWZhMDMtNDVkMS05ZDdjLWVmMDlkYjQ1Zjc4MwAuAAADUkllSq5hlEyR
PjFSL6H4JQEA2RgAmUKUoEqcjZHsWHtm+wAAAgEJAAAA" ChangeKey="AQAAAA==" />
<t:UnreadCount>1</t:UnreadCount>
</t:ModifiedEvent>
</m:Notification>
</m:Notifications>
</m:GetStreamingEventsResponseMessage>
</m:ResponseMessages>
</m:GetStreamingEventsResponse>
</soap:Body>
After you have received events from the server, the next step is to synchronize those
changes with the server. Use the Unsubscribe operation to end the subscription with
the server when the subscription is no longer needed.
Next steps
After you've received notifications, you can sync the folder hierarchy or sync the
contents of the folder that changed.
See also
Notification subscriptions, mailbox events, and EWS in Exchange
Find out how to use the EWS Managed API or EWS to subscribe to pull notifications and
get events.
EWS in Exchange uses pull notifications to enable clients to request (or pull)
notifications about changes to the mailbox from the server to the client.
If you're subscribing to pull notifications by using the EWS Managed API, you subscribe
to and get pull notifications by using the SubscribeToPullNotifications method. You
then get events from the server by using the GetEvents method.
To subscribe to pull notifications by using EWS, you create a subscription by using the
Subscribe operation , parse the response, and then get the notifications by using the
GetEvents operation .
After the client receives notifications of items that are changed or created on the server,
it can then synchronize the changes.
C#
After you receive an event from the server, you can synchronize those changes with the
server. Use one of the unsubscribe methods specified in How do I unsubscribe to
notifications? to end the subscription with the server when the subscription is no longer
needed.
XML
<Subscribe xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<PullSubscriptionRequest
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<FolderIds
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
</FolderIds>
<EventTypes
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<EventType>NewMailEvent</EventType>
<EventType>CreatedEvent</EventType>
<EventType>DeletedEvent</EventType>
<EventType>ModifiedEvent</EventType>
<EventType>MovedEvent</EventType>
<EventType>CopiedEvent</EventType>
<EventType>FreeBusyChangedEvent</EventType>
</EventTypes>
<Timeout
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">30</Timeo
ut>
</PullSubscriptionRequest>
</Subscribe>
The following XML example shows the SubscribeResponse message that is sent from
the server to the client in response to the Subscribe operation request. The inclusion of
the NoError value for the ResponseCode element means that the subscription was
created successfully. The SubscriptionId element uniquely identifies the pull
notification subscription on the server. The Watermark element represents a
bookmark in the mailbox event queue.
XML
<?xml version="1.0" encoding="utf-8"?>
<SubscribeResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ResponseMessages
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<SubscribeResponseMessage ResponseClass="Success">
<ResponseCode>NoError</ResponseCode>
<SubscriptionId>d581ab79-a2ec-4653-9c8e-564d7cfc1d8c</SubscriptionId>
<Watermark>AAAAAGUhAAAAAAAAAQ==</Watermark>
</SubscribeResponseMessage>
</ResponseMessages>
</SubscribeResponse>
After creating the subscription, you can now get events by using the SubscriptionId that
is returned in the SubscribeResponse message.
XML
<GetEvents xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SubscriptionId
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">d581ab
79-a2ec-4653-9c8e-564d7cfc1d8c</SubscriptionId>
<Watermark
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">AAAAAG
UhAAAAAAAAAQ==</Watermark>
</GetEvents>
The following XML example shows the GetEvents response message that is sent from
the server to the client. Each GetEvents response includes information about one or
more events. A Watermark is returned for each event. The last Watermark must be
saved and used in the next GetEvents request. If no store events have occurred since the
last GetEvents request, a status event is returned.
XML
<?xml version="1.0" encoding="utf-8"?>
<GetEventsResponseType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ResponseMessages
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<GetEventsResponseMessage ResponseClass="Success">
<ResponseCode>NoError</ResponseCode>
<Notification>
<SubscriptionId
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">d581ab79-
a2ec-4653-9c8e-564d7cfc1d8c</SubscriptionId>
<PreviousWatermark
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">AAAAAGUhA
AAAAAAAAQ==</PreviousWatermark>
<MoreEvents
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">false</Mo
reEvents>
<NewMailEvent
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Watermark>AAAAAHMhAAAAAAAAAQ==</Watermark>
<TimeStamp>2013-09-15T21:37:01Z</TimeStamp>
</NewMailEvent>
</Notification>
</GetEventsResponseMessage>
</ResponseMessages>
</GetEventsResponse>
After you receive an event from the server, synchronize the changes to the client. Use
the Unsubscribe operation to end the subscription with the server when the
subscription is no longer needed.
Next steps
After you're received notifications, you can sync the folder hierarchy or sync the
contents of the folder that changed.
See also
Notification subscriptions, mailbox events, and EWS in Exchange
Find out about maintaining the affinity between a group of subscriptions and the
Mailbox server.
1. For each mailbox, call Autodiscover and get the GroupingInformation and
ExternalEwsUrl user settings. For SOAP Autodiscover, you use the Setting
element, and for POX Autodiscover, you use the GroupingInformation element.
3. Create and use one ExchangeService object for the rest of the procedure. When
you use the same ExchangeService object, cookies and headers (when they are
set) are automatically maintained. Note that if you do not intend to group
streaming subscriptions into a single connection, you are free to create a different
ExchangeService object for each impersonated user.
4. Send a subscription request for the user whose user name appears first when all
users in the group are sorted alphabetically (we'll refer to this user as the anchor
mailbox user). Do the following:
Include the X-AnchorMailbox header with a value set to the SMTP address of the
anchor mailbox user.
6. For each additional user in the group, send a subscription request and do the
following:
Include the X-AnchorMailbox header with a value set to the SMTP address of the
anchor mailbox user for the group.
Include the X-PreferServerAffinity header with a value set to true.
If more than 200 subscriptions exist for the group, create multiple requests. The
maximum number of SubscriptionId values to include in a request is 200.
If you need more connections than are available to the target mailbox, use the
service account to impersonate the anchor mailbox for the group; otherwise, do
not use impersonation. Ideally, you want to impersonate a unique mailbox per
GetStreamingEvents or GetEvents request so that you never encounter
throttling limits.
The following example shows how budgets are handled between any target mailbox
and the service account that has the ApplicationImpersonation role assigned for the
target mailboxes.
ServiceAccount1 (sa1) impersonates many users (m1, m2, m3, and so on) and
creates subscriptions for each mailbox. Note that when the subscriptions are
created, the subscription owner is sa1, so when sa1 opens a connection with the
subscriptions, EWS enforces that the subscriptions are owned by sa1.
If option 2 is used, the code can impersonate another user — m2 for example.
For the purpose of this example, we'll focus on Group A. We would use the same steps
for group B, but use a different X-AnchorMailbox value for that group.
If you're using the EWS Managed API, use the HttpHeaders Add method to add the
two headers to your subscription request, as shown.
C#
service.HttpHeaders.Add("X-AnchorMailbox", Mailbox.SMTPAddress);
service.HttpHeaders.Add("X-PreferServerAffinity", "true");
XML
Accept: text/xml
User-Agent: ExchangeServicesClient/15.00.0516.014
X-AnchorMailbox: [email protected]
X-PreferServerAffinity: true
Host: outlook.office365.com
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:ExchangeImpersonation>
<t:ConnectingSID>
<t:SmtpAddress>[email protected]</t:SmtpAddress>
</t:ConnectingSID>
</t:ExchangeImpersonation>
</soap:Header>
<soap:Body>
<m:Subscribe>
<m:StreamingSubscriptionRequest>
<t:FolderIds>
</t:FolderIds>
<t:EventTypes>
<t:EventType>NewMailEvent</t:EventType>
</t:EventTypes>
</m:StreamingSubscriptionRequest>
</m:Subscribe>
</soap:Body>
</soap:Envelope>
The following XML message is the response to Alfred's subscription request, and it
includes the X-BackEndOverrideCookie. Resend this cookie for all subsequent requests
for users in this group. Notice that the response also contains additional cookies, such
as the exchangecookie cookie used by Exchange 2010. Exchange Online, Exchange
Online as part of Office 365, and versions of Exchange starting with Exchange 2013,
ignore exchangecookie if it is included in subsequent subscription requests.
XML
HTTP/1.1 200 OK
Set-Cookie: X-
BackEndOverrideCookie=CO1PR06MB222.namprd06.prod.outlook.com~1941996295;
path=/; secure; HttpOnly
Set-Cookie: [email protected]=Ox8XKzcXLxg==;
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="775"
MinorBuildNumber="7"
Version="V2_4"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:SubscribeResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:SubscribeResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:SubscriptionId>JgBjbzFwcjA2bWIyMjIubmFtcHJkMDYucHJvZC5vdXRsb29rLmNvbRAAAA
AUeGk+7JFdSaFM8/NI/gQQpVdgZX6H0Ag=</m:SubscriptionId>
</m:SubscribeResponseMessage>
</m:ResponseMessages>
</m:SubscribeResponse>
</s:Body>
</s:Envelope>
XML
Accept: text/xml
User-Agent: ExchangeServicesClient/15.00.0516.014
X-AnchorMailbox: [email protected]
X-PreferServerAffinity: true
Host: outlook.office365.com
Cookie: X-
BackEndOverrideCookie=CO1PR06MB222.namprd06.prod.outlook.com~1941996295
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:ExchangeImpersonation>
<t:ConnectingSID>
<t:SmtpAddress>[email protected] </t:SmtpAddress>
</t:ConnectingSID>
</t:ExchangeImpersonation>
</soap:Header>
<soap:Body>
<m:Subscribe>
<m:StreamingSubscriptionRequest>
<t:FolderIds>
</t:FolderIds>
<t:EventTypes>
<t:EventType>NewMailEvent</t:EventType>
</t:EventTypes>
</m:StreamingSubscriptionRequest>
</m:Subscribe>
</soap:Body>
</soap:Envelope>
Sadie's subscription response looks like this. Note that it does not include the X-
BackEndOverrideCookie. The client is responsible for caching that value for future
requests.
XML
HTTP/1.1 200 OK
Set-Cookie: [email protected]=Ox8XKzcXLxg==;
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="775"
MinorBuildNumber="7"
Version="V2_4"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:SubscribeResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:SubscribeResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:SubscriptionId>JgBjbzFwcjA2bWIyMjIubmFtcHJkMDYucHJvZC5vdXRsb29rLmNvbRAAAA
B4EQOy2pfrQJfM3hzs/nZJIZssan6H0Ag=</m:SubscriptionId>
</m:SubscribeResponseMessage>
</m:ResponseMessages>
</m:SubscribeResponse>
</s:Body>
</s:Envelope>
XML
Accept: text/xml
User-Agent: ExchangeServicesClient/15.00.0516.014
X-AnchorMailbox: [email protected]
X-PreferServerAffinity: true
Host: outlook.office365.com
Cookie: X-
BackEndOverrideCookie=CO1PR06MB222.namprd06.prod.outlook.com~1941996295
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:ExchangeImpersonation>
<t:ConnectingSID>
<t:SmtpAddress>[email protected]</t:SmtpAddress>
</t:ConnectingSID>
</t:ExchangeImpersonation>
</soap:Header>
<soap:Body>
<m:GetStreamingEvents>
<m:SubscriptionIds>
<t:SubscriptionId>JgBjbzFwcjA2bWIyMjIubmFtcHJkMDYucHJvZC5vdXRsb29rLmNvbRAAAA
B4EQOy2pfrQJfM3hzs/nZJIZssan6H0Ag=</t:SubscriptionId>
<t:SubscriptionId>JgBjbzFwcjA2bWIyMjIubmFtcHJkMDYucHJvZC5vdXRsb29rLmNvbRAAAA
AUeGk+7JFdSaFM8/NI/gQQpVdgZX6H0Ag=</t:SubscriptionId>
</m:SubscriptionIds>
<m:ConnectionTimeout>10</m:ConnectionTimeout>
</m:GetStreamingEvents>
</soap:Body>
</soap:Envelope>
The returned events are then passed to a separate thread for processing.
How has affinity changed?
In Exchange 2010, subscriptions are maintained on the Client Access server, as shown in
Figure 3. In versions of Exchange later than Exchange 2010, subscriptions are maintained
on the Mailbox server, as shown in Figure 4.
Figure 4. Process for maintaining affinity in Exchange Online and Exchange 2013
In Exchange 2010, the client only knows the address of the load balancer, and the
exchangecookie that is returned by the server ensures that the request is routed to the
right Client Access server. However, in later versions, the load balancer and the Client
Access server roles both have to route the requests appropriately before they get to the
Mailbox server. To do that, additional information is required, which is why the new
headers and cookie were introduced. The article Notification subscriptions, mailbox
events, and EWS in Exchange explains how subscriptions are maintained in Exchange
2013.
You might notice that the exchangecookie that Exchange 2010 uses is still returned by
later versions. There's no harm in including this cookie in requests, but later versions of
Exchange ignore it.
See also
Notification subscriptions, mailbox events, and EWS in Exchange
Stream notifications about mailbox events by using EWS in Exchange
Pull notifications about mailbox events by using EWS in Exchange
Handling notification-related errors in EWS in Exchange
Changes in Managing Affinity for EWS Subscriptions…
EWS throttling in Exchange
Handling notification-related errors in
EWS in Exchange
Article • 09/15/2021 • 4 minutes to read
Find out how to handle notification-related errors in applications that you develop by
using the EWS Managed API or EWS in Exchange.
If your application subscribes to and gets notifications, you might have to handle
notification-related errors. You can handle these errors at runtime, or while you are
developing your EWS application.
See also
Notification subscriptions, mailbox events, and EWS in Exchange
Stream notifications about mailbox events by using EWS in Exchange
Pull notifications about mailbox events by using EWS in Exchange
Maintain affinity between a group of subscriptions and the Mailbox server in
Exchange
Mailbox synchronization and EWS in
Exchange
Article • 02/11/2022 • 10 minutes to read
Find out how mailbox synchronization works when you use EWS to access Exchange.
EWS in Exchange uses two types of synchronization to retrieve mailbox content and
changes to mailbox content:
Folder synchronization
Item synchronization
In this article, you'll learn about both types of synchronization, how synchronization
works, synchronization design patterns, and synchronization best practices.
Table 1. EWS operations and EWS Managed API methods for syncing folders and
items
The scope of the synchronization that occurs differs depending on whether it is an initial
or an ongoing sync, as follows:
An initial synchronization syncs all folders or items on the server to the client. After
the initial synchronization, the client has a sync state that it stores for future
synchronizations. The sync state represents all the changes on the server that the
server communicated to the client.
Ongoing synchronizations sync any items or folders that have been added,
deleted, or changed since the previous synchronization. The server uses the sync
state to calculate the changes to report to the client during each of the ongoing
synchronization loops.
Each synchronization method or operation returns a list of changes, not the actual folder
or message that changed. Changes to items and folders are reported by means of the
following change types:
Create — Indicates that a new item or folder should be created on the client.
Update — Indicates that an item or folder should be changed on the client.
Delete — Indicates that an item or folder should be deleted on the client.
ReadStateChange for EWS or ReadFlagChange for the EWS Managed API —
Indicates that that the read state of the item has changed, either from unread to
read, or read to unread.
In Exchange Online, Exchange Online as part of Office 365, and versions of Exchange
starting with Exchange 2010 SP2, items and folders are returned in order from newest to
oldest. In previous versions of Exchange, items and folders are returned from oldest to
newest.
Notifications are optimized to reduce calls to the backend Exchange database. Event
queues and subscriptions are managed by the mailbox server (or the Client Access
server in Exchange 2010 and Exchange 2007); however, the management of the events
and subscriptions uses fewer resources than the alternative, which is more frequent
synchronization calls to the Exchange database. In addition, Exchange has specific
throttling policies for notifications and subscriptions, to safeguard consumption of
resources.
Notifications are noisy because most scenarios involve multiple notifications for
one user intent. This is especially true of the Calendar folder. For example, when a
single meeting request is received, multiple item and folder notifications are
created, including a notification to create the item and another to modify the item.
One way to mitigate this drawback is to build a delay of a few seconds into your
Load , LoadPropertiesForItems , GetItem , or GetFolder call. In the case of a
meeting request, if you made calls to the GetItem operation immediately, you
might have one call to create the item and another to modify the item. Instead, by
delaying the call, you can call the GetItem operation once and get the changes
that encompass the creation and the modification of the item at the same time.
Notifications are queued on the mailbox server and subscriptions are saved on the
mailbox server. If the mailbox server that manages the subscription is unavailable,
you lose any new notifications, your mailbox won't synchronize, and you'll have to
resubscribe to the notifications.
You'll need to plan for mitigation strategies in the event that notifications fail. In
this way, the second approach, the synchronization-only design pattern, is more
resilient than notification-based synchronization, because it only requires that the
client maintain the sync state — there are no issues with affinity to the mailbox
server managing the subscription.
Don't call the EWS Managed API Load or LoadPropertiesForItems methods, or the
EWS GetItem or GetFolder operations, on every item in a synchronization
response. Instead, parse the results; look for changes that don't require all the
properties to be retrieved, like read state changes. If a response includes a read
state change, just update the flag on the client and you're done; no need to get all
the item properties. And make sure that you don't duplicate effort by making
changes that originated from the same client. For example, if the synchronization
response includes the deletion of an item, and the deletion happened on the local
client, you don't need to delete the message again or get all the properties for that
item.
Do not poll using the EWS Managed API FindAppointments method, or the
EWS FindItem operation with a CalendarView element.
Because you can't use SyncFolderItem in a search folder, use a sorted and
paged EWS Managed API FindItems method, or EWS FindItem operation with
the FractionalPageItemView and SortOrder element set, to determine what
changed.
Filtered synchronization
The EWS Managed API SyncFolderItems method and the EWS SyncFolderItems
operation enable you to ignore specific items, based on their ItemIds, by setting the
ignoreItemIds parameter in the EWS Managed API or the Ignore element in EWS. This
is ideal when, for example, individuals begin to reply all to an email message sent to
everyone in the company.
You might wonder, can I filter my notifications (and therefore only trigger
synchronization) if specific properties change? Although that does seem reasonable,
because notification subscriptions are based on the type of change (create, update,
delete), and not the property being updated, you cannot filter notifications in this way.
Instead, you can do the following:
In this section
Synchronize folders by using EWS in Exchange
Synchronize items by using EWS in Exchange
Handling synchronization-related errors in EWS in Exchange
See also
Develop web service clients for Exchange
SyncFolderItems method
SyncFolderHierarchy method
SyncFolderHierarchy operation
SyncFolderItems operation
Synchronize folders by using EWS in
Exchange
Article • 02/11/2022 • 6 minutes to read
Find out how to use the EWS Managed API or EWS to get a list of folders, or a list of
folders that have changed, in order to synchronize your client.
EWS in Exchange uses item synchronization and folder synchronization to sync mailbox
content between the client and server. Folder synchronization gets the initial list of
folders from a root folder and then, over time, gets changes that were made to those
folders and gets new folders as well.
If you're performing folder synchronization by using the EWS Managed API, you first get
the initial list of folders in the root folder by using the
ExchangeService.SyncFolderHierarchy method. You then update the value of the
cSyncState parameter during subsequent calls to get the list of new and changed
folders.
To perform folder synchronization by using EWS, you request the initial list of folders in
the root folder by using the SyncFolderHierarchy operation, parse the response, and
then at some point in the future get the changes to the folders in the root, and parse
the response. After the client receives the list of initial or changed folders, it makes
updates locally. How and when you retrieve changes in the future depends on the
synchronization design pattern your application is using.
C#
// in subsequent calls.
if (fcc.Count == 0)
// to the console.
// ChangeType.Create.
else
Console.WriteLine("===========");
// The sync state is used by the server to determine what changes to report
// to the client.
After you retrieve the list of new or changed folders on the server, create or update the
folders on the client.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:SyncFolderHierarchy>
<m:FolderShape>
<t:BaseShape>IdOnly</t:BaseShape>
</m:FolderShape>
<m:SyncFolderId>
</m:SyncFolderId>
</m:SyncFolderHierarchy>
</soap:Body>
</soap:Envelope>
The following example shows the XML response that is returned by the server after it
processes the SyncFolderHierarchy operation request. The initial response includes
Create elements for all folders because all folders are considered new during an initial
synchronization. The values of some attributes and elements have been shortened for
readability, and some Create element blocks were removed for brevity.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="785"
MinorBuildNumber="6"
Version="V2_6"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:SyncFolderHierarchyResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:SyncFolderHierarchyResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:SyncState>H4sIAA==</m:SyncState>
<m:IncludesLastFolderInRange>true</m:IncludesLastFolderInRange>
<m:Changes>
<t:Create>
<t:Folder>
<t:FolderId Id="AAMkADM="
ChangeKey="AQAAABYA"/>
</t:Folder>
</t:Create>
<t:Create>
<t:Folder>
<t:FolderId Id="AAMkADMzM="
ChangeKey="AQAAABY"/>
</t:Folder>
</t:Create>
<t:Create>
<t:Folder>
<t:FolderId Id="AAMkAD/AAA="
ChangeKey="AQAAABYA"/>
</t:Folder>
</t:Create>
<t:Create>
<t:Folder>
<t:FolderId Id="AAMkADBh="
ChangeKey="AQAAABYA"/>
</t:Folder>
</t:Create>
...
</m:Changes>
</m:SyncFolderHierarchyResponseMessage>
</m:ResponseMessages>
</m:SyncFolderHierarchyResponse>
</s:Body>
</s:Envelope>
After you retrieve the list of new folders on the server, create the folders on the client.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:SyncFolderHierarchy>
<m:FolderShape>
<t:BaseShape>AllProperties</t:BaseShape>
</m:FolderShape>
<m:SyncFolderId>
</m:SyncFolderId>
<m:SyncState>H4sIAA==</m:SyncState>
</m:SyncFolderHierarchy>
</soap:Body>
</soap:Envelope>
The following example shows the XML response that is returned by the server after it
processes the SyncFolderHierarchy operation request from the client. This response
indicates that one folder was updated, one folder was created, and one folder was
deleted since the prior synchronization. The value of the SyncState element, Id
attributes, and ChangeKey attributes have been shortened for readability.
Remember that the request included the AllPropertiesBaseShape . This is just for
demonstration purposes. We recommend that you set the BaseShape element to IdOnly
in production.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:SyncFolderHierarchyResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:SyncFolderHierarchyResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:SyncState>H4sIAAA</m:SyncState>
<m:IncludesLastFolderInRange>true</m:IncludesLastFolderInRange>
<m:Changes>
<t:Update>
<t:Folder>
<t:FolderClass>IPF.Note</t:FolderClass>
<t:DisplayName>Meeting Notes</t:DisplayName>
<t:TotalCount>3</t:TotalCount>
<t:ChildFolderCount>0</t:ChildFolderCount>
<t:EffectiveRights>
<t:CreateAssociated>true</t:CreateAssociated>
<t:CreateContents>true</t:CreateContents>
<t:CreateHierarchy>true</t:CreateHierarchy>
<t:Delete>true</t:Delete>
<t:Modify>true</t:Modify>
<t:Read>true</t:Read>
<t:ViewPrivateItems>true</t:ViewPrivateItems>
</t:EffectiveRights>
<t:UnreadCount>0</t:UnreadCount>
</t:Folder>
</t:Update>
<t:Create>
<t:Folder>
<t:FolderClass>IPF.Note</t:FolderClass>
<t:DisplayName>Schedules</t:DisplayName>
<t:TotalCount>0</t:TotalCount>
<t:ChildFolderCount>0</t:ChildFolderCount>
<t:EffectiveRights>
<t:CreateAssociated>true</t:CreateAssociated>
<t:CreateContents>true</t:CreateContents>
<t:CreateHierarchy>true</t:CreateHierarchy>
<t:Delete>true</t:Delete>
<t:Modify>true</t:Modify>
<t:Read>true</t:Read>
<t:ViewPrivateItems>true</t:ViewPrivateItems>
</t:EffectiveRights>
<t:UnreadCount>0</t:UnreadCount>
</t:Folder>
</t:Create>
<t:Delete>
</t:Delete>
</m:Changes>
</m:SyncFolderHierarchyResponseMessage>
</m:ResponseMessages>
</m:SyncFolderHierarchyResponse>
</s:Body>
</s:Envelope>
If you're using EWS, use the GetFolder operation to get properties on the new or
changed folders and update or create the folders on the client.
See also
Mailbox synchronization and EWS in Exchange
Synchronize items by using EWS in Exchange
Handling synchronization-related errors in EWS in Exchange
Synchronize items by using EWS in
Exchange
Article • 02/11/2022 • 8 minutes to read
Find out how to use the EWS Managed API or EWS to get a list of all items in a folder, or
a list of changes that have occurred in a folder, in order to synchronize your client.
EWS in Exchange uses item synchronization and folder synchronization to sync mailbox
content between the client and server. Item synchronization gets the initial list of items
in a folder and then, over time, gets changes that have been made to those items and
gets new items as well.
Note that before you can sync items to a client, you first have to sync the folder
hierarchy. After the folder hierarchy is in place on the client, if you're performing item
synchronization by using the EWS Managed API, you first get the initial list of items in
the Inbox by using the ExchangeService.SyncFolderItems method. You then update
the value of the cSyncState parameter during subsequent calls to get the list of changed
items in the Inbox.
To perform item synchronization by using EWS, after you sync the folder hierarchy, you
request the initial list of items in the Inbox by using the SyncFolderItems operation ,
parse the response, and then at some point in the future get the changes to the items in
the mailbox, and parse the response. After the client receives the list of initial or
changed items, it makes updates locally. How and when you retrieve changes in the
future depends on the synchronization design pattern your application is using.
This example sets the propertySet parameter to IdOnly to reduce calls to the Exchange
database, which is a synchronization best practice. In this example, we assume that
service is a valid ExchangeService object binding and that cSyncState represents the
sync state that was returned by a prior call to SyncFolderItems.
C#
// Track whether there are more items available for download on the server.
do
if (icc.Count == 0)
{
// to the console.
else
Console.WriteLine("===========");
// to the client.
moreChangesAvailable = icc.MoreChangesAvailable;
while (moreChangesAvailable);
After you retrieve the list of new or changed items on the server, create or update the
items on the client.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:SyncFolderItems>
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
</m:ItemShape>
<m:SyncFolderId>
</m:SyncFolderId>
<m:MaxChangesReturned>10</m:MaxChangesReturned>
<m:SyncScope>NormalItems</m:SyncScope>
</m:SyncFolderItems>
</soap:Body>
</soap:Envelope>
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="785"
MinorBuildNumber="6"
Version="V2_6"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:SyncFolderItemsResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:SyncFolderItemsResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:SyncState>H4sIAAA==</m:SyncState>
<m:IncludesLastItemInRange>true</m:IncludesLastItemInRange>
<m:Changes>
<t:Create>
<t:Message>
<t:ItemId Id="q04QAAAA=="
ChangeKey="CQAAABYAAABhFfgM7MNwSYx0VZ0GoBMJAAAATVdC"/>
</t:Message>
</t:Create>
<t:Create>
<t:Message>
<t:ItemId Id="q07AAAAA=="
ChangeKey="CQAAABYAAABhFfgM7MNwSYx0VZ0GoBMJAAAATVdB"/>
</t:Message>
</t:Create>
<t:Create>
<t:Message>
<t:ItemId Id="q1AwAAAA=="
ChangeKey="CQAAABYAAABhFfgM7MNwSYx0VZ0GoBMJAAAATVdA"/>
</t:Message>
</t:Create>
<t:Create>
<t:Message>
<t:ItemId Id="AAMkADBh=="
ChangeKey="CQAAABYAAABhFfgM7MNwSYx0VZ0GoBMJAAAATVc5"/>
</t:Message>
</t:Create>
<t:Create>
<t:Message>
<t:ItemId Id="AAMkADBh=="
ChangeKey="CQAAABYAAABhFfgM7MNwSYx0VZ0GoBMJAAAATVc4"/>
</t:Message>
</t:Create>
</m:Changes>
</m:SyncFolderItemsResponseMessage>
</m:ResponseMessages>
</m:SyncFolderItemsResponse>
</s:Body>
</s:Envelope>
After you retrieve the list of new items on the server, create the items on the client.
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:SyncFolderItems>
<m:ItemShape>
<t:BaseShape>AllProperties</t:BaseShape>
</m:ItemShape>
<m:SyncFolderId>
</m:SyncFolderId>
<m:SyncState>H4sIAAA==</m:SyncState>
<m:MaxChangesReturned>10</m:MaxChangesReturned>
<m:SyncScope>NormalItems</m:SyncScope>
</m:SyncFolderItems>
</soap:Body>
</soap:Envelope>
The following example shows the XML response that is returned by the server after it
processes the SyncFolderItems operation request from the client. This response
indicates that one item was updated, two items were created, the read flag of one item
was changed, and one item was deleted since the prior synchronization. The values of
some attributes and elements have been shortened for readability.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:SyncFolderItemsResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:SyncFolderItemsResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:SyncState>H4sIAAAAAAAEAO29B2AcSZY==</m:SyncState>
<m:IncludesLastItemInRange>true</m:IncludesLastItemInRange>
<m:Changes>
<t:Update>
<t:Message>
<t:ItemId Id="q04QAAAA=="
ChangeKey="CQAAABYAAADZGACZQpSgSpyNkexYe2b7AAAAird/" />
<t:ItemClass>IPM.Note</t:ItemClass>
<t:Sensitivity>Normal</t:Sensitivity>
<t:DateTimeReceived>2013-08-
29T15:22:10Z</t:DateTimeReceived>
<t:Size>23110</t:Size>
<t:Importance>Normal</t:Importance>
<t:InReplyTo>&lt;[email protected].
sdf.contoso.com&gt;</t:InReplyTo>
<t:IsSubmitted>false</t:IsSubmitted>
<t:IsDraft>false</t:IsDraft>
<t:IsFromMe>false</t:IsFromMe>
<t:IsResend>false</t:IsResend>
<t:IsUnmodified>false</t:IsUnmodified>
<t:DateTimeSent>2013-08-29T15:22:10Z</t:DateTimeSent>
<t:DateTimeCreated>2013-08-
28T04:07:38Z</t:DateTimeCreated>
<t:DisplayCc />
<t:DisplayTo>All Employees</t:DisplayTo>
<t:HasAttachments>false</t:HasAttachments>
<t:Culture>en-US</t:Culture>
<t:EffectiveRights>
<t:CreateAssociated>false</t:CreateAssociated>
<t:CreateContents>false</t:CreateContents>
<t:CreateHierarchy>false</t:CreateHierarchy>
<t:Delete>true</t:Delete>
<t:Modify>true</t:Modify>
<t:Read>true</t:Read>
<t:ViewPrivateItems>true</t:ViewPrivateItems>
</t:EffectiveRights>
<t:LastModifiedName>Mara Whitley</t:LastModifiedName>
<t:LastModifiedTime>2013-08-
28T16:53:35Z</t:LastModifiedTime>
<t:IsAssociated>false</t:IsAssociated>
<t:WebClientReadFormQueryString>?
ae=Item&amp;a=Open&amp;t=IPM.Note&amp;id=&amp;exvsurl=1</t:W
ebClientReadFormQueryString>
<t:ConversationId
Id="AAQkADkzNjJjODUzLWZhMDMtNDVkMS05ZDdjLWVmMDlkYjQ1Zjc4MwAQACAi+NTh0F5Eg5YD
wpJsXPE=" />
<t:Sender>
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
<t:MailboxType>Mailbox</t:MailboxType>
</t:Mailbox>
</t:Sender>
<t:IsReadReceiptRequested>false</t:IsReadReceiptRequested>
<t:ConversationIndex>AQHM5V/ZICL41OHQXkSDlgPCkmxc8ZYxA3I4gAAP5UeAANHpbIAAEE+
0gAABYhSAACGYTIAAA2+vgAAE81qAkhv0Eg==</t:ConversationIndex>
<t:ConversationTopic>Company Soccer
Team</t:ConversationTopic>
<t:From>
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
<t:MailboxType>Mailbox</t:MailboxType>
</t:Mailbox>
</t:From>
<t:InternetMessageId>&lt;[email protected]
ontoso.com&gt;</t:InternetMessageId>
<t:IsRead>true</t:IsRead>
<t:References>namsdf01.sdf.contoso.com&gt;
</t:References>
</t:Message>
</t:Update>
<t:Create>
<t:Message>
<t:ItemClass>IPM.Note</t:ItemClass>
<t:Sensitivity>Normal</t:Sensitivity>
<t:DateTimeReceived>2013-08-
29T16:20:10Z</t:DateTimeReceived>
<t:Size>32515</t:Size>
<t:Importance>Normal</t:Importance>
<t:InReplyTo>&lt;[email protected]
om&gt;</t:InReplyTo>
<t:IsSubmitted>false</t:IsSubmitted>
<t:IsDraft>false</t:IsDraft>
<t:IsFromMe>false</t:IsFromMe>
<t:IsResend>false</t:IsResend>
<t:IsUnmodified>false</t:IsUnmodified>
<t:DateTimeSent>2013-08-29T16:20:10Z</t:DateTimeSent>
<t:DateTimeCreated>2013-08-
28T04:07:33Z</t:DateTimeCreated>
<t:DisplayCc />
<t:HasAttachments>false</t:HasAttachments>
<t:Culture>en-US</t:Culture>
<t:EffectiveRights>
<t:CreateAssociated>false</t:CreateAssociated>
<t:CreateContents>false</t:CreateContents>
<t:CreateHierarchy>false</t:CreateHierarchy>
<t:Delete>true</t:Delete>
<t:Modify>true</t:Modify>
<t:Read>true</t:Read>
<t:ViewPrivateItems>true</t:ViewPrivateItems>
</t:EffectiveRights>
<t:LastModifiedName>Mara Whitley</t:LastModifiedName>
<t:LastModifiedTime>2013-08-
28T04:07:35Z</t:LastModifiedTime>
<t:IsAssociated>false</t:IsAssociated>
<t:WebClientReadFormQueryString>?
ae=Item&amp;a=Open&amp;t=IPM.Note&amp;id=&amp;exvsurl=1</t:W
ebClientReadFormQueryString>
<t:ConversationId
Id="AAQkADkzNjJjODUzLWZhMDMtNDVkMS05ZDdjLWVmMDlkYjQ1Zjc4MwAQAIsBEZp25UpElByL
LUQFH6Q=" />
<t:Sender>
<t:Mailbox>
<t:Name>Hope Gross</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
<t:MailboxType>Mailbox</t:MailboxType>
</t:Mailbox>
</t:Sender>
<t:IsReadReceiptRequested>false</t:IsReadReceiptRequested>
<t:ConversationIndex>AQHM5WBRiwERmnblSkSUHIstRAUfpJYw9fbSgAAAdm2AAAB6koAAAHT
DgAADl6+AAAbxCYAABm5PgAACSA+AANx034AAEKGQgAAAfsiAAB7m3IAABG+ngAABPZyAAASUzoA
AA2DNgAAAfKE=</t:ConversationIndex>
<t:From>
<t:Mailbox>
<t:Name>Hope Gross</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
<t:MailboxType>Mailbox</t:MailboxType>
</t:Mailbox>
</t:From>
<t:InternetMessageId>&lt;[email protected]
amsdf01.sdf.contoso.com&gt;</t:InternetMessageId>
<t:IsRead>true</t:IsRead>
<t:References>&lt;2d4d7d…</t:References>
</t:Message>
</t:Create>
<t:Create>
<t:Message>
<t:ItemClass>IPM.Note</t:ItemClass>
<t:Sensitivity>Normal</t:Sensitivity>
<t:DateTimeReceived>2013-08-
29T15:30:10Z</t:DateTimeReceived>
<t:Size>29518</t:Size>
<t:Importance>Normal</t:Importance>
<t:InReplyTo>&lt;[email protected].
sdf.contoso.com&gt;</t:InReplyTo>
<t:IsSubmitted>false</t:IsSubmitted>
<t:IsDraft>false</t:IsDraft>
<t:IsFromMe>false</t:IsFromMe>
<t:IsResend>false</t:IsResend>
<t:IsUnmodified>false</t:IsUnmodified>
<t:DateTimeSent>2013-08-29T15:30:10Z</t:DateTimeSent>
<t:DateTimeCreated>2013-08-
28T04:07:36Z</t:DateTimeCreated>
<t:DisplayCc />
<t:HasAttachments>false</t:HasAttachments>
<t:Culture>en-US</t:Culture>
<t:EffectiveRights>
<t:CreateAssociated>false</t:CreateAssociated>
<t:CreateContents>false</t:CreateContents>
<t:CreateHierarchy>false</t:CreateHierarchy>
<t:Delete>true</t:Delete>
<t:Modify>true</t:Modify>
<t:Read>true</t:Read>
<t:ViewPrivateItems>true</t:ViewPrivateItems>
</t:EffectiveRights>
<t:LastModifiedName>Mara Whitley</t:LastModifiedName>
<t:LastModifiedTime>2013-08-
28T04:07:38Z</t:LastModifiedTime>
<t:IsAssociated>false</t:IsAssociated>
<t:WebClientReadFormQueryString>?
ae=Item&amp;a=Open&amp;t=IPM.Note&amp;id=&amp;exvsurl=1</t:W
ebClientReadFormQueryString>
<t:ConversationId
Id="AAQkADkzNjJjODUzLWZhMDMtNDVkMS05ZDdjLWVmMDlkYjQ1Zjc4MwAQAIsBEZp25UpElByL
LUQFH6Q=" />
<t:Sender>
<t:Mailbox>
<t:Name>Mack Chaves</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
<t:MailboxType>Mailbox</t:MailboxType>
</t:Mailbox>
</t:Sender>
<t:IsReadReceiptRequested>false</t:IsReadReceiptRequested>
<t:ConversationIndex>AQHM5WBRiwERmnblSkSUHIstRAUfpJYw9fbSgAAAdm2AAAB6koAAAHT
DgAADl6+AAAbxCYAABm5PgAACSA+AANx034AAEKGQgAAAfsiAAB7m3IAABG+ngAABPZyAAASUzoA
AA2DN</t:ConversationIndex>
<t:From>
<t:Mailbox>
<t:Name>Mack Chaves</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
<t:MailboxType>Mailbox</t:MailboxType>
</t:Mailbox>
</t:From>
<t:InternetMessageId>&lt;[email protected]
amsdf01.sdf.contoso.com&gt;</t:InternetMessageId>
<t:IsRead>true</t:IsRead>
<t:References>namsdf01.sdf.contoso.com&gt;
</t:References>
</t:Message>
</t:Create>
<t:ReadFlagChange>
<t:IsRead>true</t:IsRead>
</t:ReadFlagChange>
<t:Delete>
</t:Delete>
</m:Changes>
</m:SyncFolderItemsResponseMessage>
</m:ResponseMessages>
</m:SyncFolderItemsResponse>
</s:Body>
</s:Envelope>
After you retrieve the list of changed items on the server, update the items on the client.
See also
Mailbox synchronization and EWS in Exchange
Synchronize folders by using EWS in Exchange
Handling synchronization-related errors in EWS in Exchange
Notification subscriptions, mailbox events, and EWS in Exchange
Handling synchronization-related errors
in EWS in Exchange
Article • 09/15/2021 • 2 minutes to read
Find out how to handle synchronization-related errors in applications that you develop
by using the EWS Managed API or EWS in Exchange.
If your application synchronizes items and folders, you might have to handle
synchronization-related errors. You can handle these errors at runtime, or while you are
developing your EWS application. Most of these errors are defined by the
ResponseCodeType enumeration in the EWS Managed API, and the ResponseCode
element in Exchange Web Services (EWS).
ErrorTimeoutExpired Send too many requests. Limiting your batches to 10 items per
batch to avoid getting throttled.
Error Occurs when you try to… Handle it by…
ServiceResponseException Connect to EWS when the Checking connectivity with the server
server is offline or there is and retrying your request later. This
a problem with is likely a transient service error or
connectivity. network error.
See also
Mailbox synchronization and EWS in Exchange
ServiceResponseException
Persistent application settings in EWS in
Exchange
Article • 09/15/2021 • 5 minutes to read
Learn about the different options that your EWS Managed API or EWS application can
use to create persistent custom application settings in Exchange.
The easiest way to keep custom client configurations in sync for a mailbox, or folders
and items in a mailbox, is to store application settings on an Exchange server. You can
ensure that those settings persist for a mailbox by using one of the following:
Extended properties
Custom items
Item An extended property on an existing Any EWS application. Only EWS clients that
item. know the property identifier can access an
extended property.
User configuration objects are accessed differently than the other item types stored in a
mailbox. You can use the Folder.FindItems EWS Managed API method or the
FindItem EWS operation to find all items, but you must use the Associated search
traversal option to find user configuration objects. The Associated search traversal
indicates that the search results should contain only user configuration objects. EWS
includes a set of operations that are specific to user configuration objects.
Table 1. EWS operations and EWS Managed API methods for working with user
configuration objects
In order to… Use this EWS operation Use this EWS Managed API
method
object operation
object operation
UserConfiguration.Load
object operation
object operation
7 Note
User configuration objects created by using EWS have an ItemClass prefix that
starts with "IPM.Configuration.". The ItemClass of a user configuration object is the
user configuration object prefix and your user configuration object name. You can
use the Item.ItemClass EWS Managed API property or the ItemClass EWS
element to search for user configuration objects that you've defined.
Extended properties
Use Extended properties if you want to store configuration information on items. EWS,
unlike MAPI, does not return a property bag for items. This means that an EWS client
must know the extended property identifier in order to find and access the extended
property. If you need to store configuration information on items other than user
configuration objects, using extended properties to create custom properties might be
the solution for you. Extended properties enable you to access and store information on
properties that are not part of the standard property set for an item.
) Important
The Exchange database schema has a finite number of properties. The maximum
number of property identifiers for an Exchange database is 32,767. If you are using
extended properties to store many settings, we suggest that you use a single
extended property to store those settings so that you don't exceed this maximum.
You can use the Item.Update EWS Managed API method or the UpdateItem EWS
operation to set extended properties on user configuration objects.
Custom items
Custom items can also be used to store information. The existing item properties can be
repurposed to contain configuration information. Or, you can use extended properties
to define your own properties for you application. Using custom items to store
configuration provides the following benefits:
If you don't use extended properties on the item, the budget of Exchange
properties is not charged.
Most users are not aware of and typically don't access the root mailbox folder. This
folder is identified by the WellKnownFolderName.root value in the EWS Managed API.
In MAPI terms, this is the equivalent of the non-IPM subtree of a mailbox. Information
that end users don't access directly is stored in the root mailbox folder. You might want
to store your application setting in this folder because client applications do not
typically access it.
Version differences
User configuration objects are available on Exchange Online, Exchange Online as part of
Office 365, and versions of Exchange starting with Exchange 2010.
See also
Manage persistent application settings by using EWS in Exchange
Learn how to create, find, get, update, and delete persistent application settings by
using the EWS Managed API or EWS in Exchange.
User configuration objects are the best option for storing configuration settings for your
Exchange client application, primarily because they are hidden from search results in
most client applications. Client applications typically hide these settings because the end
user doesn't need to see them, and so that the user doesn't accidentally access this
information. The code examples in this article show you how you can use user
configuration objects to manage persistent settings, including how to create, find, get,
update, and delete persistent application settings that are stored in user configuration
objects.
C#
configDrafts.BinaryData = binaryData;
// Name and save the user configuration object on the Drafts folder.
configDrafts.Save("ContosoDraftSettings", WellKnownFolderName.Drafts);
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:CreateUserConfiguration>
<m:UserConfiguration>
<t:UserConfigurationName Name="ContosoDraftSettings">
</t:UserConfigurationName>
<t:BinaryData>iVBORw0KGH5UhKquRSzaeAAAAAElFTkSuQmCC</t:BinaryData>
</m:UserConfiguration>
</m:CreateUserConfiguration>
</soap:Body>
</soap:Envelope>
The response XML is simple and indicates whether the create request was successful
or whether an error occurred.
C#
private static void FindAssociated(ExchangeService service)
// Request only the properties that you need. Because all the results
will be user configuration
ItemSchema.ItemClass);
view.PropertySet = props;
view.Traversal = ItemTraversal.Associated;
// Send the request to search the Drafts folder for all the user
configuration objects
FindItemsResults<Item> findResults =
service.FindItems(WellKnownFolderName.Drafts, view);
The following example shows the request XML for finding user configuration objects.
This is the same XML that is generated by the EWS Managed API example.
XML
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:FindItem Traversal="Associated">
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:ItemShape>
<m:ParentFolderIds>
</m:ParentFolderIds>
</m:FindItem>
</soap:Body>
</soap:Envelope>
The following example shows the successful response XML for finding user
configuration objects. This is the same XML that is processed by the EWS Managed API
example. Note the following in this response XML:
The two user configuration objects are returned as messages. This is because the
FindItem operation returns all items that are not defined in the EWS schema as
message items.
The ItemClass properties for the two user configuration objects are different. The
first user configuration object was created by using EWS. The second object was
created by another API.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="800"
MinorBuildNumber="5"
Version="V2_6"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:FindItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:FindItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:RootFolder IndexedPagingOffset="2"
TotalItemsInView="2"
IncludesLastItemInRange="true">
<t:Items>
<t:Message>
<t:ItemClass>IPM.Configuration.TestConfig</t:ItemClass>
</t:Message>
<t:Message>
<t:ItemClass>IPM.Microsoft.FolderDesign.NamedView</t:ItemClass>
</t:Message>
</t:Items>
</m:RootFolder>
</m:FindItemResponseMessage>
</m:ResponseMessages>
</m:FindItemResponse>
</s:Body>
</s:Envelope>
// Results in a call to EWS. You can also use the Load method to get the
latest
"TestConfig",
WellKnownFolderName.Drafts,
UserConfigurationProperties.All);
if (usrConfig.XmlData != null)
Console.WriteLine("XmlData: " +
Encoding.UTF8.GetString(usrConfig.XmlData));
if (usrConfig.BinaryData != null)
Console.WriteLine("BinaryData: " +
Encoding.UTF8.GetString(usrConfig.BinaryData));
if (usrConfig.Dictionary.Count > 0)
usrConfig.Dictionary.Add("Key5", 1);
if (usrConfig.IsDirty)
usrConfig.Update();
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetUserConfiguration>
<m:UserConfigurationName Name="TestConfig">
</m:UserConfigurationName>
<m:UserConfigurationProperties>All</m:UserConfigurationProperties>
</m:GetUserConfiguration>
</soap:Body>
</soap:Envelope>
The following example shows the successful response XML for getting a user
configuration objects. The response contains a data dictionary. This is the same XML
that is processed by the EWS Managed API example.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="800"
MinorBuildNumber="5"
Version="V2_6"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetUserConfigurationResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetUserConfigurationResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:UserConfiguration>
<t:UserConfigurationName Name="TestConfig">
</t:UserConfigurationName>
<t:Dictionary>
<t:DictionaryEntry>
<t:DictionaryKey>
<t:Type>String</t:Type>
<t:Value>Key1</t:Value>
</t:DictionaryKey>
<t:DictionaryValue>
<t:Type>Integer32</t:Type>
<t:Value>1</t:Value>
</t:DictionaryValue>
</t:DictionaryEntry>
<t:DictionaryEntry>
<t:DictionaryKey>
<t:Type>String</t:Type>
<t:Value>PhoneNumber</t:Value>
</t:DictionaryKey>
<t:DictionaryValue>
<t:Type>String</t:Type>
<t:Value>555-555-1111</t:Value>
</t:DictionaryValue>
</t:DictionaryEntry>
</t:Dictionary>
</m:UserConfiguration>
</m:GetUserConfigurationResponseMessage>
</m:ResponseMessages>
</m:GetUserConfigurationResponse>
</s:Body>
</s:Envelope>
The following example shows the request XML for updating a user configuration object.
The request states that all configurations should be returned in the response. This is the
same XML that is generated by the EWS Managed API example that calls the
UserConfiguration.Update method. You can see that the update XML contains the
existing dictionary entries and the additional one that was added before the update.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:UpdateUserConfiguration>
<m:UserConfiguration>
<t:UserConfigurationName Name="TestConfig">
</t:UserConfigurationName>
<t:Dictionary>
<t:DictionaryEntry>
<t:DictionaryKey>
<t:Type>String</t:Type>
<t:Value>Key1</t:Value>
</t:DictionaryKey>
<t:DictionaryValue>
<t:Type>Integer32</t:Type>
<t:Value>1</t:Value>
</t:DictionaryValue>
</t:DictionaryEntry>
<t:DictionaryEntry>
<t:DictionaryKey>
<t:Type>String</t:Type>
<t:Value>PhoneNumber</t:Value>
</t:DictionaryKey>
<t:DictionaryValue>
<t:Type>String</t:Type>
<t:Value>555-555-1111</t:Value>
</t:DictionaryValue>
</t:DictionaryEntry>
<t:DictionaryEntry>
<t:DictionaryKey>
<t:Type>String</t:Type>
<t:Value>Key5</t:Value>
</t:DictionaryKey>
<t:DictionaryValue>
<t:Type>Integer32</t:Type>
<t:Value>1</t:Value>
</t:DictionaryValue>
</t:DictionaryEntry>
</t:Dictionary>
</m:UserConfiguration>
</m:UpdateUserConfiguration>
</soap:Body>
</soap:Envelope>
The response XML is simple and indicates whether the update was successful or
whether an error occurred.
Delete an application setting by using the EWS
Managed API
You can use the UserConfiguration.Delete EWS Managed API method to delete user
configuration objects. The following code example shows you how to delete the
ContosoDraftSettings user configuration object by using the EWS Managed API.
C#
"ContosoDraftSettings",
WellKnownFolderName.Drafts,
UserConfigurationProperties.Id);
usrConfig.Delete();
The following example shows the request XML for deleting a user configuration object
named ContosoDraftSettings that was applied to the Drafts folder. This is the same XML
that is generated by the EWS Managed API example.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:DeleteUserConfiguration>
<m:UserConfigurationName Name="ContosoDraftSettings">
</m:UserConfigurationName>
</m:DeleteUserConfiguration>
</soap:Body>
</soap:Envelope>
The response XML is simple and indicates whether the delete request was a success or
whether an error occurred.
See also
Persistent application settings in EWS in Exchange
EWS client design overview for Exchange
Develop web service clients for Exchange
People and contacts in EWS in Exchange
Article • 01/15/2020 • 6 minutes to read
Learn about personas, the Unified Contact Store, and how to work with contacts by
using the EWS Managed API or EWS in Exchange.
Contacts are items in Exchange that store information about an individual, group, or
organization. Contacts can include names and email addresses, and other information,
including IM addresses, physical addresses, birthdays, family information, and a photo or
image that represents the contact.
Active Directory Domain Services (AD DS), if the contact is within the organization.
The Contacts folder or another folder in a user's mailbox, if the contact is outside
the organization.
Multiple contact items can represent a single individual. Exchange uses personas to help
bring these different contact items together. A persona is an aggregation of contact
information for the same individual from different sources. In addition to contact
information in Exchange, personas can also be aggregated from information in the
recipient cache for the mailbox, a hidden folder for IM contacts called QuickContacts,
and from third-party data sources. The Unified Contact Store in Exchange enables IM
clients to use this aggregation; the only difference is that the Unified Contact Store does
not aggregate information from AD DS, as shown in Figure 1.
Figure 1. Contact information sources for personas and for the Unified Contact Store
Table 1. EWS Managed API methods and EWS operations for working with contacts
If you want Use this EWS Managed API method Use this EWS
to… operation
contact Contact.Save
Copy a Contact.Copy
CopyItem
contact
Move a Contact.Move
MoveItem
contact
existing
contact
contact
contact
Expand a ExchangeService.ExpandGroup
ExpandDL
distribution
group
Resolve an ExchangeService.ResolveName
ResolveNames
ambiguous
name
photos Contact.RemoveContactPicture
Personas
Until recently, contacts were commonly stored in a single location — typically, on an
email client. Today, it is becoming more common to store contacts in many different
locations, such as on a phone, on a social networking site, in a Contacts folder in an
Exchange mailbox, or in an organization's directory service. With the proliferation of
contact information, it's possible that multiple contacts that represent the same person
contain different information; for example, one contact might include a business phone
number and another a personal phone number, or a contact stored in a Contacts folder
might have a different name than the contact for the same person that is stored on your
phone.
In Exchange Online, Exchange Online as part of Office 365, and on-premises versions of
Exchange starting with Exchange 2013, contacts from different sources that represent
the same person are associated with one another, similar to the way that email
messages are aggregated into conversations, by means of a common link ID. When
aggregated contact information is returned by an Exchange server, it includes a set of
attributes for each contact, such as a source folder, a display name, an ID, and a source
ID. The sum of the properties and attributes returned is known as a persona, and the set
of properties returned is referred to as the persona's shape .
Because the information that makes up a persona is not stored in a single location, and
because that information can change at any time, a persona is created only when you
make a request to an Exchange server. You use the FindPeople EWS operation to
make a persona search request. Your request can include a sort order, and can be
filtered according to a query string to help you find the correct persona by ordering and
filtering the results. For example, you can retrieve the display name and a set of all email
addresses that are associated with a specific contact from the Contacts folder, a Hotmail
account, a LinkedIn account, and a company's directory service, or you can retrieve a set
of all personas that have IM addresses. The linking of contacts into personas is
automatic based on an algorithm that recognizes a relationship between contacts stored
on various devices.
7 Note
Operation Description
name
FindPeople Returns all available personas from a specified contacts folder or retrieves
contacts that match a specified query string.
GetPersona Returns a set of properties associated with a specific persona, such as all the IM
addresses or display names for a specified persona ID.
You can use the GetPersona and FindPeople operations to efficiently retrieve contact
information from multiple sources. Because all items related to a persona are associated
with a link ID, you can use these operations in a wide variety of applications that use
contact data. The following are some examples:
A mobile phone app that uses the GetPersona operation when a user calls a
contact, and then offers additional phone numbers to call if no one answers.
An application that uses the FindPeople operation to scan Inbox messages for
email addresses to determine whether they are found in an existing persona.
Addresses that are not already associated with a persona can be used to create
sales leads or list all recent communications with the person represented by that
persona.
A mail app for Outlook that offers different salutations based on whether
correspondence is formal or informal. Formal salutations are supplied by the
display names from the directory service and informal salutations come from the
display name that originates in social network contacts.
How can I provision Lync client applications with a default set of IM contact items?
The Unified Contact Store works behind the scenes in Exchange to aggregate contact
data from Exchange and other sources into a single entity, or persona. Although the
EWS operations that you use to access the Unified Contact Store are specific to IM
contacts, You can use the Unified Contact Store in Exchange to work with personas in all
types of applications. Keep in mind that the Unified Contact Store cannot access contact
data AD DS.
IM contacts are stored in a hidden folder called QuickContacts. You can use the
AddNewImContactToGroup and AddImContactToGroup operations to add contacts to
groups that are stored in this hidden folder. And because you can use the Unified
Contact Store to group IM contacts, you can access and update groups of contacts more
easily.
7 Note
The EWS Managed API does not implement this functionality.
AddNewImContactToGroup
Adds a new IM contact to an IM group, up to a
maximum of 1000 contacts.
AddImGroup
Adds a new IM group, up to a maximum of 64 groups.
AddDistributionGroupToImList
Adds a new distribution group to an IM group, up to a
maximum of 64 groups.
GetImItemList
Retrieves a list of IM groups and IM contact personas.
GetImItems
Retrieves information about specific IM groups and IM
contact personas.
RemoveContactFromImList
Removes a contact from an IM group.
RemoveImContactFromGroup
Removes an IM contact from an IM group.
SetImGroup
Changes the display name of an IM group.
In this section
Process contacts in batches by using EWS in Exchange
See also
Develop web service clients for Exchange
Learn how to create, get, update, and delete batches of contacts in a single call by using
the EWS Managed API or EWS in Exchange.
You can use the EWS Managed API or EWS to work with batches of contacts to reduce
the number of calls a client makes to an Exchange server. When you use the EWS
Managed API to create, get, update, and delete contacts in batches, you use
ExchangeService object methods, whereas when you work with single contacts, you
use Contact object methods. If you are using EWS, you use the same operations to
work with both a single contact and batches of contacts.
Table 1. EWS Managed API methods and EWS operations for working with batches of
contacts
In order to… Use this EWS Managed API method Use this EWS
operation
batches
batches ExchangeService.LoadPropertiesForItems
batches
batches
In this article, you'll learn how to complete basic tasks for batches of contacts by using
the EWS Managed API or EWS.
contact1.EmailAddresses[EmailAddressKey.EmailAddress1] = new
EmailAddress("[email protected]");
contact2.EmailAddresses[EmailAddressKey.EmailAddress1] = new
EmailAddress("[email protected]");
contact3.EmailAddresses[EmailAddressKey.EmailAddress1] = new
EmailAddress("[email protected]");
// Add the Contact objects to a collection.
ServiceResponseCollection<ServiceResponse> response =
service.CreateItems(contactItems, WellKnownFolderName.Contacts, null, null);
try
itemIds.Add(contact.Id);
// Print out the exception and the last eight characters of the
item ID.
if (response.OverallResult == ServiceResult.Success)
Console.WriteLine("\r\n");
// If the method did not return success, print the result message for
each contact.
else
int counter = 1;
// Print out the result and the last eight characters of the
item ID.
Console.WriteLine("\r\n");
counter++;
return itemIds;
XML
<soap:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:CreateItem>
<m:SavedItemFolderId>
</m:SavedItemFolderId>
<m:Items>
<t:Contact>
<t:DisplayName>Sadie Daniels</t:DisplayName>
<t:EmailAddresses>
<t:Entry Key="EmailAddress1">[email protected]</t:Entry>
</t:EmailAddresses>
</t:Contact>
<t:Contact>
<t:DisplayName>Alfred Welker</t:DisplayName>
<t:EmailAddresses>
<t:Entry Key="EmailAddress1">[email protected]</t:Entry>
</t:EmailAddresses>
</t:Contact>
<t:Contact>
<t:DisplayName>Hope Gross</t:DisplayName>
<t:EmailAddresses>
<t:Entry Key="EmailAddress1">[email protected]</t:Entry>
</t:EmailAddresses>
</t:Contact>
</m:Items>
</m:CreateItem>
</soap:Body>
</soap:Envelope>
C#
ServiceResponseCollection<GetItemResponse> response =
service.BindToItems(itemIds, propSet);
try
contactItems.Add(contact);
if (response.OverallResult == ServiceResult.Success)
Console.WriteLine("\r\n");
return contactItems;
XML
<soap:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetItem>
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:ItemShape>
<m:ItemIds>
<t:ItemId Id="ceJwVAAA="
ChangeKey="EQAAABYAAAD2WuN+TpqwSrNP9JCCMKC0AAFc51yS" />
<t:ItemId Id="ceJwWAAA="
ChangeKey="EQAAABYAAAD2WuN+TpqwSrNP9JCCMKC0AAFc51yT" />
<t:ItemId Id="ceJwXAAA="
ChangeKey="EQAAABYAAAD2WuN+TpqwSrNP9JCCMKC0AAFc51yU" />
</m:ItemIds>
</m:GetItem>
</soap:Body>
</soap:Envelope>
The server responds to the GetItem request with a GetItemResponse message that
includes the ID and the display name for each of the requested contacts.
This example assumes that service is a valid ExchangeService object and that the user
has been authenticated to an Exchange server.
C#
contact.CompanyName = "Contoso";
ServiceResponseCollection<UpdateItemResponse> response =
service.UpdateItems(contactItems, WellKnownFolderName.Contacts,
ConflictResolutionMode.AutoResolve, null, null);
if (response.OverallResult == ServiceResult.Success)
else
int counter = 1;
Console.WriteLine("ErrorMessage: {0}\r\n",
resp.ErrorMessage);
counter++;
return contactItems;
XML
<soap:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:UpdateItem ConflictResolution="AutoResolve">
<m:SavedItemFolderId>
</m:SavedItemFolderId>
<m:ItemChanges>
<t:ItemChange>
<t:ItemId Id="ceJwVAAA="
ChangeKey="EQAAABYAAAD2WuN+TpqwSrNP9JCCMKC0AAFc51yS" />
<t:Updates>
<t:SetItemField>
<t:Contact>
<t:CompanyName>Contoso</t:CompanyName>
</t:Contact>
</t:SetItemField>
</t:Updates>
</t:ItemChange>
<t:ItemChange>
<t:ItemId Id="ceJwWAAA="
ChangeKey="EQAAABYAAAD2WuN+TpqwSrNP9JCCMKC0AAFc51yT" />
<t:Updates>
<t:SetItemField>
<t:Contact>
<t:CompanyName>Contoso</t:CompanyName>
</t:Contact>
</t:SetItemField>
</t:Updates>
</t:ItemChange>
<t:ItemChange>
<t:ItemId Id="ceJwXAAA="
ChangeKey="EQAAABYAAAD2WuN+TpqwSrNP9JCCMKC0AAFc51yU" />
<t:Updates>
<t:SetItemField>
<t:Contact>
<t:CompanyName>Contoso</t:CompanyName>
</t:Contact>
</t:SetItemField>
</t:Updates>
</t:ItemChange>
</m:ItemChanges>
</m:UpdateItem>
</soap:Body>
</soap:Envelope>
C#
ServiceResponseCollection<ServiceResponse> response =
service.DeleteItems(itemIds, DeleteMode.SoftDelete, null,
AffectedTaskOccurrence.AllOccurrences);
if (response.OverallResult == ServiceResult.Success)
else
XML
<soap:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:DeleteItem DeleteType="SoftDelete"
AffectedTaskOccurrences="AllOccurrences">
<m:ItemIds>
<t:ItemId Id="ceJwYAAA="
ChangeKey="EQAAABYAAAD2WuN+TpqwSrNP9JCCMKC0AAFc51yY" />
<t:ItemId Id="ceJwZAAA="
ChangeKey="EQAAABYAAAD2WuN+TpqwSrNP9JCCMKC0AAFc51yZ" />
<t:ItemId Id="ceJwaAAA="
ChangeKey="EQAAABYAAAD2WuN+TpqwSrNP9JCCMKC0AAFc51ya" />
</m:ItemIds>
</m:DeleteItem>
</soap:Body>
</soap:Envelope>
To verify the success of a batch process by using the EWS Managed API, you can check
that the OverallResult property of the ServiceResponseCollection is equal to
ServiceResult.Success . If so, all the contacts were processed successfully. If the
OverallResult is not equal to ServiceResult.Success, one or more of the contacts were
not processed successfully. Each of the objects returned in the
ServiceResponseCollection contains the following properties:
ErrorCode
ErrorDetails
ErrorMessage
ErrorProperties
Result
These properties contain information about why the contacts could not be processed as
requested. The examples in this article print out the Result, ErrorCode, and
ErrorMessage for each failed contact. You can use these results to investigate the issue.
For EWS, to verify the success of a batched process, check the ResponseClass attribute
for each item being processed. The following is the basic structure of the
ResponseMessageType, the base type from which all response messages are derived.
XML
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</ResponseMessage>
The ResponseClass attribute is set to Success if the contact was processed successfully,
or Error if the contact was not processed successfully. For contacts, you will not
encounter a Warning during batch processing. If the ResponseClass is Success, the
ResponseCode element that follows is also always set to NoError. If the
ResponseClass is Error, you need to check the values of the MessageText ,
ResponseCode, and MessageXml elements to determine what caused the problem.
DescriptiveLinkKey is currently unused.
See also
People and contacts in EWS in Exchange
Learn how to use the EWS Managed API or EWS to resolve ambiguous names by getting
possible matches from Active Directory Domain Services (AD DS) or a contacts folder in
your user's mailbox.
A user in your organization is given a hand-written list of names and addresses for
employees that attended a training session. They want to send an email with some
additional information to people on the list, but they can't read everyone's email
address. If you want to solve this problem for your users in your application, EWS can
help. You can use the ExchangeService.ResolveName EWS Managed API method or
the ResolveNames EWS operation to return a list of potential matches for a selection
of text, such as part of a last name. The returned items can be public user mailboxes,
distribution groups, and contacts.
Note that Exchange saves email addresses with prefixed routing types, such as smtp or
sip, in a multivalue array. The ResolveName method and the ResolveNames operation
perform a partial match against each value of that array when you add the routing type
at the beginning of the unresolved name, such as "sip:User1". If you don't specify a
routing type, the method or operation will default to smtp, match it to a primary smtp
address property, and not search the multivalue array. For example, if you search for
User1 and do not include the sip prefix, you will not receive sip:[email protected] as
a result, even if that is a valid mailbox.
You can only specify one ambiguous name in a single request. If you have a list of
ambiguous names to resolve, you will need to loop through the list and call the method
or operation for each entry. Candidates from a user's Contacts folder will have a non-
null item ID value, which can then be used in a Contact.Bind method call or GetItem
operation request to retrieve additional information. If the candidate is a distribution
group, you can use the ExpandGroup(ItemId) EWS Managed API method or the
ExpandDL EWS operation to get the list of members. If the returnContactDetails
parameter or the ReturnFullContactData EWS attribute is set to true, Active Directory
entries returned via a ResolveName method or ResolveNames operation will include
additional properties that describe the contact. The returnContactDetails parameter or
the ReturnFullContactData attribute does not affect the data that is returned for
contacts and contact groups.
Resolve ambiguous names by using EWS
Managed API
You can use the ResolveName method to find candidates that match the ambiguous
name you pass. You can use overloads of the ResolveName method to search for
candidates in five different ways.
ResolveName(String) Finds contacts in the user's Contacts folder and the Global
Address List (GAL) — in that order. The string variable is the
ambiguous name you are trying to resolve.
ResolveName(String, Finds contacts in the default Contacts folder and/or the Global
ResolveNameSearchLocation, Address List (GAL). The string value is the ambiguous name, the
Boolean) search location specifies the Contacts folder and/or the GAL, and
the Boolean value indicates whether to return the full contact
information.
ResolveName(String, Finds contacts in the Global Address List (GAL) and/or in specific
IEnumerable<FolderId>, contact folders. This method enables you to set the properties
ResolveNameSearchLocation, that are returned.
Boolean, PropertySet)
Let's start with a simple example. The following example shows how to resolve the text
string "dan" and output the name and email address of each candidate found. This
example assumes that service is a valid ExchangeService object and that the user has
been authenticated to an Exchange server.
C#
The response returns a maximum of 100 candidates, although there might be more than
100 potential candidates. To determine whether only the first 100 candidates of a larger
number of candidates were returned, check the value of IncludesAllResolutions in the
NameResolutionCollection object. If the value is true, there are no more possible
candidates; if the value is false, the method only returned the first 100 of a larger
number of potential candidates.
If you work in a large organization, it's likely that a name like "dan" will return the
maximum number of 100 candidates. To reduce the number of candidates returned,
limit where you search. The next example uses the ResolveNameSearchLocation
enumeration to specify where to search to resolve the ambiguous name.
C#
If you store your contacts in a folder other than the well-known Contacts folder, use one
of the overloaded methods to specify where to look for candidates. The following
example creates a folder list for the ResolveName method based on the folder ID. The
FolderId has been shortened for readability.
C#
folders.Add(new FolderId("AABR8mboAAA="));
If you apply filters and no candidates are returned, the NameResolutionCollection will
contain zero entries. You can verify this by looking at the Count property of the
collection.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<ResolveNames
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
ReturnFullContactData="true">
<UnresolvedEntry>Sadie</UnresolvedEntry>
</ResolveNames>
</soap:Body>
</soap:Envelope>
The response returns a maximum of 100 candidates, although there might be more than
100 potential candidates To determine whether only the first 100 candidates of a larger
number of candidates were returned, check the value of the IncludesLastItemInRange
attribute of the ResolutionSet element. If the value is true, there are no more possible
candidates; if the value is false, the operation only returned the first 100 of a larger
number of potential candidates.
The following example shows the XML response when one candidate is found.
Remember, the ResolutionSet can contain up to 100 candidates, each one represented
by the Resolution element and its child elements.
XML
<soap:Envelope xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<ResolveNamesResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:ResolveNamesResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:ResolutionSet TotalItemsInView="1"
IncludesLastItemInRange="true">
<t:Resolution>
<t:Mailbox>
<t:Name>Sadie Daniels</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
<t:MailboxType>Mailbox</t:MailboxType>
</t:Mailbox>
<t:Contact>
<t:DisplayName>Sadie Daniels</t:DisplayName>
<t:EmailAddresses>
<t:Entry
Key="EmailAddress1">SMTP:[email protected]</t:Entry>
</t:EmailAddresses>
<t:ContactSource>ActiveDirectory</t:ContactSource>
</t:Contact>
</t:Resolution>
</m:ResolutionSet>
</m:ResolveNamesResponseMessage>
</m:ResponseMessages>
</ResolveNamesResponse>
</soap:Body>
</soap:Envelope>
You're not always going to come up with candidates for your ambiguous name. The
following example shows the XML response, as an error, when no candidates are found.
XML
<soap:Envelope xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<ResolveNamesResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:ResolveNamesResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorNameResolutionNoResults</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
</m:ResolveNamesResponseMessage>
</m:ResponseMessages>
</ResolveNamesResponse>
</soap:Body>
</soap:Envelope>
See also
People and contacts in EWS in Exchange
Expand distribution groups by using EWS in Exchange 2013
Get user photos by using EWS in
Exchange
Article • 01/15/2020 • 8 minutes to read
Learn how to get user photos that are associated with a mailbox or contact by using the
EWS Managed API or EWS in Exchange.
It's nice to put a face to a name. If your users like to put names to faces, your application
can request an image, typically a photo, from Exchange that represents an email
account. You can get a user photo stored on an Exchange server for a mailbox, or you
can get a contact photo from contacts stored in your mailbox.
You can use several different technologies to get photos from mailboxes or Active
Directory Domain Services (AD DS). The best way to get a photo depends on the type of
contact that you want to get a photo from.
Contact user photo Get a contact user photo by using EWS Managed API
HTML
https://Exchange Server/ews/Exchange.asmx/s/GetUserPhoto?email=email
address&size=size code
7 Note
The HR48x48 size code always returns the AD DS thumbnail image if it is available.
The following example shows how you can use the GET request to retrieve the user
photo for Sadie and save it to your local computer.
C#
HttpWebRequest request =
WebRequest.Create("https://www.contoso.com/ews/exchange.asmx/s/GetUserPhoto?
[email protected]&size=HR240x240")
as HttpWebRequest;
image.Save("Sadie.jpg");
Response Description
code
200 An image is available for the specified email account and the binary image is
contained in the response.
304 The image has not changed since the last time the ETag was returned to the
application.
The following example shows this process. This example assumes that service is a valid
ExchangeService object and that the user has been authenticated to an Exchange
server.
C#
contact.Load(new PropertySet(ContactSchema.Attachments));
if ((attachment as FileAttachment).IsContactPhoto)
attachment.Load();
// Create a file stream and save the contact photo to your computer.
photo.Load(file);
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetUserPhoto>
<m:Email>[email protected]</m:Email>
<m:SizeRequested>HR360x360</m:SizeRequested>
</m:GetUserPhoto>
</soap:Body>
</soap:Envelope>
The following is the XML response. The Base64-encoded photo is contained in the
PictureData element (the content has been shortened for readability).
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetUserPhotoResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<HasChanged>true</HasChanged>
<PictureData>/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAg... wATRRRSuB//2Q==
</PictureData>
</GetUserPhotoResponse>
</s:Body>
</s:Envelope>
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Header>
</soap:Header>
<soap:Body>
<m:ResolveNames ReturnFullContactData="true"
ContactDataShape="AllProperties">
<m:UnresolvedEntry>sadie</m:UnresolvedEntry>
</m:ResolveNames>
</soap:Body>
</soap:Envelope>
A lot of data will be returned in the response. The following example shows only the
data that is relevant to the user photo. The Photo element contains the Base64-encoded
user photo (the content has been shortened for readability).
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:ResolveNamesResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:ResolveNamesResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:ResolutionSet TotalItemsInView="1"
IncludesLastItemInRange="true">
<t:Resolution>
<t:Mailbox>
<t:Name>Sadie Daniels</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
<t:MailboxType>Mailbox</t:MailboxType>
</t:Mailbox>
<t:Contact>
<t:DisplayName>Sadie Daniels</t:DisplayName>
<t:GivenName>Sadie</t:GivenName>
<t:Initials/>
<t:CompanyName>CONTOSO</t:CompanyName>
......
<t:Photo>/9j/4AAQSkZJRgABAQE...qKKKAP/2Q==</t:Photo>
......
</t:Contact>
</t:Resolution>
</m:ResolutionSet>
</m:ResolveNamesResponseMessage>
</m:ResponseMessages>
</m:ResolveNamesResponse>
</s:Body>
</s:Envelope>
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<GetItem
xmlns='https://schemas.microsoft.com/exchange/services/2006/messages'>
<ItemShape>
<t:BaseShape>AllProperties</t:BaseShape>
</ItemShape>
<ItemIds>
<t:ItemId Id="AAAAGECXAAA="
ChangeKey="EQAAABYAAAD2WuN+TpqwSrNP9JCCMKC0AABLzXRv"/>
</ItemIds>
</GetItem>
</soap:Body>
</soap:Envelope>
Look for the HasPicture element to verify that the contact has an associated photo.
Then look through the collection of attachments for one that has a value of true for the
IsContactPhoto element. The following response example shows only the relevant
data. The ID values are shortened for readability.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:Contact>
<t:ItemId Id="AAAAGECXAAA="
ChangeKey="EQAAABYAAAD2WuN+TpqwSrNP9JCCMKC0AABLzXRv"/>
<t:ItemClass>IPM.Contact</t:ItemClass>
<t:Subject>Hope Gross</t:Subject>
<t:Sensitivity>Normal</t:Sensitivity>
......
<t:Attachments>
<t:FileAttachment>
<t:AttachmentId Id="1LGlhgpgoA="/>
<t:Name>ContactPicture.jpg</t:Name>
<t:Size>6260</t:Size>
<t:LastModifiedTime>2011-03-
09T16:55:55</t:LastModifiedTime>
<t:IsInline>false</t:IsInline>
<t:IsContactPhoto>true</t:IsContactPhoto>
</t:FileAttachment>
</t:Attachments>
......
<t:HasPicture>true</t:HasPicture>
</t:Contact>
</m:Items>
</m:GetItemResponseMessage>
</m:ResponseMessages>
</m:GetItemResponse>
</s:Body>
</s:Envelope>
Next, use the GetAttachment operation with the AttachmentId to request the
attachment that has the contact photo. The following example shows the XML request
to get the attachment. The ID is shortened for readability.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<GetAttachment
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<AttachmentShape/>
<AttachmentIds>
<t:AttachmentId Id="1LGlhgpgoA="/>
</AttachmentIds>
</GetAttachment>
</soap:Body>
</soap:Envelope>
The following example shows the XML response with the information about the
attachment you requested. The Content element contains the Base64-encoded string
for the user photo, shortened in this example for readability.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetAttachmentResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetAttachmentResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Attachments>
<t:FileAttachment>
<t:AttachmentId Id="+KsDBEr1LGlhgpgoA="/>
<t:Name>ContactPicture.jpg</t:Name>
<t:Content>/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAg...D//2Q==
</t:Content>
</t:FileAttachment>
</m:Attachments>
</m:GetAttachmentResponseMessage>
</m:ResponseMessages>
</m:GetAttachmentResponse>
</s:Body>
</s:Envelope>
C#
ms.Read(bytes, 0, (int)ms.Length);
file.Write(bytes, 0, bytes.Length);
ms.Close();
See also
People and contacts in EWS in Exchange
Resolve ambiguous names by using EWS in Exchange 2013
Process contacts in batches by using EWS in Exchange
Properties and extended properties in EWS in
Exchange
Article • 01/15/2020 • 10 minutes to read
Discover how you can define and access properties on items and folders by using EWS in Exchange.
An Exchange mailbox contains a large number of items, including email messages, appointments,
meetings, and so on. Those items are made up of properties; the properties describe the items. You can
use item properties to perform a search, synchronize item changes, and create custom property types .
This article provides an overview of properties and how you can work with properties in your application.
A ChangeKey property that contains stateful information about whether an item or folder has
changed
All items in a mailbox are stored in the same Exchange database and use the same database schema.
Items are distinguished by a combination of the ItemClass property, property constraints, and the
business logic layers that affect how they are managed in the Exchange store. Table 1 shows how
properties are applied across different item types; in this example, email and appointment items. Both
items have a value for the Subject property. But notice that the IsAllDayEvent property is not set on
the email item, and the IsReadReceiptRequested property is not set on the appointment. Fortunately, you
don't need to know which properties are applicable for each item class; EWS handles this for you.
The EWS schema supports many of the constraints managed by the Exchange database and the business
logic layers between EWS and the Exchange database. The EWS schema applies a defined a set of
properties to each item type. The following are the strongly-typed Exchange database items provided by
EWS:
Email messages
Appointments
Contacts
Distribution lists
Meeting messages
Meeting requests
Meeting responses
Meeting cancellations
Tasks
Post items
Generic items are returned by EWS as email messages. The EWS Managed API implements all these item
types.
7 Note
Response objects are only sent by the client to the server in response to items received from other
people. They do not exist in the Exchange database.
The following factors determine the property set that your application gets from Exchange:
It is important to understand how these different factors affect the data that you can access. As with the
example of the Body property mentioned earlier, some information is conditionally available depending
on various factors. Understanding these factors might save you time by helping you choose the correct
options to access the information you want. To discover which properties are accessible, you will need to
test these factors to determine how to access the properties your application needs. This section
describes how these different factors affect which properties are returned in EWS responses.
IdOnly BasePropertySet.IdOnly value Only the EWS identifier and change key are returned. Unless
the client uses all the properties returned by the AllProperties
or Default shape, use the IdOnly shape and specify additional
properties by using the property path set on the PropertySet
class. Most applications should use the IdOnly response shape
with additional properties specified. This reduces the amount of
unused data that is requested by clients.
Default N/A A set of standard properties for the item type. Only use this
response shape if your application uses all the properties.
AllProperties BasePropertySet.FirstClassProperties A larger set of properties than the Default shape. Although the
value name implies it, this option does not return all properties on an
item. This property set returns the properties that client
applications use most often. If you need additional properties,
you can request them by their property path.
If your application doesn't use all the properties returned with
this response shape, use the IdOnly response shape with
additional properties specified.
Many EWS operations return items and their properties. Regardless of the response shapes that you
specify, different operations can return different property sets. Different item types also return different
properties, depending on the operation and the response shape specified. The following operations use
response shapes to identify which properties to return.
GetConversationItems
ExchangeService.GetConversationItems method
GetFolder
Folder.Bind method
GetItem
Item.Bind method
ExchangeService.BindToItems method
FindConversation
ExchangeService.FindConversation method
FindFolder
Folder.FindFolders method
ExchangeService.FindFolders method
FindItem
Folder.FindItems method
ExchangeService.FindItems method
ResolveNames
ExchangeService.ResolveNames method
SearchMailboxes
ExchangeService.SearchMailboxes method
ExchangeService.BeginSearchMailboxes method
SyncFolderHierarchy
ExchangeService.SyncFolderHierarchy method
SyncFolderItems
ExchangeService.SyncFolderItems method
Property shapes are one, rudimentary way to identify the properties that you want your application to
return. Sometimes, however, your application needs a more refined set of specific properties. For this, you
can use the property path.
FieldUri PathToUnindexedFieldType Types that inherit from The most common property path. FieldUri
ServiceObjectSchema . property paths are specified on a
PropertySet object in the EWS Managed
API. Most EWS properties can be specified
by the FieldUri property path. This is
described by the UnindexedFieldURIType in
the EWS schema.
The FieldUri property path XML looks like
this:
XML<FieldURI
FieldURI="item:Subject"/> This property
path is the equivalent of
ItemSchema.Subject in the EWS Managed
API.
Property path Schema type EWS Managed API Description
type implementation
IndexedFieldUri PathToIndexedFieldType Types that inherit from Identifies dictionary properties that require
ItemSchema . a property index to specify the value to
return. Use this path when a property can
have more than one value. This is described
by the DictionaryURIType property in the
EWS schema. DictionaryURIType property
paths are specified on a PropertySet object
in the EWS Managed API.
The IndexedFieldUri property path XML
looks like this:
XML<IndexedFieldURI
FieldURI="contacts:PhysicalAddress:Street
FieldIndex="Home"/>
As a best practice, when you request properties, use the IdOnly base shape (BasePropertySet.IdOnly in
the EWS Managed API) and then request only the properties your application needs by specifying the
property paths.
Schematized properties
Most of the properties that your EWS client needs are described by the EWS schema. The primary folder
and item type definitions, which contain the property definitions, are found in the types.xsd schema. The
following schema types contain the property definitions for most objects that you can use.
ItemType
Item class
Base item type property set. This type can be created
from a client but is never returned by Exchange.
Exchange returns a MessageType object for all generic
objects.
EWS schema type EWS Managed API Defines the…
type equivalent
MessageType
EmailMessage Email message object property set and the property set
class
for all generic objects.
CalendarItemType
Appointment Calendar item property set; this includes single and
class
recurring appointments.
ContactItemType
Contact class
Contact item property set.
DistributionListType
ContactGroup Personal distribution list property set.
class
MeetingMessageType
MeetingMessage Meeting message type property set.
class
MeetingRequestMessageType
MeetingRequest Meeting request type property set.
class
MeetingResponseMessageType
MeetingResponse Meeting response type property set.
class
TaskType
Task class
Task type property set.
PostItemType
PostItem class
Postitem type property set.
FolderType
Folder class
Folder type property set.
CalendarFolderType
CalendarFolder SearchFolder type property set.
class
ContactsFolderType
ContactsFolder ContactsFolder type property set.
class
SearchFolderType
SearchFolder class SearchFolder type property set.
TasksFolderType
TasksFolder class
TasksFolder type property set.
UserConfigurationType
UserConfiguration UserConfiguration type property set.
class
While the properties in the EWS schema are sufficient for many applications, you can't implement some
scenarios by using only what is described in the schema. For those scenarios, you can extended
properties.
ExtendedProperty class
The extended property definition and The ExtendedPropertyType schema type.
values.
If you want to learn more about how you can use extended properties in your application, you can
explore the following code samples:
MFCMapi
In this section
Provision x-headers by using EWS in Exchange
See also
Start using web services in Exchange
MFCMapi
Provision x-headers by using EWS in
Exchange
Article • 09/15/2021 • 3 minutes to read
Learn how to provision x-headers for a mailbox by using the EWS Managed API or EWS
in Exchange.
X-headers are non-standard headers that are added to the header collection of an email
to communicate information. For example, Exchange stamps messages with the X-MS-
Exchange-Organization-SCL header to indicate the spam confidence level (SCL)
attributed to the email. Email clients like Outlook can use that information to determine
what type of action to take on the email (for example, Outlook can prevent images from
displaying unless the user takes an action).
Exchange adds incoming x-headers to the mailbox schema as a named property the first
time it receives an email with that x-header. The x-header value is not saved on that first
email; however, it is saved on all subsequent emails that include the x-header. For this
reason, your application should provision x-headers before you expect to use them. The
mapping between a named property and an x-header occurs in the transport delivery of
the email to the mailbox. This means that you need to receive the email via transport
delivery; you cannot just save an email that includes the x-header to a mailbox to create
the mapping to a named property.
7 Note
If you find that x-headers aren't being saved, determine whether a transport
agent or header firewall is filtering out your x-headers before they get to the
mailbox.
r
C#
private static void ProvisionCustomXHeaderByEmail(ExchangeService service)
// InternetHeaders property set. The x-header name must match the name
of the x-header sent in the subsequent emails so
"X-Experimental",
MapiPropertyType.String);
email.ToRecipients.Add("[email protected]");
try
email.Send();
if (service.ServerInfo.MajorVersion == 12)
XML
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:CreateItem MessageDisposition="SendOnly">
<m:Items>
<t:Message>
<t:ExtendedProperty>
<t:ExtendedFieldURI DistinguishedPropertySetId="InternetHeaders"
PropertyName="X-Experimental"
PropertyType="String" />
</t:ExtendedProperty>
<t:ToRecipients>
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:ToRecipients>
</t:Message>
</m:Items>
</m:CreateItem>
</soap:Body>
</soap:Envelope>
Version differences
The first time that you provision an x-header in Exchange Online, Exchange Online as
part of Office 365, or an on-premises version of Exchange starting with Exchange Server
2010, the value of a new custom x-header will not be written to the stored message. This
is because the x-header must first be mapped to a named property in the user's
mailbox. The mapping occurs upon the first request to add the named properties. When
a subsequent request to create the named property occurs, the property and value are
stored on the message. In Exchange 2007, the first time an x-header is written to a
mailbox database, a mapping is created for the x-header to a named property across the
mailbox database. When a subsequent request to create the named property occurs, the
x-header is processed and stored for any mailbox in the Exchange 2007 database.
Next steps
This article shows you how to provision an x-header for a single mailbox by sending an
email to a user. You can also provision an x-header for many users by sending a batch
email to a list of recipients in the caller's organization.
See also
Properties and extended properties in EWS in Exchange
Header Firewall
Most EWS client applications will use properties, which means that you will have to
handle property-related errors. You can handle these errors at runtime, or while you are
developing your EWS application.
See also
Properties and extended properties in EWS in Exchange
Learn to manage the response shapes and property sets that are returned by the EWS
managed API and EWS in Exchange.
The Exchange data store provides a flexible storage solution that enables you to store
different items, such as contacts and calendar entries, in the same folder; however, it can
make it difficult to manage the data that is returned from a call to an EWS operation or
an EWS managed API method.
To make it easier to manage the data that is returned by Exchange Online, Exchange
Online as part of Office 365, or version of Excahange starting with Exchange 2013, the
EWS Managed API uses property sets, and EWS uses response shapes. These are
predefined collections that provide the most common properties of a store item. The set
of properties that is returned is determined by the item type. That means that when you
bind an item by using the Exchange Managed API Item.Bind method, you get a
different set of properties depending on the type of item to which you bind. Binding to
a calendar item will return a different set of properties than binding to a contact item.
Likewise, if you are using EWS, the GetItem operation returns a different set of
properties based on the type of item that is returned.
Binding to a folder with the Folder.Bind method or using the GetFolder operation
also returns different sets of properties based on the folder that you request.
ID only BasePropertySet.IdOnly
Returns only the identifier of the item or
folder. Most applications should use this
response shape and specify any additional
properties that are required.
The following table lists the default properties that are returned for each folder by the
FindFolder and GetFolder EWS operations.
Display X X X X X X X X
name
Folder ID X X X X X X X X
Subfolder X X X X X X X X
count
Total count X X X X X X X
Unread X X X X X
count
The following table lists the default properties that are returned for each item type by
the FindItem and GetItem EWS operations.
Body X(1)
CalendarItemType x
CompanyName x
CompleteName x
Property Calendar item Contact item Message item Task item
DateTimeCreated x
DateTimeSent x
DueDate x(2)
EmailAddresses x
End x
FileAs x
From x
HasAttachments x x x x
ImAddresses x
IsAssociated x x
IsDeliveryReceiptRequested x
ItemId x x x x
JobTitle x
LegacyFreeBusyStatus x
Location x
Organizer x
PercentComplete x
PhoneNumbers x
PhysicalAddresses x
Sensitity x
Size x
StartDate x(2)
Status x
Subject x x x
Notes:
1. Included in the response from the GetItem operation. Not included in the
response from the FindItem operation.
2. Only included in the response if the field contains data. Not included in the
response if the field is blank.
You can add additional properties to the property set or include extended properties.
For details, see Properties and extended properties in EWS in Exchange.
ActualWork x
AdjacentMeetingCount x
AdjacentMeetings x
Alias x
AllowNewTimeProposal x
AppointmentReplyTime x
AppointmentSequenceNumber x
AppointmentState x
AssignedTime x
AssistantName x
BccRecipients x
BillingInformation x
BusinessHomePage x x
Property Calendar Contact Message Post Task
item item item item item
CalendarItemType x
Categories x x x x
CcRecipients x
ChangeCount x
Children x
Companies x
CompleteDate x
CompleteName x
ConferenceType x
ConflictingMeetingCount x
ConflictingMeetings x
Contacts x
ContactSource x
ConversationId x x x x x
ConversationIndex x x
ConversationTopic x x
Culture x x x x x
DateTimeCreated x x x x x
DateTimeReceived x x x x x
DateTimeSent x x x x x
DateTimeStamp x
DelegationState x
Delegator x
DeletedOccurrences x
Department x
DirectoryId x
Property Calendar Contact Message Post Task
item item item item item
DirectReports x
DisplayCc x x x x x
DisplayName x
DisplayTo x x x x x
DueDate x
Duration x
EffectiveRights x x x x x
EmailAddresses x
End x
EndTimeZone x
FileAs x
FileAsMapping x
FirstOccurrence x
From x x
Generation x
GivenName x
HasAttachments x x x x x
HasPicture x
ImAddresses x
Importance x x x x x
Initials x
InReplyTo x x x x x
InternetMessageId x x
InternetMessageHeaders x x x x x
IsAllDayEvent x
IsAssociated x x x x x
Property Calendar Contact Message Post Task
item item item item item
IsCancelled x
IsComplete x
IsDeliveryReceiptRequested x
IsDraft x x x x x
IsFromMe x x x x x
IsMeeting x
IsOnlineMeeting x
IsRead x
IsReadReceiptRequested x
IsRecurring x x
IsResend x x x x x
IsResponseRequested x x
IsSubmitted x x x x x
IsUnmodified x x x x x
ItemClass x x x x x
ItemId x x x x x
JobTitle x
LastModifiedName x x x x x
LastModifiedTime x x x x x
LastOccurrance x
LegacyFreeBusyStatus x
Location x
Manager x
MeetingRequestWasSent x
MeetingTimeZone x
MeetingWorkspaceUrl x
Property Calendar Contact Message Post Task
item item item item item
MiddleName x
Mileage x x
ModifiedOccurrances x
MyResponseType x
NetShowUrl x
NickName x
Notes x
OfficeLocation x
OptionalAttendees x
Organizer x
OriginalStart x
Owner x
ParentFolderId x x x x x
PercentComplete x
PhoneNumbers x
PhoneticFirstName x
PhoneticFullName x
PhoneticLastName x
Photo x
PhysicalAddresses x
PostalAddressIndex x
PostedTime x
Profession x
ReceivedBy x
ReceivedRepresenting x
Reccurrence x x
Property Calendar Contact Message Post Task
item item item item item
References x x
ReminderDueBy x x x x x
ReminderIsSet x x x x x
ReminderMinutesBeforeStart x x x x x
ReplyTo x
RequiredAttendees x
Resources x
Sender x x
Sensitivity x x x x x
Size x x x x x
SpouseName x
Start x
StartDate x
StartTimeZone x
Status x
StatusDescription x
Subject x x x x
Surname x
TimeZone x
ToRecipients x
TotalWork x
WebClientEditFormQueryString x x x x x
WebClientReadFormQueryString x x x x x
Notes:
1. Included when binding to an item and in the response from the GetItem
operation . Not included in the result of the Item.FindItems method or the
response from the FindItem operation .
See also
Develop web service clients for Exchange
FindItem operation
GetItem operation
FindFolder operation
GetFolder operation
Public folder access with EWS in
Exchange
Article • 01/15/2020 • 5 minutes to read
Learn about how to use EWS and the EWS Managed API to access public folders and
route public folder requests in Exchange.
Public folders provide a shared repository of items that users in your organization can
access. Office 365, Exchange Online, and on-premises versions of Exchange starting with
Exchange 2013 introduce a new architecture for public folders. Public folders in
Exchange use a specialized mailbox design (instead of a public folder database) to store
the public folder hierarchy and public folder content. Public folder permissions are
managed through Role Based Access Control (RBAC).
Client access technologies, like Exchange Web Services (EWS) and the EWS Managed
API, provide programmatic access to both the public folder hierarchy and content items
in a public folder database. This article provides information about how you can use
EWS and the EWS Managed API to access public folders and public folders and public
folder data.
For information about EWS Managed API methods, see EWS Managed API
namespaces .
CreateFolder operation
Folder.Save()
UpdateFolder operation
Folder.Update()
DeleteFolder operation
Folder.Delete()
MoveFolder operation 1
Folder.Move()
CopyFolder operation 2
Folder.Copy()
GetFolder operation
Folder.Bind()
EmptyFolder operation 3
Folder.Empty()
FindFolder operation
ExchangeService.FindFolders()
Folder.FindFolders()
CreateItem operation
Item.Save()
MoveItem operation
Item.Move()
CopyItem operation
Item.Copy()
UpdateItem operation
Item.Update()
DeleteItem operation
Item.Delete()
FindItem operation 4
ExchangeService.FindItems()
Folder.FindItems()
GetItem operation
Item.Bind()
ConvertId operation 5
ExchangeService.ConvertId()
ExchangeService.ConvertIds()
1
Moving folders between a public folder and private folder is not available in versions
of Exchange starting with Exchange 2013.
2
This operation is only applicable to public folders in Exchange Server 2007 and
Exchange Server 2010.
4 Full text indexed search within a single public folder by means of the QueryString
search option is supported in versions of Exchange starting with Exchange 2013.
5
The ConvertId operation does not correctly convert public folder identifiers from the
EWS identifier to the store identifier. You can manually update the identifier that is
returned as a workaround .
The following operations are not supported, or are partially supported, for public folders
in versions of Exchange starting with Exchange 2013:
CopyFolder (not supported). You can use CreateFolder with the CopyItems
operation to implement CopyFolder operation functionality.
EmptyFolder (not supported). You can use FindItem with the DeleteItem operation
to implement EmptyFolder operation functionality.
MoveFolder (partially supported). You cannot move folders between private and
public folders. You can move folders between private and public folders in
Exchange 2007 and Exchange 2010. You can move folders within a public folder in
all versions of Exchange.
EWS and the EWS Managed API do not support the following functionality for public
folders:
Using the CreateItem operation to save copies of sent email messages. Instead,
use the MoveItem operation to move a copy of the message into a public folder.
The value for the X-AnchorMailbox and X-PublicFolderMailbox can differ depending on
whether you're performing a request related to the folder hierarchy or the folder
content. The following table identifies which procedure to follow for each EWS Managed
API method or EWS operation.
EWS Managed API methods and EWS operations for routing public folder requests
Folder.FindFolders
CreateFolder
Routing public folder hierarchy
Folder.Delete
FindFolder
requests
Folder.Update DeleteFolder
Folder.Move
UpdateFolder
MoveFolder
Item.Bind
CreateItem
Routing public folder content
Item.Update
GetItem
requests
Item.Copy
UpdateItem
Item.Move
CopyItem
Item.Delete
MoveItem
Folder.Bind
DeleteItem
Folder.FindItems
GetFolder
FindItem
Version differences
In Exchange 2007 and Exchange 2010, the ConvertId operation works as expected when
converting public folder identifiers from the EWS identifier to the store identifier.
See also
Develop web service clients for Exchange
All requests for public folder information that require knowledge of the public folder
hierarchy, such as moving, updating, deleting, or finding public folders, need to be
routed to the default public folder hierarchy mailbox for the given user. To route the
requests to that mailbox, you need to set the X-AnchorMailbox and X-
PublicFolderMailbox headers to specific values returned by the Autodiscover service.
X-AnchorMailbox
The 1. Send a GetUserSetting request with the
PublicFolderInformation SMTP address for the user's mailbox.
value from a
GetUserSettings 2. Use the PublicFolderInformation element
Autodiscover SOAP to populate the value of the X-
response, which becomes AnchorMailbox header. The value of the
the value of the X- PublicFolderInformation element is an SMTP
AnchorMailbox header. address.
value from a
GetUserSettings 2. Use the InternalRpcClientServer element
Autodiscover SOAP returned by the Autodiscover service to
response, which becomes populate the value of the X-
the value of the X- PublicFolderMailbox header. The value of
PublicFolderMailbox the X-PublicFolderMailbox element is an
header. SMTP address where the user part of the
address is a GUID.
After you have determined the header values, include them when you make public
folder hierarchy requests.
The steps in this article are specific to public folder hierarchy requests. To determine
whether your request is a public folder hierarchy or content request, see Routing public
folder requests.
C#
After running the code, the following information is displayed on the console:
Now that you have the PublicFolderInformation value, include it as the value for the X-
AnchorMailbox header in all public folder hierarchy requests. The
InternalRpcClientServer value is used for the X-PublicFolderMailbox header. Both
headers are required.
X-AnchorMailbox: [email protected]
X-PublicFolderMailbox: [email protected]
XML
<soap:Envelope
xmlns:a="http://schemas.microsoft.com/exchange/2010/Autodiscover"
xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<a:RequestedServerVersion>Exchange2016</a:RequestedServerVersion>
<wsa:Action>http://schemas.microsoft.com/exchange/2010/Autodiscover/Autodisc
over/GetUserSettings</wsa:Action>
<wsa:To>https://autodiscover-
s.outlook.com/autodiscover/autodiscover.svc</wsa:To>
</soap:Header>
<soap:Body>
<a:GetUserSettingsRequestMessage
xmlns:a="http://schemas.microsoft.com/exchange/2010/Autodiscover">
<a:Request>
<a:Users>
<a:User>
<a:Mailbox>[email protected]</a:Mailbox>
</a:User>
</a:Users>
<a:RequestedSettings>
<a:Setting>PublicFolderInformation</a:Setting>
<a:Setting>InternalRpcClientServer</a:Setting>
</a:RequestedSettings>
</a:Request>
</a:GetUserSettingsRequestMessage>
</soap:Body>
</soap:Envelope>
XML
<UserSetting i:type="StringSetting">
<Name>InternalRpcClientServer</Name>
<Value>[email protected]</Value>
</UserSetting>
<UserSetting i:type="StringSetting">
<Name>PublicFolderInformation</Name>
<Value>[email protected]</Value>
</UserSetting>
Now that you have the PublicFolderInformation value, include it as the value for the X-
AnchorMailbox header in all public folder hierarchy requests. Use the
InternalRpcClientServer value for the X-PublicFolderMailbox header. Both headers are
required.
X-AnchorMailbox: [email protected]
X-PublicFolderMailbox: [email protected]
For more information about the Autodiscover process, see Autodiscover for Exchange,
Generate a list of Autodiscover endpoints, and Get user settings from Exchange by using
Autodiscover.
X-AnchorMailbox: [email protected]
X-PublicFolderMailbox: [email protected]
Public folder calls that require the X-AnchorMailbox and X-PublicFolder headers
Folder.FindFolders
CreateFolder
Folder.Delete
FindFolder
Folder.Update DeleteFolder
Folder.Move
UpdateFolder
MoveFolder
To add these headers by using the EWS Managed API, use the HttpHeaders.Add
method.
C#
service.HttpHeaders.Add("X-AnchorMailbox",
"[email protected]");
service.HttpHeaders.Add("X-PublicFolderMailbox", "1ec2a236-ed93-4f88-b9c6-
[email protected]");
For example, the following code shows a FindFolder request with the X-AnchorMailbox
and X-PublicFolderMailbox header set to the values retrieved in the examples in this
article.
XML
POST https://outlook.office365.com/EWS/Exchange.asmx HTTP/1.1
X-AnchorMailbox: [email protected]
X-PublicFolderMailbox: [email protected]
Host: outlook.office365.com
Content-Length: 1174
Expect: 100-continue
Connection: Keep-Alive
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:FindFolder Traversal="Shallow">
<m:FolderShape>
<t:BaseShape>AllProperties</t:BaseShape>
</m:FolderShape>
<m:Restriction>
<t:IsEqualTo>
<t:FieldURIOrConstant>
</t:FieldURIOrConstant>
</t:IsEqualTo>
</m:Restriction>
<m:ParentFolderIds>
<t:FolderId
Id="AQEuAAADy/LIWjRCp0GFb0W6aGPbwwEARg5aCLUc8k6wLfl1c0a/2AAAAwIAAAA="
ChangeKey="AQAAABYAAABGDloItRzyTrAt+XVzRr/YAABdo/XB" />
</m:ParentFolderIds>
</m:FindFolder>
</soap:Body>
</soap:Envelope>
See also
Public folder access with EWS in Exchange
Route public folder content requests
Get user settings by using the EWS Managed API
Route public folder content requests
Article • 03/04/2022 • 8 minutes to read
All requests for public folder information that involve the content of the public folder
need to be routed to the public folder mailbox that holds the content for the target
folder. To route the requests to that mailbox, you need to set the X-AnchorMailbox and
X-PublicFolderMailbox headers to specific values.
X-AnchorMailbox
1. The X-AnchorMailbox and X- 1. Use the code example in this article,
PublicFolderInformation values which implements the EWS Managed
for the public folder hierarchy API. Or use EWS and convert your
mailbox.
results to obtain a GUID.
After you have determined the header values, include them when you make public
folder content requests.
The steps in this article are specific to public folder content requests. To determine
whether your request is a public folder hierarchy or content request, see Routing public
folder requests.
Determine the GUID of the public folder
mailbox by using the EWS Managed API
To determine the GUID of the public folder content mailbox, use the following code
example, which does the following:
Calls the EWS Managed API FindFolders method, and includes a request for the
PR_REPLICA_LIST (0x66980102) property
The PR_REPLICA_LIST value identifies the mailbox GUID of the public folder mailbox
that has the content for the folder. The PR_REPLICA_LIST property is a byte array, but is
cast as a GUID for this scenario. The GUID and the domain name are concatenated to
form the address on which to call Autodiscover.
This example assumes that service is the ExchangeService object for the mailbox
user, PFHAnchorHeader and PFHMailboxHeader are the values of the X-AnchorMailbox
and X-PublicFolderMailbox headers, and domain is the domain name used by the
tenant.
C#
// Create a new folder view, and pass in the maximum number of folders
to return.
// In this case, return the folder ID, the folder display name, and
service.HttpHeaders.Add("X-AnchorMailbox", PFHAnchorHeader);
service.HttpHeaders.Add("X-PublicFolderMailbox", PFHMailboxHeader);
// ServicePointManager.ServerCertificateValidationCallback =
CertificateValidationCallBack;
FindFoldersResults findResults =
service.FindFolders(WellKnownFolderName.PublicFoldersRoot, view);
// For each folder under the root, display the name, and copy the value
of the
Guids.Add(GuidAsString);
// SMTP address to use for the AutoDiscover request for the public
folder content mailbox.
// Check that all folders have the same GUID value. If they do not, use
the GUID value of the
return null;
else
return AutoDSMTPAddress;
// Method to compare the GUID for each folder under the public folder root.
If you received the error "The request failed. The underlying connection was closed:
Could not establish trust relationship for the SSL/TLS secure channel", you'll need to add
a call to a validation callback method. A placeholder and comment for that method is
included in the code example.
If the mailbox GUID is the same for all the public folders under the public folder root,
the example indicates the address to use when calling Autodiscover in the console
output and as the return value. If the mailbox GUID is not the same for all public folders
under the public folder root, you need to Make an Autodiscover request on the address
associated with the folder in your content request.
This is also the XML request that the EWS Managed API sends when you use the
FindFolders method to determine the GUID of the public folder mailbox by using the
EWS Managed API.
XML
Accept: text/xml
User-Agent: ExchangeServicesClient/15.00.0913.015
Accept-Encoding: gzip,deflate
Authorization: Basic
c29ueWFmQGNvbnRvc28xMDAwLm9ubWljcm9zb2Z0LmNvbTpFWENIIzIwMTQ=
Host: outlook.office365.com
Cookie: ClientId=KZPBLKA9ZMPXAQDW
Content-Length: 1005
Expect: 100-continue
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:FindFolder Traversal="Shallow">
<m:FolderShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:FolderShape>
<m:ParentFolderIds>
</m:ParentFolderIds>
</m:FindFolder>
</soap:Body>
</soap:Envelope>
XML
<s:Header>
</s:Header>
<s:Body>
<m:FindFolderResponse
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:FindFolderResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<t:Folders>
<t:ContactsFolder>
<t:FolderId
Id="AAEuAAAAAADL8shaNEKnQYVvRbpoY9vDAQBGDloItRzyTrAt+XVzRr/YAABdofPkAAA="
ChangeKey="AwAAABYAAABGDloItRzyTrAt+XVzRr/YAABdo/2h"/>
<t:ExtendedProperty>
<t:ExtendedFieldURI PropertyTag="0x6698"
PropertyType="Binary"/>
<t:Value>MWVjMmEyMzYtZWQ5My00Zjg4LWI5YzYtMzNlNjNmYTRhYTQ0AA==</t:Value>
</t:ExtendedProperty>
</t:ContactsFolder>
<t:Folder>
<t:FolderId
Id="AQEuAAADy/LIWjRCp0GFb0W6aGPbwwEARg5aCLUc8k6wLfl1c0a/2AAAAxEAAAA="
ChangeKey="AQAAABYAAABGDloItRzyTrAt+XVzRr/YAABdo/W/"/>
<t:DisplayName>SampleFolder</t:DisplayName>
<t:ExtendedProperty>
<t:ExtendedFieldURI PropertyTag="0x6698"
PropertyType="Binary"/>
<t:Value>MWVjMmEyMzYtZWQ5My00Zjg4LWI5YzYtMzNlNjNmYTRhYTQ0AA==</t:Value>
</t:ExtendedProperty>
</t:Folder>
</t:Folders>
</m:RootFolder>
</m:FindFolderResponseMessage>
</m:ResponseMessages>
</m:FindFolderResponse>
</s:Body>
</s:Envelope>
Argument Description
-auth The mailbox user's email address, which is used for authentication. You will
authEmailAddress be prompted to enter the mailbox user's password when you run the sample.
When you run the Exchange 2013: Get user settings with Autodiscover sample, the last
Autodiscover response should be successful and include all the user settings associated
with the mailbox GUID. Save the AutoDiscoverSMTPAddress user setting locally, as
you'll use that in the next step.
Alternatively, if you do not want to use Exchange 2013: Get user settings with
Autodiscover sample, you can get the AutoDiscoverSMTPAddress user setting by
generating a list of Autodiscover endpoints, and then sending the following POX
Autodiscover request to each URL until you receive a successful response.
XML
<Autodiscover
xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/requestsch
ema/2006">
<Request>
<EMailAddress>1ec2a236-ed93-4f88-b9c6-
[email protected]</EMailAddress>
<AcceptableResponseSchema>https://schemas.microsoft.com/exchange/autodiscove
r/outlook/responseschema/2006a</AcceptableResponseSchema>
</Request>
</Autodiscover>
For more information about the Autodiscover process, see Autodiscover for Exchange,
Generate a list of Autodiscover endpoints, and Get user settings from Exchange by using
Autodiscover.
X-AnchorMailbox: [email protected]
X-PublicFolderMailbox: [email protected]
Public folder calls that require the X-AncorMailbox and X-PublicFolder headers
Item.Bind
CreateItem
Item.Update
GetItem
Item.Copy
UpdateItem
Item.Move
CopyItem
Item.Delete
MoveItem
Folder.Bind
DeleteItem
Folder.FindItems
GetFolder
FindItem
To add these headers by using the EWS Managed API, use the HttpHeaders.Add
method.
C#
service.HttpHeaders.Add("X-AnchorMailbox", "[email protected]");
service.HttpHeaders.Add("X-PublicFolderMailbox",
"[email protected]");
The following code shows a GetFolder request with the X-AnchorMailbox and X-
PublicFolderMailbox header set to the values retrieved in the examples in this article.
XML
User-Agent: SoapSender1.0
X-AnchorMailbox: [email protected]
X-PublicFolderMailbox: [email protected]
Authorization: Basic
c29ueWFmQGNvbnRvc28xMDAwLm9ubWljcm9zb2Z0LmNvbTpFWENIIzIwMTQ=
Host: outlook.office365.com
Content-Length: 688
Expect: 100-continue
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetFolder>
<m:FolderShape>
<t:BaseShape>AllProperties</t:BaseShape>
</m:FolderShape>
<m:FolderIds>
</m:FolderIds>
</m:GetFolder>
</soap:Body>
</soap:Envelope>
See also
Public folder access with EWS in Exchange
Autodiscover for Exchange
Generate a list of Autodiscover endpoints
Get user settings from Exchange by using Autodiscover
Search and EWS in Exchange
Article • 06/14/2022 • 9 minutes to read
Find out how to search for items in Exchange by using the EWS Managed API or EWS.
Does this sound familiar? You're finally starting that project you've been putting off for
weeks, and you need information about the project that your manager sent you in email
weeks ago. Your Inbox has hundreds or perhaps thousands of messages in it. What do
you do? Do you scroll through your email scanning each subject and sender until you
find it? Or do you use the search feature in your favorite email client to quickly zero in
on what you need?
Search is arguably a must-have feature for any email client. But search can be used for a
lot more than just enabling users to search their mailbox. Does your app need to
process appointments that fall within specific time windows? Maybe you need to report
on all task items with a specific status, or move all contacts with a specific company
name to a different folder. Search can help with all of these requirements.
Search basics
The EWS Managed API and EWS offer two basic methods for specifying a search. You
can use a search filter or a query string. The method you use depends on the intent
behind your search.
Limit your Search Search filters provide the best level of control over which properties are
search to a filter searched. Although query strings can target a limited set of properties
specific by using Advanced Query Syntax (AQS), search filters can target any
property or property.
set of
properties
Create Search With search filters, multiple search criteria can be joined together with
searches with filter logical ANDs or ORs, allowing for searches like "subject contains
multiple 'Meeting Notes' AND sender equals 'Sadie Daniels'". Although query
criteria strings can also join multiple search criteria, they are limited to the set
of properties supported by query strings.
If you want Use Notes
to… a…
Search Search Search filters can target custom properties. Query strings do not search
custom filter custom properties.
properties
Control the Search Query string searches are always substring searches. If you need to
containment filter search for specific prefixes, or require exact matches, a search filter is
mode when the best choice.
searching
string
properties
Search for Search EWS does not support searching for folders with a query string.
folders filter
Create a Search EWS does not support creating search folders with a query string.
search folder filter
Search across Query Query strings that do not contain AQS will search across all commonly
all commonly string used properties. For example, a query string value of "Mack Chaves" will
used return all messages sent by Mack Chaves as well as any messages that
properties have "Mack Chaves" in the body or subject.
Construct a Query A query string is a great choice for allowing an end user to do a quick
search based string search by typing in a simple string. Because a query string search
on simple includes all commonly used properties, the results will contain any
user input items that contain the user's search terms.
For example, you can search the contents of the subject of items by using the
SearchFilter.ContainsSubstring class in the EWS Managed API. In this example, a
search filter is created to search the subject for the substring "meeting notes", ignoring
case.
C#
You can also search against custom properties. In this example, the custom property
ItemIndex is searched for values greater than 3.
C#
ExtendedPropertyDefinition customPropDefinition =
SearchFilter.IsGreaterThan customPropFilter =
You can also combine multiple search filters to create more complex searches. For
example, you can combine the previous two filters with a logical AND by using the
SearchFilter.SearchFilterCollection class.
C#
SearchFilter.SearchFilterCollection compoundFilter =
new SearchFilter.SearchFilterCollection(LogicalOperator.And,
subjectFilter, customPropFilter);
For example, you can search for "meeting notes" by using the
ExchangeService.FindItems EWS Managed API method.
C#
Let's take a look at how you can refine the query string to get closer to the results you
see from the search filter. Using AQS, you can limit your search to the subject.
C#
This is closer, but the results are still not quite the same. When you use a query string
with multiple words, you will get matches even if the words are not in the order you
specify, or even if they're not adjacent to each other. With the query string
"subject:meeting notes", you will get matches for "meeting notes", "notes from the
meeting", and so on. To further refine, you can wrap the search terms in double quotes
to indicate that you want that phrase only.
C#
C#
// ItemSchema.Id.
Shallow Items Shallow searches are limited to direct children of the folder being
and searched.
Folders
Deep Items Deep searches recursively search the folder being searched and
(only subfolders.
with
search
folders)
and
Folders
Associated Items Associated searches only include associated items from the folder
being searched. Associated items are hidden items within the folder.
SoftDeleted Items This traversal type is deprecated. SoftDeleted searches only include
and items that are in the dumpster. The dumpster has been replaced by the
Folders Recoverable Items Folder in Exchange Online, Exchange Online as part
of Office 365, and versions of Exchange starting with Exchange 2010.
Sorting
You can get the server to return sorted results, which can make it easier to display or
process items in order. In this example, the results will be sorted by the date/time
received, with the newest items being first.
C#
view.OrderBy.Add(ItemSchema.DateTimeReceived, SortDirection.Descending);
Paging
When you send a search request by using the EWS Managed API or EWS, you specify a
view size, which controls the maximum number of items returned. However, the number
of items on the server that match your search might be larger than the view size. In this
case, the server indicates that more items are available. You can use paging to repeat
your search and get the next set of results.
For example, you can send a search request with a view size of 10. There might be 15
items on the server that match your search, but you will only get back the first 10, along
with an indicator (the FindItemsResults<TItem>.MoreAvailable property if you're
using the EWS Managed API) that there are more results on the server. You can then
send the same search with an offset of 10 to ask for the next 10 items that match your
search. The server will return the remaining five items.
Grouping
Exchange enables you to group search results by a specific field. This can help break up
search results into more manageable sets. For example, you can search for "meeting
notes" and group the results by sender. As shown in the following figure, the items
returned will be separated into groups, with all the items that match the criteria from
the same sender in one group, all the matching items from another sender in another
group, and so on.
Search folders
With a regular search, the search is executed, the results are returned to your application
for processing, and the search ceases to exist. Search folders provide a way to make a
search persistent. This is a great option for searches that you know you will want to
execute multiple times. Rather than executing the same search repeatedly, causing the
server to evaluate the search from scratch each time, a search folder makes a search
always on, allowing the server to update the existing result set as items are added to or
removed from the search scope. Search folders act like regular folders, in that they
appear as folders that have items in them. The difference is that the only items
contained in the folder are those that match the search criteria that are associated with
the folder. After a search folder is created, your application can get up-to-date results of
the search just by checking the contents of the folder.
Creating a search folder is simple when you've mastered creating search filters. In the
following example, a search folder is created to show all email with a subject that
contains "meeting notes".
C#
searchFolder.SearchParameters.RootFolderIds.Add(WellKnownFolderName.Inbox);
searchFolder.SearchParameters.Traversal = SearchFolderTraversal.Deep;
searchFolder.SearchParameters.SearchFilter = subjectFilter;
searchFolder.Save(WellKnownFolderName.SearchFolders);
In this section
Use search filters with EWS in Exchange
See also
Develop web service clients for Exchange
ExchangeService.FindItems
Find out how to use search filters with the EWS Managed API or EWS in Exchange.
Search filters are the primary tool for expressing search criteria in your EWS Managed
API or EWS application. We recommend that you use search filters, as opposed to query
strings, to do the following:
Search filters are your only option if you are doing any of the following:
Contains ContainsSubstring
Contains
The best filter type to use
filter for string comparisons. It
allows you to control case
sensitivity, whether to
ignore whitespace, and
set the containment
mode.
Filter type EWS Managed API class EWS element Description
Bitmask ExcludesBitmask
Excludes
Allows you to search
filter integer properties as
bitmasks and only return
results that have bits
corresponding to the
specified bitmask unset.
Equality IsEqualTo
IsEqualTo
Compares the value of
filter IsNotEqualTo
IsNotEqualTo
the specified property
with either a specified
constant value or the
value of another property
and return all items that
have an equal value (in
the case of an IsEqualTo
filter) or a non-equal
value (in the case of an
IsNotEqualTo filter).
Relational IsGreaterThan
IsGreaterThan
Returns all items that
testing IsGreaterThanOrEqualTo IsGreaterThanOrEqualTo have a value for the
filter IsLessThan
IsLessThan
specified property in the
IsLessThanOrEqualTo
IsLessThanOrEqualTo
appropriate relation to
either a specified
constant value or another
property. For example, an
IsGreaterThan filter
returns all items that have
a value that is greater
than the specified value
in the specified property.
Negating Not
Not
Negates the result of the
filter other filters.
Compound SearchFilterCollection
And
Combines multiple filters,
filter Or
allowing for more
complex search criteria.
Contains filter
A contains filter is the best choice for searching string properties. With a contains filter,
you can control aspects of string matching, like case sensitivity and how whitespace is
treated, by setting the containment mode and the comparison mode.
C#
// Matches include:
// - meeting notes
// - Meeting Notes
XML
</t:Contains>
Bitmask filter
A bitmask filter enables you to search integer properties as bitmasks, and return results
where specific bits are not set in the value of the specified property.
The following example shows you how to use the EWS Managed API to create a search
filter to return all items that have a value in the ItemIndex custom property (defined in
the Example: Find items by using a search filter and the EWS Managed API section of
this article) that do not have the second bit (10 in binary) set.
C#
// Find all items with a value of the custom property that does not
// Matches include:
// - 1 (0001)
// - 4 (0100)
// - 5 (0101)
// - 8 (1000)
SearchFilter.ExcludesBitmask bit2NotSetFilter =
XML
<t:Excludes>
<t:ExtendedFieldURI PropertySetId="aa3df801-4fc7-401f-bbc1-7c93d6498c2e"
PropertyName="ItemIndex" PropertyType="Integer" />
</t:Excludes>
Exists filter
An exists filter enables you to search for items that have a specific property set on them,
regardless of the value.
Exists filter in the EWS Managed API
The following example shows you how to create a search filter to return all items that
have the ItemIndex custom property set.
C#
SearchFilter.Exists customPropSetFilter =
new SearchFilter.Exists(customPropDefinition);
XML
<t:Exists>
<t:ExtendedFieldURI PropertySetId="aa3df801-4fc7-401f-bbc1-7c93d6498c2e"
PropertyName="ItemIndex" PropertyType="Integer" />
</t:Exists>
Equality filter
Equality filters enable you to search for all items that have a value for the specified
property that either equals a specific value or does not equal a specific value. The value
to compare with can be either a constant value or the value of another property on each
item.
The following example shows you how to use the EWS Managed API to create a search
filter to return all items that have not been read.
C#
SearchFilter.IsEqualTo unreadFilter =
The following example shows you how to create a search filter to return all items that
have a value in the ItemIndex property that is not equal to the size of the item.
C#
SearchFilter.IsNotEqualTo indexNotEqualToSizeFilter =
XML
<t:IsEqualTo>
<t:FieldURIOrConstant>
</t:FieldURIOrConstant>
</t:IsEqualTo>
The following example shows you how to create a search filter to return all items that
have a value in the ItemIndex property that is not equal to the size of the item.
XML
<t:IsNotEqualTo>
<t:ExtendedFieldURI PropertySetId="aa3df801-4fc7-401f-bbc1-7c93d6498c2e"
PropertyName="ItemIndex" PropertyType="Integer" />
<t:FieldURIOrConstant>
</t:FieldURIOrConstant>
</t:IsNotEqualTo>
C#
SearchFilter.IsGreaterThan greaterThanFilter =
SearchFilter.IsGreaterThanOrEqualTo greaterThanOrEqualFilter =
new SearchFilter.IsGreaterThanOrEqualTo(customPropDefinition,
ItemSchema.Size);
SearchFilter.IsLessThan lessThanFilter =
SearchFilter.IsLessThanOrEqualTo lessThanOrEqualFilter =
The following example shows you how to use EWS to create a search filter to return all
items with a value in the ItemIndex property that is greater than the constant value 3.
XML
<t:IsGreaterThan>
<t:ExtendedFieldURI PropertySetId="aa3df801-4fc7-401f-bbc1-7c93d6498c2e"
PropertyName="ItemIndex" PropertyType="Integer" />
<t:FieldURIOrConstant>
</t:FieldURIOrConstant>
</t:IsGreaterThan>
The following example shows you how to create a search filter to return all items with a
value in the ItemIndex property that is greater than or equal to the constant value 3.
XML
<t:IsGreaterThanOrEqualTo>
<t:ExtendedFieldURI PropertySetId="aa3df801-4fc7-401f-bbc1-7c93d6498c2e"
PropertyName="ItemIndex" PropertyType="Integer" />
<t:FieldURIOrConstant>
</t:FieldURIOrConstant>
</t:IsGreaterThanOrEqualTo>
The following example shows you how to create a search filter to return all items with a
value in the ItemIndex property that is less than the constant value 3.
XML
<t:IsLessThan>
<t:ExtendedFieldURI PropertySetId="aa3df801-4fc7-401f-bbc1-7c93d6498c2e"
PropertyName="ItemIndex" PropertyType="Integer" />
<t:FieldURIOrConstant>
</t:FieldURIOrConstant>
</t:IsLessThan>
The following example shows you how to create a search filter to return all items with a
value in the ItemIndex property that is less than or equal to the constant value 3.
XML
<t:IsLessThanOrEqualTo>
<t:ExtendedFieldURI PropertySetId="aa3df801-4fc7-401f-bbc1-7c93d6498c2e"
PropertyName="ItemIndex" PropertyType="Integer" />
<t:FieldURIOrConstant>
</t:FieldURIOrConstant>
</t:IsLessThanOrEqualTo>
Negating filter
A negating filter enables you to negate another filter and get the opposite search
results. While other filters return results that match specific criteria, a negating filter
returns results that do not match the criteria specified by the filter it is applied to.
C#
SearchFilter.Not subjectNotFilter =
new SearchFilter.Not(subjectFilter);
XML
<t:Not>
<t:Contains ContainmentMode="ExactPhrase"
ContainmentComparison="IgnoreCase">
</t:Contains>
</t:Not>
Compound filter
A compound filter enables you to combine multiple filters to create more complex
search criteria. You can combine criteria by using the logical operators AND or OR. In
this way, you can perform searches like "all mail from Sadie Daniels that contains
'meeting notes' in the subject".
The following example shows you how to use the EWS Managed API to create a search
filter that returns all items that are sent from Sadie Daniels and contain "meeting notes"
in the subject.
C#
SearchFilter.IsEqualTo fromManagerFilter =
SearchFilter.SearchFilterCollection compoundFilter =
new SearchFilter.SearchFilterCollection(LogicalOperator.And,
subjectFilter, fromManagerFilter);
The following example shows you how to use EWS to create a search filter that returns
all items that are sent from Sadie Daniels and contain "meeting notes" in the subject.
XML
<t:And>
<t:Contains ContainmentMode="Substring"
ContainmentComparison="IgnoreCase">
</t:Contains>
<t:IsEqualTo>
<t:FieldURIOrConstant>
</t:FieldURIOrConstant>
</t:IsEqualTo>
</t:And>
ExchangeService.FindItems
ExchangeService.FindFolders
Folder.FindFolders
Folder.FindItems
The following example uses the ExchangeService.FindItems method; however, the same
rules and concepts apply to all the methods. In this example, a method called
SearchWithFilter is defined. It takes an ExchangeService object, a
WellKnownFolderName object, and a SearchFilter object as parameters. This
example assumes that the ExchangeService object has been initialized with valid values
in the Credentials and Url properties. The SearchFilter class is the base class for all
the different search filters.
C#
using Microsoft.Exchange.WebServices.Data
ItemSchema.DateTimeReceived,
EmailMessageSchema.IsRead,
customPropDefinition);
view.Traversal = ItemTraversal.Shallow;
// Sorting.
view.OrderBy.Add(ItemSchema.DateTimeReceived, SortDirection.Descending);
try
item.ExtendedProperties[0].PropertyDefinition ==
customPropDefinition)
if (item is EmailMessage)
You can use this function with any of the search filters shown in the examples in this
article. This example uses a compound filter to return all items in the Inbox from Sadie
Daniels with "meeting notes" in the subject.
C#
SearchFilter.IsEqualTo fromManagerFilter =
SearchFilter.SearchFilterCollection compoundFilter =
new SearchFilter.SearchFilterCollection(LogicalOperator.And,
subjectFilter, greaterThanFilter);
FindFolder
FindItem
The following example uses the FindItem operation; however, the same rules and
concepts apply to both operations. Search filters are contained in the Restriction
element in SOAP requests. This example sends a SOAP request that is equivalent to the
search that is shown in the preceding EWS Managed API example.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:FindItem Traversal="Shallow">
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
<t:ExtendedFieldURI PropertySetId="aa3df801-4fc7-401f-bbc1-
7c93d6498c2e" PropertyName="ItemIndex" PropertyType="Integer" />
</t:AdditionalProperties>
</m:ItemShape>
<m:Restriction>
<t:And>
<t:Contains ContainmentMode="Substring"
ContainmentComparison="IgnoreCase">
</t:Contains>
<t:IsEqualTo>
<t:FieldURI FieldURI="message:Sender" />
<t:FieldURIOrConstant>
</t:FieldURIOrConstant>
</t:IsEqualTo>
</t:And>
</m:Restriction>
<m:SortOrder>
<t:FieldOrder Order="Descending">
</t:FieldOrder>
</m:SortOrder>
<m:ParentFolderIds>
</m:ParentFolderIds>
</m:FindItem>
</soap:Body>
</soap:Envelope>
The following example shows the response from the server, including the search results.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:FindItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:FindItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<t:Items>
<t:Message>
<t:Subject>meeting notes</t:Subject>
<t:DateTimeReceived>2013-11-
20T21:18:51Z</t:DateTimeReceived>
<t:ExtendedProperty>
<t:ExtendedFieldURI PropertySetId="aa3df801-4fc7-401f-
bbc1-7c93d6498c2e" PropertyName="ItemIndex" PropertyType="Integer" />
<t:Value>5</t:Value>
</t:ExtendedProperty>
<t:IsRead>true</t:IsRead>
</t:Message>
<t:Message>
<t:Subject>Meeting Notes</t:Subject>
<t:DateTimeReceived>2013-11-
20T21:18:51Z</t:DateTimeReceived>
<t:ExtendedProperty>
<t:ExtendedFieldURI PropertySetId="aa3df801-4fc7-401f-
bbc1-7c93d6498c2e" PropertyName="ItemIndex" PropertyType="Integer" />
<t:Value>6</t:Value>
</t:ExtendedProperty>
<t:IsRead>true</t:IsRead>
</t:Message>
<t:Message>
<t:Subject>Meeting notes</t:Subject>
<t:DateTimeReceived>2013-11-
20T21:18:51Z</t:DateTimeReceived>
<t:ExtendedProperty>
<t:ExtendedFieldURI PropertySetId="aa3df801-4fc7-401f-
bbc1-7c93d6498c2e" PropertyName="ItemIndex" PropertyType="Integer" />
<t:Value>7</t:Value>
</t:ExtendedProperty>
<t:IsRead>true</t:IsRead>
</t:Message>
</t:Items>
</m:RootFolder>
</m:FindItemResponseMessage>
</m:ResponseMessages>
</m:FindItemResponse>
</s:Body>
</s:Envelope>
Next steps
Now that you're familiar with using search filters in basic searches, you can move on to
more advanced search techniques.
See also
Search and EWS in Exchange
Perform an AQS search by using EWS in Exchange
ExchangeService.FindItems
ExchangeService.FindFolders
Folder.FindFolders
Folder.FindItems
FindFolder operation
FindItem operation
Perform an AQS search by using EWS in
Exchange
Article • 01/15/2020 • 7 minutes to read
Find out how to search with query strings and AQS in your EWS Managed API or EWS
application.
Query strings provide an alternative to search filters for expressing search criteria. The
biggest advantage to using query strings is that you are not required to specify a single
property to search. You can just provide a value, and the search will apply to all
commonly used fields on the items. You can also refine your search by using Advanced
Query Syntax (AQS) instead of a simple value. However, query strings have the following
limitations that you should be aware of before you add them to your toolbox:
Limited ability to search specific properties. When you search with a simple value
in a query string, the search is performed against all indexed properties. You can
refine your search to specific properties, but the properties available to use in an
AQS string are limited. If the property you want to search isn't one of the
properties that are available for AQS, consider using a search filter.
Custom properties aren't searched. Query string searches are performed against
an index, and custom properties are not included in that index. If you need to
search custom properties, use a search filter instead.
Limited control for string searches. Query string searches always ignore case, and
are always substring searches. If you want to do case-sensitive, prefix, or exact
match searches, use a search filter.
Not available for folders or search folders. The EWS operations for searching for
folders don't support using a query string. Additionally, search folders don't
support query strings. In both cases, a search filter is your only option.
keyword:value
When a value is specified without a keyword, all indexed properties are searched for the
value. If a keyword is paired with a value, the keyword specifies a property to search for
the corresponding value.
You can change the search to require the whole word rather than matching prefixes by
enclosing the string in quotation marks. Searching for subject:"project" would eliminate
the "December sales projections" value from the list of matches. Note that the value is
still not case-sensitive.
If you use multiple words in a query string, a match requires that both words appear in
the searched fields. For example, searching for subject:project plan would match any of
the following subjects:
Project plan
If you enclose multiple words in quotation marks, they are treated as a single phrase.
Searching for subject:"project plan" would only match the "Project plan" subject from
the previous list.
contacts
docs
email
faxes
im (corresponds to instant messages)
journals
meetings (corresponds to appointments and meeting requests)
notes
posts
rssfeeds
tasks
voicemail
Using a date value type
You can search date value types in a number of different ways. The simplest is to search
for a specific date. Searching with received:12/11/2013 will return all items received on
December 11, 2013. However, you can also be less specific. Searching with
received:12/11 will return all items received on December 11 of the current year.
Another option is to use the month names. You can search with received:December 11,
2013 or December 11 to get the same results as received:12/11/2013 and
received:12/11, respectively. You can also search with received:December to get all items
received in the month of December, in the current year.
Using the names of the days of the week is also an option. Searching with
received:Tuesday will return all items received on Tuesday of the current week.
Date value types also support a set of keywords for searches relative to the current time.
The following keywords are supported:
today
tomorrow
yesterday
this week
last week
next month
past month
coming year
Date value types can also be compared with relational operators like greater than or less
than, or specified as a range with the range operator ... For example,
received:>11/30/2013, sent:>=yesterday, and received:12/1/2013..today are all valid
query strings.
Operator Examples
Notice that you can use these operators to join multiple criteria together or to join
multiple values within a single keyword/value pair together. However, when joining
multiple values in a single keyword/value pair, you should use parentheses to enclose
the multiple values. To understand why, consider searching with from:"Sadie Daniels" OR
"Hope Gross". This search actually is interpreted as the following criteria:
The item has the phrase "Hope Gross" in any of its indexed properties.
The default operator when multiple criteria are specified but no logical operator is
included is AND. For example, has attachment:true subject:project is equivalent to
has:attachment:true AND subject:project.
C#
using Microsoft.Exchange.WebServices.Data;
ItemSchema.DateTimeReceived,
ItemSchema.Size,
ItemSchema.Importance,
EmailMessageSchema.IsRead);
view.Traversal = ItemTraversal.Shallow;
// Sorting
view.OrderBy.Add(ItemSchema.DateTimeReceived, SortDirection.Descending);
try
Console.WriteLine("Received: {0}",
item.DateTimeReceived.ToString());
Console.WriteLine("Importance: {0}",
item.Importance.ToString());
if (item is EmailMessage)
You can use this method to search for all items with the phrase "project plan" in the
subject, as shown in this example.
C#
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:FindItem Traversal="Shallow">
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:ItemShape>
<m:SortOrder>
<t:FieldOrder Order="Descending">
</t:FieldOrder>
</m:SortOrder>
<m:ParentFolderIds>
</m:ParentFolderIds>
<m:QueryString>subject:"project plan"</m:QueryString>
</m:FindItem>
</soap:Body>
</soap:Envelope>
The following example shows the response from the server with the search results.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:FindItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:FindItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<t:Items>
<t:Message>
<t:Subject>project plan</t:Subject>
<t:DateTimeReceived>2013-12-
11T15:42:02Z</t:DateTimeReceived>
<t:Size>7406</t:Size>
<t:Importance>Normal</t:Importance>
<t:IsRead>false</t:IsRead>
</t:Message>
</t:Items>
</m:RootFolder>
</m:FindItemResponseMessage>
</m:ResponseMessages>
</m:FindItemResponse>
</s:Body>
</s:Envelope>
See also
Search and EWS in Exchange
Use search filters with EWS in Exchange
ExchangeService.FindItems
FindItem operation
Perform paged searches by using EWS
in Exchange
Article • 11/18/2020 • 12 minutes to read
Find out how to perform paged searches in your EWS Managed API or EWS application
that targets Exchange.
Paging is a feature in EWS that enables you to control the size of the results of a search.
Rather than retrieve the entire result set in one EWS response, you can retrieve smaller
sets in multiple EWS responses. For example, consider a user with 10,000 email
messages in their Inbox. Hypothetically, you could retrieve all 10,000 emails in one very
large response, but you might want to break that up into more manageable chunks for
bandwidth or performance reasons. Paging gives you the tools to do just that.
7 Note
While you can hypothetically retrieve 10,000 items in one request, in reality, this is
unlikely due to EWS throttling. To find out more, see EWS throttling in Exchange.
Offset from the The offset parameter to the The Offset attribute on the
starting point ItemView constructor or the IndexedPageItemView element or
FolderView constructor the IndexedPageFolderView element
Or
The PagedView.Offset property
To configure or In the EWS Managed API, use… In EWS, use…
retrieve the…
When you send your request to the Exchange server, you specify the size of your
window in terms of how many items to return. You set the position of the window by
specifying a starting point (either the beginning of the line or the end of the line) and an
offset from that starting point, expressed in a number of items. The beginning of the
window is the number of items specified by the offset from the starting point.
Where paging gets a bit more interesting is in the server's response, and how your
application can use that response to shape its next request. The server gives you three
pieces of information that you can use to determine how to configure your "window" for
your next request:
Whether the results in the response include the last item in the overall result set on
the server.
Let's look at a simple example. Imagine an Inbox with 15 messages in it. Your application
sends an initial request to retrieve a maximum of 10 items, starting at the beginning of
the list of messages (so the offset is zero). The server responds with the first 10
messages, and indicates that the response does not include the last item, that there are
a total of 15 items, and that the next offset should be 10.
Your application then resends the same request to the server, with the only change
being that the offset is now 10. The server returns the last five items, and indicates that
the response does include the last item, that there are a total of 15 items, and that the
next offset should be 15 (though of course, you've reached the end, so there won't be a
next offset.)
We'll start again with the 15 items in the user's Inbox, and send the same initial request.
As before, the server responds with the first 10 messages, and indicates that the
response does not include the last item, that there are a total of 15 items, and that the
next offset should be 10, as shown in Figure 1.
Now, while your application is processing those 10 items, a new message arrives in the
Inbox and is added to the result set on the server. Your application resends the same
request to the server (only with the offset set to 10). This time the server gets back six
items, and indicates that there are a total of 16 items in the result set.
At this point you might be wondering if this is even a problem. After all, you got 16
items back over the two responses, so why all the fuss? The answer depends on where in
the list the new item is placed. If the list is sorted so that the oldest items (by received
date/time) are first, there's no cause for concern in this scenario. The new item will be
placed at the end of the list, and will be included in the second response.
Figure 3. Requesting 10 items at offset 10 from the beginning of a list of 16 items, with
the 16th item in the list being new
If the list is sorted so that the newest items are first, it's a different story. In this case, the
first item in the second request would be the last item from the previous request plus
the remaining five items from the original 15. To put it in terms of our imaginary magical
window, you shifted your window's position by 10, but the billboards themselves also
shifted by 1.
Figure 4. Requesting 10 items at offset 10 from the beginning of a list of 16 items, with
the first item in the list being new
One way to detect a change to the results on the server is to use the concept of an
anchor item. An anchor item is an additional item in your response that is not processed
along with the rest of the results, but is used to compare with the next results to see if
the items themselves have shifted. Building again on our simple example, if your
application is using a "window" size of 10, you actually set the maximum number of
items to return to 11. Your application processes the first 10 items in the response as
usual. For the last item, you save the item's identifier as an anchor, then issue the next
request with an offset of 10. If the data has not changed, the first item in the second
response should have an item identifier that matches the anchor. If the item identifiers
don't match, you know that the data has been removed or inserted in the parts of the
list you have already "paged" over.
Even when you know that the data has changed, you still need to decide how to react.
There isn't a one-size-fits-all answer for this question either. Your actions will depend on
the nature of your application and how critical it is to capture all items. You might ignore
it altogether, restart the process from the beginning, or back track and try to detect
where the change happened.
ExchangeService.FindFolders
ExchangeService.FindItems
Folder.FindFolders
Folder.FindFolders
If you are using the EWS Managed API, your application configures paging with the
ItemView or FolderView class and receives information from the server regarding
paging from the FindItemsResults or FindFoldersResults class.
The following example retrieves all the items in a folder using a paged search that
returns five items in each response. It also retrieves an additional item to serve as an
anchor to detect changes to the results on the server.
This example assumes that the ExchangeService object has been initialized with valid
values in the Credentials and Url properties.
C#
using Microsoft.Exchange.WebServices.Data;
int pageSize = 5;
int offset = 0;
view.OrderBy.Add(ItemSchema.DateTimeReceived, SortDirection.Descending);
view.Traversal = ItemTraversal.Shallow;
while (moreItems)
try
moreItems = results.MoreAvailable;
if (results.Items.First<Item>().Id != anchorId)
if (moreItems)
view.Offset += pageSize;
anchorId = results.Items.Last<Item>().Id;
int displayCount = 0;
displayCount = results.Items.Count;
else
displayCount = pageSize;
FindFolder
FindItem
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Eastern Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:FindItem Traversal="Shallow">
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:ItemShape>
<m:ParentFolderIds>
</m:ParentFolderIds>
</m:FindItem>
</soap:Body>
</soap:Envelope>
The server returns the following response, which contains six items. The response also
indicates that there are a total of eight items in the results on the server, and that the
last item in the results list is not present in this response.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:FindItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:FindItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<t:Items>
<t:Message>
<t:Subject>Query</t:Subject>
</t:Message>
<t:Message>
<t:Subject>Update</t:Subject>
</t:Message>
<t:Message>
<t:Subject>Planning resources</t:Subject>
</t:Message>
<t:Message>
<t:Subject>Timeline</t:Subject>
</t:Message>
<t:Message>
</t:Message>
<t:Message>
<t:Subject>meeting notes</t:Subject>
</t:Message>
</t:Items>
</m:RootFolder>
</m:FindItemResponseMessage>
</m:ResponseMessages>
</m:FindItemResponse>
</s:Body>
</s:Envelope>
In this example, the same request is sent, but this time, the Offset attribute is changed
to five, which indicates that the server should return at most six items starting at offset
five from the beginning.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Eastern Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:FindItem Traversal="Shallow">
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:ItemShape>
<m:ParentFolderIds>
</m:ParentFolderIds>
</m:FindItem>
</soap:Body>
</soap:Envelope>
The server sends the following response, which contains three items. The response also
indicates that the total number of items in the results on the server is still eight, and that
the last item in the results list is included in this response.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:FindItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:FindItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<t:Items>
<t:Message>
<t:Subject>meeting notes</t:Subject>
</t:Message>
<t:Message>
<t:Subject>Meeting notes</t:Subject>
</t:Message>
<t:Message>
</t:Message>
</t:Items>
</m:RootFolder>
</m:FindItemResponseMessage>
</m:ResponseMessages>
</m:FindItemResponse>
</s:Body>
</s:Envelope>
See also
Search and EWS in Exchange
ExchangeService.FindFolders method
ExchangeService.FindItems method
Folder.FindFolders method
Folder.FindFolders method
FindFolder operation
FindItem operation
Find out how to perform grouped searches in your EWS Managed API or EWS
application that targets Exchange.
Grouped searches are useful in that they gives you control over how search results are
organized. Organized search results can make it easier for your application to process
results or display them to an end user in a manageable way.
Grouping works by putting all items within the result set that have the same value of a
specific field into a group. For example, you can group your results by the sender, and
all items from the same person will be in a separate group, and the items within each
group will be sorted according to the order you specify on the view. The groups
themselves are sorted by an aggregate value based on a field you choose.
Table 1. EWS Managed API methods and EWS operations for organizing search results
Grouping.SortDirection
Aggregate attribute
on the
AggregateOn
element
Order attribute on
the GroupBy
element
All items that have the same value in the property you choose to group by will be
grouped together. This might seem obvious, but it is an important detail. Consider what
happens if you group by a date/time property, such as Item.DateTimeReceived in the
EWS Managed API, or the DateTimeReceived element in EWS. The intent might be to
organize the results into groups, with each group containing items from the same day.
However, grouping looks at the entire value, which includes the time.
The end result is that the items will be grouped so that items received at the same time,
down to the second, are in their own groups. The results will most likely be sorted into a
large number of groups with a small number of items in each group.
To get a results set with a smaller number of groups and a larger number of items in
each group, choose a property that is likely to have a smaller number of values, such as
EmailMessage.From or Item.Categories in the EWS Managed API, or From or
Categories in EWS. The following figure shows a list of emails that appear in an Inbox.
If you group the items in Figure 1 by the EmailMessage.From property, the result will be
two groups, one for messages sent by Hope Gross, and one for messages sent by Sadie
Daniels.
For example, if the groups from Figure 2 are sorted by aggregating on the
Item.DateTimeReceived property, using the smallest value, and sorting in descending
order, the items are returned in the order in shown Figure 3.
Figure 3. Grouped search results with the groups sorted by the DateTimeReceived
property
The next sections show you how you might pull grouping and sorting together in code.
ExchangeService.FindItems
Folder.FindItems
The following example uses the ExchangeService.FindItems method; however, the same
rules and concepts apply to the Folder.FindItems method. In this example, a method
called GroupItemsByFrom is defined. It takes an ExchangeService object and a
WellKnownFolderName object as parameters. It requests the first 50 items in the
folder, grouped by the EmailMessage.From property, sorted by the
Item.DateTimeReceived property in descending order. The groups themselves are
sorted by the smallest Item.DateTimeReceived property value on their items, in
descending order.
This example assumes that the ExchangeService object has been initialized with valid
values in the Credentials and Url properties.
C#
ItemSchema.DateTimeReceived,
EmailMessageSchema.From,
ItemSchema.Categories);
view.Traversal = ItemTraversal.Shallow;
view.OrderBy.Add(ItemSchema.DateTimeReceived, SortDirection.Descending);
// Configure grouping.
groupByFrom.GroupOn = EmailMessageSchema.From;
groupByFrom.AggregateOn = ItemSchema.DateTimeReceived;
groupByFrom.AggregateType = AggregateType.Minimum;
groupByFrom.SortDirection = SortDirection.Descending;
try
view, groupByFrom);
if (item is EmailMessage)
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Eastern Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:FindItem Traversal="Shallow">
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:ItemShape>
<m:GroupBy Order="Descending">
<t:AggregateOn Aggregate="Minimum">
</t:AggregateOn>
</m:GroupBy>
<m:SortOrder>
<t:FieldOrder Order="Descending">
</t:FieldOrder>
</m:SortOrder>
<m:ParentFolderIds>
</m:ParentFolderIds>
</m:FindItem>
</soap:Body>
</soap:Envelope>
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:FindItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:FindItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<t:Groups>
<t:GroupedItems>
<t:GroupIndex>0</t:GroupIndex>
<t:Items>
<t:Message>
<t:Subject>Planning resources</t:Subject>
<t:DateTimeReceived>2013-12-
10T17:41:05Z</t:DateTimeReceived>
<t:From>
<t:Mailbox>
<t:Name>Sadie Daniels</t:Name>
<t:EmailAddress>/O=FIRST ORGANIZATION/OU=EXCHANGE
ADMINISTRATIVE GROUP
(FYDIBOHF23SPDLT)/CN=RECIPIENTS/CN=8D84A3F4CBB34D48838A3AECF99795C0-
SADIE</t:EmailAddress>
<t:RoutingType>EX</t:RoutingType>
</t:Mailbox>
</t:From>
</t:Message>
<t:Message>
<t:Subject>Timeline</t:Subject>
<t:DateTimeReceived>2013-12-
10T17:40:37Z</t:DateTimeReceived>
<t:Categories>
<t:String>Project</t:String>
</t:Categories>
<t:From>
<t:Mailbox>
<t:Name>Sadie Daniels</t:Name>
<t:EmailAddress>/O=FIRST ORGANIZATION/OU=EXCHANGE
ADMINISTRATIVE GROUP
(FYDIBOHF23SPDLT)/CN=RECIPIENTS/CN=8D84A3F4CBB34D48838A3AECF99795C0-
SADIE</t:EmailAddress>
<t:RoutingType>EX</t:RoutingType>
</t:Mailbox>
</t:From>
</t:Message>
<t:Message>
<t:DateTimeReceived>2013-11-
20T21:51:16Z</t:DateTimeReceived>
<t:From>
<t:Mailbox>
<t:Name>Sadie Daniels</t:Name>
<t:EmailAddress>/O=FIRST ORGANIZATION/OU=EXCHANGE
ADMINISTRATIVE GROUP
(FYDIBOHF23SPDLT)/CN=RECIPIENTS/CN=8D84A3F4CBB34D48838A3AECF99795C0-
SADIE</t:EmailAddress>
<t:RoutingType>EX</t:RoutingType>
</t:Mailbox>
</t:From>
</t:Message>
<t:Message>
<t:Subject>meeting notes</t:Subject>
<t:DateTimeReceived>2013-11-
20T21:18:51Z</t:DateTimeReceived>
<t:Categories>
<t:String>Blue category</t:String>
</t:Categories>
<t:From>
<t:Mailbox>
<t:Name>Sadie Daniels</t:Name>
<t:EmailAddress>/O=FIRST ORGANIZATION/OU=EXCHANGE
ADMINISTRATIVE GROUP
(FYDIBOHF23SPDLT)/CN=RECIPIENTS/CN=8D84A3F4CBB34D48838A3AECF99795C0-
SADIE</t:EmailAddress>
<t:RoutingType>EX</t:RoutingType>
</t:Mailbox>
</t:From>
</t:Message>
<t:Message>
<t:Subject>Meeting notes</t:Subject>
<t:DateTimeReceived>2013-11-
20T21:18:51Z</t:DateTimeReceived>
<t:From>
<t:Mailbox>
<t:Name>Sadie Daniels</t:Name>
<t:EmailAddress>/O=FIRST ORGANIZATION/OU=EXCHANGE
ADMINISTRATIVE GROUP
(FYDIBOHF23SPDLT)/CN=RECIPIENTS/CN=8D84A3F4CBB34D48838A3AECF99795C0-
SADIE</t:EmailAddress>
<t:RoutingType>EX</t:RoutingType>
</t:Mailbox>
</t:From>
</t:Message>
</t:Items>
</t:GroupedItems>
<t:GroupedItems>
<t:GroupIndex>1</t:GroupIndex>
<t:Items>
<t:Message>
<t:Subject>Query</t:Subject>
<t:DateTimeReceived>2013-12-
10T17:43:15Z</t:DateTimeReceived>
<t:From>
<t:Mailbox>
<t:Name>Hope Gross</t:Name>
<t:EmailAddress>/O=FIRST ORGANIZATION/OU=EXCHANGE
ADMINISTRATIVE GROUP
(FYDIBOHF23SPDLT)/CN=RECIPIENTS/CN=9B55E4100C064D9D8C5F72FF36802ED3-
HOPE</t:EmailAddress>
<t:RoutingType>EX</t:RoutingType>
</t:Mailbox>
</t:From>
</t:Message>
<t:Message>
<t:Subject>Update</t:Subject>
<t:DateTimeReceived>2013-12-
10T17:42:33Z</t:DateTimeReceived>
<t:Categories>
<t:String>Project</t:String>
<t:String>Blue category</t:String>
</t:Categories>
<t:From>
<t:Mailbox>
<t:Name>Hope Gross</t:Name>
<t:EmailAddress>/O=FIRST ORGANIZATION/OU=EXCHANGE
ADMINISTRATIVE GROUP
(FYDIBOHF23SPDLT)/CN=RECIPIENTS/CN=9B55E4100C064D9D8C5F72FF36802ED3-
HOPE</t:EmailAddress>
<t:RoutingType>EX</t:RoutingType>
</t:Mailbox>
</t:From>
</t:Message>
<t:Message>
<t:DateTimeReceived>2013-10-
15T20:22:12Z</t:DateTimeReceived>
<t:From>
<t:Mailbox>
<t:Name>Hope Gross</t:Name>
<t:EmailAddress>/O=FIRST ORGANIZATION/OU=EXCHANGE
ADMINISTRATIVE GROUP
(FYDIBOHF23SPDLT)/CN=RECIPIENTS/CN=9B55E4100C064D9D8C5F72FF36802ED3-
HOPE</t:EmailAddress>
<t:RoutingType>EX</t:RoutingType>
</t:Mailbox>
</t:From>
</t:Message>
</t:Items>
</t:GroupedItems>
</t:Groups>
</m:RootFolder>
</m:FindItemResponseMessage>
</m:ResponseMessages>
</m:FindItemResponse>
</s:Body>
</s:Envelope>
Version differences
Versions of Exchange starting with major version 15 and ending with build 15.0.775.38
return Group elements (of type GroupedItemsType) in place of GroupedItems
elements in the SOAP response. If you are using the EWS Managed API, this will cause
the GroupedFindItemsResults.ItemGroups collection to contain 0 objects. If you are
using EWS, Group elements should be handled as GroupedItems elements.
See also
Search and EWS in Exchange
ExchangeService.FindItems
Folder.FindItems
Grouping class
FindItem operation
Work with search folders by using EWS
in Exchange
Article • 09/15/2021 • 8 minutes to read
Find out how to create, get, update, and delete search folders by using the EWS
Managed API or EWS in Exchange.
7 Note
This article applies only when using Outlook in online mode. Search folders do not
sync; therefore, search folders created in online mode will not appear in cached
mode.
Table 1. EWS Managed API methods and EWS operations for working with search
folders
If you want to… In the EWS Managed API, use… In EWS, use…
In the following example, a search folder is created to find all messages in the Inbox and
its subfolders that were sent by the user's manager, [email protected]. The folder is
created as a child of the Search Folders folder in the user's mailbox.
7 Note
You can create a search folder as a child of any folder in the user's mailbox.
However, if you want the newly created folder to show up under Search Folders in
Outlook, create it under the Search Folders well-known folder, using the
SearchFolders value of the WellKnownFolderName enumeration .
This example assumes that the ExchangeService object has been initialized with valid
values in the Credentials and Url properties.
C#
using Microsoft.Exchange.WebServices.Data;
SearchFilter.IsEqualTo fromManagerFilter =
searchFolder.SearchParameters.SearchFilter = fromManagerFilter;
searchFolder.SearchParameters.RootFolderIds.Add(WellKnownFolderName.Inbox);
searchFolder.SearchParameters.Traversal = SearchFolderTraversal.Deep;
searchFolder.Save(WellKnownFolderName.SearchFolders);
7 Note
You can create a search folder as a child of any folder in the user's mailbox.
However, if you want the newly created folder to show up under Search Folders in
Outlook, create it under the Search Folders well-known folder, using the
searchfolders value in the Id attribute of the DistinguishedFolderId element.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Eastern Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:CreateFolder>
<m:ParentFolderId>
</m:ParentFolderId>
<m:Folders>
<t:SearchFolder>
<t:DisplayName>From Manager</t:DisplayName>
<t:SearchParameters Traversal="Deep">
<t:Restriction>
<t:IsEqualTo>
</t:FieldURIOrConstant>
</t:IsEqualTo>
</t:Restriction>
<t:BaseFolderIds>
</t:BaseFolderIds>
</t:SearchParameters>
</t:SearchFolder>
</m:Folders>
</m:CreateFolder>
</soap:Body>
</soap:Envelope>
The following example finds the first 10 folders in the Search Folders folder. It checks to
determine whether each one is a search folder, and if so, it gets the search folder and
displays how many target folders it searches.
C#
using Microsoft.Exchange.WebServices.Data;
try
FindFoldersResults findResults =
service.FindFolders(WellKnownFolderName.SearchFolders, folderView);
if (folder is SearchFolder)
searchFolder.SearchParameters.RootFolderIds.Count);
else
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Eastern Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:FindFolder Traversal="Shallow">
<m:FolderShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:FolderShape>
<m:ParentFolderIds>
</m:ParentFolderIds>
</m:FindFolder>
</soap:Body>
</soap:Envelope>
The server returns the following response, which shows one search folder.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:FindFolderResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:FindFolderResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<t:Folders>
<t:SearchFolder>
<t:DisplayName>From Manager</t:DisplayName>
</t:SearchFolder>
</t:Folders>
</m:RootFolder>
</m:FindFolderResponseMessage>
</m:ResponseMessages>
</m:FindFolderResponse>
</s:Body>
</s:Envelope>
The following example of a request uses the value of the FolderId element from the
previous response in a GetFolder operation request to get the search folder.
XML
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Eastern Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:GetFolder>
<m:FolderShape>
<t:BaseShape>AllProperties</t:BaseShape>
</m:FolderShape>
<m:FolderIds>
</m:FolderIds>
</m:GetFolder>
</soap:Body>
</soap:Envelope>
The server returns the following response with all the first-class properties for the search
folder.
XML
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetFolderResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetFolderResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Folders>
<t:SearchFolder>
<t:FolderClass>IPF.Note</t:FolderClass>
<t:DisplayName>From Manager</t:DisplayName>
<t:TotalCount>8</t:TotalCount>
<t:ChildFolderCount>0</t:ChildFolderCount>
<t:EffectiveRights>
<t:CreateAssociated>true</t:CreateAssociated>
<t:CreateContents>true</t:CreateContents>
<t:CreateHierarchy>true</t:CreateHierarchy>
<t:Delete>true</t:Delete>
<t:Modify>true</t:Modify>
<t:Read>true</t:Read>
<t:ViewPrivateItems>true</t:ViewPrivateItems>
</t:EffectiveRights>
<t:UnreadCount>0</t:UnreadCount>
<t:SearchParameters Traversal="Deep">
<t:Restriction>
<t:IsEqualTo>
<t:FieldURIOrConstant>
</t:FieldURIOrConstant>
</t:IsEqualTo>
</t:Restriction>
<t:BaseFolderIds>
</t:BaseFolderIds>
</t:SearchParameters>
</t:SearchFolder>
</m:Folders>
</m:GetFolderResponseMessage>
</m:ResponseMessages>
</m:GetFolderResponse>
</s:Body>
</s:Envelope>
C#
using Microsoft.Exchange.WebServices.Data;
try
FindFoldersResults findResults =
service.FindFolders(WellKnownFolderName.SearchFolders, folderView);
new SearchFilter.IsEqualTo(EmailMessageSchema.Sender,
newManager);
searchFolder.SearchParameters.SearchFilter =
newManagerFilter;
searchFolder.SearchParameters.RootFolderIds.Add(WellKnownFolderName.Inbox);
searchFolder.SearchParameters.Traversal =
SearchFolderTraversal.Deep;
searchFolder.Update();
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Eastern Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:UpdateFolder>
<m:FolderChanges>
<t:FolderChange>
<t:Updates>
<t:SetFolderField>
<t:SearchFolder>
<t:SearchParameters Traversal="Deep">
<t:Restriction>
<t:IsEqualTo>
<t:FieldURIOrConstant>
</t:FieldURIOrConstant>
</t:IsEqualTo>
</t:Restriction>
<t:BaseFolderIds>
</t:BaseFolderIds>
</t:SearchParameters>
</t:SearchFolder>
</t:SetFolderField>
</t:Updates>
</t:FolderChange>
</m:FolderChanges>
</m:UpdateFolder>
</soap:Body>
</soap:Envelope>
using Microsoft.Exchange.WebServices.Data;
try
FindFoldersResults findResults =
service.FindFolders(WellKnownFolderName.SearchFolders, folderView);
folder.Delete(DeleteMode.MoveToDeletedItems);
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Eastern Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:DeleteFolder DeleteType="MoveToDeletedItems">
<m:FolderIds>
</m:FolderIds>
</m:DeleteFolder>
</soap:Body>
</soap:Envelope>
See also
Search and EWS in Exchange
Use search filters with EWS in Exchange
SearchFolder class
CreateFolder operation
FindFolder operation
GetFolder operation
UpdateFolder operation
DeleteFolder operation
Time zones and EWS in Exchange
Article • 03/04/2022 • 8 minutes to read
Find out how time zones work with the EWS Managed API and EWS in Exchange.
Time zones aren't something that most people give much thought to. However, they're an important concept when
specifying dates and times using the EWS Managed API or EWS. Mishandling time zones in an EWS Managed API
or EWS application can yield unexpected results. Handling time zones properly is easy, as long as you know how.
One option is setting the ExchangeService.TimeZone property. This property controls the time zone for all
requests executed by the EWS Managed API. This property is read-only; the only way to set it is via the class
constructor. If you use either the ExchangeService(System.TimeZoneInfo) or the
ExchangeService(ExchangeVersion, System.TimeZoneInfo) constructor, you can specify a specific time zone as a
System.TimeZoneInfo object. If you use one of the other constructors that do not take a TimeZoneInfo object as
a parameter, the ExchangeService class sets the TimeZone property to the current time zone of the client
computer.
Whether you set a specific time zone or leave it as the time zone of the client computer, all dates and times are
expressed in the time zone represented by the TimeZone property. The EWS Managed API exposes all date/time
properties as System.DateTime structures. So if you set any date/time properties, be mindful that the time you
specify is interpreted according to the DateTime.Kind property value on the DateTime object. If the value of the
Kind property is set to Unspecified, the value of the DateTime is interpreted as being in the time zone specified by
the TimeZone property. If you're reading date/time properties, all DateTime properties are expressed in that time
zone.
If you are creating new appointments or meetings or updating existing appointments or meetings, you have the
ability to override the time zone specified in the TimeZone for new Appointment objects. However, exactly what
you can override depends on the EWS schema version you are targeting. For all values of the
ExchangeService.RequestedServerVersion property, you can set the Appointment.StartTimeZone to use a
specific time zone for that appointment or meeting. If you're using a value for the
ExchangeService.RequestedServerVersion property greater than Exchange2007_SP1, you can also set the
Appointment.EndTimeZone property, allowing you to specify a time zone for the Appointment.End property.
However, bear in mind that these properties only affect the interpretation of the date/time for the create request. If
you retrieve the appointment, the start and end times will still be expressed in the time zone specified by the
TimeZone property.
If you are updating existing appointments or meetings, you can change the time zone for an Appointment object
by setting the StartTimeZone property and/or the EndTimeZone property. Doing so will cause the applicable times
to shift accordingly. If you've set the ExchangeService.RequestedServerVersion to Exchange2007_SP1, you cannot
set the EndTimeZone property; the value of the StartTimeZone property will be used in its place.
TimeZone
Exchange2007_SP1 If not set via the constructor for the ExchangeService class, this property is set to the
time zone of the client computer. All DateTime properties when creating items and
when retrieving existing items are expressed in this time zone. This time zone can be
overridden in create requests for appointments and meetings by setting the
Appointment.StartTimeZone and/or the Appointment.EndTimeZone property. If not
overridden by the Appointment.StartTimeZone property, this time zone is considered
the creation time zone for appointments and meetings.
StartTimeZone Exchange2007_SP1 If set on new Appointment objects, this time zone is used to interpret the
Appointment.Start and Appointment.ReminderDueBy properties. This time zone is
also considered the creation time zone for the Appointment object.
When retrieving existing items, this property is informational only. The values of
DateTime properties on existing appointment are always expressed in the time zone
specified by the ExchangeService.TimeZone property.
EndTimeZone
Exchange2010
If set on new Appointment objects, this time zone is used to interpret the
Appointment.End property.
When retrieving existing items, this property is informational only. The values of
DateTime properties on existing appointment are always expressed in the time zone
specified by the ExchangeService.TimeZone property.
The time zone specified in the MeetingTimeZone , StartTimeZone , or EndTimeZone elements (if present
on appointments or meetings)
The time zone specified in the XML dateTime elements (if any)
The time zone specified in the value of dateTime elements can take three forms. You can read all the details in XML
Schema Part 2: Datatypes Second Edition , but to paraphrase:
Specific time zone: Specified by '+' or '-' followed by hours and minutes. For example, 2014-06-
06T19:00:00.000-08:00
No time zone: Specified by the absence of any time zone. For example, 2014-06-06T19:00:00.000
If a time zone is present in a dateTime value (either UTC or a specific time zone), that value is always interpreted as
that time zone. If no time zone is present, then the interpretation of the value depends on the specific combination
of the other time-zone related elements.
Exchange2007_SP1
Yes Yes ( Interpreted Interpreted Elements within Time zone in
MeetingTimeZone as UTC as the time the MeetingTimeZone
) zone CalendarItem or element
indicated MeetingRequest
in the element that
value contains the
MeetingTimeZone
element are
interpreted as the
time zone in the
MeetingTimeZone
element, all others
interpreted as UTC
Exchange2007_SP1
Yes No Interpreted Interpreted Interpreted as UTC UTC
as UTC as the time
zone
indicated
in the
value
Exchange2007_SP1
No Yes ( Interpreted Interpreted Elements within Time zone in
MeetingTimeZone as UTC as the time the MeetingTimeZone
) zone CalendarItem or element
indicated MeetingRequest
in the element that
value contains the
MeetingTimeZone
element are
interpreted as the
time zone in the
MeetingTimeZone
element, all others
interpreted as UTC
Exchange2007_SP1
No No Interpreted Interpreted Interpreted as UTC UTC
as UTC as the time
zone
indicated
in the
value
RequestServerVersion TimeZoneContext MeetingTimeZone, dateTime dateTime dateTime with no Appointment and
present? StartTimeZone, or in UTC in specific time zone meeting creation
EndTimeZone time zone time zone
present
(CalendarItem and
MeetingRequest
only)?
Exchange2010 and Yes Yes ( Interpreted Interpreted If the Time zone in the
later StartTimeZone as UTC as the time StartTimeZone StartTimeZone
and/or zone element is present, element if present,
EndTimeZone ) indicated the value of the time zone in the
in the Start and TimeZoneContext
value ReminderDueBy element if not
elements are
interpreted as the
time zone in the
StartTimeZone
element.
Otherwise, the
value of those
elements are
interpreted as the
time zone in the
TimeZoneContext
element.
If the
EndTimeZone
element is present,
the value of the
Start element is
interpreted as the
time zone in the
EndTimeZone
element.
Otherwise, the
value of the End
element is
interpreted as the
time zone in the
TimeZoneContext
element.
Elements outside
the
CalendarItem or
MeetingRequest
are interpreted as
the time zone in
the
TimeZoneContext
element.
Exchange2010 and Yes No Interpreted Interpreted Interpreted as the Time zone in the
later as UTC as the time time zone in the TimeZoneContext
zone TimeZoneContext element
indicated element
in the
value
RequestServerVersion TimeZoneContext MeetingTimeZone, dateTime dateTime dateTime with no Appointment and
present? StartTimeZone, or in UTC in specific time zone meeting creation
EndTimeZone time zone time zone
present
(CalendarItem and
MeetingRequest
only)?
When interpreting responses from the server, you should always check the value of each element and interpret the
value accordingly. Exchange will always include a time zone (either UTC or a specific time zone) in the value.
If the item is an all-day event, it might display in an unexpected way if viewed from a client that is using a
different time zone than the creation time zone. This is because when an all-day event is created, the start
and end time of all-day events are adjusted to midnight of the creation time zone. That time will show as a
time other than midnight in a different time zone, so the item may appear to span extra days. Because of this,
we recommend that you use the time zone configured for the user's primary calendaring client to create all-
day events when possible.
If the item is a meeting, the creation time zone will be displayed in the Outlook information bar on the
meeting requests received by the attendees, if that time zone differs from the time zone of their client.
In this section
Create appointments in a specific time zone by using EWS in Exchange
See also
Develop web service clients for Exchange
DateTime Structure
TimeZoneInfo Class
Create appointments in a specific time
zone by using EWS in Exchange
Article • 02/06/2023 • 6 minutes to read
To use the time zone of the computer where your EWS Managed API is executing,
do not specify a time zone when creating the ExchangeService object.
To use a specific time zone for all date/time properties, including properties when
creating a new appointment or meeting, specify a time zone in the constructor for
the ExchangeService object.
7 Note
In the following example, the EWS Managed API is used to create three appointments.
Each appointment is set to start at 1:00 PM two days from now, in an unspecified time
zone, and end one hour later. The first appointment is created in the client computer's
time zone by using default EWS Managed API behavior. The second is created in the
Central time zone by using the Appointment.StartTimeZone and
Appointment.EndTimeZone properties, in this case we also set the
TimeZoneDescription Extended Property to the same value as TimeZone being used.
The third is created in the Mountain time zone by using the ExchangeService.TimeZone
property.
C#
using Microsoft.Exchange.WebServices.Data;
using System.Security;
// *****************************************************
// *****************************************************
clientTZService.AutodiscoverUrl(userEmail, redirectionCallback);
startTime = startTime.AddHours(13);
clientTZAppt.Start = startTime;
clientTZAppt.End = endTime;
try
clientTZAppt.Save(SendInvitationsMode.SendToNone);
// *****************************************************
// *****************************************************
centralTZAppt.StartTimeZone = centralTZ;
centralTZAppt.EndTimeZone = centralTZ;
centralTZAppt.Start = startTime;
centralTZAppt.End = endTime;
centralTZAppt.SetExtendedProperty(tzDescription, centralTZ.DisplayName);
try
centralTZAppt.Save(SendInvitationsMode.SendToNone);
// *****************************************************
// *****************************************************
mountainTZService.AutodiscoverUrl(userEmail, redirectionCallback);
mountainTZAppt.Start = startTime;
mountainTZAppt.End = endTime;
// Save the appointment to the default calendar.
try
mountainTZAppt.Save(SendInvitationsMode.SendToNone);
7 Note
When this example is executed on a client computer configured in the Eastern time
zone, and the three appointments it creates are viewed from a client configured in the
Eastern time zone, they appear at 1:00 PM, 2:00 PM, and 3:00 PM, respectively.
To use a specific time zone for all date/time properties, including properties when
creating a new appointment or meeting, specify a time zone in the
TimeZoneContext element in the CreateItem operation request.
To use a different time zone than the one specified in the TimeZoneContext
element, include a TimeZoneContext element, MeetingTimeZone element
(Exchange 2007 only), or StartTimeZone and EndTimeZone elements
(Exchange 2010 and later) in the CreateItem operation request.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:CreateItem SendMeetingInvitations="SendToNone">
<m:Items>
<t:CalendarItem>
<t:Start>2023-02-07T17:00:00.000Z</t:Start>
<t:End>2023-02-07T18:00:00.000Z</t:End>
</t:CalendarItem>
</m:Items>
</m:CreateItem>
</soap:Body>
</soap:Envelope>
The following example CreateItem operation request uses the StartTimeZone and
EndTimeZone elements to specify the Central time zone for the appointment. Notice
that the TimeZoneContext element is absent. However, if it were present, the values of
the StartTimeZone and EndTimeZone elements would override its value. Again, the
Start and End element values are expressed in UTC. We also set the
TimeZoneDescription Extended Property to the same value as TimeZone being used.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:CreateItem SendMeetingInvitations="SendToNone">
<m:Items>
<t:CalendarItem>
<t:ExtendedProperty>
<t:ExtendedFieldURI DistinguishedPropertySetId="Appointment"
PropertyId="33332" PropertyType="String" />
</t:ExtendedProperty>
<t:Start>2023-02-07T18:00:00.000</t:Start>
<t:End>2023-02-07T19:00:00.000</t:End>
</t:CalendarItem>
</m:Items>
</m:CreateItem>
</soap:Body>
</soap:Envelope>
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<t:TimeZoneContext>
<t:TimeZoneDefinition Id="Mountain Standard Time" />
</t:TimeZoneContext>
</soap:Header>
<soap:Body>
<m:CreateItem SendMeetingInvitations="SendToNone">
<m:Items>
<t:CalendarItem>
<t:Start>2023-02-07T19:00:00.000</t:Start>
<t:End>2023-02-07T20:00:00.000</t:End>
</t:CalendarItem>
</m:Items>
</m:CreateItem>
</soap:Body>
</soap:Envelope>
When the three appointments created by the previous EWS example requests are
viewed from a client configured in the Eastern time zone, they appear at 1:00 PM, 2:00
PM, and 3:00 PM, respectively.
Now that you know how to create appointments in specific time zones, you can update
the time zones on existing appointments to a different one.
See also
Time zones and EWS in Exchange
Learn how to update the time zone for an existing appointment or meeting by using the
EWS Managed API or EWS in Exchange.
Time values are stored on the Exchange server in Coordinate Universal Time (UTC). So if
an appointment is set to start at 1:00 PM (13:00) in the Eastern time zone (UTC-05:00),
that value is stored as 6:00 PM (18:00) on the server, assuming that the time zone is in
its standard time phase. When that appointment is viewed in other time zones, the
appropriate number of hours is added or subtracted from the UTC value to determine
the time zone-specific time. For example, if an appointment has a start time at 1:00 PM
Eastern (6:00 PM UTC), and is viewed from a client in the Pacific time zone (UTC-08:00),
the time-zone specific start time for that client would be 10:00 AM (18:00 - 08:00).
When you update the time zone of the appointment without updating the start and end
time, the server updates the UTC values stored on the server to keep the start and end
time as the same time zone-specific times. For example, consider the 1:00 PM Eastern
appointment. The time is stored as 18:00 UTC on the server. If the time zone of the
appointment is changed to the Pacific time zone, the server shifts the start time to 1:00
PM Pacific (21:00 UTC).
You can change this behavior by explicitly setting the start and end times.
This example assumes that the ExchangeService object has been initialized with valid
values in the Credentials and Url properties.
C#
AppointmentSchema.Start,
AppointmentSchema.ReminderDueBy,
AppointmentSchema.End,
AppointmentSchema.StartTimeZone,
AppointmentSchema.EndTimeZone);
Appointment apptToUpdate;
try
return;
Console.WriteLine("Before update:");
apptToUpdate.StartTimeZone = centralTZ;
apptToUpdate.EndTimeZone = centralTZ;
if (!shiftAppointment)
// Set the start and end times explicitly so that the appointment
apptToUpdate.Start, centralTZ);
apptToUpdate.End, centralTZ);
apptToUpdate.Start = newStartTime;
apptToUpdate.End = newEndTime;
try
apptToUpdate.Update(ConflictResolutionMode.AlwaysOverwrite,
SendInvitationsOrCancellationsMode.SendToNone);
return;
Appointment apptAfterUpdate;
try
return;
Console.WriteLine("After update:");
When the example is used to update an appointment that starts at 1:00 PM Eastern and
ends at 2:00 PM Eastern, with the shiftAppointment parameter set to true, and the
ExchangeService.TimeZone property set to the Eastern time zone, the output looks
like the following.
MS-DOS
Before update:
After update:
When the example is used to update the same appointment with the shiftAppointment
parameter set to false, and with the TimeZone property again set to the Eastern time
zone, the output looks a little different.
MS-DOS
Before update:
After update:
Notice that the start and end times did not change. This is because the times are being
interpreted in the Eastern time zone (because the TimeZone property is set to the
Eastern time zone), and the time values were updated to prevent the appointment from
shifting.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:UpdateItem ConflictResolution="AlwaysOverwrite"
SendMeetingInvitationsOrCancellations="SendToNone">
<m:ItemChanges>
<t:ItemChange>
<t:Updates>
<t:SetItemField>
<t:CalendarItem>
</t:CalendarItem>
</t:SetItemField>
<t:SetItemField>
<t:CalendarItem>
</t:CalendarItem>
</t:SetItemField>
</t:Updates>
</t:ItemChange>
</m:ItemChanges>
</m:UpdateItem>
</soap:Body>
</soap:Envelope>
The following example request updates the time zone of the appointment, and also
updates the start and end times by explicitly setting the Start and End elements. The
value of the ItemId element is shortened for readability.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:UpdateItem ConflictResolution="AlwaysOverwrite"
SendMeetingInvitationsOrCancellations="SendToNone">
<m:ItemChanges>
<t:ItemChange>
<t:Updates>
<t:SetItemField>
<t:CalendarItem>
</t:CalendarItem>
</t:SetItemField>
<t:SetItemField>
<t:CalendarItem>
</t:CalendarItem>
</t:SetItemField>
<t:SetItemField>
<t:CalendarItem>
<t:Start>2014-06-20T17:00:00.000Z</t:Start>
</t:CalendarItem>
</t:SetItemField>
<t:SetItemField>
<t:CalendarItem>
<t:End>2014-06-20T18:00:00.000Z</t:End>
</t:CalendarItem>
</t:SetItemField>
</t:Updates>
</t:ItemChange>
</m:ItemChanges>
</m:UpdateItem>
</soap:Body>
</soap:Envelope>
See also
Time zones and EWS in Exchange
Create appointments in a specific time zone by using EWS in Exchange
Update appointments and meetings by using EWS in Exchange
Tools and resources for troubleshooting
EWS applications for Exchange
Article • 03/04/2022 • 4 minutes to read
Find resources to help you troubleshoot your EWS Managed API or EWS application.
Things don't always go as planned. Sometimes EWS requests fail, or provide unexpected
results. This can be frustrating, especially if the reason isn't obvious. Hopefully this never
happens to you, but if it does, this article provides information about tools and
resources that you can use to help troubleshoot your problem.
7 Note
The EWS Managed API makes examining SOAP requests and responses easy with its
built in tracing functionality. If you are using EWS, you might or might not have access
to similar tracing functionality, depending on what platform or classes you use to send
your requests. However, you can always use a network tracing tool like Network
Monitor or Fiddler to examine the network traffic and view the request and
response payloads.
Additionally, you can instrument your client requests to enhance the information
available in requests and responses.
After you have the requests and responses, ask yourself the following: Do they look
correct? Are the values that your application is sending expected? Do the responses
make sense?
Examine error codes
Sometimes the error code can go a long way toward pinpointing the problem, even if at
first glance it doesn't seem to make sense. Does the error indicate that your client is
being throttled? Perhaps a call to Autodiscover to refresh configuration information is in
order?
For more information about handling specific errors, see the following articles:
Verify versions
There are a number of different components involved in EWS operations, and the
versions of those components can influence the results.
The EWS The Product version property of the Not applicable If you're
Managed Microsoft.Exchange.WebServices.dll file. using the
API version EWS
Managed
API, make
sure that
you are
using the
most
recent
version .
Verify access
EWS is enabled by default, but defaults can be changed. Use the Get-
OrganizationConfig cmdlet to make sure that EWS is enabled on the server, and the
Get-CASMailbox cmdlet to make sure that EWS is enabled for the user's mailbox. Also
check both cmdlet responses for an EWS allow or block list, and make sure that your
application isn't blocked from using EWS.
You should also verify that the default authentication settings on the EWS virtual
directory have not been modified.
While you can certainly write another client to test with, you don't have to! EWSEditor
is a sample client that uses the EWS Managed API and EWS. You can download the
client (including the source code) and use it to try the same requests that are failing in
your application.
IIS provides two different logging methods: IIS logging and failed requests tracing .
To work with IIS logs, you can use Log Parser Studio , which includes a number of built-
in EWS queries.
Next steps
Now that you've learned about the tools and resources that you can use to
troubleshoot, you might need help understanding the information provided by those
tools. The following are some options for getting help:
Exchange Server Development forum on Q&A — Ask a question of the Q&A
Exchange Server development community.
See also
See the following articles:
Fiddler
EWSEditor
Learn how to verify the results of your EWS or EWS Managed API calls.
When things aren't working correctly, it helps to see what's going on by examining the
SOAP requests that your application is sending over the network and the responses that
the server is sending back. The tools and resources for troubleshooting EWS
applications article includes links to tools to help capture and view those SOAP requests.
After you've got the requests and the responses, how do you verify that the request you
sent to the server was processed correctly? Read on to find out.
If you're sending EWS requests, you're going to start your verification by checking the
ResponseClass attribute for each response message in the response. That will tell you
whether the operation completed successfully on each item.
Depending on the object that your method is calling, if you're using the EWS Managed
API to send requests, you can do some verification using the response objects. But
because the SOAP response contains a superset of what's included in the EWS Managed
API response objects, you might want to look at the SOAP response as well. Because the
SOAP response can often contain more information than the EWS Managed API
response objects, start your verification with the SOAP response.
XML
<s:Body>
<m:GetItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetItemResponseMessage ResponseClass="Success">
Because a SOAP response might contain multiple response messages in a single SOAP
response, it's important to check each response message individually.
XML
<soap:Body>
<m:AddDelegateResponse
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
ResponseClass="Success"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
However, the operation status only reflects the shape of the top-level response and
does not reflect the status of all the individual message responses. In the following
example, the AddDelegateResponse operation has a ResponseClass of Success, but
the underlying DelegateUserResponseMessageType element has a ResponseClass
value of Error.
XML
<soap:Body>
<m:AddDelegateResponse
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
ResponseClass="Success"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseCode>NoError</m:ResponseCode>
<m:ResponseMessages>
<m:DelegateUserResponseMessageType ResponseClass="Error">
<m:ResponseCode>ErrorDelegateAlreadyExists</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
</m:DelegateUserResponseMessageType>
</m:ResponseMessages>
</m:AddDelegateResponse>
</soap:Body>
So for SOAP EWS responses, you can't rely on the ResponseClass of the operation - you
have to look at the ResponseClass of each response message to determine whether the
operation encountered any errors processing the items.
Verifying success
If each ResponseClass attribute for each ResponseMessage attribute is set to Success,
the operation completed successfully on all the items, and you can move on to your
next task.
XML
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:Message>
<t:ItemId Id="Er5bAAA="
ChangeKey="CQAAABYAAAD32nSTjepyT63rYH17n9THAAAhE0/M" />
<t:Subject>Dinner Party</t:Subject>
</t:Message>
</m:Items>
</m:GetItemResponseMessage>
</m:ResponseMessages>
</m:GetItemResponse>
</s:Body>
XML
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:Message>
<t:ItemId Id="Er5bAAA="
ChangeKey="CQAAABYAAAD32nSTjepyT63rYH17n9THAAAhE0/M" /
<t:Subject>Dinner Party</t:Subject>
</t:Message>
</m:Items>
</m:GetItemResponseMessage>
<m:GetItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:Message>
<t:ItemId Id="3c66AAA="
ChangeKey="CQAAABYAAAD32nSTjepyT63rYH17n9THAAAc3kqm"
/>
</t:Message>
</m:Items>
</m:GetItemResponseMessage>
</m:ResponseMessages>
</m:GetItemResponse>
</s:Body>
XML
<m:GetItemResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorInvalidPropertyRequest</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
<m:MessageXml>
</m:MessageXml>
<m:Items />
</m:GetItemResponseMessage>
In this example, EWS provides clues to debug the issue. When the ResponseClass
attribute has a value of Error, the following additional elements are included in the
response when applicable:
MessageText — Describes the error.
ResponseCode — Contains the error code, which can be used to find additional
troubleshooting resources.
DescriptiveLinkKey — Unused.
You can use the information provided in these elements to investigate your issue. In the
previous example, the MessageText indicates that the property isn't valid for the object
type. The request was to get an email message, but the property set included the
AssociatedCalendarItemId, which is only valid for appointment items.
The following example shows an error that was received as part of a batched operation
to get multiple email items. The first item was retrieved successfully and the
ResponseClass is set to Success. The second item could not be found, and the
ResponseClass is set to Error.
XML
<m:GetItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:Message>
<t:ItemId Id="Er5cAAA="
ChangeKey="CQAAABYAAAD32nSTjepyT63rYH17n9THAAAhE0/O" />
<t:Subject>Business plans</t:Subject>
</t:Message>
</m:Items>
</m:GetItemResponseMessage>
<m:GetItemResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorItemNotFound</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
<m:Items />
</m:GetItemResponseMessage>
</m:ResponseMessages>
</m:GetItemResponse>
When one or more items in a batched request can't be processed as requested, an error
is returned for each item that failed, and the rest of the items in the batch are processed
as expected. Failures in batch processing can occur if the item was deleted, and
therefore can't be sent, retrieved, or updated, or if the item moved to a different folder,
and therefore has a new item ID. Because the operation will complete for some items
and not return an error when one or more items can't be processed, it's important to
check each ResponseClass attribute before you move on to your next operation.
If the information provided by the response elements doesn't help you correct your
request or otherwise unblock you, see Next steps.
If you're using the EWS Managed API and calling a method on an Item object, or one
of the derived objects, the method likely does not return a response object to check for
success, but does throw an Exception if the method does not complete successfully.
Verifying success
One benefit of using the EWS Managed API is that it provides an overall status when
dealing with multiple items in one response. So if the method you called returns a
ServiceResponseCollection, you can check that the OverallResult property of the
ServiceResponseCollection is equal to ServiceResult.Success . If so, all the items in the
batched process were completed successfully; you don't have to check each
ServiceResponse object individually. If the OverallResult property is not set to
ServiceResult.Success, you have to handle the error or warning.
If the method you're calling does not return a ServiceResponseCollection, but does
return a ServiceResponse object, you have to check the value of the Result property. If
the Result value is set to Success, you know the method completed successfully.
If the method you're calling has no return value, there's really no way to check for
success via the EWS Managed API. As long as an exception is not thrown, you can
assume the method completed successfully. For additional validation, you can also
check the SOAP response to verify the results.
Handling errors, warnings, and exceptions
If your EWS Managed API code throws an Exception, you can use the
Exception.Message value to determine the source of the error. The Message property
contains the contents of the MessageText element in the underlying SOAP response.
In addition, if the exception is of type ServiceResponseException object, one of the
most common exceptions, you can also retrieve the ErrorCode contained in the
underlying SOAP ResponseCode element, and the Response property that identifies
the associated ServiceResponse object. The following code shows how to catch and
display the contents of a ServiceResponseException.
C#
try
If the method you called returns a ServiceResponseCollection, and the value of the
OverallResult property is equal to Warning or Error, you'll have to loop through each
object in the ServiceResponseCollection to find the error. The OverallResult property is
set to Warning if at least one response has its Result value set to Warning and all other
responses have their Result values set to Success. The OverallResult property is set to
Error if at least one response has its Result value set to Error. When the OverallResult is
set to Warning or Error, the following properties are set on the ServiceResponse objects
as appropriate:
ErrorCode — Contains the error code, which can be used to find additional
troubleshooting resources.
ErrorDetails — Contains details about the error for some ErrorCodes. For
example, when the error code is ErrorRecurrenceHasNoOccurrence, the
ErrorDetails will contain keys for EffectiveStartDate and EffectiveEndDate.
ErrorProperties — If available, identifies the properties that caused the error. For
example, when the error code is ErrorInvalidPropertyForOperation,
ErrorProperties contains the definition of the property that was invalid for the
request.
ResponseCode element
ServiceError enumeration
In addition, depending on what you're trying to accomplish in your request, you might
find additional helpful information about the error code in the following topics:
See also
Develop web service clients for Exchange
This section includes reference information for the APIs that target or are included in
Exchange Online, Exchange Online as part of Office 365, and versions of Exchange
starting with Exchange Server 2007. This section includes the following content:
EWS reference for Exchange — Contains API reference documentation for the
Exchange Web Services (EWS) API. This is the primary API for creating clients and
services that connect to Exchange to get access to mailbox information. This
content includes information about the operations that are available in EWS, and
XML reference documentation that provides information about the instance XML
that is sent to and received from Exchange.
EWS Managed API reference — Contains API reference documentation for the EWS
Managed API. The EWS Managed API is a simple and full-featured interface for
developing and extending applications that use EWS.
Autodiscover web service reference for Exchange — Contains XML API reference
for the Autodiscover services provided by Exchange. The Autodiscover APIs
provide provisioning information to client applications that enables them to
automatically discover the Exchange service endpoints.
Unified Messaging web service reference for Exchange — Contains the XML API
reference for the Unified Messaging (UM) web service. The UM web service
provides client applications access to UM functionality in Exchange. Note that EWS
also provides UM functionality.
EWS generated object models for Exchange — Contains the API reference for the
autogenerated proxy classes in the ExchangeWebServices namespace.
7 Note
For clients that are based on versions of the .NET Framework starting with the
.NET Framework 3.5, we recommend that you use the EWS Managed API to
access EWS. For more information, see Get started with EWS Managed API
client applications.
For information about which set of APIs to use, see EWS client design overview for
Exchange.
The Exchange XML reference is based on the XML instances that are sent between the
client and the server. The XML is described in the WSDL and XSD files for the EWS and
SOAP Autodiscover services. The UM web service and the POX Autodiscover service do
not have published WSDL and schema files that describe their structure. The XML
reference for the services that do not have schema files is based on the XML instances
that can be observed and captured as they are exchanged between the client and the
service.
See also
Explore the EWS Managed API, EWS, and web services in Exchange
Start using web services in Exchange
Autodiscover for Exchange
EWS reference for Exchange
Article • 03/29/2023 • 2 minutes to read
Find reference information for the EWS XML elements and WSDL operations in
Exchange.
This section includes reference information for the EWS XML elements that are sent
between the client and server. The XML element reference contains summaries of what
the elements represent and information about the potential hierarchies that include the
element. This documentation covers the XML instances that are sent between the client
and server. The schema that describes these elements can be found in the virtual
directory of the server that hosts EWS.
The WSDL operation content in this section provides overview information and request
and response examples for all EWS operations, as well as information about SOAP
headers and associated error messages for some operations. You can use the version
information to determine which features are available in different versions of EWS. The
operation reference information will help you to understand the structure of the XML
that is included in the SOAP messages that are sent to and from the server.
In this section
EWS operations in Exchange
See also
Web services reference for Exchange
Explore the EWS Managed API, EWS, and web services in Exchange
Start using web services in Exchange
EWS operations in Exchange
Article • 03/29/2023 • 8 minutes to read
Find information about the EWS operations that are available in Exchange.
Exchange Web Services (EWS) provides many operations that enable you to access
information from the Exchange store. The articles in this section provide information
about the overall structure of the requests, responses, and error response messages for
EWS operations, as well as XML examples for each operation. They provide an overview
of the message structures that are sent between the client and the server. You can use
this information to debug message structures and to find information about what you
can do in an EWS request. For more information about what the XML structure
represents, see - EWS XML elements in Exchange.
All EWS functionality is associated with a version of the schema. New EWS schema
versions are introduced in new releases of Exchange Server or Exchange Online. The
RequestServerVersion element contains a Version attribute that maps the server version
to the schema version. This article provides information about when each operation was
introduced. Specific functionality within an operation might require a later version of the
service. The versioned schemas are implemented so that clients that are designed
against an older version of EWS will work with a newer version of EWS.
These operations can target the EWS endpoint that services your mailbox. You can
browse to the EWS endpoint by using a URL that is similar in structure to
http://<clientaccessserver>.com/ews/exchange.asmx, where <clientaccessserver> is the
Exchange Client Access server that services your mailbox. You can use Autodiscover to
get the URL to the Client Access server that services your mailbox. For more information
about Autodiscover, see Autodiscover for Exchange.
eDiscovery operations
The eDiscovery operations provide search operations for legal holds and identify
mailbox data that cannot be indexed and returned in discovery search results.
GetDiscoverySearchConfiguration operation
Exchange 2013
GetHoldOnMailboxes operation
Exchange 2013
Operation name Introduced in
GetNonIndexableItemDetails operation
Exchange 2013
GetNonIndexableItemStatistics operation
Exchange 2013
GetSearchableMailboxes operation
Exchange 2013
SearchMailboxes operation
Exchange 2013
SetHoldOnMailboxes operation
Exchange 2013
ArchiveItem operation
Exchange 2013
CreateItem operation
Exchange 2007
CopyItem operation
Exchange 2007
DeleteItem operation
Exchange 2007
FindItem operation
Exchange 2007
GetItem operation
Exchange 2007
MarkAllItemsAsRead operation
Exchange 2013
MoveItem operation
Exchange 2007
SendItem operation
Exchange 2007
UpdateItem operation
Exchange 2007
The following table lists the Exchange mailbox data folder operations.
FindFolder operation
Exchange 2007
GetFolder operation
Exchange 2007
The following table lists the Exchange mailbox data attachment operations.
CreateAttachment operation
Exchange 2007
GetAttachment operation
Exchange 2007
DeleteAttachment operation
Exchange 2007
GetReminders operation
Exchange 2013
PerformReminderAction operation
Exchange 2013
The following table lists the Exchange mailbox data conversation operations.
ApplyConversationAction operation
Exchange 2010 Service Pack 1 (SP1)
Operation name Introduced in
FindConversation operation
Exchange 2010 SP1
GetConversationItems operation
Exchange 2013
The following table lists the Exchange mailbox data utilities operations.
ConvertId operation
Exchange 2007 Service Pack 1
ExpandDL operation
Exchange 2007
GetUserPhoto operation Exchange 2013. This operation has both a REST and a SOAP
implementation.
MarkAsJunk operation
Exchange 2013
ResolveNames operation
Exchange 2007
Availability operations
The availability operations improve the calendar and free/busy sharing experience by
providing more secure, up-to-date, and rich free/busy information. Free/busy data is a
critical component of scheduling meetings. The availability operations provide a reliable
foundation for effective scheduling.
GetUserAvailability operation
Exchange 2007
GetRoomLists operation
Exchange 2010
GetRooms operation
Exchange 2010
GetUserOofSettings operation
Exchange 2007
SetUserOofSettings operation
Exchange 2007
UploadItems operation
Exchange 2010 SP1
AddDelegate operation
Exchange 2007 Service Pack 1 (SP1)
GetDelegate operation
Exchange 2007 SP1
UpdateDelegate operation
Exchange 2007 SP1
RemoveDelegate operation
Exchange 2007 SP1
GetInboxRules operation
Exchange 2010 SP1
UpdateInboxRules operation
Exchange 2010 SP1
DisableApp operation
Exchange 2013
GetAppManifests operation
Exchange 2013
GetAppMarketplaceUrl operation
Exchange 2013
GetClientAccessToken operation
Exchange 2013
InstallApp operation
Exchange 2013
UninstallApp operation
Exchange 2013
GetMailTips operation
Exchange 2010
FindMessageTrackingReport operation
Exchange 2010
GetMessageTrackingReport operation
Exchange 2010
Notification operations
The notification operations notify the client application of events that are associated
with items and folders a specified mailbox. The subscription model can be push-based,
pull-based, or streaming-based.
GetEvents operation
Exchange 2007
GetStreamingEvents operation
Exchange 2010 SP1
Subscribe operation
Exchange 2007
Unsubscribe operation
Exchange 2007
Persona operations
The persona operations provide an interface to find and get information about a linked
contact. The following table lists the persona operations.
FindPeople operation
Exchange 2013
GetPersona operation
Exchange 2013
GetUserRetentionPolicyTags operation
Exchange 2013
GetServiceConfiguration operation
Exchange 2010
Sharing operations
The sharing operations enable clients to share calendar data and contacts data.
Synchronization operations
The synchronization operations provide a one-way synchronized cached copy of a user's
folders and items.
SyncFolderHierarchy operation
Exchange 2007
SyncFolderItems operation
Exchange 2007
Time zone operation
The time zone operation enables clients to get a list of time zone definitions that are
supported by the server.
GetServerTimeZones operation
Exchange 2010
DisconnectPhoneCall operation
Exchange 2010
GetPhoneCallInformation operation
Exchange 2010
AddNewImContactToGroup operation
Exchange 2013
AddImContactToGroup operation
Exchange 2013
AddImGroup operation
Exchange 2013
AddNewTelUriContactToGroup operation
Exchange 2013
AddDistributionGroupToImList operation
Exchange 2013
GetImItemList operation
Exchange 2013
GetImItems operation
Exchange 2013
RemoveContactFromImList operation
Exchange 2013
RemoveImContactFromGroup operation
Exchange 2013
RemoveDistributionGroupFromImList operation
Exchange 2013
RemoveImGroup operation
Exchange 2013
SetImGroup operation
Exchange 2013
CreateUserConfiguration operation
Exchange 2010
DeleteUserConfiguration operation
Exchange 2010
GetUserConfiguration operation
Exchange 2010
UpdateUserConfiguration operation
Exchange 2010
See also
Explore the EWS Managed API, EWS, and web services in Exchange
Start using web services in Exchange
Autodiscover for Exchange
AddDelegate operation
Article • 03/29/2023 • 2 minutes to read
The AddDelegate operation adds one or more delegates to a principal's mailbox and
sets specific access permissions.
SOAP headers
The AddDelegate operation can use the SOAP headers that are listed and described in
the following table.
RequestVersion RequestServerVersion
Identifies the schema version for the operation
request.
ServerVersion ServerVersionInfo
Identifies the version of the server that responded to
the request.
Description
The following example of an AddDelegate request shows an attempt to give user1
delegate permissions on folders that are owned by user2. User1 is given Author-level
permissions to user2's Calendar folder and Reviewer-level permissions to user2's
Contacts folder. User1 will not receive copies of meeting messages and will be unable to
view private items in user2's mailbox. Meeting requests will be sent to both user1 and
user2.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Header>
<t:RequestServerVersion Version="Exchange2007_SP1"/>
</soap:Header>
<soap:Body
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<AddDelegate>
<Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</Mailbox>
<DelegateUsers>
<t:DelegateUser>
<t:UserId>
<t:PrimarySmtpAddress>[email protected]</t:PrimarySmtpAddress>
</t:UserId>
<t:DelegatePermissions>
<t:CalendarFolderPermissionLevel>Author</t:CalendarFolderPermissionLevel>
<t:ContactsFolderPermissionLevel>Reviewer</t:ContactsFolderPermissionLevel>
</t:DelegatePermissions>
<t:ReceiveCopiesOfMeetingMessages>false</t:ReceiveCopiesOfMeetingMessages>
<t:ViewPrivateItems>false</t:ViewPrivateItems>
</t:DelegateUser>
</DelegateUsers>
<DeliverMeetingRequests>DelegatesAndMe</DeliverMeetingRequests>
</AddDelegate>
</soap:Body>
</soap:Envelope>
Description
The following example of an AddDelegate response shows a successful response to an
AddDelegate request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<t:ServerVersionInfo MajorVersion="8"
MinorVersion="1"
MajorBuildNumber="206"
MinorBuildNumber="0"
Version="Exchange2007_SP1"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<m:AddDelegateResponse
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
ResponseClass="Success"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseCode>NoError</m:ResponseCode>
<m:ResponseMessages>
<m:DelegateUserResponseMessageType ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:DelegateUser>
<t:UserId>
<t:SID>S-1-5-21-1333220396-2200287332-232816053-1116</t:SID>
<t:PrimarySmtpAddress>[email protected]</t:PrimarySmtpAddress>
<t:DisplayName>User1</t:DisplayName>
</t:UserId>
<t:ReceiveCopiesOfMeetingMessages>false</t:ReceiveCopiesOfMeetingMessages>
<t:ViewPrivateItems>false</t:ViewPrivateItems>
</m:DelegateUser>
</m:DelegateUserResponseMessageType>
</m:ResponseMessages>
</m:AddDelegateResponse>
</soap:Body>
</soap:Envelope>
Description
The following example shows the response to a request to add a delegate who has
already been added to the principal's mailbox.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<t:ServerVersionInfo MajorVersion="8"
MinorVersion="1"
MajorBuildNumber="206"
MinorBuildNumber="0"
Version="Exchange2007_SP1"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<m:AddDelegateResponse
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
ResponseClass="Success"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseCode>NoError</m:ResponseCode>
<m:ResponseMessages>
<m:DelegateUserResponseMessageType ResponseClass="Error">
<m:ResponseCode>ErrorDelegateAlreadyExists</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
</m:DelegateUserResponseMessageType>
</m:ResponseMessages>
</m:AddDelegateResponse>
</soap:Body>
</soap:Envelope>
Comments
If the ErrorDelegateAlreadyExists response code is returned when you try to add a
delegate, use the GetDelegate operation to get all the current permissions for the
delegate, and then use the UpdateDelegate operation to set the new permissions.
See also
Adding Delegates
AddDistributionGroupToImList
operation
Article • 03/29/2023 • 2 minutes to read
This operation can use the SOAP headers that are listed in the following table.
Impersonation
ExchangeImpersonation Identifies the user whom the client application is
impersonating. This is applicable to a request.
RequestVersion RequestServerVersion
Identifies the schema version for the operation
request. This is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This is applicable to a response.
AddDistributionGroupToImList operation
request example
The following example of an AddDistributionGroupToImList operation request shows
how to add a distribution group to the IM list.
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
<t:MailboxCulture>en-US</t:MailboxCulture>
</soap:Header>
<soap:Body >
<m:AddDistributionGroupToImList>
<m:SmtpAddress>[email protected]</m:SmtpAddress>
</m:AddDistributionGroupToImList>
</soap:Body>
</soap:Envelope>
AddDistributionGroupToImList
SmtpAddress
Successful AddDistributionGroupToImList
operation response
The following example shows a successful response to an
AddDistributionGroupToImList operation request.
The successful response contains the distribution group display name, the Exchange
store class for the distribution group, and the EWS identifier of the new distribution
group.
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<s:Header>
<t:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="349"
MinorBuildNumber="0"
Version="Exchange2013"/>
</s:Header>
<s:Body>
<m:AddDistributionGroupToImListResponse ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:ImGroup>
<t:DisplayName>[email protected]</t:DisplayName>
<t:GroupType>IPM.DistList.MOC.DG</t:GroupType>
<t:ExchangeStoreId Id="AAMkAGQ1MjJjAA="
ChangeKey="EgAAAA=="/>
</m:ImGroup>
</m:AddDistributionGroupToImListResponse>
</s:Body>
</s:Envelope>
AddDistributionGroupToImListResponse
ResponseCode
ImGroup
DisplayName (string)
GroupType
ExchangeStoreId
AddDistributionGroupToImList operation
ErrorInvalidImDistributionGroupSmtpAddress
error response
The following example shows an error response to an AddDistributionGroupToImList
operation request. The following error response occurs when an attempt is made to add
a distribution group that does not exist in the Exchange store.
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="349"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<AddDistributionGroupToImListResponse ResponseClass="Error"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>ErrorInvalidImDistributionGroupSmtpAddress</ResponseCode>
<DescriptiveLinkKey>0</DescriptiveLinkKey>
</AddDistributionGroupToImListResponse>
</s:Body>
</s:Envelope>
AddDistributionGroupToImListResponse
MessageText
DescriptiveLinkKey
See also
People and contacts in EWS in Exchange
AddImGroup
RemoveImGroup
AddEntityFeedback operation
Article • 03/29/2023 • 2 minutes to read
This operation relies on the type of event being logged. One of the most important
events is EntityAdded, which corresponds to an entity being selected. This operation is
batch, so it can be used to log batches of entries in a single request.
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
</soap:Header>
<soap:Body >
<m:AddEntityFeedback>
<m:EntityFeedbackEntries>
<t:EntityFeedbackEntry>
<t:ClientEventTimeUTC> 2015-07-
05T22:16:18+00:00</t:ClientEventTimeUTC>
<t:ClientEventTimeLocal> 2015-07-
05T22:16:18+00:00</t:ClientEventTimeLocal>
<t:ClientSessionId>00000000-0000-0000-0000-
000000000012</t:ClientSessionId>
<t:ClientVersion>15.01.0101.01</t:ClientVersion>
<t:ClientId>Web</t:ClientId>
<t:TransactionId>123456789</t:TransactionId>
<t:EventType>EntityAdded</t:EventType>
<t:TargetEntityList>["a","b","c"]
</t:TargetEntityList>
<t:SourceOfEntityAdded></t:SourceOfEntityAdded>
<t:JSONPropertyBag></t:JSONPropertyBag>
</t:EntityFeedbackEntry>
<t:EntityFeedbackEntry>
</t:EntityFeedbackEntry>
</m:EntityFeedbackEntries>
</m:AddEntityFeedback>
</soap:Body>
</soap:Envelope>
ClientEventTimeUtc
Yes The UTC time the event occurred on the DateTime
client-side.
ClientEventTimeLocal
Yes The local time the event occurred on the DateTime
client side.
ClientId
Yes Type of Client (E.g., Outlook, OWA, etc.). ClientIDType
Enumeration
ClientSessionId
Yes GUID Identifying the session ID. GUID
Generated on the client.
ClientVersion
Yes Version of the client (E.g., String
15.01.0101.000).
EntityAddSource
No Source for EntityAded (E.g., EntityAddSource
EntityRelevanceAPI, types, pasted). Enumeration
EventType
Yes Type of event (E.g., Entity Added, Entity String
Removed).
JSONPropertyBag
No Additional properties associated with JSON Blob
the event (JSON blob of key/value
pairs).
TargetEntityList
No List of entities associated with the event. JSON String
TransactionId
No ID (GUID) correlating the ID in query String
logs.
Successful AddEntityFeedback operation response
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="1"
MajorBuildNumber="228"
MinorBuildNumber="0"
Version="V2_49"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" />
</s:Header>
<s:Body>
<AddEntityFeedbackResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ResponseCode>NoError</ResponseCode>
<ErrorCount>0</ErrorCount>
<ErrorDetails />
</AddEntityFeedbackResponse>
</s:Body>
</s:Envelope>
Errors
The API can log a batch of feedback entries, we log all that we can. This field represents
the number of error entries that were not logged.
ErrorDetails
Details pertaining to the errors above separates by ; .
Desktop
Exchange
IMAP4
Lync
MacMail
MacOutlook
Mobile
Other
Outlook
OutlookService
POP3
Tablet
Web
EntityAddSource Enumeration
ActiveDirectory
EntityRelevanceApi
EntityRelevanceApiCache
ExplicitTyping
LocalCache
LocalCacheAndEntityRelevanceAPI
None
Other
Paste
FindPeople request
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
</soap:Header>
<soap:Body >
<m:FindPeople>
<m:QueryString>user1</m:QueryString>
<m:SearchPeopleSuggestionIndex>true</m:SearchPeopleSuggestionIndex>
</m:FindPeople>
</soap:Body>
</soap:Envelope>
FindPeople response
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<s:Body>
<FindPeopleResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ResponseCode>NoError</ResponseCode>
<People>
<Persona
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<PersonaType>Person</PersonaType>
<CreationTime>2015-10-02T23:25:42</CreationTime>
<DisplayName>user2</DisplayName>
</Persona>
</People>
<TotalNumberOfPeopleInView>0</TotalNumberOfPeopleInView>
<FirstMatchingRowIndex>0</FirstMatchingRowIndex>
<FirstLoadedRowIndex>0</FirstLoadedRowIndex>
<TransactionId>b56ad16e-5d5a-4574-90f8-
b8dd57382be6</TransactionId>
</FindPeopleResponse>
</s:Body>
</s:Envelope>
AddEntityFeedback request
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
</soap:Header>
<soap:Body >
<m:AddEntityFeedback>
<m:EntityFeedbackEntries>
<t:EntityFeedbackEntry>
<t:ClientEventTimeUtc>2015-07-
05T22:16:18+00:00</t:ClientEventTimeUtc>
<t:ClientEventTimeLocal>2015-07-
05T22:16:18+00:00</t:ClientEventTimeLocal>
<t:ClientSessionId>00000000-0000-0000-0000-
000000000012</t:ClientSessionId>
<t:ClientVersion>15.01.0101.01</t:ClientVersion>
<t:ClientId>Web</t:ClientId>
<t:TransactionId>b56ad16e-5d5a-4574-90f8-
b8dd57382be6</t:TransactionId>
<t:EventType>EntityAdded</t:EventType>
<t:TargetEntityList>["[email protected]"]</t:TargetEntityList>
<t:SourceOfEntityAdded>EntityRelevanceApi</t:SourceOfEntityAdded>
<t:JSONPropertyBag></t:JSONPropertyBag>
</t:EntityFeedbackEntry>
</m:EntityFeedbackEntries>
</m:AddEntityFeedback>
</soap:Body>
</soap:Envelope>
7 Note
AddEntityFeedback response
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<s:Body>
<AddEntityFeedbackResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ResponseCode>NoError</ResponseCode>
<ErrorCount>0</ErrorCount>
<ErrorDetails />
</AddEntityFeedbackResponse>
</s:Body>
</s:Envelope>
AddImContactToGroup operation
Article • 03/29/2023 • 2 minutes to read
The AddImContactToGroup operation can use the SOAP headers that are listed in the
following table.
Impersonation
ExchangeImpersonation Identifies the user whom the client application is
impersonating. This header is applicable to a
request.
RequestVersion RequestServerVersion
Identifies the schema version for the operation
request. This header is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This header is applicable to a response.
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
<t:MailboxCulture>en-US</t:MailboxCulture>
</soap:Header>
<soap:Body >
<m:AddImContactToGroup>
<m:ContactId Id="AAMkAGQ1MjJjMTBkLTc4Y2AA="
ChangeKey="EQAAABYAAABtF8oI7i"/>
<m:GroupId Id="AAMkAGQ1MjJjMTBkzzAAAQKAAA="
ChangeKey="EgAAAA=="/>
</m:AddImContactToGroup>
</soap:Body>
</soap:Envelope>
AddImContactToGroup
ContactId
GroupId
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="349"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<AddImContactToGroupResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
</AddImContactToGroupResponse>
</s:Body>
</s:Envelope>
AddImContactToGroupResponse
ResponseCode
AddImContactToGroup operation
ErrorInvalidImContactId error response
The following example shows an error response to an AddImContactToGroup operation
request. The following error response occurs when an attempt is made to add a contact
that is not an IM contact.
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="349"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<AddImContactToGroupResponse ResponseClass="Error"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>ErrorInvalidImContactId</ResponseCode>
<DescriptiveLinkKey>0</DescriptiveLinkKey>
</AddImContactToGroupResponse>
</s:Body>
</s:Envelope>
AddImContactToGroupResponse
MessageText
ResponseCode
DescriptiveLinkKey
See also
AddImGroup operation
AddNewImContactToGroup operation
SetImGroup operation
RemoveImGroup operation
GetImItemList operation
The AddImGroup Exchange Web Services (EWS) operation adds a new instant
messaging (IM) group to a mailbox.
This operation returns the display name, group type, and Exchange store identifier of
the new group.
The AddImGroup operation can use the SOAP headers that are listed in the following
table.
Impersonation
ExchangeImpersonation Identifies the user whom the client application is
impersonating. This is applicable to a request.
RequestVersion RequestServerVersion
Identifies the schema version for the operation
request. This is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This is applicable to a response.
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
<t:MailboxCulture>en-US</t:MailboxCulture>
</soap:Header>
<soap:Body >
<m:AddImGroup>
<m:DisplayName>MyCustomGroup</m:DisplayName>
</m:AddImGroup>
</soap:Body>
</soap:Envelope>
AddImGroup
DisplayName (string)
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="349"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<AddImGroupResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<ImGroup>
<DisplayName
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">MyCustomG
roup</DisplayName>
<GroupType
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">IPM.DistL
ist.MOC.UserGroup</GroupType>
<ExchangeStoreId
Id="AAMkAGQ1MjJjMTBkLTc4Y2UtNDA5Ny04ZjU5LWI3MAAA="
ChangeKey="EgAAAA=="
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"/>
</ImGroup>
</AddImGroupResponse>
</s:Body>
</s:Envelope>
AddImGroupResponse
ResponseCode
ImGroup
DisplayName (string)
GroupType
ExchangeStoreId
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<s:Fault>
<faultcode
xmlns:a="https://schemas.microsoft.com/exchange/services/2006/types">a:Error
SchemaValidation</faultcode>
<detail>
<e:ResponseCode
xmlns:e="https://schemas.microsoft.com/exchange/services/2006/errors">ErrorS
chemaValidation</e:ResponseCode>
<e:Message
xmlns:e="https://schemas.microsoft.com/exchange/services/2006/errors">The
request failed schema validation.</e:Message>
<t:MessageXml
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<t:LineNumber>11</t:LineNumber>
<t:LinePosition>33</t:LinePosition>
</t:MessageXml>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>
See also
People and contacts in EWS in Exchange
RemoveImGroup operation
SetImGroup
AddNewImContactToGroup operation
Article • 03/29/2023 • 3 minutes to read
GroupId property - Identifies the group that the contact is added to.
This operation returns the persona of the contact that was added to the group.
Impersonation
ExchangeImpersonation Identifies the user whom the client application is
impersonating. This header is applicable to a
request.
RequestVersion RequestServerVersion
Identifies the schema version for the operation
request. This header is applicable to a request.
Header name Element Description
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This header is applicable to a response.
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
<t:MailboxCulture>en-US</t:MailboxCulture>
<t:TimeZoneContext>
</t:TimeZoneContext>
</soap:Header>
<soap:Body >
<m:AddNewImContactToGroup>
<m:ImAddress>[email protected]</m:ImAddress>
<m:DisplayName>Tony Smith</m:DisplayName>
<m:GroupId Id="AAMkAGQ1MjJjMTBkLTc4Y2UtNDAAAQKAAA="
ChangeKey="EgAAAA=="/>
</m:AddNewImContactToGroup>
</soap:Body>
</soap:Envelope>
7 Note
AddNewImContactToGroup
ImAddress (String)
DisplayName (string)
GroupId
Successful AddNewImContactToGroup
operation response
The following example shows a successful response to an AddNewImContactToGroup
operation request. The response contains the persona of the newly created contact. The
contact is added to the Quick Contacts folder in Exchange.
7 Note
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="349"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<AddNewImContactToGroupResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<Persona>
<PersonaId
Id="AAQkAGQ1MjJjMTBkLTc4Y2UtNDA5Ny04ZjU5LWI3MTYzNGNkZmRkYQAQAJ3EkhEEXN5KufGb
SYJanZk="
xmlns="https://schemas.microsoft.com/exchange/services/2006/types" />
<PersonaType
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">Person</P
ersonaType>
<CreationTime
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">2012-01-
05T23:06:58Z</CreationTime>
<DisplayName
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">Tony
Smith</DisplayName>
<DisplayNameFirstLast
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">Tony
Smith</DisplayNameFirstLast>
<DisplayNameLastFirst
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">Tony
Smith</DisplayNameLastFirst>
<FileAsId
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">None</Fil
eAsId>
<EmailAddress
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Name>Tony Smith</Name>
<Address>[email protected]</Address>
<RoutingType>SMTP</RoutingType>
</EmailAddress>
<EmailAddresses
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<EmailAddress>
<Name>Tony Smith</Name>
<Address>[email protected]</Address>
<RoutingType>SMTP</RoutingType>
</EmailAddress>
</EmailAddresses>
<ImAddress
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">tsmith@co
ntoso.com</ImAddress>
<RelevanceScore
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">214748364
7</RelevanceScore>
<Attributions
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Attribution>
<Id>0</Id>
<SourceId Id="BtF8oI7iVOQatt/bhQoTbWAAAAAAvcAAA="
ChangeKey="EQAAABYAAABtF8oIQoTbWAAAAAAyg" />
<DisplayName>Outlook</DisplayName>
<IsWritable>true</IsWritable>
<IsQuickContact>true</IsQuickContact>
<IsHidden>false</IsHidden>
<FolderId Id="AAMkAGQ1MjJjMTBkLTc4YhQoTbWAAAAAAvZAAA="
ChangeKey="AQAAAA==" />
</Attribution>
</Attributions>
<DisplayNames
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<StringAttributedValue>
<Value>Tony Smith</Value>
<Attributions>
<Attribution>0</Attribution>
</Attributions>
</StringAttributedValue>
</DisplayNames>
<FileAsIds
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<StringAttributedValue>
<Value>None</Value>
<Attributions>
<Attribution>0</Attribution>
</Attributions>
</StringAttributedValue>
</FileAsIds>
<Emails1
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<EmailAddressAttributedValue>
<Value>
<Name>Tony Smith</Name>
<Address>[email protected]</Address>
<RoutingType>SMTP</RoutingType>
</Value>
<Attributions>
<Attribution>0</Attribution>
</Attributions>
</EmailAddressAttributedValue>
</Emails1>
<ImAddresses
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<StringAttributedValue>
<Value>[email protected]</Value>
<Attributions>
<Attribution>0</Attribution>
</Attributions>
</StringAttributedValue>
</ImAddresses>
</Persona>
</AddNewImContactToGroupResponse>
</s:Body>
</s:Envelope>
AddNewImContactToGroupResponse
Persona
PersonaId
PersonaType
CreationTime
DisplayName (string)
DisplayNameFirstLast
DisplayNameLastFirst
FileAsId
EmailAddress (EmailAddressType)
Name (EmailAddressType)
Address (string)
RoutingType (EmailAddressType)
ImAddress (String)
RelevanceScore
Attributions (ArrayOfPersonaAttributionsType)
Attribution (PersonaAttributionType)
ID (String)
SourceId
IsWritable
IsQuickContact
IsHidden
FolderId
DisplayNames
StringAttributedValue
Value (ArrayOfStringValueType)
FileAsIds
Emails1
EmailAddressAttributedValue
ImAddresses
AddNewImContactToGroup operation error
response
The following example shows an error response to a AddNewImContactToGroup
operation request. This is a response to a request to add a contact to a group that is not
in the requester's mailbox.
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="578"
MinorBuildNumber="11"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<AddNewImContactToGroupResponse ResponseClass="Error"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>ErrorNonExistentMailbox</ResponseCode>
<DescriptiveLinkKey>0</DescriptiveLinkKey>
<MessageXml>
<t:Value Name="MailboxGuid"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">d5fasda
dcw3d-23de-2341-8f59-b71523fsddda</t:Value>
</MessageXml>
</AddNewImContactToGroupResponse>
</s:Body>
</s:Envelope>
AddNewImContactToGroupResponse
MessageText
ResponseCode
DescriptiveLinkKey
MessageXml
For additional error codes that are generic to EWS and specific to this operation, see
ResponseCode.
See also
AddImGroup operation
AddImContactToGroup operation
AddImGroup operation
RemoveImGroup operation
SetImGroup operation
Impersonation
ExchangeImpersonation Identifies the user whom the client application is
impersonating. This header is applicable to a
request.
RequestVersion RequestServerVersion
Identifies the schema version for the operation
request. This header is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This header is applicable to a response.
AddNewTelUriContactToGroup operation
request example: Add a new contact to a group
The following example of an AddNewTelUriContactToGroup operation request shows
how to create a new contact and add the new contact to an instant messaging (IM)
group by using the contact's TEL and SIP URIs.
7 Note
All item identifiers and change keys in this article have been shortened to preserve
readability.
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
<t:MailboxCulture>en-US</t:MailboxCulture>
</soap:Header>
<soap:Body >
<m:AddNewTelUriContactToGroup>
<m:TelUriAddress>tel:5625550100</m:TelUriAddress>
<m:ImContactSipUriAddress>sip:[email protected]</m:ImContactSipUriAddress>
<m:ImTelephoneNumber>5625550100</m:ImTelephoneNumber>
<m:GroupId Id="AAMkADEzOTm4QrAABY7+0GAAA="/>
</m:AddNewTelUriContactToGroup>
</soap:Body>
</soap:Envelope>
AddNewTelUriContactToGroup
TelUriAddress
ImContactSipUriAddress
ImTelephoneNumber
GroupId
Successful AddNewTelUriContactToGroup
operation response
The following example shows a successful response to an
AddNewTelUriContactToGroup operation request to create a contact. The response
contains the associated persona identifier for the contact, the display name of the
persona, which in this case is based on the contact's phone number, and the contact's
item identifier, which is displayed as part of the source identifier attribution.
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="545"
MinorBuildNumber="11"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types" />
</s:Header>
<s:Body>
<AddNewTelUriContactToGroupResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<Persona>
<t:PersonaId Id="AAQkADE686dX3s="/>
<t:PersonaType>Person</t:PersonaType>
<t:CreationTime>2012-10-29T23:10:13Z</t:CreationTime>
<t:DisplayName/>
<t:DisplayNameFirstLast>5625550100</t:DisplayNameFirstLast>
<t:DisplayNameLastFirst>5625550100</t:DisplayNameLastFirst>
<t:FileAs/>
<t:FileAsId >None</t:FileAsId>
<t:RelevanceScore >2147483647</t:RelevanceScore>
<t:Attributions>
<t:Attribution>
<t:Id>0</t:Id>
<t:DisplayName>Lync Contacts</t:DisplayName>
<t:IsWritable>false</t:IsWritable>
<t:IsQuickContact>true</t:IsQuickContact>
<t:IsHidden>false</t:IsHidden>
</t:Attribution>
</t:Attributions>
<t:FileAsIds>
<t:StringAttributedValue>
<t:Value>None</t:Value>
<t:Attributions>
<t:Attribution>0</t:Attribution>
</t:Attributions>
</t:StringAttributedValue>
</t:FileAsIds>
<t:OtherTelephones>
<t:PhoneNumberAttributedValue>
<t:Value>
<t:Number>5625550100</t:Number>
<t:Type>Other</t:Type>
</t:Value>
<t:Attributions>
<t:Attribution>0</t:Attribution>
</t:Attributions>
</t:PhoneNumberAttributedValue>
</t:OtherTelephones>
</Persona>
</AddNewTelUriContactToGroupResponse>
</s:Body>
</s:Envelope>
AddNewTelUriContactToGroupResponse
ResponseCode
Persona
PersonaId
PersonaType
CreationTime
DisplayName (string)
DisplayNameFirstLast
DisplayNameLastFirst
FileAs
FileAsId
RelevanceScore
Attributions (ArrayOfPersonaAttributionsType)
Attribution (PersonaAttributionType)
ID (String)
SourceId
DisplayName (string)
IsWritable
IsQuickContact
IsHidden
FileAsIds
StringAttributedValue
Value
Attributions (ArrayOfValueAttributionsType)
Attribution (string)
OtherTelephones
PhoneNumberAttributedValue
Value
Number
Type (string)
Attributions (ArrayOfValueAttributionsType)
Attribution (string)
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="545"
MinorBuildNumber="11"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<AddNewTelUriContactToGroupResponse ResponseClass="Error"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>ErrorItemNotFound</ResponseCode>
<DescriptiveLinkKey>0</DescriptiveLinkKey>
</AddNewTelUriContactToGroupResponse>
</s:Body>
</s:Envelope>
AddNewTelUriContactToGroupResponse
MessageText
ResponseCode
DescriptiveLinkKey
See also
EWS operations in Exchange
Description
The following example of an ApplyConversationAction request shows how to move the
items in the specified conversation to another folder. Items that are added to the
conversation will also be moved to the specified folder.
Code
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
</soap:Header>
<soap:Body>
<m:ApplyConversationAction>
<m:ConversationActions>
<t:ConversationAction>
<t:Action>AlwaysMove</t:Action>
<t:ConversationId Id="AAQkADVkNjM1EH39AWcDUGrnrnJ32hHpdc="/>
<t:DestinationFolderId>
<t:FolderId
Id="AAMkADVkNjM1ODI3LTEwYTAtNDUBTTT6tWal35iSoKAAAABZZWAAA="/>
</t:DestinationFolderId>
</t:ConversationAction>
</m:ConversationActions>
</m:ApplyConversationAction>
</soap:Body>
</soap:Envelope>
Remarks
The conversation and folder identifiers have been shortened to preserve readability.
Description
The following example shows a successful response to an ApplyConversationAction
request.
Code
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="14"
MinorVersion="1"
MajorBuildNumber="91"
MinorBuildNumber="0"
Version="Exchange2010_SP1"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:ApplyConversationActionResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:ApplyConversationActionResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
</m:ApplyConversationActionResponseMessage>
</m:ResponseMessages>
</m:ApplyConversationActionResponse>
</s:Body>
</s:Envelope>
See also
ApplyConversationAction operation
EWS operations in Exchange
EWS XML elements in Exchange
Conversations in EWS
ArchiveItem operation
Article • 03/29/2023 • 2 minutes to read
The ArchiveItem operation moves an item into the mailbox user's archive mailbox.
Impersonation
ExchangeImpersonation Identifies the user whom the client application is
impersonating. This header is applicable to a
request.
RequestVersion RequestServerVersion
Identifies the schema version for the operation
request. This header is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This header is applicable to a response.
7 Note
All item identifiers and change keys in this article have been shortened to preserve
readability.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
<t:RequestServerVersion Version="Exchange2013"/>
</soap:Header>
<soap:Body>
<m:ArchiveItem>
<m:ArchiveSourceFolderId>
<t:DistinguishedFolderId Id="inbox"/>
</m:ArchiveSourceFolderId>
<m:ItemIds>
<t:ItemId Id="AQMkG5BBwrQAAAxoAAAA="
ChangeKey="CQAAAHCtAAAAAAB7"/>
</m:ItemIds>
</m:ArchiveItem>
</soap:Body>
</soap:Envelope>
ArchiveItem
ArchiveSourceFolderId
DistinguishedFolderId
ItemIds
ItemId
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="526"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:ArchiveItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:ArchiveItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items/>
</m:ArchiveItemResponseMessage>
</m:ResponseMessages>
</m:ArchiveItemResponse>
</s:Body>
</s:Envelope>
ArchiveItemResponse
ResponseMessages
ArchiveItemResponseMessage
ResponseCode
Items
XML
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="556"
MinorBuildNumber="8"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:ArchiveItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:ArchiveItemResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorInvalidOperation</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
<m:Items/>
</m:ArchiveItemResponseMessage>
</m:ResponseMessages>
</m:ArchiveItemResponse>
</s:Body>
</s:Envelope>
ArchiveItemResponse
ResponseMessages
ArchiveItemResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
Items
For additional error codes that are generic to EWS and specific to this operation, see
ResponseCode.
See also
EWS operations in Exchange
Archiving in EWS in Exchange
ConvertId operation
Article • 03/29/2023 • 3 minutes to read
The ConvertId Exchange Web Services (EWS) operation converts item and folder
identifiers between formats that are accepted by Exchange Online, Exchange Online as
part of Office 365, and on-premises versions of Exchange starting with Exchange Server
2013.
The identifier format for EWS in the initial release version of Exchange 2007. This is
represented by the EwsLegacyId enumeration value in the IdFormat
enumeration.
The identifier format for EWS in Exchange 2007 SP1 or Exchange 2010. This is
represented by the EwsId enumeration value in IdFormat .
The Outlook Web App identifier. This is represented by the OwaId enumeration
value in IdFormat
The passing of URLs that are created from this identifier to Outlook Web App is
not supported. The Outlook Web App identifier is applicable to Exchange 2007 and
Exchange 2010. Outlook Web App for Exchange Online and versions of Exchange
starting with Exchange Server 2013 uses EWS identifiers.
The ConvertId operation does not work as expected when converting public folder
identifiers from the EWS identifier to the store identifier in Exchange Online and
Exchange 2013. You can manually update the identifier that is returned as a workaround.
To manually update the identifier:
3. Verify that the type byte (21st byte) has a value of 7. A value of 7 indicates that the
identifier is in the incorrect format.
7 Note
The ConvertId operation validates that a given SMTP address has a valid format.
The operation does not determine whether an SMTP address represents a valid
mailbox.
The ConvertId operation can use the SOAP headers that are listed in the following table.
RequestVersion RequestServerVersion
Identifies the schema version for the operation
request This is applicable to a request.
ServerVersion ServerVersionInfo
Identifies the version of the server that responded to
the request. This is applicable to a response.
7 Note
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Header>
<t:RequestServerVersion Version="Exchange2010"/>
</soap:Header>
<soap:Body>
<ConvertId
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
DestinationFormat="OwaId">
<SourceIds>
Mailbox="[email protected]"/>
</SourceIds>
</ConvertId>
</soap:Body>
</soap:Envelope>
7 Note
The Outlook Web App identifier has been shortened to preserve readability.
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
MajorBuildNumber="191" MinorBuildNumber="0"
Version="Exchange2010"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<ConvertIdResponse
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseMessages>
<ConvertIdResponseMessage ResponseClass="Success">
<ResponseCode>NoError</ResponseCode>
Mailbox="[email protected]" />
</ConvertIdResponseMessage>
</ResponseMessages>
</ConvertIdResponse>
</soap:Body>
</soap:Envelope>
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
MajorBuildNumber="206" MinorBuildNumber="0"
Version="Exchange2010"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<ConvertIdResponse
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseMessages>
<ConvertIdResponseMessage ResponseClass="Error">
<MessageText>Id is malformed.</MessageText>
<ResponseCode>ErrorInvalidIdMalformed</ResponseCode>
<DescriptiveLinkKey>0</DescriptiveLinkKey>
</ConvertIdResponseMessage>
</ResponseMessages>
</ConvertIdResponse>
</soap:Body>
</soap:Envelope>
Version differences
The EWS identifier format changed between the initial release version of Exchange 2007
and Exchange 2007 Service Pack 1 (SP1). Exchange Online as part of Office 365,
Exchange Online, and on-premises versions of Exchange starting with Exchange 2010
use the same identifier format that Exchange 2007 SP1 uses.
The ConvertId operation converts public folder identifiers from the EWS identifier to the
store identifier in Exchange 2007 and Exchange 2010.
See also
Converting Identifiers
ConvertIdType
ConvertId
CopyFolder operation
Article • 03/29/2023 • 2 minutes to read
Description
The following example of a CopyFolder request shows how to copy folders into the
Inbox folder.
7 Note
The value of the Id attribute of the FolderId element has been shortened for
readability.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<CopyFolder
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ToFolderId>
<t:DistinguishedFolderId Id="inbox"/>
</ToFolderId>
<FolderIds>
</FolderIds>
</CopyFolder>
</soap:Body>
</soap:Envelope>
Comments
Folders can be identified by either the DistinguishedFolderId element or the FolderId
element for use in either the ToFolderId or the FolderIds elements.
Request elements
The following elements are used in the request:
CopyFolder
ToFolderId
DistinguishedFolderId
FolderIds
FolderId
7 Note
The schema that describes this element is located in the EWS virtual directory of
the computer that is running MicrosoftExchange Server 2007 that has the Client
Access server role installed.
To find other options for the request message of the CopyFolder operation, explore the
schema hierarchy. Start at the CopyFolder element.
Description
The following example shows a successful response to the CopyFolder request.
7 Note
The folder ID and the change key have been shortened to preserve readability.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<CopyFolderResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:CopyFolderResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Folders>
<t:Folder>
</t:Folder>
</m:Folders>
</m:CopyFolderResponseMessage>
</m:ResponseMessages>
</CopyFolderResponse>
</soap:Body>
</soap:Envelope>
Comment
The FolderId element that is returned in the response represents the folder that was
copied in the new folder location.
Response elements
The following elements are used in the response:
ServerVersionInfo
CopyFolderResponse
ResponseMessages
CopyFolderResponseMessage
ResponseCode
Folders
Folder
FolderId
To find other options for the response message of the CopyFolder operation, explore
the schema hierarchy. Start at the CopyFolderResponse element.
Description
The following example shows an error response to a CopyFolder request. The error
occurred because a folder with the same display name already exists.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<CopyFolderResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:CopyFolderResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorMoveCopyFailed</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
<m:Folders />
</m:CopyFolderResponseMessage>
</m:ResponseMessages>
</CopyFolderResponse>
</soap:Body>
</soap:Envelope>
CopyFolderResponse
ResponseMessages
CopyFolderResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
Folders
To find other options for the error response message of the CopyFolder operation,
explore the schema hierarchy. Start at the CopyFolderResponse element.
See also
MoveFolder operation
EWS XML elements in Exchange
CopyItem operation
Article • 03/29/2023 • 2 minutes to read
The CopyItem operation copies items and puts the items in a different folder.
Description
The following example of a CopyItem request shows how to form a request to copy an
item to the Inbox.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<CopyItem
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ToFolderId>
<t:DistinguishedFolderId Id="inbox"/>
</ToFolderId>
<ItemIds>
<t:ItemId Id="AS4AUnV="/>
</ItemIds>
</CopyItem>
</soap:Body>
</soap:Envelope>
Comments
7 Note
The folder ID and the change key have been shortened to preserve readability.
Request elements
The following elements are used in the request:
CopyItem
ToFolderId
DistinguishedFolderId
ItemIds
ItemId
7 Note
The schema that describes this element is located in the EWS virtual directory of
the computer that is running Microsoft Exchange Server 2010 that has the Client
Access server role installed.
To find other options for the request message of the CopyItem operation, explore the
schema hierarchy. Start at the CopyItem element.
Description
The following example shows a successful response to the CopyItem request.
The item identifier of the new item is returned in the response message. Item identifiers
are not returned in responses for cross-mailbox or mailbox to public folder CopyItem
operations.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<CopyItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:CopyItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:Message>
<t:ItemID Id="AAMkAd" ChangeKey="FwAAABY" />
</t:Message>
</m:Items>
</m:CopyItemResponseMessage>
</m:ResponseMessages>
</CopyItemResponse>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
CopyItemResponse
ResponseMessages
CopyItemResponseMessage
ResponseCode
Items
To find other options for the response message of the CopyItem operation, explore the
schema hierarchy. Start at the CopyItemResponse element.
Description
The following example shows an error response to a CopyItem request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<CopyItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:CopyItemResponseMessage ResponseClass="Error">
<m:MessageText>Id is malformed.</m:MessageText>
<m:ResponseCode>ErrorInvalidIdMalformed</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
<m:Items />
</m:CopyItemResponseMessage>
</m:ResponseMessages>
</CopyItemResponse>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
CopyItemResponse
ResponseMessages
CopyItemResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
Items
To find other options for the error response message of the CopyItem operation,
explore the schema hierarchy. Start at the CopyItemResponse element.
See also
EWS XML elements in Exchange
CreateAttachment operation
Article • 03/29/2023 • 2 minutes to read
The CreateAttachment operation creates either an item or file attachment and attaches
it to the specified item.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<CreateAttachment
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<Attachments>
<t:FileAttachment>
<t:Name>SomeFile</t:Name>
<t:Content>AQIDBAU=</t:Content>
</t:FileAttachment>
</Attachments>
</CreateAttachment>
</soap:Body>
</soap:Envelope>
7 Note
The parent item identifier and change key have been shortened to preserve
readability.
CreateAttachment
ParentItemId
Attachments
FileAttachment
Name (AttachmentType)
Content
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"/>
</soap:Header>
<soap:Body>
<CreateAttachmentResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:CreateAttachmentResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Attachments>
<t:FileAttachment>
</t:FileAttachment>
</m:Attachments>
</m:CreateAttachmentResponseMessage>
</m:ResponseMessages>
</CreateAttachmentResponse>
</soap:Body>
</soap:Envelope>
The response contains the identifier of the attached file. It also contains the identifier
and change key of the root item. The item identifiers and change key have been
shortened to preserve readability.
ServerVersionInfo
CreateAttachmentResponse
ResponseMessages
CreateAttachmentResponseMessage
ResponseCode
Attachments
FileAttachment
AttachmentId
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<CreateAttachment
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<Attachments>
<t:ItemAttachment>
<t:Message>
</t:Message>
</t:ItemAttachment>
</Attachments>
</CreateAttachment>
</soap:Body>
</soap:Envelope>
A name for the attachment must be provided. The parent item identifier and change key
have been shortened to preserve readability.
CreateAttachment
ParentItemId
Attachments
ItemAttachment
Name (AttachmentType)
Message
Subject
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"/>
</soap:Header>
<soap:Body>
<CreateAttachmentResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:CreateAttachmentResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Attachments>
<t:ItemAttachment>
</t:ItemAttachment>
</m:Attachments>
</m:CreateAttachmentResponseMessage>
</m:ResponseMessages>
</CreateAttachmentResponse>
</soap:Body>
</soap:Envelope>
The response contains the identifier of the new attachment. It also contains the identifier
and change key of the root item. The root item is the item that contains the attachment.
The item identifiers and change key have been shortened to preserve readability.
ServerVersionInfo
CreateAttachmentResponse
ResponseMessages
CreateAttachmentResponseMessage
ResponseCode
Attachments
ItemAttachment
AttachmentId
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"/>
</soap:Header>
<soap:Body>
<CreateAttachmentResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:CreateAttachmentResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorRequiredPropertyMissing</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
<m:MessageXml>
<t:ExceptionFieldURI FieldURI="attachment:Name"/>
</m:MessageXml>
<m:Attachments/>
</m:CreateAttachmentResponseMessage>
</m:ResponseMessages>
</CreateAttachmentResponse>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
CreateAttachmentResponse
ResponseMessages
CreateAttachmentResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
MessageXml
ExceptionFieldURI
Attachments
Remarks
If multiple attachments are attached to an item in a single round trip, the
RootItemChangeKey in the last response message is the one that represents the new
change key of the item that has the attachments.
See also
DeleteAttachment operation
GetAttachment operation
CreateFolder operation
Article • 03/29/2023 • 2 minutes to read
The CreateFolder operation creates folders, calendar folders, contacts folders, tasks
folders, and search folders.
Description
The following example of a CreateFolder request shows how to form a request to create
two new folders in the mailbox root.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<CreateFolder
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ParentFolderId>
<t:DistinguishedFolderId Id="msgfolderroot"/>
</ParentFolderId>
<Folders>
<t:Folder>
<t:DisplayName>Folder1</t:DisplayName>
</t:Folder>
<t:Folder>
<t:DisplayName>Folder2</t:DisplayName>
</t:Folder>
</Folders>
</CreateFolder>
</soap:Body>
</soap:Envelope>
Request elements
The following elements are used in the request:
CreateFolder
ParentFolderId (TargetFolderIdType)
DistinguishedFolderId
Folders
Folder
DisplayName (string)
7 Note
The schema that describes these elements is located in the EWS virtual directory of
the computer that is running MicrosoftExchange Server 2007 that has the Client
Access server role installed.
To find other options for the request message of the CreateFolder operation, explore the
schema hierarchy. Start at the CreateFolder element.
7 Note
The CreateFolder operation supports the creation of a custom folder class only when
you create the folder by using a generic folder type element and set the FolderClass
element.
Description
The following example shows a successful response to the CreateFolder request. In this
example, the response returns the identifiers of the new folders.
7 Note
The folder ID and the change key have been shortened to preserve readability.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<CreateFolderResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:CreateFolderResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Folders>
<t:Folder>
</t:Folder>
</m:Folders>
</m:CreateFolderResponseMessage>
<m:CreateFolderResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Folders>
<t:Folder>
</t:Folder>
</m:Folders>
</m:CreateFolderResponseMessage>
</m:ResponseMessages>
</CreateFolderResponse>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
CreateFolderResponse
ResponseMessages
CreateFolderResponseMessage
ResponseCode
Folders
Folder
FolderId
To find other options for the response message of the CreateFolder operation, explore
the schema hierarchy. Start at the CreateFolderResponse element.
Description
The following example shows an error response to a CreateFolder request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<CreateFolderResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:CreateFolderResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorFolderExists</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
<m:Folders />
</m:CreateFolderResponseMessage>
</m:ResponseMessages>
</CreateFolderResponse>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
CreateFolderResponse
ResponseMessages
CreateFolderResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
Folders
To find other options for the error response message of the CreateFolder operation,
explore the schema hierarchy. Start at the CreateFolderResponse element.
See also
FindItem operation
FindFolder operation
CreateFolderType
Impersonation
ExchangeImpersonation Identifies the user whom the client application is
impersonating. This header is applicable to a
request.
MailboxCulture
MailboxCulture Identifies the culture, as defined in RFC 3066,
"Tags for the Identification of Languages", to be
used to access the mailbox. This header is
applicable to a request.
RequestVersion
RequestServerVersion
Identifies the schema version for the operation
request. This header is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded
to the request. This header is applicable to a
response.
TimeZoneContext TimeZoneContext
Identifies the time zone scope for DateTime
properties. This header is applicable to a request.
7 Note
All item identifiers and change keys in this article have been shortened to preserve
readability.
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
<t:MailboxCulture>en-US</t:MailboxCulture>
<t:TimeZoneContext>
</t:TimeZoneContext>
</soap:Header>
<soap:Body >
<m:CreateFolderPath>
<m:ParentFolderId>
<t:DistinguishedFolderId Id="inbox"/>
</m:ParentFolderId>
<m:RelativeFolderPath>
<t:Folder>
<t:DisplayName>MyFirstLevelFolder</t:DisplayName>
</t:Folder>
<t:Folder>
<t:DisplayName>MySecondLevelFolder</t:DisplayName>
</t:Folder>
<t:Folder>
<t:DisplayName>MyThirdLevelFolder</t:DisplayName>
</t:Folder>
</m:RelativeFolderPath>
</m:CreateFolderPath>
</soap:Body>
</soap:Envelope>
CreateFolderPath
ParentFolderId (TargetFolderIdType)
DistinguishedFolderId
RelativeFolderPath
Folder
DisplayName (string)
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="526"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:CreateFolderPathResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:CreateFolderPathResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Folders>
<t:Folder>
<t:FolderId Id="AAMkADEzOTExYisXAAA="
ChangeKey="AQAAABYAABq6Wxb"/>
<t:DisplayName>MyFirstLevelFolder</t:DisplayName>
<t:TotalCount>0</t:TotalCount>
<t:ChildFolderCount>0</t:ChildFolderCount>
<t:UnreadCount>0</t:UnreadCount>
</t:Folder>
</m:Folders>
</m:CreateFolderPathResponseMessage>
<m:CreateFolderPathResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Folders>
<t:Folder>
<t:FolderId Id="AAMkADEzOTExm4QrAABqxisYAAA="
ChangeKey="AQAAABYAAAm4QrAABq6Wxg"/>
<t:DisplayName>MySecondLevelFolder</t:DisplayName>
<t:TotalCount>0</t:TotalCount>
<t:ChildFolderCount>0</t:ChildFolderCount>
<t:UnreadCount>0</t:UnreadCount>
</t:Folder>
</m:Folders>
</m:CreateFolderPathResponseMessage>
<m:CreateFolderPathResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Folders>
<t:Folder>
<t:FolderId Id="AAMkADEzOTAABqxisZAAA="
ChangeKey="AQAAABYAA6Wxl"/>
<t:DisplayName>MyThirdLevelFolder</t:DisplayName>
<t:TotalCount>0</t:TotalCount>
<t:ChildFolderCount>0</t:ChildFolderCount>
<t:UnreadCount>0</t:UnreadCount>
</t:Folder>
</m:Folders>
</m:CreateFolderPathResponseMessage>
</m:ResponseMessages>
</m:CreateFolderPathResponse>
</s:Body>
</s:Envelope>
CreateFolderPathResponse
ResponseMessages
CreateFolderPathResponseMessage
ResponseCode
Folders
Folder
FolderId
DisplayName (string)
TotalCount
ChildFolderCount
UnreadCount
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
MajorBuildNumber="556"
MinorBuildNumber="14"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:CreateFolderPathResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:CreateFolderPathResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorFolderSavePropertyError</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
<m:MessageXml>
<t:FieldURI FieldURI="folder:DisplayName"/>
</m:MessageXml>
<m:Folders/>
</m:CreateFolderPathResponseMessage>
<m:CreateFolderPathResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorParentFolderNotFound</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
<m:Folders/>
</m:CreateFolderPathResponseMessage>
</m:ResponseMessages>
</m:CreateFolderPathResponse>
</s:Body>
</s:Envelope>
CreateFolderPathResponse
ResponseMessages
CreateFolderPathResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
MessageXml
FieldURI
Folders
For additional error codes that are generic to EWS and specific to this operation, see
ResponseCode.
See also
EWS operations in Exchange
FindFolder operation
CreateItem operation
Article • 03/29/2023 • 2 minutes to read
Calendar items
E-mail messages
Meeting requests
Tasks
Contacts
For more information, see CreateItem operation (calendar item), CreateItem operation
(email message), CreateItem operation (meeting request), CreateItem operation (task),
and CreateItem operation (contact).
The CreateItem operation supports the use of response objects. Response objects
support the acceptance and rejection of meetings and the handling of voting buttons
that are included in a standard e-mail message. The following table lists the response
objects that are handled in the CreateItem operation.
CancelCalendarItem Cancel a meeting. This differs from deleting all attendees because it
deletes the meeting for the organizer also.
ReplyAllToItem Send a message that includes the body of the original meeting request to
all attendees of the meeting.
ReplyToItem Send a message that includes the body of the original meeting request to
the sender of the meeting request.
Response object Action
The CreateItem operation also supports additional meeting objects. The following table
lists additional objects that the CreateItem operation supports.
Meeting Description
object
Meeting Represents a meeting message in the Exchange store. This is the base object for
Message the other meeting objects.
See also
CreateItem operation (calendar item)
CreateItemType
CreateItem operation (email message)
Article • 03/29/2023 • 2 minutes to read
Description
The following example of a CreateItem request shows how to create a new e-mail
message, send the message, and save a copy of it in the drafts folder.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<CreateItem MessageDisposition="SendAndSaveCopy"
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<SavedItemFolderId>
</SavedItemFolderId>
<Items>
<t:Message>
<t:ItemClass>IPM.Note</t:ItemClass>
<t:Subject>Project Action</t:Subject>
<t:ToRecipients>
<t:Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</t:Mailbox>
</t:ToRecipients>
<t:IsRead>false</t:IsRead>
</t:Message>
</Items>
</CreateItem>
</soap:Body>
</soap:Envelope>
Request elements
The following elements are used in the request:
CreateItem
SavedItemFolderId
Items (NonEmptyArrayOfAllItemsType)
Message
ItemClass
Subject
Body
ToRecipients
Mailbox
EmailAddress (NonEmptyStringType)
IsRead
To find other options for the request message of the CreateItem operation, explore the
schema hierarchy. Start at the CreateItem element.
Description
The following example shows a successful response to the CreateItem request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
</soap:Header>
<soap:Body>
<CreateItemResponse
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:CreateItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items />
</m:CreateItemResponseMessage>
</m:ResponseMessages>
</CreateItemResponse>
</soap:Body>
</soap:Envelope>
CreateItemResponse
ResponseMessages
CreateItemResponseMessage
ResponseCode
Items
To find other options for the response message of the CreateItem operation, explore the
schema hierarchy. Start at the CreateItemResponse element.
Description
The following example shows an error response to a CreateItem request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
</soap:Header>
<soap:Body>
<CreateItemResponse
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:CreateItemResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorSendAsDenied</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
<m:Items />
</m:CreateItemResponseMessage>
</m:ResponseMessages>
</CreateItemResponse>
</soap:Body>
</soap:Envelope>
CreateItemResponse
ResponseMessages
CreateItemResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
Items
To find other options for the error response message of the CreateItem operation,
explore the schema hierarchy. Start at the CreateItemResponse element.
See also
CreateItem operation
CreateItem operation (calendar item)
Article • 03/29/2023 • 2 minutes to read
Remarks
The CreateItem operation creates appointments, meetings, and meeting requests. If a
calendar item is created without attendees, it is considered an appointment. If attendees
are specified, the calendar item is a meeting. When a meeting is created by using the
CreateItem operation, meeting requests are automatically sent to the identified
attendees if the SendMeetingInvitations attribute is set to send the meeting requests.
Description
The following example of a CreateItem request shows how to create a meeting with two
required attendees. This request will send the meeting requests to the two attendees.
Code
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<CreateItem
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
SendMeetingInvitations="SendToAllAndSaveCopy" >
<SavedItemFolderId>
<t:DistinguishedFolderId Id="calendar"/>
</SavedItemFolderId>
<Items>
<t:CalendarItem
xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
<Subject>Planning Meeting</Subject>
<ReminderIsSet>true</ReminderIsSet>
<ReminderMinutesBeforeStart>60</ReminderMinutesBeforeStart>
<Start>2006-11-02T14:00:00</Start>
<End>2006-11-02T15:00:00</End>
<IsAllDayEvent>false</IsAllDayEvent>
<LegacyFreeBusyStatus>Busy</LegacyFreeBusyStatus>
<RequiredAttendees>
<Attendee>
<Mailbox>
<EmailAddress>[email protected]</EmailAddress>
</Mailbox>
</Attendee>
<Attendee>
<Mailbox>
<EmailAddress>[email protected]</EmailAddress>
</Mailbox>
</Attendee>
</RequiredAttendees>
</t:CalendarItem>
</Items>
</CreateItem>
</soap:Body>
</soap:Envelope>
Comments
For an example of how to respond to a meeting request, see the CreateItem operation
(meeting request) topic.
Request elements
The following elements are used in the request:
CreateItem
SavedItemFolderId
DistinguishedFolderId
Items (NonEmptyArrayOfAllItemsType)
CalendarItem
Subject
Body
ReminderIsSet
ReminderMinutesBeforeStart
Start
End
IsAllDayEvent
LegacyFreeBusyStatus
Location
RequiredAttendees
Attendee
Mailbox
EmailAddress (NonEmptyStringType)
Description
The following example shows a successful response to the CreateItem request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<CreateItemResponse
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:CreateItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:CalendarItem>
</t:CalendarItem>
</m:Items>
</m:CreateItemResponseMessage>
</m:ResponseMessages>
</CreateItemResponse>
</soap:Body>
</soap:Envelope>
Comments
The ItemId element Id and ChangeKey attributes have been shortened to preserve
readability.
ServerVersionInfo
CreateItemResponse
ResponseMessages
CreateItemResponseMessage
ResponseCode
Items
CalendarItem
ItemId
See also
CreateItem operation
CreateItem operation (meeting request)
Article • 03/29/2023 • 2 minutes to read
Remarks
The CreateItem operation provides three options for responding to a meeting request:
accept, tentatively accept, or decline.
Description
The following example shows how to accept a meeting request invitation.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<CreateItem
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
MessageDisposition="SendAndSaveCopy">
<Items>
<AcceptItem
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<ReferenceItemId Id="AAAlAFVzZ"
ChangeKey="CwAAABYAA"/>
</AcceptItem>
</Items>
</CreateItem>
</soap:Body>
</soap:Envelope>
Comments
To tentatively accept or to decline the meeting request, use the TentativelyAcceptItem or
DeclineItem elements in place of the AcceptItem element.
The item identifier and change key have been shortened to preserve readability.
CreateItem
Items (NonEmptyArrayOfAllItemsType)
AcceptItem
ReferenceItemId
Description
The following example shows a successful response to the CreateItem request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<CreateItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:CreateItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items />
</m:CreateItemResponseMessage>
</m:ResponseMessages>
</CreateItemResponse>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
CreateItemResponse
ResponseMessages
CreateItemResponseMessage
ResponseCode
Items
Description
The following example shows an error response to CreateItem request. The error is
caused by an attempt to accept a meeting request that cannot be found in the
Exchange store.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<CreateItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:CreateItemResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorItemNotFound</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
<m:Items />
</m:CreateItemResponseMessage>
</m:ResponseMessages>
</CreateItemResponse>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
CreateItemResponse
ResponseMessages
CreateItemResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
Items
See also
CreateItem operation
Description
The following example of a CreateItem request shows how to create a task item in a
mailbox.
Code
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<CreateItem
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
MessageDisposition="SaveOnly">
<Items>
<t:Task>
<t:Subject>My task</t:Subject>
<t:DueDate>2006-10-26T21:32:52</t:DueDate>
<t:Status>NotStarted</t:Status>
</t:Task>
</Items>
</CreateItem>
</soap:Body>
</soap:Envelope>
Comments
Requests for recurring tasks are altered when they are received by the computer that is
running Microsoft Exchange Server 2007 that has the Client Access server role installed.
The following changes occur:
Only the date is saved for the StartDate (Recurrence) property of the recurrence
range of the task. The time part is truncated.
If the StartDate property of the task is set, it is updated to match the StartDate
(Recurrence) of the recurrence range. The DueDate property of the task is also
updated based on the new StartDate.
If the StartDate is not set, only the DueDate property is updated to match the
StartDate (Recurrence) of the recurrence range.
The following table shows the changes that the Client Access server makes to a
recurring task that has a Task.Recurrence.Pattern of every Monday.
By default, if a destination folder is not specified, task items are created in the Tasks
folder.
Request elements
The following elements are used in the request:
CreateItem
Items (NonEmptyArrayOfAllItemsType)
Task
Subject
DueDate
Status
Successful Task CreateItem Response
Description
The following example shows a successful response to the CreateItem request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"/>
</soap:Header>
<soap:Body>
<CreateItemResponse
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:CreateItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:Task>
</t:Task>
</m:Items>
</m:CreateItemResponseMessage>
</m:ResponseMessages>
</CreateItemResponse>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
CreateItemResponse
ResponseMessages
CreateItemResponseMessage
ResponseCode
Items (NonEmptyArrayOfAllItemsType)
Task
ItemId
See also
CreateItem operation
Creating Tasks
Updating Tasks
Deleting Tasks
CreateItem operation (contact)
Article • 03/29/2023 • 2 minutes to read
Remarks
The creation of private distribution lists is not supported. All properties within the
CompleteName container are read-only and cannot be set on a contact item.
Description
The following example of a valid CreateItem SOAP request shows how to create a
contact in the default Contacts folder.
Code
XML
<soap:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<CreateItem
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages" >
<SavedItemFolderId>
<t:DistinguishedFolderId Id="contacts"/>
</SavedItemFolderId>
<Items>
<t:Contact>
<t:FileAs>SampleContact</t:FileAs>
<t:GivenName>Tanja</t:GivenName>
<t:EmailAddresses>
<t:Entry Key="EmailAddress1">[email protected]</t:Entry>
</t:EmailAddresses>
<t:PhysicalAddresses>
<t:Entry Key="Business">
<t:City>La Habra</t:City>
<t:State>CA</t:State>
<t:CountryOrRegion>USA</t:CountryOrRegion>
</t:Entry>
</t:PhysicalAddresses>
<t:PhoneNumbers>
<t:Entry Key="BusinessPhone">4255550199</t:Entry>
</t:PhoneNumbers>
<t:JobTitle>Manager</t:JobTitle>
<t:Surname>Plate</t:Surname>
</t:Contact>
</Items>
</CreateItem>
</soap:Body>
</soap:Envelope>
Request elements
The following elements are used in the response:
CreateItem
SavedItemFolderId
DistinguishedFolderId
Items (NonEmptyArrayOfAllItemsType)
Contact
FileAs
GivenName
CompanyName
EmailAddresses
Entry (EmailAddress)
PhysicalAddresses
Entry (PhysicalAddress)
Street
City
State
CountryOrRegion
PhoneNumbers
Entry (PhoneNumber)
JobTitle
Surname
Description
The following example shows a successful response to the CreateItem request that
created a contact. In this example, the response contains the identifier of the newly
created item.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<CreateItemResponse
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:CreateItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:Contact>
<t:ItemId Id="AAAtA=" ChangeKey="EQAAAB" />
</t:Contact>
</m:Items>
</m:CreateItemResponseMessage>
</m:ResponseMessages>
</CreateItemResponse>
</soap:Body>
</soap:Envelope>
Comments
The item identifier has been shortened to preserve readability.
ServerVersionInfo
CreateItemResponse
ResponseMessages
CreateItemResponseMessage
ResponseCode
Items (NonEmptyArrayOfAllItemsType)
Contact
ItemId
Description
The following example shows a request that contains valid XML but incompatible
instructions. A contact cannot be created in a search folder.
Code
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<CreateItem
xmlns='http://schemas.microsoft.com/exchange/services/2006/messages'>
<SavedItemFolderId>
<t:DistinguishedFolderId Id='searchfolders'/>
</SavedItemFolderId>
<Items>
<t:Contact>
<t:ItemClass>IPM.Contact</t:ItemClass>
</t:Contact>
</Items>
</CreateItem>
</soap:Body>
</soap:Envelope>
Description
The following example shows an error response to a CreateItem (Contact) request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<CreateItemResponse
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:CreateItemResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorCannotCreateContactInNonContactFolder</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
<m:Items />
</m:CreateItemResponseMessage>
</m:ResponseMessages>
</CreateItemResponse>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
CreateItemResponse
ResponseMessages
CreateItemResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
Items (NonEmptyArrayOfAllItemsType)
See also
CreateItem operation
CreateItem (AcceptSharingInvitation)
Article • 03/29/2023 • 2 minutes to read
Description
The following example shows how to accept a sharing invitation.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<CreateItem
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<Items
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<AcceptSharingInvitation
xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
</AcceptSharingInvitation>
</Items>
</CreateItem>
</soap:Body>
</soap:Envelope>
Request elements
The following elements are used in the request:
CreateItem
Items
AcceptSharingInvitation
ReferenceItemId
Comments
The item identifier and change key have been shortened to preserve readability.
Description
The following example shows a successful response to a CreateItem request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<t:ServerVersionInfo MajorVersion="14"
MinorVersion="0"
MajorBuildNumber="639"
MinorBuildNumber="11"
Version="Exchange2010"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<CreateItemResponse
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:CreateItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items />
</m:CreateItemResponseMessage>
</m:ResponseMessages>
</CreateItemResponse>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
CreateItemResponse
ResponseMessages
CreateItemResponseMessage
ResponseCode
Items
Description
The following example shows an error response to a CreateItem request. The error is
caused by an attempt to accept a sharing invitation that cannot be found in the
Exchange store.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<t:ServerVersionInfo MajorVersion="14"
MinorVersion="0"
MajorBuildNumber="639"
MinorBuildNumber="11"
Version="Exchange2010"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<CreateItemResponse
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:CreateItemResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorItemNotFound</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
<m:Items />
</m:CreateItemResponseMessage>
</m:ResponseMessages>
</CreateItemResponse>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
CreateItemResponse
ResponseMessages
CreateItemResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
Items
See also
CreateItem operation
CreateManagedFolder operation
Article • 03/29/2023 • 2 minutes to read
7 Note
You cannot use Exchange Web Services to find the names of available managed
folders to add to a mailbox.
You can use the FindFolder and GetFolder operations to access managed folders.
FindFolder is used to search for folders in a specified parent folder. This can be used so
that managed folders can be discovered in a folder before trying to add a duplicate
managed custom folder to the same directory. GetFolder is used after the FindFolder
operation to get more information about a managed custom folder.
Remarks
For information about how to set up messaging records management (MRM) policy, see
How to Create a Managed Folder Mailbox Policy .
For information about how to remove managed custom folders from a mailbox, see
Remove-ManagedFolder .
Description
The following example of a CreateManagedFolder request shows how to add a
managed folder named Test Managed Folder to a mailbox.
7 Note
You can also use delegate access to add managed custom folders.
Code
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<CreateManagedFolder
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<FolderNames>
</FolderNames>
</CreateManagedFolder>
</soap:Body>
</soap:Envelope>
Request elements
The following elements are used in the request:
CreateManagedFolder
FolderNames
FolderName
To find other options for the request message of the CreateManagedFolder operation,
explore the schema hierarchy. Start at the CreateManagedFolder element.
Description
The following code example shows a successful response to a CreateManagedFolder
request.
7 Note
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"/>
</soap:Header>
<soap:Body>
<CreateManagedFolderResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:CreateManagedFolderResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Folders>
<t:Folder>
</t:Folder>
</m:Folders>
</m:CreateManagedFolderResponseMessage>
</m:ResponseMessages>
</CreateManagedFolderResponse>
</soap:Body>
</soap:Envelope>
ResponseMessages
CreateManagedFolderResponseMessage
ResponseCode
Folders
Folder
FolderId
Description
The following code example shows an error response to a CreateManagedFolder
request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"/>
</soap:Header>
<soap:Body>
<CreateManagedFolderResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:CreateManagedFolderResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorManagedFolderAlreadyExists</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
<m:Folders/>
</m:CreateManagedFolderResponseMessage>
</m:ResponseMessages>
</CreateManagedFolderResponse>
</soap:Body>
</soap:Envelope>
CreateManagedFolderResponse
ResponseMessages
CreateManagedFolderResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
Folders
See also
GetFolder operation
FindFolder operation
Finding Folders
Description
The following example of a CreateUserConfiguration request shows how to form a
request to create a user configuration object on the Drafts folder.
Code
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<soap:Header>
</soap:Header>
<soap:Body>
<m:CreateUserConfiguration>
<m:UserConfiguration>
<t:UserConfigurationName Name="TestConfig">
<t:DistinguishedFolderId Id="drafts">
</t:DistinguishedFolderId>
</t:UserConfigurationName>
<t:Dictionary>
<t:DictionaryEntry>
<t:DictionaryKey>
<t:Type>String</t:Type>
<t:Value>PhoneNumber</t:Value>
</t:DictionaryKey>
<t:DictionaryValue>
<t:Type>String</t:Type>
<t:Value>555-555-1111</t:Value>
</t:DictionaryValue>
</t:DictionaryEntry>
</t:Dictionary>
</m:UserConfiguration>
</m:CreateUserConfiguration>
</soap:Body>
</soap:Envelope>
Description
The following example shows a successful response to the CreateUserConfiguration
request.
Code
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="14"
MinorVersion="0"
MajorBuildNumber="639"
MinorBuildNumber="20"
Version="Exchange2010"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:CreateUserConfigurationResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:CreateUserConfigurationResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
</m:CreateUserConfigurationResponseMessage>
</m:ResponseMessages>
</m:CreateUserConfigurationResponse>
</s:Body>
</s:Envelope>
See also
EWS operations in Exchange
The DeleteAttachment operation is used to delete file and item attachments from an
existing item in the Exchange store.
Remarks
This operation allows you to delete one or more attachments by ID.
Description
The following example of a DeleteAttachment request shows how to delete an item
attachment.
Code
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<DeleteAttachment
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<AttachmentIds>
<t:AttachmentId Id="AAAtAEFkbWluaX"/>
</AttachmentIds>
</DeleteAttachment>
</soap:Body>
</soap:Envelope>
Comments
The attachment identifier has been shortened to preserve readability.
Request elements
The following elements are used in the request:
DeleteAttachment
AttachmentIds
AttachmentId
Description
The following example shows a successful response to a DeleteAttachment request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"/>
</soap:Header>
<soap:Body>
<DeleteAttachmentResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:DeleteAttachmentResponseMessage
xsi:type="m:DeleteAttachmentResponseMessageType" ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:RootItemId RootItemId="AAAtAEFkbWluaXN..."
RootItemChangeKey="CQAAABYAA..."/>
</m:DeleteAttachmentResponseMessage>
</m:ResponseMessages>
</DeleteAttachmentResponse>
</soap:Body>
</soap:Envelope>
Comments
The CreateAttachment operation returns an element of AttachmentIdType type that
includes a RootItemId and RootItemChangeKey. These attributes are not permitted for
identifiers within a DeleteAttachment request. DeleteAttachment uses elements of type
RequestAttachmentIdType, which does not include these attributes.
The DeleteAttachment response includes the ID of the parent item. When attachments
are removed from an item, the item's change key is modified. The new item change key
can be obtained from the DeleteAttachment response.
7 Note
ServerVersionInfo
DeleteAttachmentResponse
ResponseMessages
DeleteAttachmentResponseMessage
ResponseCode
RootItemId
See also
CreateAttachment operation
GetAttachment operation
DeleteFolder operation
Article • 03/29/2023 • 2 minutes to read
Description
This following example of a DeleteFolder request shows how to form a request to
delete a folder.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<DeleteFolder
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
DeleteType="HardDelete" >
<FolderIds>
</FolderIds>
</DeleteFolder>
</soap:Body>
</soap:Envelope>
Comments
This example performs a hard delete on the folder.
7 Note
DeleteFolder
FolderIds
FolderId
7 Note
The schema that describes this element is located in the EWS virtual directory of
the computer that is running Microsoft Exchange Server 2010 that has the Client
Access server role installed.
To find other options for the request message of the DeleteFolder operation, explore
the schema hierarchy. Start at the DeleteFolder element.
Description
The following example shows a successful response to the DeleteFolder request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<DeleteFolderResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:DeleteFolderResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
</m:DeleteFolderResponseMessage>
</m:ResponseMessages>
</DeleteFolderResponse>
</soap:Body>
</soap:Envelope>
Response elements
The following elements are used in the response:
ServerVersionInfo
DeleteFolderResponse
ResponseMessages
DeleteFolderResponseMessage
ResponseCode
To find other options for the response message of the DeleteFolder operation, explore
the schema hierarchy. Start at the DeleteFolderResponse element.
Description
The following example shows an error response to a DeleteFolder request. The error
was caused by a request to delete a folder that was not present in the mailbox.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<DeleteFolderResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:DeleteFolderResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorItemNotFound</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
</m:DeleteFolderResponseMessage>
</m:ResponseMessages>
</DeleteFolderResponse>
</soap:Body>
</soap:Envelope>
Comments
The DeleteFolder operation cannot be used on distinguished folders.
ServerVersionInfo
DeleteFolderResponse
ResponseMessages
DeleteFolderResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
To find other options for the error response message of the DeleteFolder operation,
explore the schema hierarchy. Start at the DeleteFolderResponse element.
See also
EWS XML elements in Exchange
Deleting Folders
DeleteItem operation
Article • 03/29/2023 • 2 minutes to read
7 Note
Description
The following example of a DeleteItem request shows how to perform a hard delete of
an item from a mailbox.
7 Note
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<DeleteItem DeleteType="HardDelete"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ItemIds>
<t:ItemId Id="AS4AUn=="/>
</ItemIds>
</DeleteItem>
</soap:Body>
</soap:Envelope>
Request elements
The following elements are used in the request:
DeleteItem
ItemIds
ItemId
To find other options for the request message of the DeleteItem operation, explore the
schema hierarchy. Start at the DeleteItem element.
Description
The following example shows a successful response to the DeleteItem request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<DeleteItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:DeleteItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
</m:DeleteItemResponseMessage>
</m:ResponseMessages>
</DeleteItemResponse>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
DeleteItemResponse
ResponseMessages
DeleteItemResponseMessage
ResponseCode
To find other options for the response message of the DeleteItem operation, explore
the schema hierarchy. Start at the DeleteItemResponse element.
Description
The following example shows an error response to a DeleteItem request. The error was
created because the operation tried to delete an item that was not found in the
Exchange store.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<DeleteItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:DeleteItemResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorItemNotFound</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
</m:DeleteItemResponseMessage>
</m:ResponseMessages>
</DeleteItemResponse>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
DeleteItemResponse
ResponseMessages
DeleteItemResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
To find other options for the error response message of the DeleteItem operation,
explore the schema hierarchy. Start at the DeleteItemResponse element.
See also
EWS XML elements in Exchange
Deleting Contacts
Deleting E-mail Messages
Deleting Tasks
DeleteUserConfiguration operation
Article • 03/29/2023 • 2 minutes to read
) Important
The DeleteUserConfiguration operation will trigger a move event for the event
notification system. The user configuration object will be moved to the dumpster.
Description
The following example of a DeleteUserConfiguration request shows how to form a
request to delete a user configuration object on the Drafts folder.
Code
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<soap:Header>
</soap:Header>
<soap:Body>
<m:DeleteUserConfiguration>
<m:UserConfigurationName Name="TestConfig">
<t:DistinguishedFolderId Id="drafts"/>
</m:UserConfigurationName>
</m:DeleteUserConfiguration>
</soap:Body>
</soap:Envelope>
Code
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="14"
MinorVersion="0"
MajorBuildNumber="639"
MinorBuildNumber="20"
Version="Exchange2010"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:DeleteUserConfigurationResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:DeleteUserConfigurationResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
</m:DeleteUserConfigurationResponseMessage>
</m:ResponseMessages>
</m:DeleteUserConfigurationResponse>
</s:Body>
</s:Envelope>
See also
EWS operations in Exchange
EWS XML elements in Exchange
DisableApp operation
Article • 03/29/2023 • 2 minutes to read
RequestVersion RequestServerVersion Identifies the schema version for the operation request.
This header is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This header is applicable to a response.
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
<t:MailboxCulture>en-US</t:MailboxCulture>
<t:TimeZoneContext>
</t:TimeZoneContext>
</soap:Header>
<soap:Body >
<m:DisableApp>
<m:ID>1C50226D-04B5-4AB2-9FCD-42E236B59E4B</m:ID>
<m:DisableReason>NoReason</m:DisableReason>
</m:DisableApp>
</soap:Body>
</soap:Envelope>
DisableApp
ID (String)
DisableReason
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="556"
MinorBuildNumber="14"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<DisableAppResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
</DisableAppResponse>
</s:Body>
</s:Envelope>
DisableAppResponse
ResponseCode
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<DisableAppResponse ResponseClass="Error"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<MessageText>Extension ID 1C50226D-04B5-4AB2-9FCD-42E236B59E4A
can't be found.</MessageText>
<ResponseCode>ErrorExtensionNotFound</ResponseCode>
<DescriptiveLinkKey>0</DescriptiveLinkKey>
</DisableAppResponse>
</s:Body>
</s:Envelope>
DisableAppResponse
MessageText
ResponseCode
DescriptiveLinkKey
For additional error codes that are generic to EWS and specific to this operation, see
ResponseCode.
See also
EWS operations in Exchange
InstallApp operation
UninstallApp operation
GetAppManifests
GetAppMarketplaceUrl operation
Outlook add-ins
DisconnectPhoneCall operation
Article • 03/29/2023 • 2 minutes to read
Description
The following example of a DisconnectPhoneCall request shows how to form a request
to disconnect a telephone call.
Code
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<soap:Header>
</soap:Header>
<soap:Body>
<m:DisconnectPhoneCall>
<m:PhoneCallId Id="OWVl4NWb3N29t"/>
</m:DisconnectPhoneCall>
</soap:Body>
</soap:Envelope>
Description
The following example shows a successful response to the DisconnectPhoneCall
request.
Code
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="14"
MinorVersion="0"
MajorBuildNumber="639"
MinorBuildNumber="20"
Version="Exchange2010"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<DisconnectPhoneCallResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
</DisconnectPhoneCallResponse>
</s:Body>
</s:Envelope>
See also
EWS operations in Exchange
EWS XML elements in Exchange
EmptyFolder operation
Article • 03/29/2023 • 2 minutes to read
Description
This following example of an EmptyFolder request shows how to form a request to
empty a folder. This example deletes all subfolders of the identified folder.
7 Note
The values of the Id and the ChangeKey attributes of the FolderId element have
been shortened for readability.
Code
XML
<soap:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
</soap:Header>
<soap:Body>
<m:FolderIds>
</m:FolderIds>
</m:EmptyFolder>
</soap:Body>
</soap:Envelope>
Comments
This example performs a hard delete on the folder.
Request elements
The following elements are used in the request:
EmptyFolder
FolderIds
FolderId
Description
The following example shows a successful response to the EmptyFolder request.
Code
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="14"
MinorVersion="1"
MajorBuildNumber="164"
MinorBuildNumber="0"
Version="Exchange2010_SP1"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:EmptyFolderResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:EmptyFolderResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
</m:EmptyFolderResponseMessage>
</m:ResponseMessages>
</m:EmptyFolderResponse>
</s:Body>
</s:Envelope>
ServerVersionInfo
EmptyFolderResponse
ResponseMessages
EmptyFolderResponseMessage
ResponseCode
Description
The following example shows an error response to an Emptyfolder request. The error
was created because the operation tried to empty a folder that was not found in the
Exchange store.
Code
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="14"
MinorVersion="1"
MajorBuildNumber="164"
MinorBuildNumber="0"
Version="Exchange2010_SP1"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetFolderResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetFolderResponseMessage ResponseClass="Error">
<m:MessageText>Id is malformed.</m:MessageText>
<m:ResponseCode>ErrorInvalidIdMalformed</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
<m:Folders />
</m:GetFolderResponseMessage>
</m:ResponseMessages>
</m:GetFolderResponse>
</s:Body>
</s:Envelope>
ServerVersionInfo
GetFolderResponse
ResponseMessages
GetFolderResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
Folders
See also
EWS XML elements in Exchange
ExpandDL operation
Article • 03/29/2023 • 4 minutes to read
3. X400
4. X500
) Important
Display names are not unique. Multiple accounts can share the same display name.
Remarks
Recursive expansion is not supported. Only one distribution list can be expanded in a
single call. If more than one distribution list match the criteria, the Web service reports
an error. A client application can use ambiguous name resolution (ANR) to find
ambiguous distribution lists and then chose the correct e-mail address of the required
distribution list as a parameter for the ExpandDL operation. For more information, see
ResolveNames operation.
Public distribution lists are located in Active Directory. They can be any mail-enabled or
dynamic distribution group. The group should not be hidden from the address list and
each member should have a non-empty e-mail address. Members of the distribution list
can be mail-enabled users and contacts, public folders, and mail-enabled distribution
lists and dynamic groups.
Private distribution lists are located in the Contacts folder of a user's mailbox. Private
distribution lists do not have e-mail addresses so their store item identifiers are used in
an ExpandDL request. Members of a private distribution list can be any mail-enabled
user, contacts or distribution lists from Active Directory, or contacts or private
distribution lists from a user's Contacts folder.
For contacts or private distribution lists, the item identifiers are returned in the response.
This can be used to get information about the object or to expand membership in a
private distribution list.
Description
The following example of an ExpandDL request shows how to form a request to expand
a private distribution list.
Code
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:ExpandDL>
<m:Mailbox>
<t:EmailAddress>test</t:EmailAddress>
</m:Mailbox>
</m:ExpandDL>
</soap:Body>
</soap:Envelope>
Comments
To expand a private distribution list, the Mailbox element will contain the ItemId element
that identifies a private distribution list in the user's mailbox.
Description
The following example of an ExpandDL request shows how to form a request to expand
a public distribution list. The example shows the use of a display name to expand a
distribution list.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<ExpandDL
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<t:Mailbox>
<t:EmailAddress>TheDistributionList</t:EmailAddress>
</t:Mailbox>
</ExpandDL>
</soap:Body>
</soap:Envelope>
Comments
The response to this request will contain Mailbox elements that identify each mailbox in
the distribution list. If a distribution list is contained within a distribution list, a separate
distribution list expansion must be performed on the embedded distribution list. If the
distribution list has no members or the requested distribution list does not exist, the
ResponseClass attribute will contain a value equal to Success.
Request elements
The following elements are used in the request:
ExpandDL
Mailbox
7 Note
The schema that describes these elements is located in the EWS virtual directory of
the computer that is running MicrosoftExchange Server 2007 that has the Client
Access server role installed.
Description
The following example of an ExpandDL response shows a response to the request
described above. The distribution list expansion describes the following:
The number of members of the distribution list that are returned in the response.
Whether the response contains all the members of the distribution list.
7 Note
The distribution list name is not included in the response; therefore, you must keep
track of the name from the request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
MajorBuildNumber="628" MinorBuildNumber="0"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<ExpandDLResponse
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:ExpandDLResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:DLExpansion TotalItemsInView="3"
IncludesLastItemInRange="true">
<t:Mailbox>
<t:Name>Dan Park</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
<t:MailboxType>Mailbox</t:MailboxType>
</t:Mailbox>
<t:Mailbox>
<t:Name>Jeff Price</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
<t:MailboxType>Mailbox</t:MailboxType>
</t:Mailbox>
<t:Mailbox>
<t:Name>Tanja Plate</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
<t:MailboxType>Mailbox</t:MailboxType>
</t:Mailbox>
</m:DLExpansion>
</m:ExpandDLResponseMessage>
</m:ResponseMessages>
</ExpandDLResponse>
</soap:Body>
</soap:Envelope>
ExpandDLResponse
ResponseMessages
ExpandDLResponseMessage
ResponseCode
DLExpansion
Mailbox
Name (EmailAddressType)
EmailAddress (NonEmptyStringType)
RoutingType (EmailAddressType)
MailboxType
To find other options for the response message of the ExpandDL operation, explore the
schema hierarchy. Start at the ExpandDLResponse element.
Description
The following example shows an error response to an ExpandDL request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
MajorBuildNumber="628" MinorBuildNumber="0"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<ExpandDLResponse
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:ExpandDLResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorNameResolutionNoResults</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
</m:ExpandDLResponseMessage>
</m:ResponseMessages>
</ExpandDLResponse>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
ExpandDLResponse
ResponseMessages
ExpandDLResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
To find other options for the response message of the ExpandDL operation, explore the
schema hierarchy. Start at the ExpandDLResponse element.
See also
ResolveNames operation
EWS XML elements in Exchange
ExportItems operation
Article • 03/29/2023 • 2 minutes to read
Description
The following example of an ExportItems request shows how to form a request to get
three items exported from a mailbox.
Code
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
</soap:Header>
<soap:Body>
<m:ExportItems>
<m:ItemIds>
<t:ItemId Id="AAMkAGYzZjZmRiUsidkC+NAAAAY89GAAA="/>
<t:ItemId Id="AAMkAGYzZjZmRiUsidkC+NAAAAY89FAAA="/>
<t:ItemId Id="AAMkAGYzZjZmRiUsidkC+NAAAAY87NAAA="/>
</m:ItemIds>
</m:ExportItems>
</soap:Body>
</soap:Envelope>
Comment
The item identifiers in the example have been shortened to preserve readability.
Request elements
The following elements are used in the request:
RequestServerVersion
ExportItems
ItemIds (NonEmptyArrayOfItemIdsType)
ItemId
Description
The following example shows a successful response to an ExportItems request.
Code
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<t:ServerVersionInfo MajorVersion="14"
MinorVersion="1"
MajorBuildNumber="139"
MinorBuildNumber="0"
Version="Exchange2010_SP1"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:ExportItemsResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:ExportItemsResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:ItemId Id="AAMkAGYzZjZmRiUsidkC+NAAAAY89GAAA="
ChangeKey="FwAAAA=="/>
<m:Data>
AQAAAAgAAAAAAAAALgBlAHgAdABlAHMAdAAuAG0AaQBjAHIAbwBzAG8AZgB0AC4A
YwBvAG0AAABTAE0AVABQAAAAVQBzAGUAcgAyAEAAYQB1AGoAaQBuAGcALQBkAG8AbQAuAGUA
eAB0AGUAcwB0AC4AbQBpAGMAcgBvAHMAbwBmAHQALgBjAG8AbQAAALCE/jlMAAAAVQBzAGUA
cgAyAEAAYQB1AGoAaQBuAGcALQBkAG8AbQAuAGUAeAB0AGUAcwB0AC4AbQBpAGMAcgBvAHMA
bwBmAHQALgBjAG8AbQAAAAMAADkAAAAAAwD+DwYAAAADAARAAwACQAMADkA=
</m:Data>
</m:ExportItemsResponseMessage>
<m:ExportItemsResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:ItemId Id="AAMkAGYzZjZmRiUsidkC+NAAAAY89FAAA="
ChangeKey="FwAAAA=="/>
<m:Data>
AQAAAAgAAAAAAAAAAQAAAAMAAAAYAAAAAQAAAAcDAgAAAAAAwAAAAAAAAEYAJACA
QAAyAAAh9SpR08oBAwAEQAMAFkANABMOAwAAQAMAIQ4AAAAAsIQSN0oAAAAyAGEAYgAxADYA
MQA2ADYALQBhAGUANQBkAC0ANAAyAGUAZgAtAGEANQA1ADkALQBjADgAOQAwADgANwBkADIA
MwBkADgANAAAAAMACzf/////AwAgDmQEAAADAPcPAAAAAEAABzBPMXstUdPKAUAACDBPMXst
UdPKAQMABTcFAAAAsIQONx4AAABtAGUAcwBzAGEAZwBlAC8AcgBmAGMAOAAyADIAAACwhAEw
IgAAAE0AbwBzAHQAIABmAGEAcwBjAGkAbgBhAHQAaQBuAGcAAAACAfkPBAAAAAAAAAADAAFA
FABKZ3QrAAAAZF2mAwAXAAEAAACwhBoAEgAAAEkAUABNAC4ATgBvAHQAZQAAAAMANgAAAAAA
sIQ3ACIAAABNAG8AcwB0ACAAZgBhAHMAYwBpAG4AYQB0AGkAbgBnAAAAQAA5AACq+za80coB
AgE7AGUAAABFWDovTz1GSVJTVCBPUkdBTklaQVRJT04vT1U9RVhDSEFOR0UgQURNSU5JU1RS
QVRJVkUgR1JPVVAgKEZZRElCT0hGMjNTUERMVCkvQ049UkVDSVBJRU5UUy9DTj1VU0VST05F
ALCEPQACAAAAAAACAUEAfgAAAAAAAADcp0DIwEIQGrS5CAArL+GCAQAAAAAAAAAvTz1GSVJT
VCBPUkdBTklaQVRJT04vT1U9RVhDSEFOR0UgQURNSU5JU1RSQVRJVkUgR1JPVVAgKEZZRElC
T0hGMjNTUERMVCkvQ049UkVDSVBJRU5UUy9DTj1VU0VST05FALCEQgAQAAAAVQB
</m:Data>
</m:ExportItemsResponseMessage>
<m:ExportItemsResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:ItemId Id="AAMkAGYzZjZmRiUsidkC+NAAAAY87NAAA="
ChangeKey="CQAAAA=="/>
<m:Data>
AQAAAAgAAAAAAAAAAQAAAAMAAAAYAAAAAQAAAAcDAgAAAAAAwAAAAAAAAEYAJACA
BAAAAAYAAAABDouAAAACAAAAEiAAAOSECEBbAAAAL089RklSU1QgT1JHQU5JWkFUSU9OL09V
PUVYQ0hBTkdFIEFETUlOSVNUUkFUSVZFIEdST1VQIChGWURJQk9IRjIzU1BETFQpL0NOPVJF
Q0lQSUVOVFMvQ049AAMAFwABAAAAsIQaABIAAABJAFAATQAuAE4AbwB0AGUAAAALACMAAAAL
ACkAAAADADYAAAAAALCENwAyAAAASQBuAHQAZQByAGUAcwB0AGkAbgBnACAALQAgAGYAcgBv
AG0AIABFAFcAUwBNAEEAAABAADkAAHZeFxfRygECATsAZQAAAEVYOi9PPUZJUlNUIE9SR0FO
SVpBVElPTi9PVT1FWENIQU5HRSBBRE1JTklTVFJBVElWRSBHUk9VUCAoRllESUJPSEYyM1NQ
RExUKS9DTj1SRUNJUElFTlRTL0NOPVVTRVJPTkUAsIQ9AAIAAAAAAAIBPwB+AAAAAAAAANyn
QMjAQhAatLkIACsv4YIBAAAAAAAAAC9PPUZJUlNUIE9SR0FOSVpBVElPTi9PVT1FWENIQU5H
</m:Data>
</m:ExportItemsResponseMessage>
</m:ResponseMessages>
</m:ExportItemsResponse>
</s:Body>
</s:Envelope>
Comment
The item identifiers and change keys in the example have been shortened to preserve
readability.
Response elements
The following elements are used in the response:
ServerVersionInfo
ExportItemsResponse
ResponseMessages
ExportItemsResponseMessage
ResponseCode
ItemId
Data (base64Binary)
Description
The following example shows a response to the ExportItems request that contains two
errors and one successfully exported item. The first item in the example is successfully
exported. The second item contains an incorrect change key. The third item represents
an attempt to export an item from the wrong mailbox.
Code
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="14"
MinorVersion="1"
MajorBuildNumber="164"
MinorBuildNumber="0"
Version="Exchange2010_SP1"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:ExportItemsResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:ExportItemsResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:ItemId Id="AAMkADhhOGU0oMf0GPIQeAAAAUC8iAABseAAAAUFZ7AAA="
ChangeKey="CQAAAA=="/>
<m:Data>
AQAAAAgAAAAAAAAALgBlAHgAdABlAHMAdAAuAG0AaQBjAHIAbwBzAG8AZgB0AC4A
YwBvAG0AAABTAE0AVABQAAAAVQBzAGUAcgAyAEAAYQB1AGoAaQBuAGcALQBkAG8AbQAuAGUA
eAB0AGUAcwB0AC4AbQBpAGMAcgBvAHMAbwBmAHQALgBjAG8AbQAAALCE/jlMAAAAVQBzAGUA
cgAyAEAAYQB1AGoAaQBuAGcALQBkAG8AbQAuAGUAeAB0AGUAcwB0AC4AbQBpAGMAcgBvAHMA
bwBmAHQALgBjAG8AbQAAAAMAADkAAAAAAwD+DwYAAAADAARAAwACQAMADkA=
</m:Data>
</m:ExportItemsResponseMessage>
<m:ExportItemsResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorInvalidChangeKey</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
</m:ExportItemsResponseMessage>
<m:ExportItemsResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorNonExistentMailbox</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
<m:MessageXml>
<t:Value Name="MailboxGuid">f3f6f699-2254-40ce-9994-
388d9d98419e</t:Value>
</m:MessageXml>
</m:ExportItemsResponseMessage>
</m:ResponseMessages>
</m:ExportItemsResponse>
</s:Body>
</s:Envelope>
Comments
The item identifiers, change keys, and data in the example have been shortened to
preserve readability.
ServerVersionInfo
ExportItemsResponse
ResponseMessages
ExportItemsResponseMessage
ResponseCode
ItemId
Data (base64Binary)
MessageText
DescriptiveLinkKey
MessageXml
Value
7 Note
The Value element does not exist in the schema. This element is valid because the
MessageXml element, in which the Value instance element occurs, can contain any
well-formed XML.
See also
UploadItems operation
Description
The following example of a FindConversation request shows how to form a request to
find the first conversation in the Inbox folder.
Code
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
</soap:Header>
<soap:Body>
<m:FindConversation>
<m:ParentFolderId>
<t:DistinguishedFolderId Id ="inbox"/>
</m:ParentFolderId>
</m:FindConversation>
</soap:Body>
</soap:Envelope>
Request elements
The following elements are used in the request:
RequestServerVersion
FindConversation
IndexedPageItemView
ParentFolderId
DistinguishedFolderId
Description
The following example shows a successful response to a FindConversation request.
Code
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="14"
MinorVersion="1"
MajorBuildNumber="91"
MinorBuildNumber="0"
Version="Exchange2010_SP1"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<FindConversationResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<Conversations>
<t:Conversation
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<t:ConversationId Id="AAQkADRlZDhjZDVlLzYtNDcyZi1i32hHpdc="/>
<t:UniqueRecipients>
<t:String>User1First User1Last</t:String>
</t:UniqueRecipients>
<t:GlobalUniqueRecipients>
<t:String>User2First User2Last</t:String>
<t:String>User1First User1Last</t:String>
</t:GlobalUniqueRecipients>
<t:UniqueSenders>
<t:String>User2First User2Last</t:String>
</t:UniqueSenders>
<t:GlobalUniqueSenders>
<t:String>User1First User1Last</t:String>
<t:String>User2First User2Last</t:String>
</t:GlobalUniqueSenders>
<t:LastDeliveryTime>2010-02-09T02:20:49Z</t:LastDeliveryTime>
<t:GlobalLastDeliveryTime>2010-02-
09T02:21:01Z</t:GlobalLastDeliveryTime>
<t:HasAttachments>false</t:HasAttachments>
<t:GlobalHasAttachments>false</t:GlobalHasAttachments>
<t:MessageCount>2</t:MessageCount>
<t:GlobalMessageCount>5</t:GlobalMessageCount>
<t:UnreadCount>0</t:UnreadCount>
<t:Size>6474</t:Size>
<t:GlobalSize>14497</t:GlobalSize>
<t:ItemClasses>
<t:ItemClass>IPM.Note</t:ItemClass>
</t:ItemClasses>
<t:GlobalItemClasses>
<t:ItemClass>IPM.Note</t:ItemClass>
</t:GlobalItemClasses>
<t:Importance>Normal</t:Importance>
<t:GlobalImportance>Normal</t:GlobalImportance>
<t:ItemIds>
<t:ItemId
Id="AAMkADRlZDhjZDVlLTU3qaTQvcFtnmUZQY2FuFP93qPtAAAADXWyAAA="
ChangeKey="CQAAAA=="/>
<t:ItemId
Id="AAMkADRlZDhjZDVFtnmUZQY2vcFtnmUZQY2FuFP93qPtAAAADXWxAAA="
ChangeKey="CQAAAA=="/>
</t:ItemIds>
<t:GlobalItemIds>
<t:ItemId
Id="AAMkADRlZDhCQvcFtnmADU5PAACQvcFtnmUZQsdfFPPtAAAADad4AAA="
ChangeKey="CQAAAA=="/>
<t:ItemId
Id="AAqaTXQvcFtnmUZQAADU5NAACQvcFmUZQY2FuFP93qPtAAAADXWyAAA="
ChangeKey="CQAAAA=="/>
<t:ItemId
Id="AAMkFtnmUZQY2FuFP93qPtAAAADU5vcFtY2FuFP93qPtAAAADad3AAA="
ChangeKey="CQAAAA=="/>
<t:ItemId
Id="AAMkLTU3YzQvcFtnmUZQY2FuFP93qPtnmU2FuFP93qPtAAAADXWxAAA="
ChangeKey="CQAAAA=="/>
<t:ItemId
Id="AAMkADlLTU3YzYtNDAAAAAB1aGnYmUZQY2FPAmUZQY2FuqPtAAd2AAA="
ChangeKey="CQAAAA=="/>
</t:GlobalItemIds>
</t:Conversation>
</Conversations>
</FindConversationResponse>
</s:Body>
</s:Envelope>
Comment
The item and conversation identifiers in the example have been shortened to preserve
readability.
ServerVersionInfo
FindConversationResponse
ResponseCode
Conversation (ConversationType)
ConversationId
ConversationTopic
UniqueRecipients
String
GlobalUniqueRecipients
UniqueSenders
GlobalUniqueSenders
LastDeliveryTime
GlobalLastDeliveryTime
HasAttachments
GlobalHasAttachments
MessageCount
GlobalMessageCount
UnreadCount
Size
GlobalSize
ItemClasses (ArrayOfItemClassType)
ItemClass
GlobalItemClasses
Importance
GlobalImportance
ItemIds
ItemId
GlobalItemIds
Description
The following example shows an error response to the FindConversation request that
was caused by a schema validation error.
Code
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<s:Fault>
<faultcode
xmlns:a="https://schemas.microsoft.com/exchange/services/2006/types">a:Error
SchemaValidation</faultcode>
<detail>
<e:ResponseCode
xmlns:e="https://schemas.microsoft.com/exchange/services/2006/errors">ErrorS
chemaValidation</e:ResponseCode>
<e:Message
xmlns:e="https://schemas.microsoft.com/exchange/services/2006/errors">The
request failed schema validation.</e:Message>
<t:MessageXml
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<t:LineNumber>14</t:LineNumber>
<t:LinePosition>34</t:LinePosition>
</t:MessageXml>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>
faultcode
faultstring
detail
ResponseCode
Message
MessageXml
LineNumber
LinePosition
Violation
See also
ApplyConversationAction operation
FindFolder returns only the first 512 bytes of any streamable property. For Unicode, it
returns the first 255 characters by using a null-terminated Unicode string.
Restrictions are permitted and should use only the folder properties, not the item
properties. Sorting functionality is not available for FindFolder responses. Grouped
queries are not available for FindFolder queries.
[!NOTE}
The FindFolder operation is also used to find managed folders.
SOAP Headers
The FindFolder operation can use the SOAP headers that are listed and described in the
following table.
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<FindFolder Traversal="Shallow"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<FolderShape>
<t:BaseShape>Default</t:BaseShape>
</FolderShape>
<ParentFolderIds>
<t:DistinguishedFolderId Id="inbox"/>
</ParentFolderIds>
</FindFolder>
</soap:Body>
</soap:Envelope>
Using the Default value for the BaseShape, the response returns the folder name, the
folder ID, the number of subfolders, the number of child folders found in the folder, and
the count of unread items.
FindFolder
FolderShape
BaseShape
ParentFolderIds
DistinguishedFolderId
7 Note
The folder ID and the change key have been shortened to preserve readability.
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<FindFolderResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:FindFolderResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<t:Folders>
<t:Folder>
<t:DisplayName>TestFolder</t:DisplayName>
<t:TotalCount>0</t:TotalCount>
<t:ChildFolderCount>0</t:ChildFolderCount>
<t:UnreadCount>0</t:UnreadCount>
</t:Folder>
</t:Folders>
</m:RootFolder>
</m:FindFolderResponseMessage>
</m:ResponseMessages>
</FindFolderResponse>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
FindFolderResponse
ResponseMessages
FindFolderResponseMessage
ResponseCode
RootFolder (FindItemResponseMessage)
Folders
Folder
FolderId
DisplayName (string)
TotalCount
ChildFolderCount
UnreadCount
FindFolder responses to a request with the AllProperties response shape will not return
the TotalCount and UnreadCount elements for public folder searches.
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<FindFolderResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:FindFolderResponseMessage ResponseClass="Error">
<m:MessageText>Id is malformed.</m:MessageText>
<m:ResponseCode>ErrorInvalidIdMalformed</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
</m:FindFolderResponseMessage>
</m:ResponseMessages>
</FindFolderResponse>
</soap:Body>
</soap:Envelope>
FindFolderResponse
ResponseMessages
MessageText
ResponseCode
DescriptiveLinkKey
Additional Information
The folder DisplayName (string) element is always included in the default shape.
The UnreadCount element is included in Tasks and Notes folders.
Use the PropertyTag value of 0x672D with a property type of Integer to identify a
managed folder by using the ExtendedFieldURI element.
See also
Finding Folders
FindItem operation
Article • 03/29/2023 • 4 minutes to read
The FindItem operation searches for items that are located in a user's mailbox. This
operation provides many ways to filter and format how search results are returned to
the caller.
The response shape of items. This identifies the properties that are returned in the
response. Specifying this is required.
The folders from which to perform the search. Specifying this is required.
The paging mechanism and view types for returning view data in pages. Specifying
this is optional.
Options for grouping and sorting the items that are returned. Specifying this is
optional.
Search restrictions or Advanced Query Syntax (AQS) strings for filtering the items
that are returned. For more information about using AQS for content index
searches, see QueryString (String). Specifying this is optional.
The sort order for items returned in the response. Specifying this is optional.
The FindItem operation returns only the first 512 bytes of any streamable property. For
Unicode, it returns the first 255 characters by using a null-terminated Unicode string. It
does not return any of the message body formats or the recipient lists. FindItem will
return a recipient summary. You can use the GetItem operation to get the details of an
item.
FindItem returns only the Name (EmailAddressType) element and does not return the
EmailAddress (NonEmptyStringType) element in the Mailbox element for the following
fields:
7 Note
The FindItem operation can use the SOAP headers that are listed in the following table.
DateTimePrecision DateTimePrecision
Specifies the resolution of data/time values in
responses from the server, either in seconds or in
milliseconds. This is applicable to a request.
Impersonation
ExchangeImpersonation Identifies the user whom the client application is
impersonating. This is applicable to a request.
MailboxCulture
MailboxCulture Identifies the RFC3066 culture to be used to
access the mailbox. This is applicable to a
request.
RequestVersion
RequestServerVersion
Identifies the schema version for the operation
request. This is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that
responded to the request. This is applicable to a
response.
TimeZoneContext
TimeZoneContext
Identifies the time zone to be used for all
responses from the server. This is applicable to a
request.
FindItem operation request example
The following example of a FindItem request shows how to obtain the item identifier
that is defined by the IdOnly enumeration of the BaseShape element for items that are
found in the Deleted Items folder.
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<FindItem
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
Traversal="Shallow">
<ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
</ItemShape>
<ParentFolderIds>
<t:DistinguishedFolderId Id="deleteditems"/>
</ParentFolderIds>
</FindItem>
</soap:Body>
</soap:Envelope>
FindItem
ItemShape
BaseShape
ParentFolderIds
DistinguishedFolderId
For more options for a FindItem request message, explore the schema hierarchy. Start at
the FindItem element.
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<FindItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:FindItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:RootFolder TotalItemsInView="10"
IncludesLastItemInRange="true">
<t:Items>
<t:Message>
</t:Message>
<t:Message>
</t:Message>
</t:Items>
</m:RootFolder>
</m:FindItemResponseMessage>
</m:ResponseMessages>
</FindItemResponse>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
FindItemResponse
ResponseMessages
FindItemResponseMessage
ResponseCode
RootFolder (FindItemResponseMessage)
Items
Message
ItemId
For more options for a FindItem response message, explore the schema hierarchy. Start
at the FindItemResponse element.
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<FindItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:FindItemResponseMessage ResponseClass="Error">
<m:MessageText>Id is malformed.</m:MessageText>
<m:ResponseCode>ErrorInvalidIdMalformed</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
</m:FindItemResponseMessage>
</m:ResponseMessages>
</FindItemResponse>
</soap:Body>
</soap:Envelope>
FindItemResponse
ResponseMessages
FindItemResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
For more options for a FindItem error response message, explore the schema hierarchy.
Start at the FindItemResponse element.
Version differences
Versions of Exchange starting with major version 15 and ending with build 15.0.898.11
return an ErrorInvalidOperation value in the ResponseCode element when the FindItem
operation is used to search multiple folders in an archive mailbox.
See also
Finding Items
FindItemType
FindMessageTrackingReport operation
Article • 03/29/2023 • 2 minutes to read
See also
EWS operations in Exchange
The FindPeople operation returns all persona objects from a specified Contacts folder or
retrieves contacts that match a specified query string.
The FindPeople operation builds on the existing functionality of the Restriction and
BaseShape complex types by adding an aggregation restriction and the ability to return
additional properties. By using a restriction, a client can specify filters such as "only
return results that have an IM address". The default search behavior targets both the
specified user's personal mailbox and the global address list (GAL). When searching the
GAL as the primary search folder, you must specify a query string instead of a restriction,
because this operation does not allow for browsing of the GAL.
Impersonation
ExchangeImpersonation Identifies the user whom the client application is
impersonating. This header is applicable to a
request.
RequestVersion RequestServerVersion
Identifies the schema version for the operation
request. This header is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This header is applicable to a response.
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
</soap:Header>
<soap:Body>
<m:FindPeople>
<m:IndexedPageItemView BasePoint="Beginning"
MaxEntriesReturned="100" Offset="0"/>
<m:ParentFolderId>
<t:DistinguishedFolderId Id="contacts"/>
</m:ParentFolderId>
</m:FindPeople>
</soap:Body>
</soap:Envelope>
FindPeople
IndexedPageItemView
ParentFolderId (TargetFolderIdType)
DistinguishedFolderId
The following example of a FindPeople operation request shows how to return the first
100 contacts from the GAL by using a query string. Setting the DistinguishedFolderId to
"directory" will search the GAL as the primary source of personas.
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
</soap:Header>
<soap:Body>
<m:FindPeople>
<m:PersonaShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
<t:FieldURI FieldURI="persona:DisplayName"/>
<t:FieldURI FieldURI="persona:Title"/>
</t:AdditionalProperties>
</m:PersonaShape>
<m:IndexedPageItemView BasePoint="Beginning" MaxEntriesReturned="100"
Offset="0"/>
<m:ParentFolderId>
<t:DistinguishedFolderId Id="directory"/>
</m:ParentFolderId>
<m:QueryString>adams</m:QueryString>
</m:FindPeople>
</soap:Body>
</soap:Envelope>
XML
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="349"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<FindPeopleResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<People>
<Persona
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<PersonaId
Id="AAQkAGQ1MjJjMTBkLTc4Y2UtNDA5Ny04ZjU5LWI3MTYzNGNkZmRkYQAQAOjFqObcLmtOlzlR
nHdXQjo=" />
<CreationTime>2012-01-11T22:25:37Z</CreationTime>
<DisplayName>Terry Adams</DisplayName>
<DisplayNameFirstLast>Terry Adams</DisplayNameFirstLast>
<DisplayNameLastFirst>Adams Terry</DisplayNameLastFirst>
<FileAs>Adams, Terry</FileAs>
<GivenName>Terry</GivenName>
<Surname>Adams</Surname>
<EmailAddress>
<Name>[email protected]</Name>
<EmailAddress>[email protected]</EmailAddress>
<RoutingType>SMTP</RoutingType>
</EmailAddress>
<EmailAddresses>
<EmailAddress>
<Name>[email protected]</Name>
<EmailAddress>[email protected]</EmailAddress>
<RoutingType>SMTP</RoutingType>
</EmailAddress>
<EmailAddress>
<Name>[email protected]</Name>
<EmailAddress>[email protected]</EmailAddress>
<RoutingType>SMTP</RoutingType>
</EmailAddress>
</EmailAddresses>
<RelevanceScore>2147483647</RelevanceScore>
</Persona>
</People>
<TotalNumberOfPeopleInView>1</TotalNumberOfPeopleInView>
</FindPeopleResponse>
</s:Body>
</s:Envelope>
FindPeopleResponse
ResponseCode
People
Persona
PersonaId
CreationTime
DisplayName (string)
DisplayNameFirstLast
DisplayNameLastFirst
FileAs
GivenName
Surname
EmailAddresses (ArrayOfEmailAddressesType)
EmailAddress (EmailAddressType)
Name (EmailAddressType)
EmailAddress (EmailAddressType)
RoutingType (EmailAddressType)
RelevanceScore
TotalNumberOfPeopleInView
See also
People and contacts in EWS in Exchange
GetPersona operation
GetAppManifests operation
Article • 03/29/2023 • 2 minutes to read
RequestVersion RequestServerVersion Identifies the schema version for the operation request.
This header is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This header is applicable to a response.
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
<t:MailboxCulture>en-US</t:MailboxCulture>
<t:TimeZoneContext>
</t:TimeZoneContext>
</soap:Header>
<soap:Body >
<m:GetAppManifests>
<m:ApiVersionSupported>1.1</m:ApiVersionSupported>
<m:SchemaVersionSupported>1.1</m:SchemaVersionSupported>
</m:GetAppManifests>
</soap:Body>
</soap:Envelope>
GetAppManifests
ApiVersionSupported
SchemaVersionSupported
7 Note
All base64 app manifests have been arbitrarily truncated to preserve readability.
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="918"
MinorBuildNumber="07"
Version="V2_10"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetAppManifestsResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<m:Apps
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<t:App
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<t:Manifest>WNlQXBwPg==</t:Manifest>
</t:App>
</m:Apps>
</GetAppManifestsResponse>
</s:Body>
</s:Envelope>
GetAppManifestsResponse
ResponseCode
Apps
App
Manifest
The response SOAP body can also contain the following element:
Manifests
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="918"
MinorBuildNumber="07"
Version="V2_10"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetAppManifestsResponse ResponseClass="Error"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>ErrorInvalidRequest</ResponseCode>
<DescriptiveLinkKey>0</DescriptiveLinkKey>
</GetAppManifestsResponse>
</s:Body>
</s:Envelope>
See also
EWS operations in Exchange
DisableApp operation
InstallApp operation
UninstallApp operation
GetAppMarketplaceUrl operation
GetAppMarketplaceUrl operation
Article • 03/29/2023 • 2 minutes to read
The GetAppMarketplaceUrl operation retrieves the URL for the app marketplace that a
client can visit to acquire apps to install in a mailbox.
RequestVersion RequestServerVersion Identifies the schema version for the operation request.
This header is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This header is applicable to a response.
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
<t:MailboxCulture>en-US</t:MailboxCulture>
<t:TimeZoneContext>
</t:TimeZoneContext>
</soap:Header>
<soap:Body >
<m:GetAppMarketplaceUrl>
<m:ApiVersionSupported>1.0</m:ApiVersionSupported>
<m:SchemaVersionSupported>1.0</m:SchemaVersionSupported>
</m:GetAppMarketplaceUrl>
</soap:Body>
</soap:Envelope>
GetAppMarketplaceUrl
ApiVersionSupported
SchemaVersionSupported
7 Note
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="918"
MinorBuildNumber="7"
Version="V2_10"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetAppMarketplaceUrlResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<AppMarketplaceUrl>http://marketplace.contoso.com</AppMarketplaceUrl>
</GetAppMarketplaceUrlResponse>
</s:Body>
</s:Envelope>
GetAppMarketplaceUrlResponse
ResponseCode
AppMarketplaceUrl
The following example shows an error response that is returned when external Exchange
Control Panel (ECP) is not configured.
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="918"
MinorBuildNumber="7"
Version="V2_10"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetAppMarketplaceUrlResponse ResponseClass="Error"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>ErrorCannotGetExternalEcpUrl</ResponseCode>
<DescriptiveLinkKey>0</DescriptiveLinkKey>
</GetAppMarketplaceUrlResponse>
</s:Body>
</s:Envelope>
GetAppMarketplaceUrlResponse
MessageText
ResponseCode
DescriptiveLinkKey
See also
EWS operations in Exchange
DisableApp operation
InstallApp operation
UninstallApp operation
GetAppManifests operation
GetAttachment operation
Article • 03/29/2023 • 2 minutes to read
Description
The following example of GetAttachment request shows how to get an attachment.
Code
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<GetAttachment
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<AttachmentShape/>
<AttachmentIds>
<t:AttachmentId Id="AAAtAEFkbWluaX..."/>
</AttachmentIds>
</GetAttachment>
</soap:Body>
</soap:Envelope>
Comments
The AttachmentShape element allows you to specify which attachment information
should be returned. An empty AttachmentShape element is valid and will render your
attachments without MIME content for item attachments, with a text body type, and
without any additional properties.
The AttachmentIds collection allows you to specify one or more attachment identifiers
to return. Note that these are of type RequestAttachmentIdType, so any AttachmentIds
that you receive from CreateAttachment must have the RootItemId and
RootItemChangeKey attributes removed before passing them to GetAttachment.
7 Note
The attachment identifier and change key have been shortened to preserve
readability.
Request elements
The following elements are used in the request:
GetAttachment
AttachmentShape
AttachmentIds
Description
The following example shows a successful response to a GetAttachment request. This
example returns a file attachment.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"/>
</soap:Header>
<soap:Body>
<GetAttachmentResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:GetAttachmentResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Attachments>
<t:FileAttachment>
<t:AttachmentId Id="AAAtAEFkbWluaX..."/>
<t:Name>SomeFile</t:Name>
<t:Content>AQIDBAU=</t:Content>
</t:FileAttachment>
</m:Attachments>
</m:GetAttachmentResponseMessage>
</m:ResponseMessages>
</GetAttachmentResponse>
</soap:Body>
</soap:Envelope>
Comments
The response messages for GetAttachment will always contain the full attachment; that
is, all properties will always be included. For file attachments, those properties are Name
(AttachmentType), ContentType, ContentId, ContentLocation, and Content. For item
attachments, those properties are Name (AttachmentType), ContentType, ContentId,
ContentLocation and all of the item's properties, as if the AllProperties shape had been
used in a GetItem call. The AttachmentShape element, if present, will allow a consumer
application to request additional extended properties for item attachments.
ServerVersionInfo
GetAttachmentResponse
ResponseMessages
GetAttachmentResponseMessage
ResponseCode
Attachments
FileAttachment
AttachmentId (GetAttachment and DeleteAttachment)
Name (AttachmentType)
Content
See also
CreateAttachment operation
DeleteAttachment operation
GetClientAccessToken operation
Article • 03/29/2023 • 2 minutes to read
The GetClientAccessToken operation gets a client access token for a mail app for
Outlook.
RequestVersion RequestServerVersion Identifies the schema version for the operation request.
This header is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This header is applicable to a response.
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
</soap:Header>
<soap:Body >
<m:GetClientAccessToken>
<m:TokenRequests>
<t:TokenRequest>
<t:Id>1C50226D-04B5-4AB2-9FCD-42E236B59E4B</t:Id>
<t:TokenType>CallerIdentity</t:TokenType>
</t:TokenRequest>
</m:TokenRequests>
</m:GetClientAccessToken>
</soap:Body>
</soap:Envelope>
GetClientAccessToken
TokenRequests
TokenRequest
ID (String)
TokenType
7 Note
The token values in this article have been shortened to preserve readability.
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="556"
MinorBuildNumber="14"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetClientAccessTokenResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetClientAccessTokenResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Token>
<t:Id>1C50226D-04B5-4AB2-9FCD-42E236B59E4B</t:Id>
<t:TokenType>CallerIdentity</t:TokenType>
<t:TokenValue>eyJ0eXAmv0QitaJg</t:TokenValue>
<t:TTL>479</t:TTL>
</m:Token>
</m:GetClientAccessTokenResponseMessage>
</m:ResponseMessages>
</m:GetClientAccessTokenResponse>
</s:Body>
</s:Envelope>
GetClientAccessTokenResponse
ResponseMessages
GetClientAccessTokenResponseMessage
ResponseCode
Token (ClientAccessTokenType)
ID (String)
TokenType (ClientAccessTokenType)
TokenValue
TTL (ClientAccessTokenTypeType)
GetClientAccessToken operation error response
The following example shows an error response to a GetClientAccessToken operation
request. This is a response to a request to get an extension callback token without the
appropriate permissions.
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="556"
MinorBuildNumber="14"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetClientAccessTokenResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetClientAccessTokenResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorInvalidClientAccessTokenRequest</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
</m:GetClientAccessTokenResponseMessage>
</m:ResponseMessages>
</m:GetClientAccessTokenResponse>
</s:Body>
</s:Envelope>
GetClientAccessTokenResponse
ResponseMessages
GetClientAccessTokenResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
For additional error codes that are generic to EWS and specific to this operation, see
ResponseCode.
See also
EWS operations in Exchange
GetAppManifests operation
Outlook add-ins
GetConversationItems operation
Article • 03/29/2023 • 3 minutes to read
The GetConversationItems operation gets one or more sets of items that are organized
in to nodes in a conversation.
Impersonation
ExchangeImpersonation Identifies the user whom the client application is
impersonating. This header is applicable to a
request.
RequestVersion RequestServerVersion
Identifies the schema version for the operation
request. The minimum value for this element is
Exchange2013. This header is applicable to a
request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This header is applicable to a response.
All item identifiers and change keys in this article have been shortened to preserve
readability.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetConversationItems>
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:ItemShape>
<m:FoldersToIgnore>
</m:FoldersToIgnore>
<m:SortOrder>TreeOrderDescending</m:SortOrder>
<m:Conversations>
<t:Conversation>
</t:Conversation>
</m:Conversations>
</m:GetConversationItems>
</soap:Body>
</soap:Envelope>
The MailboxScope element, which sets the mailbox scope by indicating whether
the GetConversationItems operation is to be performed on the primary mailbox,
the archive mailbox, or both mailboxes.
The SyncState (base64Binary) element, which sets the synchronization state to only
get conversation items that are new or updated in the conversation. This element
is set for each conversation.
GetConversationItems
ItemShape
BaseShape
AdditionalProperties
FieldURI
FoldersToIgnore
DistinguishedFolderId
SortOrder (ConversationNodeSortOrder)
Conversations
Conversation (ConversationRequestType)
ConversationId
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="545"
MinorBuildNumber="11"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetConversationItemsResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetConversationItemsResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Conversation>
<t:SyncState>AQIAAABNVkUwAgIAAABhHqHUAwIAAABNVkUxBAIAAABhHqHfBAIAAABhHqHV</t
:SyncState>
<t:ConversationNodes>
<t:ConversationNode>
<t:InternetMessageId>[email protected]</t:Interne
tMessageId>
<t:ParentInternetMessageId>[email protected]</t:P
arentInternetMessageId>
<t:Items>
<t:Message>
<t:ItemId Id="AAMkADEzOTQrAABhHqHfAAA="
ChangeKey="CQAAABYAAACYAABhPpaq" />
<t:DateTimeReceived>2012-10-
30T18:42:27Z</t:DateTimeReceived>
</t:Message>
</t:Items>
</t:ConversationNode>
<t:ConversationNode>
<t:InternetMessageId>[email protected]</t:Interne
tMessageId>
<t:ParentInternetMessageId>[email protected]</t:P
arentInternetMessageId>
<t:Items>
<t:Message>
<t:ItemId Id="AAMkADEzOTExYjJkLTYxZDAt"
ChangeKey="CQAAABQrAABhPpaP" />
<t:DateTimeReceived>2012-10-
30T17:38:26Z</t:DateTimeReceived>
</t:Message>
</t:Items>
</t:ConversationNode>
<t:ConversationNode>
<t:InternetMessageId>[email protected]</t:Interne
tMessageId>
<t:ParentInternetMessageId>[email protected]</t:P
arentInternetMessageId>
<t:Items>
<t:Message>
<t:ItemId Id="AAMkADEzOTFNVkUxAAA="
ChangeKey="CQAAABY4QrAABhPvYK" />
<t:DateTimeReceived>2012-10-
30T17:37:00Z</t:DateTimeReceived>
</t:Message>
</t:Items>
</t:ConversationNode>
<t:ConversationNode>
<t:InternetMessageId>[email protected]</t:Interne
tMessageId>
<t:ParentInternetMessageId>[email protected]</t:P
arentInternetMessageId>
<t:Items>
<t:Message>
<t:ItemId Id="AAMkm4QrAABhHqHUAAA="
ChangeKey="CQAAABQrAABhPpaN" />
<t:DateTimeReceived>2012-10-
30T17:37:05Z</t:DateTimeReceived>
</t:Message>
</t:Items>
</t:ConversationNode>
<t:ConversationNode>
<t:InternetMessageId>[email protected]</t:Interne
tMessageId>
<t:Items>
<t:Message>
<t:ItemId Id="AAMkArAABNVkUwAAA="
ChangeKey="CQAAABm4QrAABhPvYJ" />
<t:DateTimeReceived>2012-10-
30T17:36:00Z</t:DateTimeReceived>
</t:Message>
</t:Items>
</t:ConversationNode>
</t:ConversationNodes>
</m:Conversation>
</m:GetConversationItemsResponseMessage>
</m:ResponseMessages>
</m:GetConversationItemsResponse>
</s:Body>
</s:Envelope>
GetConversationItemsResponse
ResponseMessages
GetConversationItemsResponseMessage
ResponseCode
Conversation (ConversationResponseType)
ConversationId
SyncState (base64Binary)
ConversationNodes
ConversationNode
InternetMessageId
Items (NonEmptyArrayOfAllItemsType)
Message
ItemId
Subject
DateTimeReceived
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetConversationItemsResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetConversationItemsResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorItemNotFound</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
</m:GetConversationItemsResponseMessage>
</m:ResponseMessages>
</m:GetConversationItemsResponse>
</s:Body>
</s:Envelope>
See also
EWS operations in Exchange
ApplyConversationAction operation
FindConversation operation
GetDelegate operation
Article • 03/29/2023 • 2 minutes to read
The GetDelegate operation retrieves the delegate settings for a specified mailbox.
SOAP Headers
The GetDelegate operation can use the SOAP headers that are listed and described in
the following table.
RequestVersion RequestServerVersion
Identifies the schema version for the operation
request.
ServerVersion ServerVersionInfo
Identifies the version of the server that responded to
the request.
Description
The following code example shows how to retrieve the delegate settings for all the
delegates that are set on user3's mailbox. All the permissions for each user are returned
in the response.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Header>
<t:RequestServerVersion Version="Exchange2007_SP1"/>
</soap:Header>
<soap:Body>
<GetDelegate
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
IncludePermissions="true">
<Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</Mailbox>
</GetDelegate>
</soap:Body>
</soap:Envelope>
Comments
You can use the UserId element to specify individual users instead of returning all users
who have delegate access permissions on the mailbox.
7 Note
Exchange Web Services (EWS) does not support managing group delegates. EWS
will return an error if the GetDelegate operation is called for a principal that has a
security group delegate.
Description
The following example of a GetDelegate response shows a successful response to a
GetDelegate request. The response contains information about the delegate access
permissions, whether the delegate can view private items, whether the delegate receives
copies of meeting messages, and to whom meeting requests were delivered.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<t:ServerVersionInfo MajorVersion="8"
MinorVersion="1"
MajorBuildNumber="206"
MinorBuildNumber="0"
Version="Exchange2007_SP1"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<m:GetDelegateResponse
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
ResponseClass="Success"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseCode>NoError</m:ResponseCode>
<m:ResponseMessages>
<m:DelegateUserResponseMessageType ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:DelegateUser>
<t:UserId>
<t:SID>S-1-5-21-1333220396-2200287332-232816053-1116</t:SID>
<t:PrimarySmtpAddress>[email protected]</t:PrimarySmtpAddress>
<t:DisplayName>User1</t:DisplayName>
</t:UserId>
<t:DelegatePermissions>
<t:CalendarFolderPermissionLevel>Author</t:CalendarFolderPermissionLevel>
<t:ContactsFolderPermissionLevel>Reviewer</t:ContactsFolderPermissionLevel>
</t:DelegatePermissions>
<t:ReceiveCopiesOfMeetingMessages>false</t:ReceiveCopiesOfMeetingMessages>
<t:ViewPrivateItems>false</t:ViewPrivateItems>
</m:DelegateUser>
</m:DelegateUserResponseMessageType>
</m:ResponseMessages>
<m:DeliverMeetingRequests>DelegatesAndMe</m:DeliverMeetingRequests>
</m:GetDelegateResponse>
</soap:Body>
</soap:Envelope>
See also
EWS XML elements in Exchange
GetDiscoverySearchConfiguration
operation
Article • 03/29/2023 • 3 minutes to read
ManagementRole ManagementRole
Identifies the server roles that are necessary in order
for the caller to make the request. This header is
applicable to a request.
RequestVersion
RequestServerVersion Identifies the schema version for the operation
request. This header is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This header is applicable to a response.
GetDiscoverySearchConfiguration operation
request example: Get the discovery search
configuration for a saved search
The following example of a GetDiscoverySearchConfiguration operation request shows
how to request the configuration of a saved search called "MyDiscSearchFor-sbrown".
The arguments for the ExpandGroupMembership and InPlaceHoldConfigurationOnly
elements are ignored.
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
</soap:Header>
<soap:Body >
<m:GetDiscoverySearchConfiguration>
<m:SearchId>MyDiscSearchFor-sbrown</m:SearchId>
<m:ExpandGroupMembership>true</m:ExpandGroupMembership>
<m:InPlaceHoldConfigurationOnly>false</m:InPlaceHoldConfigurationOnly>
</m:GetDiscoverySearchConfiguration>
</soap:Body>
</soap:Envelope>
GetDiscoverySearchConfiguration
SearchId
ExpandGroupMembership
InPlaceHoldConfigurationOnly
Successful GetDiscoverySearchConfiguration
operation response: Request for a single saved
search
The following example shows a successful response to a
GetDiscoverySearchConfiguration operation request to get the configuration of a
saved search called "MyDiscSearchFor-sbrown".
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetDiscoverySearchConfigurationResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<DiscoverySearchConfigurations>
<DiscoverySearchConfiguration
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<SearchId>MyDiscSearchFor-sbrown</SearchId>
<SearchQuery>test item</SearchQuery>
<SearchableMailboxes>
<SearchableMailbox>
<Guid>3c620d04-8b22-432e-92be-5b9321599576</Guid>
<PrimarySmtpAddress>[email protected]</PrimarySmtpAddress>
<IsExternalMailbox>false</IsExternalMailbox>
<ExternalEmailAddress/>
<DisplayName>Steven Brown</DisplayName>
<IsMembershipGroup>false</IsMembershipGroup>
<ReferenceId>/o=First/ou=Exchange(FYDILT)/cn=Recipients/cn=313ecf-
Steve</ReferenceId>
</SearchableMailbox>
</SearchableMailboxes>
</DiscoverySearchConfiguration>
</DiscoverySearchConfigurations>
</GetDiscoverySearchConfigurationResponse>
</s:Body>
</s:Envelope>
GetDiscoverySearchConfigurationResponse
ResponseCode
DiscoverySearchConfigurations
DiscoverySearchConfiguration
SearchId
SearchQuery
SearchableMailboxes
SearchableMailbox
Guid
PrimarySmtpAddress (string)
IsExternalMailbox
ExternalEmailAddress
DisplayName (string)
IsMembershipGroup
ReferenceId
Successful GetDiscoverySearchConfiguration
operation response: Request for in-place holds
The following example shows a successful response to a
GetDiscoverySearchConfiguration operation request to only get in-place holds.
XML
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="526"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetDiscoverySearchConfigurationResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<DiscoverySearchConfigurations>
<DiscoverySearchConfiguration
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<SearchId>MyDiscSearchFor-sbrown</SearchId>
<SearchQuery>test item</SearchQuery>
<InPlaceHoldIdentity>3f37d90f53144558a80814ef0272749a9</InPlaceHoldIdentity>
<ManagedByOrganization/>
</DiscoverySearchConfiguration>
<DiscoverySearchConfiguration
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<SearchId>MyDiscSearch</SearchId>
<SearchQuery>test</SearchQuery>
<InPlaceHoldIdentity>6ea486f0f3f140efb044682a2e782abdf</InPlaceHoldIdentity>
<ManagedByOrganization/>
</DiscoverySearchConfiguration>
</DiscoverySearchConfigurations>
</GetDiscoverySearchConfigurationResponse>
</s:Body>
</s:Envelope>
GetDiscoverySearchConfigurationResponse
ResponseCode
DiscoverySearchConfigurations
DiscoverySearchConfiguration
SearchId
SearchQuery
InPlaceHoldIdentity
ManagedByOrganization
Successful GetDiscoverySearchConfiguration
operation response: Request for all saved
discovery search configurations
The following example shows a successful response to a
GetDiscoverySearchConfiguration operation request to get all saved discovery
searches.
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="526"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetDiscoverySearchConfigurationResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<DiscoverySearchConfigurations>
<DiscoverySearchConfiguration
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<SearchId>MyDiscSearchFor-sbrown</SearchId>
<SearchQuery>test item</SearchQuery>
<SearchableMailboxes>
<SearchableMailbox>
<Guid>3c620d04-8b33-435e-95be-5b9351599576</Guid>
<PrimarySmtpAddress>[email protected]</PrimarySmtpAddress>
<IsExternalMailbox>false</IsExternalMailbox>
<ExternalEmailAddress/>
<DisplayName>Steven Brown</DisplayName>
<IsMembershipGroup>false</IsMembershipGroup>
<ReferenceId>/o=First/ou=Exchange
(FYLT)/cn=Recipients/cn=35381a742f0e47e395c8601a60d13ecz-Steve</ReferenceId>
</SearchableMailbox>
</SearchableMailboxes>
</DiscoverySearchConfiguration>
<DiscoverySearchConfiguration
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<SearchId>MyDiscSearch</SearchId>
<SearchQuery>test</SearchQuery>
<SearchableMailboxes>
<SearchableMailbox>
<Guid>e788c4b0-54a2-458c-83b2-22d5bb02b23f</Guid>
<PrimarySmtpAddress>[email protected]</PrimarySmtpAddress>
<IsExternalMailbox>false</IsExternalMailbox>
<ExternalEmailAddress/>
<DisplayName>Administrator</DisplayName>
<IsMembershipGroup>false</IsMembershipGroup>
<ReferenceId>/o=First/ou=Exchange
(FYLT)/cn=Recipients/cn=ebez7871332d4595abe1c62962911a58-Admin</ReferenceId>
</SearchableMailbox>
<SearchableMailbox>
<Guid>6f6cff39-8967-4a60-b43f-328413c25199</Guid>
<PrimarySmtpAddress>[email protected]</PrimarySmtpAddress>
<IsExternalMailbox>false</IsExternalMailbox>
<ExternalEmailAddress/>
<DisplayName>Anthony Davis</DisplayName>
<IsMembershipGroup>false</IsMembershipGroup>
<ReferenceId>/o=First/ou=Exchange
(FYLT)/cn=Recipients/cn=f10c9f70519844beb04101d8f40c572z-Antho</ReferenceId>
</SearchableMailbox>
</SearchableMailboxes>
</DiscoverySearchConfiguration>
</DiscoverySearchConfigurations>
</GetDiscoverySearchConfigurationResponse>
</s:Body>
</s:Envelope>
GetDiscoverySearchConfigurationResponse
ResponseCode
DiscoverySearchConfigurations
DiscoverySearchConfiguration
SearchId
SearchQuery
SearchableMailboxes
SearchableMailbox
Guid
PrimarySmtpAddress (string)
IsExternalMailbox
ExternalEmailAddress
DisplayName (string)
IsMembershipGroup
ReferenceId
GetDiscoverySearchConfiguration operation
error response
The following example shows an error response to a GetDiscoverySearchConfiguration
operation request. This is a response to a request to get a saved search that is not found
on the server.
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="526"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetDiscoverySearchConfigurationResponse ResponseClass="Error"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>ErrorInvalidArgument</ResponseCode>
<DescriptiveLinkKey>0</DescriptiveLinkKey>
<DiscoverySearchConfigurations/>
</GetDiscoverySearchConfigurationResponse>
</s:Body>
</s:Envelope>
GetDiscoverySearchConfigurationResponse
MessageText
ResponseCode
DescriptiveLinkKey
DiscoverySearchConfigurations
For additional error codes that are generic to EWS and specific to this operation, see
ResponseCode.
See also
EWS operations in Exchange
GetSearchableMailboxes
SearchMailboxes
GetHoldOnMailboxes
SetHoldOnMailboxes
GetNonIndexableItemDetails
GetNonIndexableItemStatistics
GetEvents operation
Article • 03/29/2023 • 3 minutes to read
) Important
The DeleteUserConfiguration operation will trigger a move event for the event
notification system. The user configuration object will be moved to the dumpster.
Notes
Changes to Calendar items may result in the generation of multiple events. These events
are the result of temporary items being created in the mailbox, free/busy data storage
items being changed as part of the normal Calendar operations, or both. Events for item
class "IPM.SchedulePlus.FreeBusy.BinaryData" should be ignored by Web service clients.
These temporary items are deleted after they are created; therefore, if an attempt is
made to retrieve these items, an error will be returned that states that the item was not
found.
Description
The following example shows how to request the events and items that are associated
with a subscription that is identified by the subscription identifier and watermark.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<GetEvents
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<SubscriptionId>f6bc657d-dde1-4f94-952d-143b95d6483d</SubscriptionId>
<Watermark>AAAAAMAGAAAAAAAAAQ==</Watermark>
</GetEvents>
</soap:Body>
</soap:Envelope>
GetEvents
SubscriptionId (GetEvents)
Watermark
Description
The following example of a response shows a notification of the existence of two new
mail messages since the last notification request was sent to the server.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<GetEventsResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:GetEventsResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Notification>
<t:SubscriptionId>f6bc657d-dde1-4f94-952d-
143b95d6483d</t:SubscriptionId>
<t:PreviousWatermark>AAAAAMAGAAAAAAAAAQ==</t:PreviousWatermark>
<t:MoreEvents>false</t:MoreEvents>
<t:NewMailEvent>
<t:Watermark>AAAAAM4GAAAAAAAAAQ==</t:Watermark>
<t:TimeStamp>2006-08-22T00:36:29Z</t:TimeStamp>
</t:NewMailEvent>
<t:NewMailEvent>
<t:Watermark>AAAAAOQGAAAAAAAAAQ==</t:Watermark>
<t:TimeStamp>2006-08-22T01:00:50Z</t:TimeStamp>
</t:NewMailEvent>
</m:Notification>
</m:GetEventsResponseMessage>
</m:ResponseMessages>
</GetEventsResponse>
</soap:Body>
</soap:Envelope>
Comments
7 Note
The item and folder identifiers have been shortened to preserve readability.
ServerVersionInfo
GetEventsResponse
ResponseMessages
GetEventsResponseMessage
ResponseCode
Notification
SubscriptionId (GetEvents)
PreviousWatermark
MoreEvents
NewMailEvent
Watermark
TimeStamp
ItemId
ParentFolderId
To find other options for the response message of the GetEvents operation, explore the
schema hierarchy. Start at the Notification element.
Description
The following example shows an error response to a GetEvents request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<GetEventsResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:GetEventsResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorSubscriptionAccessDenied</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
</m:GetEventsResponseMessage>
</m:ResponseMessages>
</GetEventsResponse>
</soap:Body>
</soap:Envelope>
Remarks
When processing a GetEvents request, the Client Access server performs the following
steps:
2. The SMTP address of the authenticated user for the request is compared to the
SMTP address of the user who created the subscription. If they do not match, the
GetEvents request fails.
3. The subscription queue is queried for events that are waiting to be sent to the
client. If the queue is not empty, the first 50 events from the queue are pulled from
the queue and encoded into a notification.
4. If no events are found in the queue, a StatusEvent is generated and encoded into a
notification response.
6. The events that are included in the notification are removed from the subscription
queue and the Client Access server local last watermark for the subscription is set
to the watermark of the last event that is returned.
See also
Subscribe operation
Unsubscribe operation
Description
The following example of a GetFolder request shows how to obtain a folder identifier,
display name, the count of items in that folder, the count of child folders, and the
number of unread items in the folder.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<GetFolder
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<FolderShape>
<t:BaseShape>Default</t:BaseShape>
</FolderShape>
<FolderIds>
<t:DistinguishedFolderId Id="inbox"/>
</FolderIds>
</GetFolder>
</soap:Body>
</soap:Envelope>
Request elements
This GetFolder request includes the following elements:
GetFolder
FolderShape
BaseShape
FolderIds
DistinguishedFolderId
See the schema for additional elements that you can use to form a GetFolder request.
7 Note
The schema that describes this element is located in the IIS virtual directory that
hosts Exchange Web Services.
Description
The following Simple Object Access Protocol (SOAP) body example shows a successful
response to the GetFolder request.
7 Note
The folder ID and the change key have been shortened to preserve readability.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<GetFolderResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:GetFolderResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Folders>
<t:Folder>
<t:DisplayName>Inbox</t:DisplayName>
<t:TotalCount>2</t:TotalCount>
<t:ChildFolderCount>0</t:ChildFolderCount>
<t:UnreadCount>2</t:UnreadCount>
</t:Folder>
</m:Folders>
</m:GetFolderResponseMessage>
</m:ResponseMessages>
</GetFolderResponse>
</soap:Body>
</soap:Envelope>
Response elements
This GetFolder response includes the following elements:
GetFolderResponse
ResponseMessages
GetFolderResponseMessage
Folders
Folder
FolderId
DisplayName (string)
TotalCount
ChildFolderCount
UnreadCount
Description
The following SOAP body example shows an error response that is caused by an
incorrect FolderId in the request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<GetFolderResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:GetFolderResponseMessage ResponseClass="Error">
<m:MessageText>Id is malformed.</m:MessageText>
<m:ResponseCode>ErrorInvalidIdMalformed</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
<m:Folders />
</m:GetFolderResponseMessage>
</m:ResponseMessages>
</GetFolderResponse>
</soap:Body>
</soap:Envelope>
Response elements
This GetFolder error response includes the following elements:
GetFolderResponse
ResponseMessages
GetFolderResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
Folders
Version differences
For applications that target Exchange Online, Exchange Online as part of Office 365, or
an on-premises version of Exchange starting with Exchange 2013, folder permissions are
not returned when the BaseShape element has a value of AllProperties in the GetFolder
operation request. To retrieve folder permissions, add the PermissionSet
(PermissionSetType) element to the AdditionalProperties element in the GetFolder
request.
See also
EWS XML elements in Exchange
GetHoldOnMailboxes operation
Article • 03/29/2023 • 2 minutes to read
) Important
The GetHoldOnMailboxes operation gets the mailboxes that are under a specific hold
and the associated hold query.
ManagementRole ManagementRole
Identifies the server roles that are necessary in order
for the caller to make the request. This header is
applicable to a request.
RequestVersion
RequestServerVersion Identifies the schema version for the operation
request. This header is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This header is applicable to a response.
GetHoldOnMailboxes operation request
example: Get mailbox hold information
The following example of a GetHoldOnMailboxes operation request shows how to get
the mailbox hold information for the HoldId2 mailbox hold.
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
</soap:Header>
<soap:Body >
<m:GetHoldOnMailboxes>
<m:HoldId>HoldId2</m:HoldId>
</m:GetHoldOnMailboxes>
</soap:Body>
</soap:Envelope>
GetHoldOnMailboxes
HoldId
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="526"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetHoldOnMailboxesResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<MailboxHoldResult>
<HoldId
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">HoldId2</
HoldId>
<Query
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">test</Que
ry>
<MailboxHoldStatuses
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<MailboxHoldStatus>
<Status>OnHold</Status>
<AdditionalInfo/>
</MailboxHoldStatus>
<MailboxHoldStatus>
<AdditionalInfo/>
</MailboxHoldStatus>
</MailboxHoldStatuses>
</MailboxHoldResult>
</GetHoldOnMailboxesResponse>
</s:Body>
</s:Envelope>
GetHoldOnMailboxesResponse
ResponseCode
MailboxHoldResult
HoldId
Query
MailboxHoldStatuses
MailboxHoldStatus
Mailbox (string)
Status (HoldStatusType)
AdditionalInfo
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="526"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetHoldOnMailboxesResponse ResponseClass="Error"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>ErrorMailboxHoldNotFound</ResponseCode>
<DescriptiveLinkKey>0</DescriptiveLinkKey>
</GetHoldOnMailboxesResponse>
</s:Body>
</s:Envelope>
GetHoldOnMailboxesResponse
MessageText
ResponseCode
DescriptiveLinkKey
For additional error codes that are generic to EWS and specific to this operation, see
ResponseCode.
See also
EWS operations in Exchange
GetSearchableMailboxes operation
SearchMailboxes operation
SetHoldOnMailboxes operation
GetDiscoverySearchConfiguration operation
GetNonIndexableItemDetails operation
GetNonIndexableItemStatistics operation
GetImItemList operation
Article • 03/29/2023 • 4 minutes to read
Impersonation
ExchangeImpersonation Identifies the user whom the client application is
impersonating. This header is applicable to a
request.
RequestVersion RequestServerVersion
Identifies the schema version for the operation
request. This header is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This header is applicable to a response.
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
<t:MailboxCulture>en-US</t:MailboxCulture>
</soap:Header>
<soap:Body >
<m:GetImItemList/>
</soap:Body>
</soap:Envelope>
GetImItemList
This example returns two personas. The first persona represents two contact items:
Anthony Smith and Tony Smith. The combined contact information is returned in the
Persona object. The second persona represents a single contact with the display name
of Terence Adams.
7 Note
The Exchange store identifiers, item identifiers, source identifiers, folder identifiers,
and persona identifiers have been shortened to preserve readability.
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="349"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetImItemListResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<ImItemList>
<Groups
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<ImGroup>
<DisplayName>Other Contacts</DisplayName>
<GroupType>IPM.DistList.MOC.OtherContacts</GroupType>
<ExchangeStoreId Id="AAMkAGQ1MjJjMTBkLThQoTbWAAAAAAQUAAA="
ChangeKey="EgAAAA==" />
</ImGroup>
<ImGroup>
<DisplayName>Tagged</DisplayName>
<GroupType>IPM.DistList.MOC.Tagged</GroupType>
<ExchangeStoreId Id="AAMkAGQ1MjJAAQTAAA="
ChangeKey="EgAAAA==" />
</ImGroup>
<ImGroup>
<DisplayName>Favorites</DisplayName>
<GroupType>IPM.DistList.MOC.Favorites</GroupType>
<ExchangeStoreId Id="AAMkAGQ1MjJjMTAAAAAQSAAA="
ChangeKey="EgAAAA==" />
<MemberCorrelationKey>
<ItemId Id="AAMkAGQ1MjJtt/bhQoTbWAAAAAAvcAAA="
ChangeKey="EQAAAA==" />
</MemberCorrelationKey>
</ImGroup>
<ImGroup>
<DisplayName>MyCustomGroup2</DisplayName>
<GroupType>IPM.DistList.MOC.UserGroup</GroupType>
<ExchangeStoreId Id="AAMkAGQ1MjJjKAAA="
ChangeKey="EgAAAA==" />
<MemberCorrelationKey>
<ItemId Id="AAMkAGQ1Matt/bhQoTbWAAAAAAvcAAA="
ChangeKey="EQAAAA==" />
<ItemId Id="AAMkAGQ1MjJjMTBkTbWAAAAAAveAAA="
ChangeKey="EQAAAA==" />
</MemberCorrelationKey>
</ImGroup>
</Groups>
<Personas
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Persona>
<PersonaId
Id="AAQkAGQ1MjJjMTBkLTc4YkZmRkYQAQAFgxE1nBcqRGgYWWorM9/+s=" />
<PersonaType>Person</PersonaType>
<CreationTime>2012-01-12T22:14:36Z</CreationTime>
<DisplayName>Anthony Smith</DisplayName>
<DisplayNameFirstLast>Anthony Smith</DisplayNameFirstLast>
<DisplayNameLastFirst>Smith Anthony</DisplayNameLastFirst>
<FileAs>Smith, Anthony</FileAs>
<FileAsId>LastCommaFirst</FileAsId>
<GivenName>Anthony</GivenName>
<Surname>Smith</Surname>
<EmailAddress>
<Name>[email protected]</Name>
<EmailAddress>[email protected]</EmailAddress>
<RoutingType>SMTP</RoutingType>
</EmailAddress>
<EmailAddresses>
<EmailAddress>
<Name>[email protected]</Name>
<EmailAddress>[email protected]</EmailAddress>
<RoutingType>SMTP</RoutingType>
</EmailAddress>
</EmailAddresses>
<ImAddress>[email protected]</ImAddress>
<RelevanceScore>2147483647</RelevanceScore>
<Attributions>
<Attribution>
<Id>0</Id>
<SourceId
Id="AQMkAGQ1MjIAYzEwZC03OGNlLTQ5Bq239uFChNtYAAAIvDAAAAA=="
ChangeKey="EQAAABYAAABtF8oI7iVOQatt/bhQoTbWAAAAADB3" />
<DisplayName>Outlook</DisplayName>
<IsWritable>true</IsWritable>
<IsQuickContact>false</IsQuickContact>
<IsHidden>false</IsHidden>
<FolderId
Id="AQMkAGQ1MjIAYzEMikE3AQBtF8oI7iVOQatt/bhQoTbWAAADEAAAAA=="
ChangeKey="AQAAAA==" />
</Attribution>
<Attribution>
<Id>1</Id>
<SourceId
Id="AAMkAGQ1MjJjMTBkLTc4Y2UtNDA5Ny04/bhQoTbWAAAAAAveAAA="
ChangeKey="EQAAABYAAABtF8oI7iVOQatt/bhQoTbWAAAAAAym" />
<DisplayName>Outlook</DisplayName>
<IsWritable>true</IsWritable>
<IsQuickContact>true</IsQuickContact>
<IsHidden>false</IsHidden>
<FolderId
Id="AAMkAGQ1MjJjMTBkLTc4Y2UtNDA5Qatt/bhQoTbWAAAAAAvZAAA="
ChangeKey="AQAAAA==" />
</Attribution>
</Attributions>
<DisplayNames>
<StringAttributedValue>
<Value>Anthony Smith</Value>
<Attributions>
<Attribution>0</Attribution>
</Attributions>
</StringAttributedValue>
<StringAttributedValue>
<Value>Tony Smith</Value>
<Attributions>
<Attribution>1</Attribution>
</Attributions>
</StringAttributedValue>
</DisplayNames>
<FileAses>
<StringAttributedValue>
<Value>Smith, Anthony</Value>
<Attributions>
<Attribution>0</Attribution>
</Attributions>
</StringAttributedValue>
</FileAses>
<FileAsIds>
<StringAttributedValue>
<Value>LastCommaFirst</Value>
<Attributions>
<Attribution>0</Attribution>
</Attributions>
</StringAttributedValue>
<StringAttributedValue>
<Value>None</Value>
<Attributions>
<Attribution>1</Attribution>
</Attributions>
</StringAttributedValue>
</FileAsIds>
<GivenNames>
<StringAttributedValue>
<Value>Anthony</Value>
<Attributions>
<Attribution>0</Attribution>
</Attributions>
</StringAttributedValue>
</GivenNames>
<Surnames>
<StringAttributedValue>
<Value>Smith</Value>
<Attributions>
<Attribution>0</Attribution>
</Attributions>
</StringAttributedValue>
</Surnames>
<HomePhones>
<PhoneNumberAttributedValue>
<Value>
<Number>4255550110</Number>
<Type>Home</Type>
</Value>
<Attributions>
<Attribution>0</Attribution>
</Attributions>
</PhoneNumberAttributedValue>
</HomePhones>
<MobilePhones>
<PhoneNumberAttributedValue>
<Value>
<Number>4255550120</Number>
<Type>Mobile</Type>
</Value>
<Attributions>
<Attribution>0</Attribution>
</Attributions>
</PhoneNumberAttributedValue>
</MobilePhones>
<Emails1>
<EmailAddressAttributedValue>
<Value>
<Name>[email protected]</Name>
<EmailAddress>[email protected]</EmailAddress>
<RoutingType>SMTP</RoutingType>
</Value>
<Attributions>
<Attribution>0</Attribution>
<Attribution>1</Attribution>
</Attributions>
</EmailAddressAttributedValue>
</Emails1>
<ImAddresses>
<StringAttributedValue>
<Value>[email protected]</Value>
<Attributions>
<Attribution>1</Attribution>
</Attributions>
</StringAttributedValue>
</ImAddresses>
</Persona>
<Persona>
<PersonaId
Id="AAQkAGQ1MjJjMTBkLkYQAQAJ3EkhEEXN5KufGbSYJanZk=" />
<PersonaType>Person</PersonaType>
<CreationTime>2012-01-05T23:06:58Z</CreationTime>
<DisplayName>Terence Adams</DisplayName>
<DisplayNameFirstLast>Terence Adams</DisplayNameFirstLast>
<DisplayNameLastFirst>Terence Adams</DisplayNameLastFirst>
<FileAsId>None</FileAsId>
<EmailAddress>
<Name>Terence Adams</Name>
<EmailAddress>[email protected]</EmailAddress>
<RoutingType>SMTP</RoutingType>
</EmailAddress>
<EmailAddresses>
<EmailAddress>
<Name>Terence Adams</Name>
<EmailAddress>[email protected]</EmailAddress>
<RoutingType>SMTP</RoutingType>
</EmailAddress>
</EmailAddresses>
<ImAddress>[email protected]</ImAddress>
<RelevanceScore>2147483647</RelevanceScore>
<Attributions>
<Attribution>
<Id>0</Id>
<SourceId
Id="AAMkAGQ1MjVOQatt/bhQoTbWAAAA7iVOQatt/bhQoTbWAAAAAAvcAAA="
ChangeKey="EQAAABYAAABtF8oI7iVOQatt/bhQoTbWAAAAAAyg" />
<DisplayName>Outlook</DisplayName>
<IsWritable>true</IsWritable>
<IsQuickContact>true</IsQuickContact>
<IsHidden>false</IsHidden>
<FolderId
Id="AAMkAGQ1MjJjMTBkLTc4Y2rBtF8oI7iVOQatt/bhQoTbWAAAAAAvZAAA="
ChangeKey="AQAAAA==" />
</Attribution>
</Attributions>
<DisplayNames>
<StringAttributedValue>
<Value>Terence Adams</Value>
<Attributions>
<Attribution>0</Attribution>
</Attributions>
</StringAttributedValue>
</DisplayNames>
<FileAsIds>
<StringAttributedValue>
<Value>None</Value>
<Attributions>
<Attribution>0</Attribution>
</Attributions>
</StringAttributedValue>
</FileAsIds>
<Emails1>
<EmailAddressAttributedValue>
<Value>
<Name>Terence Adams</Name>
<EmailAddress>[email protected]</EmailAddress>
<RoutingType>SMTP</RoutingType>
</Value>
<Attributions>
<Attribution>0</Attribution>
</Attributions>
</EmailAddressAttributedValue>
</Emails1>
<ImAddresses>
<StringAttributedValue>
<Value>[email protected]</Value>
<Attributions>
<Attribution>0</Attribution>
</Attributions>
</StringAttributedValue>
</ImAddresses>
</Persona>
</Personas>
</ImItemList>
</GetImItemListResponse>
</s:Body>
</s:Envelope>
GetImItemListResponse
ResponseCode
ImItemList
DisplayName (string)
GroupType
ExchangeStoreId
MemberCorrelationKey
ItemId
Personas
PersonaId
PersonaType
CreationTime
DisplayNameFirstLast
DisplayNameLastFirst
FileAs
FileAsId
GivenName
Surname
EmailAddress (NonEmptyStringType)
Name (EmailAddressType)
RoutingType (EmailAddressType)
EmailAddresses (ArrayOfEmailAddressesType)
ImAddress (String)
RelevanceScore
Attributions (ArrayOfPersonaAttributionsType)
Attribution (PersonaAttributionType)
ID (String)
SourceId
IsWritable
IsQuickContact
IsHidden
FolderId
StringAttributedValue
FileAses
FileAsIds
GivenNames
Surnames
HomePhones
PhoneNumberAttributedValue
MobilePhones
Emails1
EmailAddressAttributedValue
ImAddresses
Value (ExtendedPropertyType)
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<s:Fault>
<faultcode
xmlns:a="https://schemas.microsoft.com/exchange/services/2006/types">a:Error
IncorrectSchemaVersion</faultcode>
<detail>
<e:ResponseCode
xmlns:e="https://schemas.microsoft.com/exchange/services/2006/errors">ErrorI
ncorrectSchemaVersion</e:ResponseCode>
<e:Message
xmlns:e="https://schemas.microsoft.com/exchange/services/2006/errors">The
request is valid but does not specify the correct server version in the
RequestServerVersion SOAP header. Ensure that the RequestServerVersion SOAP
header is set with the correct RequestServerVersionValue.</e:Message>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>
See also
AddImGroup operation
People and contacts in EWS in Exchange
GetImItems operation
GetImItems operation
Article • 03/29/2023 • 3 minutes to read
The GetImItems operation retrieves information about instant messaging (IM) groups
and IM contact personas.
Impersonation
ExchangeImpersonation Identifies the user whom the client application is
impersonating. This header is applicable to a
request.
RequestVersion RequestServerVersion
Identifies the schema version for the operation
request. This header is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This header is applicable to a response.
7 Note
All item identifiers and change keys in this article have been shortened to preserve
readability. Note that change keys are ignored by the service for this operation.
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
<t:MailboxCulture>en-US</t:MailboxCulture>
</soap:Header>
<soap:Body >
<m:GetImItems>
<m:ContactIds>
<t:ItemId Id="AAMkADEzOTExYACABmEhpSAAA="
ChangeKey="EQAAABBmNDjF"/>
</m:ContactIds>
<m:GroupIds>
</m:GroupIds>
<m:ExtendedProperties>
</m:ExtendedProperties>
</m:GetImItems>
</soap:Body>
</soap:Envelope>
GetImItems
ContactIds
ItemId
GroupIds
ExtendedProperties (NonEmptyArrayOfExtendedFieldURIs)
ExtendedProperty (PathToExtendedFieldType)
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="556"
MinorBuildNumber="8"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetImItemsResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<ImItemList>
<Groups
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<ImGroup>
<GroupType>IPM.DistList.MOC.UserGroup</GroupType>
<ExchangeStoreId Id="AAMkADEzQrAABY7+0EAAA="
ChangeKey="EgAAAA=="/>
<MemberCorrelationKey>
<ItemId Id="AAMkADEzOTExYjeGgGqm4QrAABmEhpSAAA="
ChangeKey="EQAAAA=="/>
</MemberCorrelationKey>
<ExtendedProperties>
<ExtendedProperty>
<ExtendedFieldURI PropertyTag="0x3001"
PropertyType="String"/>
</ExtendedProperties>
</ImGroup>
</Groups>
<Personas
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Persona>
<PersonaId Id="AAQkADEzOTBZImBzN5J/uHXc="/>
<PersonaType>Person</PersonaType>
<CreationTime>2012-11-07T00:10:35Z</CreationTime>
<DisplayName>Tony Smith</DisplayName>
<DisplayNameFirstLast>Tony Smith</DisplayNameFirstLast>
<DisplayNameLastFirst>Tony Smith</DisplayNameLastFirst>
<FileAs/>
<FileAsId>None</FileAsId>
<ImAddress>[email protected]</ImAddress>
<RelevanceScore>2147483647</RelevanceScore>
<Attributions>
<Attribution>
<Id>0</Id>
<SourceId Id="AAMkADEzhQaoeGgGqm4QrAABmEhpSAAA="
ChangeKey="EQArAABmNDjF"/>
<DisplayName>Lync Contacts</DisplayName>
<IsWritable>false</IsWritable>
<IsQuickContact>true</IsQuickContact>
<IsHidden>false</IsHidden>
</Attribution>
</Attributions>
<DisplayNames>
<StringAttributedValue>
<Value>Tony Smith</Value>
<Attributions>
<Attribution>0</Attribution>
</Attributions>
</StringAttributedValue>
</DisplayNames>
<FileAsIds>
<StringAttributedValue>
<Value>None</Value>
<Attributions>
<Attribution>0</Attribution>
</Attributions>
</StringAttributedValue>
</FileAsIds>
<ImAddresses>
<StringAttributedValue>
<Value>[email protected]</Value>
<Attributions>
<Attribution>0</Attribution>
</Attributions>
</StringAttributedValue>
</ImAddresses>
<ExtendedProperties>
<ExtendedPropertyAttributedValue>
<Value>
<ExtendedFieldURI PropertyTag="0x3001"
PropertyType="String"/>
<Value>Tony Smith</Value>
</Value>
<Attributions>
<Attribution>0</Attribution>
</Attributions>
</ExtendedPropertyAttributedValue>
</ExtendedProperties>
</Persona>
</Personas>
</ImItemList>
</GetImItemsResponse>
</s:Body>
</s:Envelope>
GetImItemsResponse
ResponseCode
ImItemList
Groups (ArrayOfImGroupType)
ImGroup
DisplayName (string)
GroupType
ExchangeStoreId
MemberCorrelationKey
ItemId
ExtendedProperties (NonEmptyArrayOfExtendedFieldURIs)
ExtendedProperty (PathToExtendedFieldType)
Personas
PersonaId
PersonaType
CreationTime
DisplayNameFirstLast
DisplayNameLastFirst
FileAs
FileAsId FileAsId
ImAddress (String)
RelevanceScore
Attributions (ArrayOfPersonaAttributionsType)
Attribution (PersonaAttributionType)
ID (String)
SourceId
IsWritable
IsQuickContact
IsHidden
StringAttributedValue
FileAsIds
ImAddresses
Value (ExtendedPropertyType)
See also
EWS operations in Exchange
GetImItemList operation
GetInboxRules operation
Article • 03/29/2023 • 2 minutes to read
The GetInboxRules operation uses Exchange Web Services to retrieve Inbox rules in the
identified user's mailbox.
Description
The following example shows the request XML that the client sends to the server. The
request identifies the user in the MailboxSmtpAddress element. All Inbox rules for the
identified user are to be returned in the response.
Code
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetInboxRules>
<m:MailboxSmtpAddress>[email protected]</m:MailboxSmtpAddress>
</m:GetInboxRules>
</soap:Body>
</soap:Envelope>
Request elements
The request includes the following optional element:
MailboxSmtpAddress
7 Note
The values of the Id and the ChangeKey attributes of the FolderId element have
been shortened to preserve readability.
Code
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="14"
MinorVersion="1" MajorBuildNumber="139"
MinorBuildNumber="0"
Version="Exchange2010_SP1"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetInboxRulesResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<OutlookRuleBlobExists>true</OutlookRuleBlobExists>
<InboxRules>
<Rule
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<RuleId>dCsAAABjzvA=</RuleId>
<DisplayName>MoveInterestingToJunk</DisplayName>
<Priority>1</Priority>
<IsEnabled>true</IsEnabled>
<Conditions>
<ContainsSubjectStrings>
<String>Interesting</String>
</ContainsSubjectStrings>
</Conditions>
<Actions>
<MoveToFolder>
</MoveToFolder>
</Actions>
</Rule>
</InboxRules>
</GetInboxRulesResponse>
</s:Body>
</s:Envelope>
Response elements
The following elements are included in the response:
GetInboxRulesResponse
ResponseCode
OutlookRuleBlobExists
InboxRules
See also
UpdateInboxRules operation
GetItem operation
Article • 03/29/2023 • 2 minutes to read
Message elements represent email messages and all other items that are not strongly
typed by the Exchange Web Services (EWS) schema. Items such as IPM.Sharing and
IPM.InfoPath are returned as Message elements. Exchange does not return the base
Item element in responses.
The GetItem operation does not return attachments. It does return metadata about an
attached item or file. To return an attachment, use the GetAttachment operation.
DateTimePrecision DateTimePrecision
Specifies the resolution of data/time values in
responses from the server, either in seconds or in
milliseconds.
Impersonation
ExchangeImpersonation Identifies the user whom the client application is
impersonating.
MailboxCulture
MailboxCulture Identifies the culture, as defined in RFC 3066,
"Tags for the Identification of Languages", to be
used to access the mailbox.
RequestVersion
RequestServerVersion
Identifies the schema version for the operation
request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that
responded to the request.
Header Element Description
TimeZoneContext
TimeZoneContext
Identifies the time zone to be used for all
responses from the server.
In This Section
GetItem operation (email message)
See also
EWS reference for Exchange
GetItem operation (email message)
Article • 03/29/2023 • 2 minutes to read
The GetItem operation allows the user to access information about e-mail messages.
Description
The following example of a GetItem request shows how to access information about e-
mail messages.
Code
XML
<soap:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<GetItem
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<ItemShape>
<t:BaseShape>Default</t:BaseShape>
<t:IncludeMimeContent>true</t:IncludeMimeContent>
</ItemShape>
<ItemIds>
</ItemIds>
</GetItem>
</soap:Body>
</soap:Envelope>
Request elements
The following elements are used in the request:
GetItem
ItemShape
BaseShape
IncludeMimeContent
ItemIds
ItemId
Description
The following example shows a successful response to the GetItem request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<GetItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:GetItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:Message>
<t:MimeContent CharacterSet="UTF-8">UmVjZWl</t:MimeContent>
<t:Subject />
<t:Sensitivity>Normal</t:Sensitivity>
<t:Body BodyType="HTML">
<html dir="ltr">
<head>
</head>
<body ocsi="x">
<div dir="ltr">
</div>
</body>
</html>
</t:Body>
<t:Size>881</t:Size>
<t:DateTimeSent>2006-10-28T01:37:06Z</t:DateTimeSent>
<t:DateTimeCreated>2006-10-28T01:37:06Z</t:DateTimeCreated>
<t:ResponseObjects>
<t:ReplyToItem />
<t:ReplyAllToItem />
<t:ForwardItem />
</t:ResponseObjects>
<t:HasAttachments>false</t:HasAttachments>
<t:ToRecipients>
<t:Mailbox>
<t:Name>User1</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
</t:Mailbox>
</t:ToRecipients>
<t:IsReadReceiptRequested>false</t:IsReadReceiptRequested>
<t:IsDeliveryReceiptRequested>false</t:IsDeliveryReceiptRequested>
<t:From>
<t:Mailbox>
<t:Name>User2</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
</t:Mailbox>
</t:From>
<t:IsRead>false</t:IsRead>
</t:Message>
</m:Items>
</m:GetItemResponseMessage>
</m:ResponseMessages>
</GetItemResponse>
</soap:Body>
</soap:Envelope>
Comments
The MIME content, folder, and item identifiers have been shortened to preserve
readability.
ServerVersionInfo
GetItemResponse
ResponseMessages
GetItemResponseMessage
ResponseCode
Items
Message
MimeContent
ItemId
Subject
Sensitivity
Body
Size
DateTimeSent
DateTimeCreated
ResponseObjects
ReplyToItem
ReplyAllToItem
ForwardItem
HasAttachments
ToRecipients
Mailbox
Name (EmailAddressType)
EmailAddress (NonEmptyStringType)
RoutingType (EmailAddressType)
IsReadReceiptRequested
IsDeliveryReceiptRequested
From
IsRead
Description
The following example shows an error response to a GetItem request. The error was
caused by an attempt to get an invalid additional property.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<GetItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:GetItemResponseMessage ResponseClass="Error">
<m:MessageText>Property is not valid for this object type.
</m:MessageText>
<m:ResponseCode>ErrorInvalidPropertyRequest</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
<m:MessageXml>
</m:MessageXml>
<m:Items />
</m:GetItemResponseMessage>
</m:ResponseMessages>
</GetItemResponse>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
GetItemResponse
ResponseMessages
GetItemResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
MessageXml
FieldURI
See also
GetItem operation
GetItem operation (calendar item)
Article • 03/29/2023 • 2 minutes to read
The GetItem operation gets calendar items from the Exchange store.
Description
The following example of a GetItem request shows how to form a request to get the
identity and subject of an item.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<GetItem
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
<t:FieldURI FieldURI="item:Subject"/>
</t:AdditionalProperties>
</ItemShape>
<ItemIds>
</ItemIds>
</GetItem>
</soap:Body>
</soap:Envelope>
Request elements
The following elements are used in the request:
GetItem
ItemShape
BaseShape
AdditionalProperties
FieldURI
ItemIds
ItemId
7 Note
The schema that describes this element is located in the EWS virtual directory of
the computer that is running MicrosoftExchange Server 2007 that has the Client
Access server role installed.
To find other options for the request message of the GetItem operation, explore the
schema hierarchy. Start at the GetItem element.
Description
The following example shows a successful response to the GetItem request. The request
that created this response used the IdOnly baseshape. In this example, the response
returns only the ID of the item.
7 Note
The item ID and the change key have been shortened to preserve readability.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"/>
</soap:Header>
<soap:Body>
<GetItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:GetItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:CalendarItem>
</t:CalendarItem>
</m:Items>
</m:GetItemResponseMessage>
</m:ResponseMessages>
</GetItemResponse>
</soap:Body>
</soap:Envelope>
Description
The following example shows a successful response to the GetItem request. The request
that created this response used the Default baseshape. In this example, the response
returns the Default shape for a calendar item.
7 Note
The item ID and the change key have been shortened to preserve readability.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"/>
</soap:Header>
<soap:Body>
<GetItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:GetItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:CalendarItem>
<t:ResponseObjects>
<t:ForwardItem/>
</t:ResponseObjects>
<t:Start>2006-06-16T00:30:00Z</t:Start>
<t:End>2006-06-16T01:00:00Z</t:End>
<t:LegacyFreeBusyStatus>Busy</t:LegacyFreeBusyStatus>
<t:CalendarItemType>Single</t:CalendarItemType>
<t:Organizer>
<t:Mailbox>
<t:Name>Bob</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
</t:Mailbox>
</t:Organizer>
</t:CalendarItem>
</m:Items>
</m:GetItemResponseMessage>
</m:ResponseMessages>
</GetItemResponse>
</soap:Body>
</soap:Envelope>
Description
The following example shows a successful response to the GetItem request. The request
that created this response used the AllProperties baseshape. In this example, the
response returns the AllProperties shape for a calendar item.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"/>
</soap:Header>
<soap:Body>
<GetItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:GetItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:CalendarItem>
<t:ParentFolderId Id="ASUAdT=="/>
<t:ItemClass>IPM.Appointment</t:ItemClass>
<t:Sensitivity>Normal</t:Sensitivity>
<t:Body BodyType="Text"/>
<t:DateTimeReceived>2006-06-16T00:12:41Z</t:DateTimeReceived>
<t:Size>374</t:Size>
<t:Importance>Normal</t:Importance>
<t:IsSubmitted>false</t:IsSubmitted>
<t:IsDraft>false</t:IsDraft>
<t:IsFromMe>false</t:IsFromMe>
<t:IsResend>false</t:IsResend>
<t:IsUnmodified>false</t:IsUnmodified>
<t:DateTimeSent>2006-06-16T00:12:41Z</t:DateTimeSent>
<t:DateTimeCreated>2006-06-16T00:12:41Z</t:DateTimeCreated>
<t:ResponseObjects>
<t:ForwardItem/>
</t:ResponseObjects>
<t:ReminderDueBy>2006-06-16T00:30:00Z</t:ReminderDueBy>
<t:ReminderIsSet>true</t:ReminderIsSet>
<t:ReminderMinutesBeforeStart>15</t:ReminderMinutesBeforeStart>
<t:DisplayCc/>
<t:DisplayTo/>
<t:HasAttachments>false</t:HasAttachments>
<t:Culture>en-US</t:Culture>
<t:Start>2006-06-16T00:30:00Z</t:Start>
<t:End>2006-06-16T01:00:00Z</t:End>
<t:IsAllDayEvent>false</t:IsAllDayEvent>
<t:LegacyFreeBusyStatus>Busy</t:LegacyFreeBusyStatus>
<t:IsMeeting>false</t:IsMeeting>
<t:IsCancelled>false</t:IsCancelled>
<t:IsRecurring>false</t:IsRecurring>
<t:MeetingRequestWasSent>false</t:MeetingRequestWasSent>
<t:CalendarItemType>Single</t:CalendarItemType>
<t:MyResponseType>Organizer</t:MyResponseType>
<t:Organizer>
<t:Mailbox>
<t:Name>Bob</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
</t:Mailbox>
</t:Organizer>
<t:ConflictingMeetingCount>2</t:ConflictingMeetingCount>
<t:AdjacentMeetingCount>0</t:AdjacentMeetingCount>
<t:ConflictingMeetings>
<t:CalendarItem>
<t:Subject/>
<t:Start>2006-06-16T00:30:00Z</t:Start>
<t:End>2006-06-16T01:00:00Z</t:End>
<t:LegacyFreeBusyStatus>Busy</t:LegacyFreeBusyStatus>
<t:Location/>
</t:CalendarItem>
<t:CalendarItem>
<t:Subject/>
<t:Start>2006-06-16T00:30:00Z</t:Start>
<t:End>2006-06-16T01:00:00Z</t:End>
<t:LegacyFreeBusyStatus>Busy</t:LegacyFreeBusyStatus>
<t:Location/>
</t:CalendarItem>
</t:ConflictingMeetings>
<t:Duration>PT30M</t:Duration>
<t:AppointmentSequenceNumber>0</t:AppointmentSequenceNumber>
<t:AppointmentState>0</t:AppointmentState>
</t:CalendarItem>
</m:Items>
</m:GetItemResponseMessage>
</m:ResponseMessages>
</GetItemResponse>
</soap:Body>
</soap:Envelope>
Comments
To find other options for the response message of the GetItem operation, explore the
schema hierarchy. Start at the GetItemResponse element.
ServerVersionInfo
GetItemResponse
ResponseMessages
GetItemResponseMessage
ResponseCode
Items
CalendarItem
ItemId
ParentFolderId
ItemClass
Sensitivity
Body
DateTimeReceived
Size
Importance
IsSubmitted
IsDraft
IsFromMe
IsResend
IsUnmodified
DateTimeSent
DateTimeCreated
ResponseObjects
ForwardItem
ReminderDueBy
ReminderIsSet
ReminderMinutesBeforeStart
DisplayCc
DisplayTo
HasAttachments
Culture
Start
End
IsAllDayEvent
LegacyFreeBusyStatus
IsMeeting
IsCancelled
IsRecurring
MeetingRequestWasSent
CalendarItemType
MyResponseType
Organizer
Mailbox
Name (EmailAddressType)
EmailAddress (NonEmptyStringType)
RoutingType (EmailAddressType)
ConflictingMeetingCount
AdjacentMeetingCount
ConflictingMeetings
Location
Duration (Items)
TimeZone (Item)
AppointmentSequenceNumber
AppointmentState
See also
GetItem operation
GetItem operation (task)
Article • 03/29/2023 • 2 minutes to read
The GetItem operation is used to get tasks from the Exchange store.
Remarks
The format of the GetItem request for tasks is the same as GetItem for any other item
type. The only difference is in which additional properties can be requested within the
response shape. Such additional properties must either be task-related properties or
extended properties.
Description
The following example of a GetItem request shows how to get a task item.
Code
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<GetItem
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<ItemShape>
<t:BaseShape>AllProperties</t:BaseShape>
</ItemShape>
<ItemIds>
<t:ItemId Id="AAAtAEFkb..."/>
</ItemIds>
</GetItem>
</soap:Body>
</soap:Envelope>
Comments
7 Note
The item identifier and change key have been shortened to preserve readability.
Request elements
The following elements are used in the request:
GetItem
ItemShape
BaseShape
ItemIds
ItemId
Description
The following example shows a successful response to a GetItem request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"/>
</soap:Header>
<soap:Body>
<GetItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:GetItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:Task>
<t:ItemClass>IPM.Task</t:ItemClass>
<t:Sensitivity>Normal</t:Sensitivity>
<t:Body BodyType="Text"/>
<t:DateTimeReceived>2006-09-15T15:23:08Z</t:DateTimeReceived>
<t:Size>153</t:Size>
<t:Importance>Normal</t:Importance>
<t:IsSubmitted>false</t:IsSubmitted>
<t:IsDraft>true</t:IsDraft>
<t:IsFromMe>false</t:IsFromMe>
<t:IsResend>false</t:IsResend>
<t:IsUnmodified>false</t:IsUnmodified>
<t:DateTimeSent>2006-09-15T15:23:08Z</t:DateTimeSent>
<t:DateTimeCreated>2006-09-15T15:23:08Z</t:DateTimeCreated>
<t:HasAttachments>false</t:HasAttachments>
<t:Culture>en-US</t:Culture>
<t:ChangeCount>1</t:ChangeCount>
<t:IsComplete>false</t:IsComplete>
<t:IsRecurring>false</t:IsRecurring>
<t:PercentComplete>0</t:PercentComplete>
<t:Status>NotStarted</t:Status>
<t:StatusDescription>Not Started</t:StatusDescription>
</t:Task>
</m:Items>
</m:GetItemResponseMessage>
</m:ResponseMessages>
</GetItemResponse>
</soap:Body>
</soap:Envelope>
Comments
7 Note
The item and folder identifiers and change keys have been shortened to preserve
readability.
GetItemResponse
ResponseMessages
GetItemResponseMessage
ResponseCode
Items
Task
ItemId
ParentFolderId
ItemClass
Subject
Sensitivity
Body
DateTimeReceived
Size
Importance
IsSubmitted
IsDraft
IsFromMe
IsResend
IsUnmodified
DateTimeSent
DateTimeCreated
HasAttachments
Culture
ChangeCount
IsComplete
IsRecurring
PercentComplete
Status
StatusDescription
See also
GetItem operation
Creating Tasks
Updating Tasks
Deleting Tasks
GetItem operation (contact)
Article • 03/29/2023 • 2 minutes to read
The GetItem operation is used to get contact items from the Exchange store.
Description
The following example shows how to get an item from the Exchange store.
Code
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<GetItem
xmlns='https://schemas.microsoft.com/exchange/services/2006/messages'>
<ItemShape>
<t:BaseShape>AllProperties</t:BaseShape>
</ItemShape>
<ItemIds>
</ItemIds>
</GetItem>
</soap:Body>
</soap:Envelope>
Comments
The request to get an item from the Exchange store takes the same form for all item
types. The responses to requests for different items will be different because different
items return different information based on the response shapes.
7 Note
GetItem
ItemShape
BaseShape
ItemIds
ItemId
Description
The following code example shows a successful GetItem response for the
AllPropertiesBaseShape.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<GetItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:GetItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:Contact>
<t:ItemId Id="AAAtAEA=" ChangeKey="EQAAABYq" />
<t:ItemClass>IPM.Contact</t:ItemClass>
<t:Sensitivity>Normal</t:Sensitivity>
<t:DateTimeReceived>2006-08-18T17:31:18Z</t:DateTimeReceived>
<t:Size>382</t:Size>
<t:Importance>Normal</t:Importance>
<t:IsSubmitted>false</t:IsSubmitted>
<t:IsDraft>true</t:IsDraft>
<t:IsFromMe>false</t:IsFromMe>
<t:IsResend>false</t:IsResend>
<t:IsUnmodified>false</t:IsUnmodified>
<t:DateTimeSent>2006-08-18T17:31:18Z</t:DateTimeSent>
<t:DateTimeCreated>2006-08-18T17:31:18Z</t:DateTimeCreated>
<t:HasAttachments>false</t:HasAttachments>
<t:Culture>en</t:Culture>
<t:FileAs>SampleContact</t:FileAs>
<t:FileAsMapping>None</t:FileAsMapping>
<t:DisplayName>Tanja Plate</t:DisplayName>
<t:GivenName>Tanja</t:GivenName>
<t:Initials>T.P.</t:Initials>
<t:CompleteName>
<t:FirstName>Tanja</t:FirstName>
<t:LastName>Plate</t:LastName>
<t:Initials>T.P.</t:Initials>
<t:FullName>Tanja Plate</t:FullName>
</t:CompleteName>
<t:CompanyName>Northwind Traders</t:CompanyName>
<t:EmailAddresses>
<t:Entry Key="EmailAddress1">[email protected]</t:Entry>
<t:Entry Key="EmailAddress2">[email protected]</t:Entry>
</t:EmailAddresses>
<t:PhysicalAddresses>
<t:Entry Key="Business">
<t:City>Whittier</t:City>
<t:State>CA</t:State>
<t:Country>USA</t:Country>
</t:Entry>
</t:PhysicalAddresses>
<t:PhoneNumbers>
<t:Entry Key="BusinessPhone">5625550199</t:Entry>
</t:PhoneNumbers>
<t:JobTitle>Project Manager</t:JobTitle>
<t:Surname>Plate</t:Surname>
</t:Contact>
</m:Items>
</m:GetItemResponseMessage>
</m:ResponseMessages>
</GetItemResponse>
</soap:Body>
</soap:Envelope>
Comments
The item identifier has been shortened to preserve readability.
ServerVersionInfo
GetItemResponse
ResponseMessages
GetItemResponseMessage
ResponseCode
Items
Contact
ItemId
ParentFolderId
ItemClass
Sensitivity
Body
DateTimeReceived
Size
Importance
IsSubmitted
IsDraft
IsFromMe
IsResend
IsUnmodified
DateTimeSent
DateTimeCreated
HasAttachments
Culture
FileAs
FileAsMapping
DisplayName (string)
GivenName
Initials
CompleteName
FirstName
LastName
FullName
CompanyName
EmailAddresses
Entry (EmailAddress)
PhysicalAddresses
Entry (PhysicalAddress)
Street
City
State
CountryOrRegion
PhoneNumbers
Entry (PhoneNumber)
JobTitle
Surname
Description
The following code example shows an invalid request.
Code
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<GetItem
xmlns='https://schemas.microsoft.com/exchange/services/2006/messages'>
<ItemShape>
<t:BaseShape>AllProperties</t:BaseShape>
<t:IncludeMimeContent>true</t:IncludeMimeContent>
</ItemShape>
<ItemIds>
</ItemIds>
</GetItem>
</soap:Body>
</soap:Envelope>
Comments
Item identifiers have been shortened to preserve readability.
Description
The following code example shows an error response to a GetItem (Contact) request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<GetItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:GetItemResponseMessage ResponseClass="Error">
<m:MessageText>Mime conversion is not supported for this item
type.</m:MessageText>
<m:ResponseCode>ErrorUnsupportedMimeConversion</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
<m:Items />
</m:GetItemResponseMessage>
</m:ResponseMessages>
</GetItemResponse>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
GetItemResponse
ResponseMessages
GetItemResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
Items
See also
GetItem operation
The GetMailTips operation gets the mail tips information for the specified mailbox.
Description
The client constructs the request XML and sends it to the server. The request identifies
who the client is sending as, the mailbox to retrieve the mail tips for, and what mail tips
are requested. In this example, the client requests that all mail tips be returned for the
selected mailbox.
Code
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Header>
</soap:Header>
<soap:Body>
<GetMailTips
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<SendingAs>
<t:RoutingType>SMTP</t:RoutingType>
</SendingAs>
<Recipients>
<t:Mailbox>
<t:RoutingType>SMTP</t:RoutingType>
</t:Mailbox>
</Recipients>
<MailTipsRequested>All</MailTipsRequested>
</GetMailTips>
</soap:Body>
</soap:Envelope>
Request elements
The following elements are included in the request:
GetMailTips
SendingAs
Recipients (ArrayOfRecipientsType)
MailTipsRequested
Description
The following Simple Object Access Protocol (SOAP) body example shows a successful
response to the GetMailTips request.
Code
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetMailTipsResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<ResponseMessages>
<MailTipsResponseMessageType ResponseClass="Success">
<ResponseCode>NoError</ResponseCode>
<m:MailTips
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"> 20
/ 29 [MS-OXWMT] — v20100517 Mail Tips Web Service Extensions Copyright ©
2010 Microsoft Corporation. Release: Monday, May 17, 2010
<t:RecipientAddress
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<t:Name/>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
</t:RecipientAddress>
<t:PendingMailTips
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"/>
<t:OutOfOffice
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<t:ReplyBody>
<t:Message/>
</t:ReplyBody>
</t:OutOfOffice>
<t:MailboxFull
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">false</
t:MailboxFull>
<t:CustomMailTip
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">Hello
World Mailtips</t:CustomMailTip>
<t:TotalMemberCount
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">1</t:To
talMemberCount>
<t:ExternalMemberCount
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">0</t:Ex
ternalMemberCount>
<t:MaxMessageSize
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">1048576
0</t:MaxMessageSize>
<t:DeliveryRestricted
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">false</
t:DeliveryRestricted>
<t:IsModerated
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">false</
t:IsModerated>
<t:InvalidRecipient
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">false</
t:InvalidRecipient>
</m:MailTips>
</MailTipsResponseMessageType>
</ResponseMessages>
</GetMailTipsResponse>
</s:Body>
</s:Envelope>
Response elements
The following elements are included in the response:
ResponseCode
MailTips
See also
EWS operations in Exchange
See also
EWS operations in Exchange
EWS XML elements in Exchange
GetNonIndexableItemDetails operation
Article • 03/29/2023 • 2 minutes to read
7 Note
Although the schema indicates that more than one mailbox can be searched, in the
initial release version of Exchange 2013, the service only supports getting item
details for nonindexable items in a single mailbox.
ManagementRole ManagementRole
Identifies the server roles that are necessary in order
for the caller to make the request. This header is
applicable to a request.
RequestVersion
RequestServerVersion Identifies the schema version for the operation
request. This header is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This header is applicable to a response.
GetNonIndexableItemDetails operation request
example: Get the details of an item that cannot
be indexed
The following example of a GetNonIndexableItemDetails operation request shows how
to request the details for items that cannot be indexed for a single mailbox. The search
is performed across both primary and archive mailboxes.
7 Note
All legacy domain names in this example have be shortened to preserve readability.
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
</soap:Header>
<soap:Body >
<m:GetNonIndexableItemDetails>
<m:Mailboxes>
</m:Mailboxes>
<m:SearchArchiveOnly>false</m:SearchArchiveOnly>
</m:GetNonIndexableItemDetails>
</soap:Body>
</soap:Envelope>
GetNonIndexableItemDetails
Mailboxes (NonEmptyArrayOfLegacyDNsType)
LegacyDN
SearchArchiveOnly
Successful GetNonIndexableItemDetails
operation response
The following example shows a successful response to a GetNonIndexableItemDetails
operation request to get items that cannot be indexed for a single mailbox. The item in
this example that cannot be indexed is the binaryfile.abc file, which is of an unknown
format.
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="526"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetNonIndexableItemDetailsResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<NonIndexableItemDetailsResult>
<Items
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<NonIndexableItemDetail>
<ItemId Id="AQMkAGVmNDAyOQAAAY2fUAAAAA=="
ChangeKey="CQAAAA=="/>
<ErrorCode>DocumentParserFailure</ErrorCode>
<IsPartiallyIndexed>false</IsPartiallyIndexed>
<IsPermanentFailure>true</IsPermanentFailure>
<SortValue>502511175756</SortValue>
<AttemptCount>0</AttemptCount>
<LastAttemptTime>2012-11-15T01:56:11Z</LastAttemptTime>
</NonIndexableItemDetail>
</Items>
</NonIndexableItemDetailsResult>
</GetNonIndexableItemDetailsResponse>
</s:Body>
</s:Envelope>
GetNonIndexableItemDetailsResponse
ResponseCode
NonIndexableItemDetailsResult
NonIndexableItemDetail
ItemId
ErrorCode (ItemIndexErrorType)
ErrorDescription
IsPartiallyIndexed
IsPermanentFailure
SortValue
AttemptCount
LastAttemptTime
AdditionalInfo
XML
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="526"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetNonIndexableItemDetailsResponse ResponseClass="Error"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>ErrorInvalidArgument</ResponseCode>
<DescriptiveLinkKey>0</DescriptiveLinkKey>
</GetNonIndexableItemDetailsResponse>
</s:Body>
</s:Envelope>
GetNonIndexableItemDetailsResponse
MessageText
ResponseCode
DescriptiveLinkKey
For additional error codes that are generic to EWS and specific to this operation, see
ResponseCode.
See also
EWS operations in Exchange
GetSearchableMailboxes operation
SearchMailboxes operation
GetHoldOnMailboxes operation
SetHoldOnMailboxes operation
GetDiscoverySearchConfiguration operation
GetNonIndexableItemStatistics operation
GetNonIndexableItemStatistics
operation
Article • 03/29/2023 • 2 minutes to read
ManagementRole ManagementRole
Identifies the server roles that are necessary in order
for the caller to make the request. This header is
applicable to a request.
RequestVersion
RequestServerVersion Identifies the schema version for the operation
request. This header is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This header is applicable to a response.
GetNonIndexableItemStatistics operation
request example: Get the count of items that
cannot be indexed in a mailbox
The following example of a GetNonIndexableItemStatistics operation request shows
how to request the count of items that cannot be indexed in a mailbox.
7 Note
All legacy domain names in this example have be shortened to preserve readability.
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
</soap:Header>
<soap:Body >
<m:GetNonIndexableItemStatistics>
<m:Mailboxes>
</m:Mailboxes>
<m:SearchArchiveOnly>false</m:SearchArchiveOnly>
</m:GetNonIndexableItemStatistics>
</soap:Body>
</soap:Envelope>
GetNonIndexableItemStatistics
Mailboxes (NonEmptyArrayOfLegacyDNsType)
LegacyDN
SearchArchiveOnly
Successful GetNonIndexableItemStatistics
operation response
The following example shows a successful response to a GetNonIndexableItemStatistics
operation request to get the count of items that cannot be indexed in a mailbox.
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="526"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetNonIndexableItemStatisticsResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<NonIndexableItemStatistics>
<NonIndexableItemStatistic
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<ItemCount>2</ItemCount>
</NonIndexableItemStatistic>
</NonIndexableItemStatistics>
</GetNonIndexableItemStatisticsResponse>
</s:Body>
</s:Envelope>
GetNonIndexableItemStatisticsResponse
ResponseCode
NonIndexableItemStatistics
NonIndexableItemStatistic
Mailbox (string)
ItemCount
GetNonIndexableItemStatistics operation error
response
The following example shows an error response to a GetNonIndexableItemStatistics
operation request. This is a response to a request to get the count of items that cannot
be indexed from more than one mailbox.
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="526"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetNonIndexableItemStatisticsResponse ResponseClass="Error"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>ErrorInvalidArgument</ResponseCode>
<DescriptiveLinkKey>0</DescriptiveLinkKey>
</GetNonIndexableItemStatisticsResponse>
</s:Body>
</s:Envelope>
GetNonIndexableItemStatisticsResponse
MessageText
ResponseCode
DescriptiveLinkKey
For additional error codes that are generic to EWS and specific to this operation, see
ResponseCode.
See also
EWS operations in Exchange
GetSearchableMailboxes operation
SearchMailboxes operation
GetHoldOnMailboxes operation
SetHoldOnMailboxes operation
GetDiscoverySearchConfiguration operation
GetNonIndexableItemDetails operation
GetPasswordExpirationDate operation
Article • 03/29/2023 • 2 minutes to read
This operation was introduced in Exchange Server 2010 Service Pack 1 (SP1).
MailboxCulture MailboxCulture Identifies the culture, as defined in RFC 3066, "Tags for
the Identification of Languages", to be used to access
the mailbox. This is applicable to a request.
RequestVersion RequestServerVersion Identifies the schema for the operation request. This is
applicable to a request. This is applicable to a request.
Description
The following example of a GetPasswordExpirationDate operation request shows how
to get the password expiration date for an email account.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Header>
</soap:Header>
<soap:Body>
<tns:GetPasswordExpirationDate>
<tns:MailboxSmtpAddress>user1@DTZMZX-
dom.extest.microsoft.com</tns:MailboxSmtpAddress>
</tns:GetPasswordExpirationDate>
</soap:Body>
</soap:Envelope>
Request elements
The following elements are used in the request:
GetPasswordExpirationDate
MailboxSmtpAddress
Successful GetPasswordExpirationDate
operation response
The following elements are used in the response:
GetPasswordExpirationDateResponse
PasswordExpirationDate
GetPersona operation
Article • 03/29/2023 • 2 minutes to read
The GetPersona operation returns a set of properties that are associated with a persona.
Impersonation
ExchangeImpersonation Identifies the user whom the client application is
impersonating. This header is applicable to a
request.
RequestVersion RequestServerVersion
Identifies the schema version for the operation
request. This header is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This header is applicable to a response.
XML
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Header>
<t:RequestServerVersion Version="Exchange2013"/>
</soap:Header>
<soap:Body
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<GetPersona>
<PersonaId Id="AAQkADEzAQAKtOtR/l4MlLqHWORfhSYKU="/>
</GetPersona>
</soap:Body>
</soap:Envelope>
GetPersona
PersonaId
7 Note
All item identifiers and change keys in this article have been shortened to preserve
readability.
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="432"
MinorBuildNumber="5"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetPersonaResponseMessage ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<Persona>
<PersonaId Id="AAQkADEzAQAKtOtR="
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"/>
<PersonaType
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">Person</P
ersonaType>
<CreationTime
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">2012-06-
01T17:00:34Z</CreationTime>
<DisplayName
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">Brian
Johnson</DisplayName>
<DisplayNameFirstLast
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">Brian
Johnson</DisplayNameFirstLast>
<DisplayNameLastFirst
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">Johnson
Brian</DisplayNameLastFirst>
<FileAs
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">Johnson,
Brian</FileAs>
<FileAsId
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">None</Fil
eAsId>
<GivenName
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">Brian</Gi
venName>
<Surname
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">Johnsoon<
/Surname>
<CompanyName
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">Contoso</
CompanyName>
<RelevanceScore
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">425555011
0</RelevanceScore>
<Attributions
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Attribution>
<Id>0</Id>
<DisplayName>Outlook</DisplayName>
<IsWritable>true</IsWritable>
<IsQuickContact>false</IsQuickContact>
<IsHidden>false</IsHidden>
</Attribution>
</Attributions>
<DisplayNames
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<StringAttributedValue>
<Value>Brian Johnson</Value>
<Attributions>
<Attribution>0</Attribution>
</Attributions>
</StringAttributedValue>
</DisplayNames>
<FileAses
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<StringAttributedValue>
<Value>Johnson, Brian</Value>
<Attributions>
<Attribution>0</Attribution>
</Attributions>
</StringAttributedValue>
</FileAses>
<FileAsIds
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<StringAttributedValue>
<Value>None</Value>
<Attributions>
<Attribution>0</Attribution>
</Attributions>
</StringAttributedValue>
</FileAsIds>
<GivenNames
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<StringAttributedValue>
<Value>Brian</Value>
<Attributions>
<Attribution>0</Attribution>
</Attributions>
</StringAttributedValue>
</GivenNames>
<Surnames
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<StringAttributedValue>
<Value>Johnson</Value>
<Attributions>
<Attribution>0</Attribution>
</Attributions>
</StringAttributedValue>
</Surnames>
<MobilePhones
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<PhoneNumberAttributedValue>
<Value>
<Number>(425)555-0110</Number>
<Type>Mobile</Type>
</Value>
<Attributions>
<Attribution>0</Attribution>
</Attributions>
</PhoneNumberAttributedValue>
</MobilePhones>
<CompanyNames
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<StringAttributedValue>
<Value>Contoso</Value>
<Attributions>
<Attribution>0</Attribution>
</Attributions>
</StringAttributedValue>
</CompanyNames>
</Persona>
</GetPersonaResponseMessage>
</s:Body>
</s:Envelope>
GetPersonaResponseMessage
ResponseCode
Persona
PersonaId
PersonaType
CreationTime
DisplayNameFirstLast
DisplayNameLastFirst
FileAs
FileAsId
GivenName
Surname
CompanyName
RelevanceScore
Attributions (ArrayOfValueAttributionsType)
Attribution (string)
ID (String)
SourceId SourceId
DisplayName (string)
IsWritable
IsQuickContact
IsHidden
FolderId
DisplayNames
StringAttributedValue
Value (ArrayOfStringValueType)
Attributions (ArrayOfPersonaAttributionsType)
Attribution (PersonaAttributionType)
FileAses
FileAsIds
GivenNames
Surnames
MobilePhones
PhoneNumberAttributedValue
Value (PersonaPhoneNumberType)
Number
Type (string)
CompanyNames
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="578"
MinorBuildNumber="11"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetPersonaResponseMessage ResponseClass="Error"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<MessageText>Id is malformed.</MessageText>
<ResponseCode>ErrorInvalidIdMalformed</ResponseCode>
<DescriptiveLinkKey>0</DescriptiveLinkKey>
</GetPersonaResponseMessage>
</s:Body>
</s:Envelope>
GetPersonaResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
For additional error codes that are generic to EWS and specific to this operation, see
ResponseCode.
See also
EWS operations in Exchange
FindPeople operation
GetPhoneCallInformation operation
Article • 03/29/2023 • 2 minutes to read
Description
The following example of a GetPhoneCallInformation request shows how to form a
request to get information about a specific telephone call.
Code
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetPhoneCallInformation>
<m:PhoneCallId Id="NDDY5uY29y9t"/>
</m:GetPhoneCallInformation>
</soap:Body>
</soap:Envelope>
Description
The following example shows a successful response to the GetPhoneCallInformation
request. The response represents a telephone call that is currently connected.
Code
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="14"
MinorVersion="0"
MajorBuildNumber="639"
MinorBuildNumber="20"
Version="Exchange2010"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetPhoneCallInformationResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<m:PhoneCallInformation
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<t:PhoneCallState
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">Connect
ed</t:PhoneCallState>
<t:ConnectionFailureCause
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">None</t
:ConnectionFailureCause>
</m:PhoneCallInformation>
</GetPhoneCallInformationResponse>
</s:Body>
</s:Envelope>
See also
EWS operations in Exchange
EWS XML elements in Exchange
GetReminders operation
Article • 03/29/2023 • 3 minutes to read
The GetReminders Exchange Web Services (EWS) operation retrieves reminders for
calendar and task items.
To retrieve all current reminders, we recommend setting the ReminderType to All and
the EndTime to the current time.
If the BeginTime and EndTime elements are included in the request, the response
includes reminders for any calendar and task items that occur between have a reminder
that occurs between the BeginTime and EndTime.
The following table describes the behavior of the ReminderType element when the
BeginTime and EndTime elements are included.
ReminderType Description
element value
Current Reminders returned by All, plus reminders that are earlier than the requested
time window if the event is still ongoing, plus all appointments regardless of
age.
Old Reminders returned by All, minus events that haven't completed yet, minus all
appointments. The BeginTime and EndTime elements must be set to use the
Old value.
Impersonation
ExchangeImpersonation Identifies the user whom the client application is
impersonating. This header is applicable to a
request.
RequestVersion RequestServerVersion
Identifies the schema version for the operation
request. This header is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This header is applicable to a response.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetReminders>
<m:EndTime>2014-04-16T21:00:00Z</m:EndTime>
<m:ReminderType>All</m:ReminderType>
</m:GetReminders>
</soap:Body>
</soap:Envelope>
GetReminders
EndTime
ReminderType
BeginTime
MaxItems
7 Note
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="918"
MinorBuildNumber="7"
Version="V2_10"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetRemindersResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<Reminders>
<Reminder
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Subject>Team meeting</Subject>
<Location />
<ReminderTime>2014-04-15T21:00:00Z</ReminderTime>
<StartDate>2014-04-15T21:00:00Z</StartDate>
<EndDate>2014-04-15T21:30:00Z</EndDate>
<ItemId Id="vQAAAA=="
ChangeKey="DwAAABYAAAB4to43JyybTYwHLBM1k8MxAAACRoV4" />
<RecurringMasterItemId Id="K7u5AAA="
ChangeKey="DwAAABYAAAB4to43JyybTYwHLBM1k8MxAAACRoV0" />
<ReminderGroup>Calendar</ReminderGroup>
<UID>6CF2FA62</UID>
</Reminder>
<Reminder
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Location />
<ReminderTime>2014-04-16T14:00:00Z</ReminderTime>
<StartDate>0001-01-02T00:00:00Z</StartDate>
<EndDate>0001-01-02T00:00:00Z</EndDate>
<ItemId Id="vAAAAA=="
ChangeKey="EwAAABQAAACOs0HEMq1WTKpI7sNu5qXNAAAIDg==" />
<ReminderGroup>Task</ReminderGroup>
<UID>vAAAAA==</UID>
</Reminder>
</Reminders>
</GetRemindersResponse>
</s:Body>
</s:Envelope>
GetRemindersResponse
Reminders
Reminder
Subject
Location
ReminderTime
StartDate
EndDate
ItemId
RecurringMasterItemId
ReminderGroup
UID
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="918"
MinorBuildNumber="7"
Version="V2_10"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetRemindersResponse ResponseClass="Error"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>ErrorInvalidOperation</ResponseCode>
<DescriptiveLinkKey>0</DescriptiveLinkKey>
</GetRemindersResponse>
</s:Body>
</s:Envelope>
GetRemindersResponse
MessageText
ResponseCode
DescriptiveLinkKey
For additional error codes that are generic to EWS and specific to this operation, see
ResponseCode.
See also
PerformReminderAction
GetRoomLists operation
Article • 03/29/2023 • 2 minutes to read
The GetRoomLists operation gets the room lists that are available within the Exchange
organization.
SOAP Headers
The GetRoomLists operation can use the SOAP headers that are listed and described in
the following table.
RequestVersion RequestServerVersion
Identifies the schema version for the operation
request.
ServerVersion ServerVersionInfo
Identifies the version of the server that responded to
the request.
Description
The following is an example of a GetRoomLists request that returns the room lists that
are available on the server.
Code
XML
<soap:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetRoomLists />
</soap:Body>
</soap:Envelope>
Request elements
The following element is used in the request:
GetRoomLists
Description
The following is an example of a response to a GetRoomLists request. This response
shows one room list on the server.
Code
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetRoomListsResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<m:RoomLists
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<t:Address
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<t:Name>Room List</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
<t:MailboxType>PublicDL</t:MailboxType>
</t:Address>
</m:RoomLists>
</GetRoomListsResponse>
</s:Body>
</s:Envelope>
ServerVersionInfo
GetRoomListsResponse
ResponseCode
RoomLists
EmailAddress (NonEmptyStringType)
RoutingType (EmailAddress)
MailboxType
Description
The following example shows the response to an attempt to get room lists from a server
that does not have any room lists defined.
Code
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetRoomListsResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<m:RoomLists
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"/>
</GetRoomListsResponse>
</s:Body>
</s:Envelope>
ServerVersionInfo
GetRoomListsResponse
ResponseCode
RoomLists
See also
EWS operations in Exchange
The GetRooms operation gets the rooms within the specified room list.
Note : Rooms which are marked "Hidden from GAL" can't be retrieved through this
method.
SOAP Headers
The GetRooms operation can use the SOAP headers that are listed and described in the
following table.
RequestVersion RequestServerVersion
Identifies the schema version for the operation
request.
ServerVersion ServerVersionInfo
Identifies the version of the server that responded to
the request.
Description
The following is an example of a GetRooms request that gets the rooms that are
associated with a room list.
Code
XML
<soap:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetRooms>
<m:RoomList>
<t:EmailAddress>[email protected]</t:EmailAddress>
</m:RoomList>
</m:GetRooms>
</soap:Body>
Request elements
The following elements are used in the request:
RequestServerVersion
GetRooms
RoomList
EmailAddress (NonEmptyStringType)
Description
The following response shows the email address information for the rooms that are
associated with the room list.
Code
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetRoomsResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<m:Rooms
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<t:Room
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<t:Id>
<t:Name>Room01</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
<t:MailboxType>Mailbox</t:MailboxType>
</t:Id>
</t:Room>
<t:Room
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<t:Id>
<t:Name>Room02</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
<t:MailboxType>Mailbox</t:MailboxType>
</t:Id>
</t:Room>
</m:Rooms>
</GetRoomsResponse>
</s:Body>
</s:Envelope>
ServerVersionInfo
GetRoomsResponse
ResponseCode
Rooms
Room
Name (EmailAddress)
EmailAddress (NonEmptyStringType)
RoutingType (EmailAddress)
MailboxType
Description
The following example shows an error response caused by an attempt to get room
information for a nonexistent room list.
Code
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetRoomsResponse ResponseClass="Error"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>ErrorNameResolutionNoResults</ResponseCode>
<DescriptiveLinkKey>0</DescriptiveLinkKey>
</GetRoomsResponse>
</s:Body>
</s:Envelope>
ServerVersionInfo
GetRoomsResponse
MessageText
ResponseCode
DescriptiveLinkKey
See also
EWS operations in Exchange
EWS XML elements in Exchange
GetSearchableMailboxes operation
Article • 03/29/2023 • 3 minutes to read
) Important
7 Note
This operation is intended to be used with the search filter and to retrieve only the
first few thousands; it's not intended for exhaustive retrieval.
If the email alias set in the search filter is a distribution group and the distribution group
membership is not expanded, the response will contain the mailbox information for the
distribution group. If the email alias set in the search filter is a distribution group and
the distribution group membership is expanded, the response will contain the mailbox
information for each mailbox that is a member of the distribution group. If the search
filter contains a single user's alias, the response will contain the mailbox information for
the single user. The response will contain all searchable mailboxes if the
GetSearchableMailboxes element is empty. This is the same as having an empty
SearchFilter element and the ExpandGroupMembership element set to false.
ManagementRole ManagementRole
Identifies the server roles that are necessary in order
for the caller to make the request. This header is
applicable to a request.
RequestVersion
RequestServerVersion Identifies the schema version for the operation
request. This header is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This header is applicable to a response.
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
</soap:Header>
<soap:Body >
<m:GetSearchableMailboxes>
<m:SearchFilter>lolgroup</m:SearchFilter>
<m:ExpandGroupMembership>false</m:ExpandGroupMembership>
</m:GetSearchableMailboxes>
</soap:Body>
</soap:Envelope>
GetSearchableMailboxes
SearchFilter
ExpandGroupMembership
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="526"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetSearchableMailboxesResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<SearchableMailboxes>
<SearchableMailbox
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Guid>33a408fe-2574-4e3b-49f5-5e1e000a3035</Guid>
<PrimarySmtpAddress>[email protected]</PrimarySmtpAddress>
<IsExternalMailbox>false</IsExternalMailbox>
<ExternalEmailAddress/>
<DisplayName>LOLgroup</DisplayName>
<IsMembershipGroup>true</IsMembershipGroup>
<ReferenceId>/o=First/ou=Exchange(FYLT)/cn=Recipients/cn=81213b958a0b5295b13
b3f02b812bf1bc-LOLgroup</ReferenceId>
</SearchableMailbox>
</SearchableMailboxes>
</GetSearchableMailboxesResponse>
</s:Body>
</s:Envelope>
GetSearchableMailboxesResponse
ResponseCode
SearchableMailboxes
SearchableMailbox
Guid
PrimarySmtpAddress
IsExternalMailbox
ExternalEmailAddress
DisplayName (string)
IsMembershipGroup
ReferenceId
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetSearchableMailboxesResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<SearchableMailboxes>
<SearchableMailbox
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Guid>e2d42cdf-a227-1ec3-486b-6fa0ebaadb9f5</Guid>
<PrimarySmtpAddress>[email protected]</PrimarySmtpAddress>
<IsExternalMailbox>false</IsExternalMailbox>
<ExternalEmailAddress/>
<DisplayName>Julia Smith</DisplayName>
<IsMembershipGroup>false</IsMembershipGroup>
</SearchableMailbox>
<SearchableMailbox
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Guid>45d0fff1-6541-459a-a343-52453b30e12ca</Guid>
<PrimarySmtpAddress>[email protected]</PrimarySmtpAddress>
<IsExternalMailbox>false</IsExternalMailbox>
<ExternalEmailAddress/>
<DisplayName>Laura Moore</DisplayName>
<IsMembershipGroup>false</IsMembershipGroup>
</SearchableMailbox>
<SearchableMailbox
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Guid>3c620d04-8b33-435a-95be-5b939375576</Guid>
<PrimarySmtpAddress>[email protected]</PrimarySmtpAddress>
<IsExternalMailbox>false</IsExternalMailbox>
<ExternalEmailAddress/>
<DisplayName>Steven Brown</DisplayName>
<IsMembershipGroup>false</IsMembershipGroup>
</SearchableMailbox>
</SearchableMailboxes>
</GetSearchableMailboxesResponse>
</s:Body>
</s:Envelope>
GetSearchableMailboxesResponse
ResponseCode
SearchableMailboxes
SearchableMailbox
Guid
PrimarySmtpAddress
IsExternalMailbox
ExternalEmailAddress
DisplayName (string)
IsMembershipGroup
ReferenceId
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="526"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetSearchableMailboxesResponse ResponseClass="Error"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>ErrorInvalidArgument</ResponseCode>
<DescriptiveLinkKey>0</DescriptiveLinkKey>
<SearchableMailboxes/>
</GetSearchableMailboxesResponse>
</s:Body>
</s:Envelope>
GetSearchableMailboxesResponse
MessageText
ResponseCode
DescriptiveLinkKey
SearchableMailboxes
For additional error codes that are generic to EWS and specific to this operation, see
ResponseCode.
See also
EWS operations in Exchange
SetHoldOnMailboxes operation
SearchMailboxes operation
GetHoldOnMailboxes operation
GetDiscoverySearchConfiguration operation
GetNonIndexableItemDetails operation
GetNonIndexableItemStatistics operation
GetServerTimeZones operation
Article • 03/29/2023 • 2 minutes to read
The GetServerTimeZones operation returns information from time zone definitions that
are available on an Exchange server.
SOAP Headers
The GetServerTimeZones operation can use the SOAP headers that are listed and
described in the following table.
RequestVersion RequestServerVersion Identifies the schema version for the operation request.
ServerVersion ServerVersionInfo
Identifies the version of the server that responded to
the request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Header>
<t:RequestServerVersion Version="Exchange2010"/>
</soap:Header>
<soap:Body>
<m:GetServerTimeZones ReturnFullTimeZoneData="false">
<m:Ids>
</m:Ids>
</m:GetServerTimeZones>
</soap:Body>
</soap:Envelope>
Comments
Each Id (TimeZone) element contains the identifier of a time zone definition that is being
requested. To request information for all time zones, omit the Ids element from the
request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Header>
<t:RequestServerVersion Version="Exchange2010"/>
</soap:Header>
<soap:Body>
<m:GetServerTimeZones ReturnFullTimeZoneData="true">
<m:Ids>
</m:Ids>
</m:GetServerTimeZones>
</soap:Body>
</soap:Envelope>
Comments
Each Id (TimeZone) element contains the identifier of a time zone definition that is being
requested. To request information for all time zones, omit the Ids element from the
request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<t:ServerVersionInfo MajorVersion="14"
MinorVersion="0"
MajorBuildNumber="639"
MinorBuildNumber="11"
Version="Exchange2010"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<GetServerTimeZonesResponse
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:GetServerTimeZonesResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</ResponseCode>
<m:TimeZoneDefinitions>
</m:TimeZoneDefinitions>
</m:GetServerTimeZonesResponseMessage>
</m:ResponseMessages>
</m:GetServerTimeZonesResponse>
</soap:Body>
</soap:Envelope>
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<t:ServerVersionInfo MajorVersion="14"
MinorVersion="0"
MajorBuildNumber="639"
MinorBuildNumber="11"
Version="Exchange2010"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<GetServerTimeZonesResponse
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:GetServerTimeZonesResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</ResponseCode>
<m:TimeZoneDefinitions>
<t:Periods>
</t:Periods>
<t:TransitionsGroups>
<t:TransitionsGroup Id="0">
<t:RecurringDayTransition>
<t:To
Kind="Period">trule:Microsoft/Registry/EasternStandardTime/2006-
Daylight</t:To>
<t:TimeOffset>PT2H</t:TimeOffset>
<t:Month>4</t:Month>
<t:DayOfWeek>Sunday</t:DayOfWeek>
<t:Occurrence>1</t:Occurrence>
</t:RecurringDayTransition>
<t:RecurringDayTransition>
<t:To
Kind="Period">trule:Microsoft/Registry/EasternStandardTime/2006-
Standard</t:To>
<t:TimeOffset>PT2H</t:TimeOffset>
<t:Month>10</t:Month>
<t:DayOfWeek>Sunday</t:DayOfWeek>
<t:Occurrence>-1</t:Occurrence>
</t:RecurringDayTransition>
</t:TransitionsGroup>
<t:TransitionsGroup Id="1">
<t:RecurringDayTransition>
<t:To
Kind="Period">trule:Microsoft/Registry/EasternStandardTime/2007-
Daylight</t:To>
<t:TimeOffset>PT2H</t:TimeOffset>
<t:Month>3</t:Month>
<t:DayOfWeek>Sunday</t:DayOfWeek>
<t:Occurrence>2</t:Occurrence>
</t:RecurringDayTransition>
<t:RecurringDayTransition>
<t:To
Kind="Period">trule:Microsoft/Registry/EasternStandardTime/2007-
Standard</t:To>
<t:TimeOffset>PT2H</t:TimeOffset>
<t:Month>11</t:Month>
<t:DayOfWeek>Sunday</t:DayOfWeek>
<t:Occurrence>1</t:Occurrence>
</t:RecurringDayTransition>
</t:TransitionsGroup>
</t:TransitionsGroups>
<t:Transitions>
<t:Transition>
<t:To Kind="Group">0</t:To>
</t:Transition>
<t:AbsoluteDateTransition>
<t:To Kind="Group">1</t:To>
<t:DateTime>2007-01-01T00:00:00</t:DateTime>
</t:AbsoluteDateTransition>
</t:Transitions>
</t:TimeZoneDefinition>
</m:TimeZoneDefinitions>
</m:GetServerTimeZonesResponseMessage>
</m:ResponseMessages>
</m:GetServerTimeZonesResponse>
</soap:Body>
</soap:Envelope>
See also
GetServerTimeZones
GetServerTimeZonesResponse
GetServerTimeZonesType
Description
The following example of a GetServiceConfiguration request shows how to form a
request to get configuration information for the Unified Messaging service.
Code
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetServiceConfiguration>
<m:RequestedConfiguration>
<m:ConfigurationName>UnifiedMessagingConfiguration</m:ConfigurationName>
</m:RequestedConfiguration>
</m:GetServiceConfiguration>
</soap:Body>
</soap:Envelope>
Description
The following example shows a successful response to the GetServiceConfiguration
request.
Code
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="14"
MinorVersion="0"
MajorBuildNumber="639"
MinorBuildNumber="20"
Version="Exchange2010"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetServiceConfigurationResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<ResponseMessages>
<ServiceConfigurationResponseMessageType ResponseClass="Success">
<ResponseCode>NoError</ResponseCode>
<m:UnifiedMessagingConfiguration
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<t:UmEnabled
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">true</t
:UmEnabled>
<t:PlayOnPhoneDialString
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">user@co
ntoso.com</t:PlayOnPhoneDialString>
<t:PlayOnPhoneEnabled
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">true</t
:PlayOnPhoneEnabled>
</m:UnifiedMessagingConfiguration>
</ServiceConfigurationResponseMessageType>
</ResponseMessages>
</GetServiceConfigurationResponse>
</s:Body>
</s:Envelope>
Description
The following example shows an error response to the GetServiceConfiguration
request. This error was caused by an incorrect configuration name.
Code
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<s:Fault>
<faultcode
xmlns:a="https://schemas.microsoft.com/exchange/services/2006/types">a:Error
SchemaValidation</faultcode>
The
'https://schemas.microsoft.com/exchange/services/2006/messages:Configuration
Name' element
datatype
'https://schemas.microsoft.com/exchange/services/2006/types:ServiceConfigura
tionType'
<detail>
<e:ResponseCode
xmlns:e="https://schemas.microsoft.com/exchange/services/2006/errors">ErrorS
chemaValidation</e:ResponseCode>
<e:Message
xmlns:e="https://schemas.microsoft.com/exchange/services/2006/errors">The
request failed schema validation.</e:Message>
<t:MessageXml
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<t:LineNumber>13</t:LineNumber>
<t:LinePosition>62</t:LinePosition>
<t:Violation>The
'https://schemas.microsoft.com/exchange/services/2006/messages:Configuration
Name' element
datatype
'https://schemas.microsoft.com/exchange/services/2006/types:ServiceConfigura
tionType'
</t:MessageXml>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>
See also
EWS operations in Exchange
The GetSharingFolder operation gets the local folder identifier of a specified shared
folder.
SOAP Headers
The GetSharingFolder operation can use the SOAP headers that are listed and described
in the following table.
RequestVersion RequestServerVersion Identifies the schema version for the operation request.
ServerVersion ServerVersionInfo
Identifies the version of the server that responded to
the request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Header>
<t:RequestServerVersion Version="Exchange2010"/>
</soap:Header>
<soap:Body>
<m:GetSharingFolder>
<m:SmtpAddress>[email protected]</m:SmtpAddress>
<m:SharedFolderId>AAMkA=</m:SharedFolderId>
</m:GetSharingFolder>
</soap:Body>
</soap:Envelope>
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Header>
<t:RequestServerVersion Version="Exchange2010"/>
</soap:Header>
<soap:Body>
<m:GetSharingFolder>
<m:SmtpAddress>[email protected]</m:SmtpAddress>
<m:DataType>Contacts</m:DataType>
</m:GetSharingFolder>
</soap:Body>
</soap:Envelope>
Comments
For information about the possible values of the DataType element, see DataType.
Successful GetSharingFolder Response
Description
The following example shows a successful response to a GetSharingFolder request. The
Id attribute of the SharingFolderId element represents the identifier of the local folder in
the sharing relationship.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<t:ServerVersionInfo MajorVersion="14"
MinorVersion="0"
MajorBuildNumber="639"
MinorBuildNumber="11"
Version="Exchange2010"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<GetSharingFolderResponseMessage ResponseClass="Success"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseCode>NoError</m:ResponseCode>
<m:SharingFolderId Id="AAMkAD=" ChangeKey="AwAAA=" />
</GetSharingFolderResponseMessage>
</soap:Body>
</soap:Envelope>
Description
The following example shows an error response to a GetSharingFolder request. In this
example, the error occurred because the request specified both the SharingFolderId and
DataType elements. Note that only one or the other of those two elements can be
specified, but not both.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<t:ServerVersionInfo MajorVersion="14"
MinorVersion="0"
MajorBuildNumber="639"
MinorBuildNumber="11"
Version="Exchange2010"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<GetSharingFolderResponseMessage ResponseClass="Error"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseCode>ErrorInvalidGetSharingFolderRequest</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
</GetSharingFolderResponseMessage>
</soap:Body>
</soap:Envelope>
See also
GetSharingFolder
GetSharingFolderType
GetSharingFolderResponseMessage
GetSharingFolderResponseMessageType
SOAP Headers
The GetSharingMetadata operation can use the SOAP headers that are listed and
described in the following table.
RequestVersion RequestServerVersion Identifies the schema version for the operation request.
ServerVersion ServerVersionInfo
Identifies the version of the server that responded to
the request.
Description
The following example shows how to form a request to get an opaque authentication
token that identifies a sharing invitation. In this example, [email protected] wants to
share the folder that is specified by the IdOfFolderToShare element with
[email protected] and [email protected].
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Header>
<t:RequestServerVersion Version="Exchange2010"/>
</soap:Header>
<soap:Body>
<m:GetSharingMetadata>
<m:SenderSmtpAddress>[email protected]</m:SenderSmtpAddress>
<m:Recipients>
<t:SmtpAddress>[email protected]</t:SmtpAddress>
<t:SmtpAddress>[email protected]</t:SmtpAddress>
</m:Recipients>
</m:GetSharingMetadata>
</soap:Body>
</soap:Envelope>
Comments
The Recipients (ArrayOfSmtpAddressType) element contains one SmtpAddress element
for each intended recipient of the sharing invitation.
Description
The following example shows a successful response to a GetSharingMetadata request.
In this example, two recipients were specified in the corresponding
GetSharingMetadata request: [email protected] and [email protected].
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<t:ServerVersionInfo MajorVersion="14"
MinorVersion="0"
MajorBuildNumber="639"
MinorBuildNumber="11"
Version="Exchange2010"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<GetSharingMetadataResponseMessage ResponseClass="Success"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseCode>NoError</ResponseCode>
<m:EncryptedSharedFolderDataCollection>
<t:EncryptedSharedFolderData>
<t:Token>
<EncryptedData Id="Assertion0"
Type="http://www.w3.org/2001/04/xmlenc#Element"
xmlns="http://www.w3.org/2001/04/xmlenc#">
<EncryptionMethod
Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc">
</EncryptionMethod>
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<EncryptedKey>
<EncryptionMethod
Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p">
</EncryptionMethod>
<ds:KeyInfo Id="keyinfo">
<wsse:SecurityTokenReference
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-
wssecurity-secext-1.0.xsd">
<wsse:KeyIdentifier
EncodingType="http://docs.oasis-
open.org/wss/2004/01/oasis-200401-wss-soap-message-security-
1.0#Base64Binary"
ValueType="http://docs.oasis-
open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-
1.0#X509SubjectKeyIdentifier">
B4VEEAf=
</wsse:KeyIdentifier>
</wsse:SecurityTokenReference>
</ds:KeyInfo>
<CipherData>
<CipherValue>GI/Dxqvw2na==</CipherValue>
</CipherData>
</EncryptedKey>
</ds:KeyInfo>
<CipherData>
<CipherValue>L77I7Hr06z</CipherValue>
</CipherData>
</EncryptedData>
</t:Token>
<t:Data>
<EncryptedData Type="http://www.w3.org/2001/04/xmlenc#Element"
xmlns="http://www.w3.org/2001/04/xmlenc#">
<EncryptionMethod
Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc" />
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
<EncryptedKey xmlns="http://www.w3.org/2001/04/xmlenc#">
<EncryptionMethod
Algorithm="http://www.w3.org/2001/04/xmlenc#kw-tripledes" />
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
<KeyName>key</KeyName>
</KeyInfo>
<CipherData>
<CipherValue>9UgtjrHiU</CipherValue>
</CipherData>
</EncryptedKey>
</KeyInfo>
<CipherData>
<CipherValue>NCNsJoGtQ==</CipherValue>
</CipherData>
</EncryptedData>
</t:Data>
</t:EncryptedSharedFolderData>
</m:EncryptedSharedFolderDataCollection>
<m:InvalidRecipients>
<t:InvalidRecipient>
<t:SmtpAddress>[email protected]</t:SmtpAddress>
<t:ResponseCode>RecipientOrganizationNotFederated</t:ResponseCode>
</t:InvalidRecipient>
</m:InvalidRecipients>
</GetSharingMetadataResponseMessage>
</soap:Body>
</soap:Envelope>
Comments
The response contains one EncryptedSharedFolderData element for each organization
that is represented by valid recipients that are specified in the GetSharingMetadata
request.
The GetSharingMetadata request will succeed even if invalid recipients are specified in
the request. The InvalidRecipients element contains information about invalid recipients.
For information about the reasons why a recipient might be invalid, see ResponseCode
(InvalidRecipientResponseCodeType).
Description
The following example shows an error response to a GetSharingMetadata request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<t:ServerVersionInfo MajorVersion="14"
MinorVersion="0"
MajorBuildNumber="639"
MinorBuildNumber="11"
Version="Exchange2010"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<GetSharingMetadataResponseMessage ResponseClass="Error"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseCode>ErrorInvalidSmtpAddress</ResponseCode>
<m:DescriptiveLinkKey>0</DescriptiveLinkKey>
</GetSharingMetadataResponseMessage>
</soap:Body>
</soap:Envelope>
See also
GetSharingMetadata
GetSharingMetadataType
GetSharingMetadataResponseMessage
GetSharingMetadataResponseMessageType
Description
The following example of a GetStreamingEvents operation shows how to request the
events and items that are associated with a subscription that is identified by the
subscription identifier.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Body>
<GetStreamingEvents
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<SubscriptionIds>
<SubscriptionId>f6bc657d-dde1-4f94-952d-
143b95d6483d</SubscriptionId>
</SubscriptionIds>
<ConnectionTimeout>30</ConnectionTimeout>
</GetStreamingEvents>
</soap:Body>
</soap:Envelope>
GetStreamingEvents
SubscriptionIds
ConnectionTimeout
Description
The following example of a GetStreamingEvents response shows the notifications that
are sent to the client when a new email message is received. It includes notifications for
the following events: CreatedEvent, NewMail, and ModifiedEvent.
Code
XML
<soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<ServerVersionInfo xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" MajorVersion="15"
MinorVersion="0" MajorBuildNumber="775" MinorBuildNumber="7" Version="V2_4"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<m:GetStreamingEventsResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:GetStreamingEventsResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Notifications>
<m:Notification>
<t:SubscriptionId>f6bc657d-dde1-4f94-952d-
143b95d6483d</t:SubscriptionId>
<t:CreatedEvent>
<t:TimeStamp>2013-09-16T04:31:29Z</t:TimeStamp>
<t:ItemId
Id="AAMkADkzNjJjODUzLWZhMDMtNDVkMS05ZDdjLWVmMDlkYjQ1Zjc4MwBGAAAAAABSSWVKrmGU
TJE+MVIvofglBwDZGACZQpSgSpyNkexYe2b7AAAAAAENAADZGACZQpSgSpyNkexYe2b7AAANGFYw
AAA=" ChangeKey="CQAAAA==" />
<t:ParentFolderId
Id="AQMkADkzNjJjODUzLWZhMDMtNDVkMS05ZDdjLWVmMDlkYjQ1Zjc4MwAuAAADUkllSq5hlEyR
PjFSL6H4JQEA2RgAmUKUoEqcjZHsWHtm+wAAAgENAAAA" ChangeKey="AQAAAA==" />
</t:CreatedEvent>
<t:NewMailEvent>
<t:TimeStamp>2013-09-16T04:31:29Z</t:TimeStamp>
<t:ItemId
Id="AAMkADkzNjJjODUzLWZhMDMtNDVkMS05ZDdjLWVmMDlkYjQ1Zjc4MwBGAAAAAABSSWVKrmGU
TJE+MVIvofglBwDZGACZQpSgSpyNkexYe2b7AAAAAAENAADZGACZQpSgSpyNkexYe2b7AAANGFYw
AAA=" ChangeKey="CQAAAA==" />
<t:ParentFolderId
Id="AQMkADkzNjJjODUzLWZhMDMtNDVkMS05ZDdjLWVmMDlkYjQ1Zjc4MwAuAAADUkllSq5hlEyR
PjFSL6H4JQEA2RgAmUKUoEqcjZHsWHtm+wAAAgENAAAA" ChangeKey="AQAAAA==" />
</t:NewMailEvent>
<t:ModifiedEvent>
<t:TimeStamp>2013-09-16T04:31:29Z</t:TimeStamp>
<t:FolderId
Id="AQMkADkzNjJjODUzLWZhMDMtNDVkMS05ZDdjLWVmMDlkYjQ1Zjc4MwAuAAADUkllSq5hlEyR
PjFSL6H4JQEA2RgAmUKUoEqcjZHsWHtm+wAAAgENAAAA" ChangeKey="AQAAAA==" />
<t:ParentFolderId
Id="AQMkADkzNjJjODUzLWZhMDMtNDVkMS05ZDdjLWVmMDlkYjQ1Zjc4MwAuAAADUkllSq5hlEyR
PjFSL6H4JQEA2RgAmUKUoEqcjZHsWHtm+wAAAgEJAAAA" ChangeKey="AQAAAA==" />
<t:UnreadCount>1</t:UnreadCount>
</t:ModifiedEvent>
</m:Notification>
</m:Notifications>
</m:GetStreamingEventsResponseMessage>
</m:ResponseMessages>
</m:GetStreamingEventsResponse>
</soap:Body>
GetStreamingEventsResponse
ResponseMessages
GetStreamingEventsResponseMessage
NotesFolderPermissionLevel
Notification
SubscriptionId (GetStreamingEvents)
To find other options for the response message of the GetStreamingEvents operation,
explore the schema hierarchy. Start at the Notification element.
Description
The following example shows an error response to a GetStreamingEvents request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<GetStreamingEventsResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:GetStreamingEventsResponseMessage ResponseClass="Error">
<m:MessageText></m:MessageText>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
<m:ResponseCode>ErrorInvalidSubscription</m:ResponseCode>
<m:ConnectionStatus>Closed</m:ConnectionStatus>
</m:ResponseMessages>
</GetStreamingEventsResponse>
</soap:Body>
</soap:Envelope>
Remarks
When processing a GetStreamingEvents request, the Client Access server performs the
following steps:
2. The SMTP address of the authenticated user for the request is validated to have
impersonation rights. If they do not, the GetStreamingEvents request fails.
3. The subscription queue is queried for events that are waiting to be sent to the
client. If the queue is not empty, the first 50 events from the queue are pulled from
the queue and encoded into a notification.
4. If no events are found in the queue, a StatusEvent is generated and encoded into a
notification response.
6. The events that are included in the notification are removed from the subscription
queue and the Client Access server-local last watermark for the subscription is set
to the watermark of the last event that is returned.
See also
Subscribe operation
Unsubscribe operation
GetUserAvailability operation
Article • 03/29/2023 • 4 minutes to read
The Availability service expands distribution lists to retrieve the free/busy status for each
member of the list, as long as the number of mailboxes in the distribution list is less
than 100, which is the maximum number of identities that the GetUserAvailability
operation can request. The free/busy statuses of the members of the distribution list are
merged into a single free/busy status for the whole distribution list.
Client application requests specify the time period of the availability query. The default
time period for the requested information is 42 days. If the user's calendar contains
appointments or meetings that are both within and outside the defined time period for
the query, the appointment is returned.
The appointment and meeting times that are returned are in the same time zone as the
client application that is requesting the meeting.
The Availability service processes the request for each client. The service expands all the
recurring appointments and returns the maximum number of calendar details that the
requesting client has permission to receive.
7 Note
Impersonation
ExchangeImpersonation Identifies the user whom the client is
impersonating. This header is applicable to a
request.
RequestVersion
RequestServerVersion
Identifies the schema version for the operation
request. This header is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded
to the request. This header is applicable to a
response.
TimeZoneContext TimeZoneContext
Specifies a SOAP header that identifies the time
zone to be used for all responses from the server.
All times that are returned from the server will be
converted to the specified time zone. This header
is applicable to a response.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<GetUserAvailabilityRequest
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<t:TimeZone
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Bias>480</Bias>
<StandardTime>
<Bias>0</Bias>
<Time>02:00:00</Time>
<DayOrder>5</DayOrder>
<Month>10</Month>
<DayOfWeek>Sunday</DayOfWeek>
</StandardTime>
<DaylightTime>
<Bias>-60</Bias>
<Time>02:00:00</Time>
<DayOrder>1</DayOrder>
<Month>4</Month>
<DayOfWeek>Sunday</DayOfWeek>
</DaylightTime>
</t:TimeZone>
<MailboxDataArray>
<t:MailboxData>
<t:Email>
<t:Address>[email protected]</t:Address>
</t:Email>
<t:AttendeeType>Required</t:AttendeeType>
<t:ExcludeConflicts>false</t:ExcludeConflicts>
</t:MailboxData>
<t:MailboxData>
<t:Email>
<t:Address>[email protected]</t:Address>
</t:Email>
<t:AttendeeType>Required</t:AttendeeType>
<t:ExcludeConflicts>false</t:ExcludeConflicts>
</t:MailboxData>
</MailboxDataArray>
<t:FreeBusyViewOptions>
<t:TimeWindow>
<t:StartTime>2006-10-16T00:00:00</t:StartTime>
<t:EndTime>2006-10-16T23:59:59</t:EndTime>
</t:TimeWindow>
<t:MergedFreeBusyIntervalInMinutes>60</t:MergedFreeBusyIntervalInMinutes>
<t:RequestedView>DetailedMerged</t:RequestedView>
</t:FreeBusyViewOptions>
</GetUserAvailabilityRequest>
</soap:Body>
</soap:Envelope>
GetUserAvailabilityRequest
TimeZone (Availability)
Bias (UTC)
StandardTime
Bias
Time
DayOrder
Month
DayOfWeek (TimeZone)
DaylightTime
MailboxDataArray
MailboxData
Email (EmailAddressType)
Address (string)
AttendeeType
ExcludeConflicts
FreeBusyViewOptions
TimeWindow
StartTime
EndTime
7 Note
XML
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<GetUserAvailabilityResponse
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<FreeBusyResponseArray>
<FreeBusyResponse>
<ResponseMessage ResponseClass="Success">
<ResponseCode>NoError</ResponseCode>
</ResponseMessage>
<FreeBusyView>
<FreeBusyViewType
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">DetailedM
erged</FreeBusyViewType>
<MergedFreeBusy
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">000002220
220000000000000</MergedFreeBusy>
<CalendarEventArray
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<CalendarEvent>
<StartTime>2006-10-16T06:00:00-07:00</StartTime>
<EndTime>2006-10-16T06:30:00-07:00</EndTime>
<BusyType>Busy</BusyType>
<CalendarEventDetails>
<ID>14B6414B0</ID>
<Location />
<IsMeeting>false</IsMeeting>
<IsRecurring>false</IsRecurring>
<IsException>false</IsException>
<IsReminderSet>false</IsReminderSet>
<IsPrivate>false</IsPrivate>
</CalendarEventDetails>
</CalendarEvent>
<CalendarEvent>
<StartTime>2006-10-16T07:00:00-07:00</StartTime>
<EndTime>2006-10-16T08:00:00-07:00</EndTime>
<BusyType>Busy</BusyType>
<CalendarEventDetails>
<ID>E14B6414B0B</ID>
<Subject>Pick up my groceries</Subject>
<Location />
<IsMeeting>false</IsMeeting>
<IsRecurring>false</IsRecurring>
<IsException>false</IsException>
<IsReminderSet>false</IsReminderSet>
<IsPrivate>false</IsPrivate>
</CalendarEventDetails>
</CalendarEvent>
<CalendarEvent>
<StartTime>2006-10-16T09:40:00-07:00</StartTime>
<EndTime>2006-10-16T10:10:00-07:00</EndTime>
<BusyType>Busy</BusyType>
<CalendarEventDetails>
<ID>14B6414B0B1</ID>
<Location>Kirkland</Location>
<IsMeeting>false</IsMeeting>
<IsRecurring>false</IsRecurring>
<IsException>false</IsException>
<IsReminderSet>false</IsReminderSet>
<IsPrivate>false</IsPrivate>
</CalendarEventDetails>
</CalendarEvent>
</CalendarEventArray>
<WorkingHours
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<TimeZone>
<Bias>480</Bias>
<StandardTime>
<Bias>0</Bias>
<Time>02:00:00</Time>
<DayOrder>5</DayOrder>
<Month>10</Month>
<DayOfWeek>Sunday</DayOfWeek>
</StandardTime>
<DaylightTime>
<Bias>-60</Bias>
<Time>02:00:00</Time>
<DayOrder>1</DayOrder>
<Month>4</Month>
<DayOfWeek>Sunday</DayOfWeek>
</DaylightTime>
</TimeZone>
<WorkingPeriodArray>
<WorkingPeriod>
<StartTimeInMinutes>480</StartTimeInMinutes>
<EndTimeInMinutes>1020</EndTimeInMinutes>
</WorkingPeriod>
</WorkingPeriodArray>
</WorkingHours>
</FreeBusyView>
</FreeBusyResponse>
<FreeBusyResponse>
<ResponseMessage ResponseClass="Success">
<ResponseCode>NoError</ResponseCode>
</ResponseMessage>
<FreeBusyView>
<FreeBusyViewType
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">FreeBusyM
erged</FreeBusyViewType>
<MergedFreeBusy
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">000000001
100000000000000</MergedFreeBusy>
<CalendarEventArray
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<CalendarEvent>
<StartTime>2006-10-16T09:00:00-07:00</StartTime>
<EndTime>2006-10-16T10:00:00-07:00</EndTime>
<BusyType>Tentative</BusyType>
</CalendarEvent>
</CalendarEventArray>
<WorkingHours
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<TimeZone>
<Bias>480</Bias>
<StandardTime>
<Bias>0</Bias>
<Time>02:00:00</Time>
<DayOrder>5</DayOrder>
<Month>10</Month>
<DayOfWeek>Sunday</DayOfWeek>
</StandardTime>
<DaylightTime>
<Bias>-60</Bias>
<Time>02:00:00</Time>
<DayOrder>1</DayOrder>
<Month>4</Month>
<DayOfWeek>Sunday</DayOfWeek>
</DaylightTime>
</TimeZone>
<WorkingPeriodArray>
<WorkingPeriod>
<StartTimeInMinutes>480</StartTimeInMinutes>
<EndTimeInMinutes>1020</EndTimeInMinutes>
</WorkingPeriod>
</WorkingPeriodArray>
</WorkingHours>
</FreeBusyView>
</FreeBusyResponse>
</FreeBusyResponseArray>
</GetUserAvailabilityResponse>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
GetUserAvailabilityResponse
FreeBusyResponseArray
FreeBusyResponse
ResponseMessage
ResponseCode
FreeBusyView
FreeBusyViewType
MergedFreeBusy
CalendarEventArray
CalendarEvent
StartTime
EndTime
BusyType
CalendarEventDetails
ID
Subject (CalendarEventDetails)
Location (CalendarEventDetails)
IsMeeting (CalendarEventDetails)
IsRecurring (CalendarEventDetails)
IsException
IsReminderSet
IsPrivate
WorkingHours
TimeZone (Availability)
Bias (UTC)
StandardTime
Bias
Time
DayOrder
Month
DayOfWeek (TimeZone)
DaylightTime
WorkingPeriodArray
WorkingPeriod
DayOfWeek (WorkingPeriod)
StartTimeInMinutes
EndTimeInMinutes
See also
EWS operations in Exchange
Description
The following example of a GetUserConfiguration request shows how to form a request
to get a user configuration object on the Drafts folder.
Code
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetUserConfiguration>
<m:UserConfigurationName Name="TestConfig">
<t:DistinguishedFolderId Id="drafts"/>
</m:UserConfigurationName>
<m:UserConfigurationProperties>Dictionary</m:UserConfigurationProperties>
</m:GetUserConfiguration>
</soap:Body>
</soap:Envelope>
Description
The following example shows a successful response to the GetUserConfiguration
request.
Code
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="14"
MinorVersion="0"
MajorBuildNumber="639"
MinorBuildNumber="20"
Version="Exchange2010"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetUserConfigurationResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetUserConfigurationResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:UserConfiguration>
<t:UserConfigurationName Name="TestConfig">
<t:DistinguishedFolderId Id="drafts">
</t:DistinguishedFolderId>
</t:UserConfigurationName>
<t:Dictionary>
<t:DictionaryEntry>
<t:DictionaryKey>
<t:Type>String</t:Type>
<t:Value>PhoneNumber</t:Value>
</t:DictionaryKey>
<t:DictionaryValue>
<t:Type>String</t:Type>
<t:Value>555-555-1111</t:Value>
</t:DictionaryValue>
</t:DictionaryEntry>
</t:Dictionary>
</m:UserConfiguration>
</m:GetUserConfigurationResponseMessage>
</m:ResponseMessages>
</m:GetUserConfigurationResponse>
</s:Body>
</s:Envelope>
See also
EWS operations in Exchange
The GetUserOofSettings operation gets a mailbox user's Out of Office (OOF) settings
and messages.
SOAP Headers
The GetUserOofSettings operation can use the SOAP headers that are listed and
described in the following table.
ServerVersion ServerVersionInfo
Identifies the version of the server that responded to
the request.
) Important
If the OOF messages are set by MicrosoftOfficeOutlook, this operation will return
the OOF messages in HTML format.
Description
The following example shows a GetUserOofSettings request that gets a single user's
OOF information.
Code
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetUserOofSettingsRequest
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<Mailbox xmlns
="https://schemas.microsoft.com/exchange/services/2006/types">
<Address>[email protected]</Address>
</Mailbox>
</GetUserOofSettingsRequest>
</soap:Body>
</soap:Envelope>
Request elements
The following elements are used in the request:
GetUserOofSettingsRequest
Mailbox (Availability)
Address (string)
Description
The following example shows a disabled OOF state with the OOF messages.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<GetUserOofSettingsResponse
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseMessage ResponseClass="Success">
<ResponseCode>NoError</ResponseCode>
</ResponseMessage>
<OofSettings
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<OofState>Disabled</OofState>
<ExternalAudience>All</ExternalAudience>
<Duration>
<StartTime>2006-11-03T23:00:00</StartTime>
<EndTime>2006-11-04T23:00:00</EndTime>
</Duration>
<InternalReply>
</InternalReply>
<ExternalReply>
</ExternalReply>
</OofSettings>
<AllowExternalOof>All</AllowExternalOof>
</GetUserOofSettingsResponse>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
GetUserOofSettingsResponse
ResponseMessage
ResponseCode
OofSettings
OofState
ExternalAudience
Duration (UserOofSettings)
StartTime
EndTime
InternalReply
ExternalReply
Message
AllowExternalOof
Description
The following example shows an error response caused by an attempt to access another
user's OOF information.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Microsoft.Exchange.Data.Storage.AccessDeniedException:
User is not mailbox owner. User = S-1-5-21-3642464542-282065186-3871681729-
1155, MailboxGuid = S-1-5-21-3642464542-282065186-3871681729-1156 ---> User
is not mailbox owner. </faultstring>
<faultactor>https://CAS01.example.com/EWS/Exchange.asmx</faultactor>
<detail>
<ErrorCode
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">-21462
33088</ErrorCode>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
See also
EWS XML elements in Exchange
GetUserPhoto operation
Article • 03/29/2023 • 2 minutes to read
The GetUserPhoto operation gets a user photo from Active Directory Domain Services
(AD DS).
7 Note
EWS has both a SOAP and a REST-based operation to get user photos. For
information about the REST interface, see Get user photos by using EWS in
Exchange .
RequestVersion RequestServerVersion Identifies the schema version for the operation request.
This header is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This header is applicable to a response.
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
<t:RequestServerVersion Version="Exchange2013"/>
</soap:Header>
<soap:Body>
<m:GetUserPhoto>
<m:Email>[email protected]</m:Email>
<m:SizeRequested>HR48x48</m:SizeRequested>
</m:GetUserPhoto>
</soap:Body>
</soap:Envelope>
GetUserPhoto
Email (String)
SizeRequested
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="556"
MinorBuildNumber="8"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetUserPhotoResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<HasChanged>true</HasChanged>
<PictureData>/9j/4AAQSkZJRgABAQEAYABgAAD/02</PictureData>
</GetUserPhotoResponse>
</s:Body>
</s:Envelope>
GetUserPhotoResponse
ResponseCode
HasChanged
GetUserPhotoResponse
See also
EWS operations in Exchange
Get user photos by using EWS in Exchange
GetUserRetentionPolicyTags operation
Article • 03/29/2023 • 2 minutes to read
The GetUserRetentionPolicyTags operation gets a list of all default, system folder, and
personal tags that are associated with a user by means of a system policy or that were
applied by the user.
RequestVersion RequestServerVersion Identifies the schema version for the operation request.
This is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This is applicable to a response.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetUserRetentionPolicyTags />
</soap:Body>
</soap:Envelope>
GetUserRetentionPolicyTags
Successful GetUserRetentionPolicyTags
operation response
The following example shows a successful response to a GetUserRetentionPolicyTags
operation request.
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="179"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetUserRetentionPolicyTagsResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<RetentionPolicyTags>
<RetentionPolicyTag
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<RetentionId>e66252f9-794f-4b36-b55e-
d6d95fdf87a3</RetentionId>
<RetentionPeriod>365</RetentionPeriod>
<Type>Personal</Type>
<RetentionAction>DeleteAndAllowRecovery</RetentionAction>
<Description/>
<IsVisible>true</IsVisible>
<OptedInto>false</OptedInto>
<IsArchive>false</IsArchive>
</RetentionPolicyTag>
<RetentionPolicyTag
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<RetentionId>b2a29464-649c-4174-932b-
6aaac9811c89</RetentionId>
<RetentionPeriod>365</RetentionPeriod>
<Type>Personal</Type>
<RetentionAction>MoveToArchive</RetentionAction>
<Description/>
<IsVisible>true</IsVisible>
<OptedInto>false</OptedInto>
<IsArchive>true</IsArchive>
</RetentionPolicyTag>
<RetentionPolicyTag
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<DisplayName>Sent Items</DisplayName>
<RetentionId>b0d32f1b-fbd0-4c1d-ba3e-
ddd1086ea1d3</RetentionId>
<RetentionPeriod>365</RetentionPeriod>
<Type>SentItems</Type>
<RetentionAction>DeleteAndAllowRecovery</RetentionAction>
<Description/>
<IsVisible>false</IsVisible>
<OptedInto>false</OptedInto>
<IsArchive>false</IsArchive>
</RetentionPolicyTag>
<RetentionPolicyTag
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<RetentionId>29fc9b9d-98b0-4c01-acf8-
3996e2afce98</RetentionId>
<RetentionPeriod>365</RetentionPeriod>
<Type>All</Type>
<RetentionAction>DeleteAndAllowRecovery</RetentionAction>
<Description/>
<IsVisible>false</IsVisible>
<OptedInto>false</OptedInto>
<IsArchive>false</IsArchive>
</RetentionPolicyTag>
<RetentionPolicyTag
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<RetentionId>a1a38957-2557-404e-9f32-
53d77c948f62</RetentionId>
<RetentionPeriod>730</RetentionPeriod>
<Type>Personal</Type>
<RetentionAction>DeleteAndAllowRecovery</RetentionAction>
<IsVisible>true</IsVisible>
<OptedInto>true</OptedInto>
<IsArchive>false</IsArchive>
</RetentionPolicyTag>
<RetentionPolicyTag
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<RetentionId>75bc8dbe-a0e8-4e09-9fa3-
fd4c21f49318</RetentionId>
<RetentionPeriod>730</RetentionPeriod>
<Type>All</Type>
<RetentionAction>MoveToArchive</RetentionAction>
<Description/>
<IsVisible>false</IsVisible>
<OptedInto>false</OptedInto>
<IsArchive>true</IsArchive>
</RetentionPolicyTag>
</RetentionPolicyTags>
</GetUserRetentionPolicyTagsResponse>
</s:Body>
</s:Envelope>
GetUserRetentionPolicyTagsResponse
ResponseCode
RetentionPolicyTags
RetentionPolicyTag
DisplayName (string)
RetentionId
RetentionPeriod
Type (ElcFolderType)
RetentionAction
Description
IsVisible
OptedInto
IsArchive
RequestVersion RequestServerVersion Identifies the schema version for the operation request.
This header is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This header is applicable to a response.
7 Note
XML
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
</soap:Header>
<soap:Body >
<m:InstallApp>
<m:Manifest>TUwiIC8+CiAgPC9SdWxlPgo8L09mZmljZUFwcD4=</m:Manifest>
</m:InstallApp>
</soap:Body>
</soap:Envelope>
InstallApp
Manifest
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="556"
MinorBuildNumber="14"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<InstallAppResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
</InstallAppResponse>
</s:Body>
</s:Envelope>
InstallAppResponse
ResponseCode
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="556"
MinorBuildNumber="14"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<InstallAppResponse ResponseClass="Error"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>ErrorInternalServerError</ResponseCode>
<DescriptiveLinkKey>0</DescriptiveLinkKey>
</InstallAppResponse>
</s:Body>
</s:Envelope>
InstallAppResponse
MessageText
ResponseCode
DescriptiveLinkKey
See also
EWS operations in Exchange
DisableApp operation
UninstallApp operation
GetAppManifests
GetAppMarketplaceUrl operation
MarkAllItemsAsRead operation
Article • 03/29/2023 • 3 minutes to read
The MarkAllItemsAsRead operation sets the IsRead property on all items, in one or
more folders, to indicate that all items are either read or unread.
Impersonation
ExchangeImpersonation Identifies the user whom the client application is
impersonating. This header is applicable to a
request.
RequestVersion RequestServerVersion
Identifies the schema version for the operation
request. This header is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This header is applicable to a response.
7 Note
All item identifiers and change keys in this article have been shortened to preserve
readability. Change keys are not required for this operation.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:MarkAllItemsAsRead>
<m:ReadFlag>true</m:ReadFlag>
<m:SuppressReadReceipts>true</m:SuppressReadReceipts>
<m:FolderIds>
<t:FolderId Id="AAMkADEzOTExYZRAAA="
ChangeKey="AQAAAAA3vA==" />
</m:FolderIds>
</m:MarkAllItemsAsRead>
</soap:Body>
</soap:Envelope>
MarkAllItemsAsRead
ReadFlag
SuppressReadReceipts
FolderIds
FolderId
Successful MarkAllItemsAsRead operation
response
The following example shows a successful response to a MarkAllItemsAsRead operation
request to mark all items in a folder as read.
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="545"
MinorBuildNumber="11"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:MarkAllItemsAsReadResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:MarkAllItemsAsReadResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
</m:MarkAllItemsAsReadResponseMessage>
</m:ResponseMessages>
</m:MarkAllItemsAsReadResponse>
</s:Body>
</s:Envelope>
MarkAllItemsAsReadResponse
ResponseMessages
MarkAllItemsAsReadResponseMessage
ResponseCode
MarkAllItemsAsRead operation request
example: Mark all items in a folder as unread
The following example of a MarkAllItemsAsRead operation request shows how to set
the IsRead property to false on all items in a folder. This example also shows that read
receipts are not sent in response to any read receipt requests.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:MarkAllItemsAsRead>
<m:ReadFlag>false</m:ReadFlag>
<m:SuppressReadReceipts>true</m:SuppressReadReceipts>
<m:FolderIds>
<t:FolderId Id="AAMkADEzOTExYZRAAA="
ChangeKey="AQAAAAA3vA==" />
</m:FolderIds>
</m:MarkAllItemsAsRead>
</soap:Body>
</soap:Envelope>
A successful response to a request to mark all items as read is the same as the response
to a request to mark all items as unread.
MarkAllItemsAsRead
ReadFlag
SuppressReadReceipts
FolderIds
FolderId
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="545"
MinorBuildNumber="11"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:MarkAllItemsAsReadResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:MarkAllItemsAsReadResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorItemNotFound</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
</m:MarkAllItemsAsReadResponseMessage>
</m:ResponseMessages>
</m:MarkAllItemsAsReadResponse>
</s:Body>
</s:Envelope>
MarkAllItemsAsReadResponse
ResponseMessages
MarkAllItemsAsReadResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
See also
EWS operations in Exchange
FindFolder operation
MarkAsJunk operation
Article • 03/29/2023 • 5 minutes to read
The MarkAsJunk operation adds and removes users from the blocked email list and
moves email messages to the Junk Email folder.
If the IsJunk attribute is set to true, and the MoveItem attribute is set to true, the
sender of the target email message is added to the blocked sender list and the
email message is moved to the Junk Dmail folder.
If the IsJunk attribute is set to true, and the MoveItem attribute is set to false, the
sender of the target email message is added to the blocked sender list and the
email message is not moved from the folder.
If the IsJunk attribute is set to false, and the MoveItem attribute is set to true, the
sender of the target email messageis removed from the blocked sender list and
the email message is moved to the Inbox folder.
If the IsJunk attribute is set to false, and the MoveItem attribute is set to false, the
sender of the target email message is removed from the blocked sender list and
the email message is not moved from the folder.
) Important
The contents of the blocked sender list are not discoverable from EWS. If a sender
is added to the blocked sender list, you need to keep a copy of an email message
sent by the blocked sender to unblock the sender in the future.
MarkAsJunk operation SOAP headers
The MarkAsJunk operation can use the SOAP headers that are listed in the following
table.
Impersonation
ExchangeImpersonation Identifies the user whom the client application is
impersonating. This header is applicable to a
request.
RequestVersion RequestServerVersion
Identifies the schema version for the operation
request. This header is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This header is applicable to a response.
7 Note
All item identifiers and change keys in this article have been shortened to preserve
readability.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:ItemIds>
<t:ItemId Id="AAMkAD=" ChangeKey="CQAAABYA" />
</m:ItemIds>
</m:MarkAsJunk>
</soap:Body>
</soap:Envelope>
MarkAsJunk
ItemIds
ItemId
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="545"
MinorBuildNumber="11"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:MarkAsJunkResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:MarkAsJunkResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
</m:MarkAsJunkResponseMessage>
</m:ResponseMessages>
</m:MarkAsJunkResponse>
</s:Body>
</s:Envelope>
MarkAsJunkResponse
ResponseMessages
MarkAsJunkResponseMessage
ResponseCode
MovedItemId
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:ItemIds>
</m:ItemIds>
</m:MarkAsJunk>
</soap:Body>
</soap:Envelope>
A successful response for removing a sender from the blocked sender list is the same as
the response for adding a sender to the blocked sender list.
MarkAsJunk
ItemIds
ItemId
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="545"
MinorBuildNumber="11"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:MarkAsJunkResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:MarkAsJunkResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorItemNotFound</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
</m:MarkAsJunkResponseMessage>
</m:ResponseMessages>
</m:MarkAsJunkResponse>
</s:Body>
</s:Envelope>
MarkAsJunkResponse
ResponseMessages
MarkAsJunkResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
See also
EWS operations in Exchange
FindItem operation
MoveFolder operation
Article • 03/29/2023 • 2 minutes to read
The MoveFolder operation moves folders from a specified folder and puts them in
another folder.
Remarks
The MoveFolder operation is similar to the CopyFolder operation. You cannot move
distinguished folders. You can move multiple folders at one time to the destination
folder.
Description
The following example of a MoveFolder request shows how to form a request to move a
folder identified by the FolderId and put the folder in the Junk E-mail distinguished
folder.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<MoveFolder
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ToFolderId>
<t:DistinguishedFolderId Id="junkemail"/>
</ToFolderId>
<FolderIds>
<t:FolderId Id="AScAc"/>
</FolderIds>
</MoveFolder>
</soap:Body>
</soap:Envelope>
Comments
7 Note
The value of the ID attribute of the FolderId element has been shortened for
readability.
Request elements
This MoveFolder request includes the following elements:
MoveFolder
ToFolderId
DistinguishedFolderId
FolderIds
FolderId
See the schema for additional elements that you can use to form a MoveFolder request.
7 Note
The default location of the schema is in the EWS virtual directory on the computer
that has the Client Access server role installed.
Description
The following example shows a successful response to the MoveFolder request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<MoveFolderResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:MoveFolderResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Folders>
<t:Folder>
</t:Folder>
</m:Folders>
</m:MoveFolderResponseMessage>
</m:ResponseMessages>
</MoveFolderResponse>
</soap:Body>
</soap:Envelope>
Comments
7 Note
The folder ID and the change key have been shortened to preserve readability.
The FolderId that is returned in the response represents the folder that was moved to
the new the folder location.
Response elements
The MoveFolder response includes the following elements:
MoveFolderResponse
ResponseMessages
MoveFolderResponseMessage
ResponseCode
Folders
Folder
FolderId
Description
The following example shows an error response that occurs when you try to move a
distinguished folder.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<MoveFolderResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:MoveFolderResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorMoveDistinguishedFolder</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
<m:Folders />
</m:MoveFolderResponseMessage>
</m:ResponseMessages>
</MoveFolderResponse>
</soap:Body>
</soap:Envelope>
ResponseMessages
MoveFolderResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
Folders
See also
CopyFolder operation
MoveItem operation
Article • 03/29/2023 • 2 minutes to read
The MoveItem operation is used to move one or more items to a single destination
folder.
Description
The following example of a MoveItem request shows how to move an item to the Drafts
folder.
Code
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<MoveItem
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<ToFolderId>
<t:DistinguishedFolderId Id="drafts"/>
</ToFolderId>
<ItemIds>
</ItemIds>
</MoveItem>
</soap:Body>
</soap:Envelope>
Comments
The ToFolderId element specifies the folder to which the items will be moved. Note that
all items listed in the ItemIds collection will end up in the destination folder. You must
make separate MoveItem calls to place items in different destination folders.
7 Note
The item identifier and change key have been shortened to preserve readability.
Request elements
The following elements are used in the request:
MoveItem
ToFolderId
DistinguishedFolderId
ItemIds
ItemId
Description
The following example shows a successful response to a MoveItem request.
The item identifier of the new item is returned in the response message. Item identifiers
are not returned in responses for cross-mailbox or mailbox to public folder MoveItem
operations.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"/>
</soap:Header>
<soap:Body>
<MoveItemResponse
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:MoveItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:Message>
<t:ItemID Id="AAMkAd" ChangeKey="FwAAABY" />
</t:Message>
</m:Items>
</m:MoveItemResponseMessage>
</m:ResponseMessages>
</MoveItemResponse>
</soap:Body>
</soap:Envelope>
Comments
The MoveItem operation will indicate success if the move was successful.
ServerVersionInfo
MoveItemResponse
ResponseMessages
MoveItemResponseMessage
ResponseCode
Items
See also
EWS XML elements in Exchange
PerformReminderAction operation
Article • 03/29/2023 • 2 minutes to read
To dismiss a reminder, set the ActionType to Dismiss. When the server processes the
request, the server changes the IsReminderSet value for the item from True to False.
Impersonation
ExchangeImpersonation Identifies the user whom the client application is
impersonating. This header is applicable to a
request.
RequestVersion RequestServerVersion
Identifies the schema version for the operation
request. This header is applicable to a request.
Header name Element Description
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This header is applicable to a response.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:PerformReminderAction>
<m:ReminderItemActions>
<t:ReminderItemAction>
<t:ActionType>Snooze</t:ActionType>
<t:ItemId Id="vwAAAA=="
ChangeKey="DwAAABQAAACOs0HEMq1WTKpI7sNu5qXNAAAUDA=="/>
<t:NewReminderTime>2014-04-16T17:00:00Z</t:NewReminderTime>
</t:ReminderItemAction>
</m:ReminderItemActions>
</m:PerformReminderAction>
</soap:Body>
</soap:Envelope>
7 Note
PerformReminderAction
ReminderItemActions
ReminderItemAction
ActionType
ItemId
NewReminderTime
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="921"
MinorBuildNumber="20"
Version="V2_10"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<PerformReminderActionResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<UpdatedItemIds>
<ItemId Id="vwAAAA=="
ChangeKey="DwAAABYAAAB4to43JyybTYwHLBM1k8MxAAAJKP+S"/>
</UpdatedItemIds>
</PerformReminderActionResponse>
</s:Body>
</s:Envelope>
PerformReminderActionResponse
ResponseCode
UpdatedItemIds
ItemId
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="918"
MinorBuildNumber="7"
Version="V2_10"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<PerformReminderActionResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<UpdatedItemIds />
</PerformReminderActionResponse>
</s:Body>
</s:Envelope>
ResponseCode
UpdatedItemIds
For additional error codes that are generic to EWS, see ResponseCode.
See also
GetReminders operation
PlayOnPhone operation (EWS)
Article • 03/29/2023 • 2 minutes to read
The PlayOnPhone operation initiates an outbound call and plays a message over the
telephone.
Description
The following example of a PlayOnPhone request shows how to form a request to play
a message on a phone.
Code
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<soap:Header>
</soap:Header>
<soap:Body>
<m:PlayOnPhone>
<m:ItemId Id="AkAjzQTbY/i="/>
<m:DialString>5555551212</m:DialString>
</m:PlayOnPhone>
</soap:Body>
</soap:Envelope>
Description
The following example shows a successful response to the PlayOnPhone request.
Code
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="14"
MinorVersion="0"
MajorBuildNumber="639"
MinorBuildNumber="20"
Version="Exchange2010"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<PlayOnPhoneResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<PhoneCallId Id="ZWMtWYtMY29t"/>
</PlayOnPhoneResponse>
</s:Body>
</s:Envelope>
See also
EWS operations in Exchange
EWS XML elements in Exchange
RefreshSharingFolder operation
Article • 03/29/2023 • 2 minutes to read
The RefreshSharingFolder operation refreshes the specified local folder with the latest
data from the folder that is being shared.
SOAP Headers
The RefreshSharingFolder operation can use the SOAP headers that are listed and
described in the following table.
RequestVersion RequestServerVersion Identifies the schema version for the operation request.
ServerVersion ServerVersionInfo
Identifies the version of the server that responded to
the request.
Description
The following example shows how to form a request to refresh the specified local folder
with the latest data from the folder that is being shared. The SharingFolderId element
specifies the identifier of the local folder to be refreshed.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Header>
<t:RequestServerVersion Version="Exchange2010"/>
</soap:Header>
<soap:Body>
<RefreshSharingFolder
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
</RefreshSharingFolder>
</soap:Body>
</soap:Envelope>
Request elements
The following elements are used in the request:
RequestServerVersion
RefreshSharingFolder
SharingFolderId
Description
The following example shows a successful response to a RefreshSharingFolder request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<t:ServerVersionInfo MajorVersion="14"
MinorVersion="0"
MajorBuildNumber="639"
MinorBuildNumber="11"
Version="Exchange2010"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<RefreshSharingFolderResponseMessage ResponseClass="Success"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseCode>NoError</m:ResponseCode>
</RefreshSharingFolderResponseMessage>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
RefreshSharingFolderResponseMessage
ResponseCode
Description
The following example shows an error response to a RefreshSharingFolder request. In
this example, the RefreshSharingFolder request failed because a subscription that
corresponds to the specified local folder was not found.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<t:ServerVersionInfo MajorVersion="14"
MinorVersion="0"
MajorBuildNumber="639"
MinorBuildNumber="11"
Version="Exchange2010"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<RefreshSharingFolderResponseMessage ResponseClass="Error"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseCode>ErrorSharingSynchronizationFailed</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
<m:MessageXml>
<t:Value
Name="ErrorDetails">Microsoft.Exchange.InfoWorker.Common.Sharing.Subscriptio
nNotFoundException: The subscription wasn't found.;</t:Value>
</m:MessageXml>
</RefreshSharingFolderResponseMessage>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
RefreshSharingFolderResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
MessageXml
See also
RefreshSharingFolder
RefreshSharingFolderType
RefreshSharingFolderResponseMessage
RefreshSharingFolderResponseMessageType
U Caution
Do not use the DeleteItem operation to remove contacts from a contact list.
Additional server-side processing might have to occur to support removing a
contact from the Lync Contacts list. Note that the Lync Contacts list is the
conceptual equivalent of the default Lync Contacts mailbox folder.
Impersonation
ExchangeImpersonation Identifies the user whom the client application is
impersonating. This header is applicable to a
request.
RequestVersion RequestServerVersion
Identifies the schema version for the operation
request. This header is applicable to a request.
Header name Element Description
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This header is applicable to a response.
7 Note
All item identifiers and change keys in this article have been shortened to preserve
readability.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:RemoveContactFromImList>
<m:ContactId Id=""/>
</m:RemoveContactFromImList>
</soap:Body>
</soap:Envelope>
RemoveContactFromImList
ContactId
Successful RemoveContactFromImList
operation response
The following example shows a successful response to a RemoveContactFromImList
operation request to remove a contact from the Lync Contacts list.
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="556"
MinorBuildNumber="8"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<RemoveContactFromImListResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
</RemoveContactFromImListResponse>
</s:Body>
</s:Envelope>
RemoveContactFromImListResponse
ResponseCode
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="556"
MinorBuildNumber="8"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<RemoveContactFromImListResponse ResponseClass="Error"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>ErrorItemNotFound</ResponseCode>
<DescriptiveLinkKey>0</DescriptiveLinkKey>
</RemoveContactFromImListResponse>
</s:Body>
</s:Envelope>
The following elements are used in the error response SOAP body:
RemoveContactFromImListResponse
MessageText
ResponseCode
DescriptiveLinkKey
See also
EWS operations in Exchange
GetImItemList operation
RemoveDelegate operation
Article • 03/29/2023 • 2 minutes to read
The RemoveDelegate operation removes one or more delegates from a user's mailbox.
SOAP Headers
The RemoveDelegate operation can use the SOAP headers that are listed and described
in the following table.
RequestVersion RequestServerVersion
Identifies the schema version for the operation
request.
ServerVersion ServerVersionInfo
Identifies the version of the server that responded to
the request.
Description
The following code example shows how to remove two delegates from user1's mailbox.
In this example, one delegate is removed by using the delegate's primary SMTP address,
and the other one is removed by using the delegate's security identifier (SID).
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Header>
<t:RequestServerVersion Version="Exchange2007_SP1"/>
</soap:Header>
<soap:Body>
<RemoveDelegate
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</Mailbox>
<UserIds>
<t:UserId>
<t:PrimarySmtpAddress>[email protected]</t:PrimarySmtpAddress>
</t:UserId>
<t:UserId>
<t:SID>S-1-5-21-1333220396-2200287332-232816053-1118</t:SID>
</t:UserId>
</UserIds>
</RemoveDelegate>
</soap:Body>
</soap:Envelope>
Comments
The RemoveDelegate operation does not require the specified delegate user to have a
mailbox or to exist in the Active Directory directory service. The RemoveDelegate
operation will succeed if the delegate entry is orphaned.
Description
The following example of a RemoveDelegate response shows a successful response to a
RemoveDelegate request. The response contains a
DelegateUserResponseMessageType element for each delegate that is removed from
the mailbox.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<t:ServerVersionInfo MajorVersion="8"
MinorVersion="1"
MajorBuildNumber="206"
MinorBuildNumber="0"
Version="Exchange2007_SP1"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<m:RemoveDelegateResponse
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
ResponseClass="Success"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseCode>NoError</m:ResponseCode>
<m:ResponseMessages>
<m:DelegateUserResponseMessageType ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
</m:DelegateUserResponseMessageType>
<m:DelegateUserResponseMessageType ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
</m:DelegateUserResponseMessageType>
</m:ResponseMessages>
</m:RemoveDelegateResponse>
</soap:Body>
</soap:Envelope>
Description
The following example of a RemoveDelegate error response shows the results of a
request to remove a delegate that does not exist.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<t:ServerVersionInfo MajorVersion="8"
MinorVersion="1"
MajorBuildNumber="206"
MinorBuildNumber="0"
Version="Exchange2007_SP1"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<m:RemoveDelegateResponse
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
ResponseClass="Success"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseCode>NoError</m:ResponseCode>
<m:ResponseMessages>
<m:DelegateUserResponseMessageType ResponseClass="Error">
<m:ResponseCode>ErrorNotDelegate</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
</m:DelegateUserResponseMessageType>
</m:ResponseMessages>
</m:RemoveDelegateResponse>
</soap:Body>
</soap:Envelope>
See also
EWS XML elements in Exchange
RemoveDistributionGroupFromImList
operation
Article • 03/29/2023 • 2 minutes to read
Impersonation
ExchangeImpersonation Identifies the user whom the client application is
impersonating. This header is applicable to a
request.
RequestVersion RequestServerVersion
Identifies the schema version for the operation
request. This header is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This header is applicable to a response.
RemoveDistributionGroupFromImList
operation request example: Remove a
distribution group from an IM list
The following example of a RemoveDistributionGroupFromImList operation request
shows how to remove a distribution group from an IM group. The
RemoveDistributionGroupFromImList operation accepts the unique group identifier to
identify the distribution group to remove from the IM list. The ExchangeStoreId element
that is returned in the response for the GetImItemList operation and the
AddDistributionGroupToImList operation identifies distribution groups that can be
removed from the IM list.
7 Note
All item identifiers and change keys in this article have been shortened to preserve
readability.
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
<t:MailboxCulture>en-US</t:MailboxCulture>
</soap:Header>
<soap:Body >
<m:RemoveDistributionGroupFromImList>
<m:GroupId Id="AAMkADEzO4QrAABmEh5oAAA="/>
</m:RemoveDistributionGroupFromImList>
</soap:Body>
</soap:Envelope>
RemoveDistributionGroupFromImList
GroupId
Successful
RemoveDistributionGroupFromImList
operation response
The following example shows a successful response to a
RemoveDistributionGroupFromImList operation request to a remove a distribution
group from an IM group.
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="556"
MinorBuildNumber="8"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<RemoveDistributionGroupFromImListResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
</RemoveDistributionGroupFromImListResponse>
</s:Body>
</s:Envelope>
RemoveDistributionGroupFromImListResponse
ResponseCode
RemoveDistributionGroupFromImList
operation error response example
The following example shows an error response to a
RemoveDistributionGroupFromImList operation request. This is a response to a request
to remove a distribution group that has already been removed from the mailbox.
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="556"
MinorBuildNumber="8"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<RemoveDistributionGroupFromImListResponse ResponseClass="Error"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>ErrorItemNotFound</ResponseCode>
<DescriptiveLinkKey>0</DescriptiveLinkKey>
</RemoveDistributionGroupFromImListResponse>
</s:Body>
</s:Envelope>
The following elements are used in the error response SOAP body:
RemoveDistributionGroupFromImListResponse
MessageText
ResponseCode
DescriptiveLinkKey
See also
EWS operations in Exchange
GetImItemList operation
AddDistributionGroupToImList operation
Impersonation
ExchangeImpersonation Identifies the user whom the client application is
impersonating. This header is applicable to a
request.
RequestVersion RequestServerVersion
Identifies the schema version for the operation
request. This header is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This header is applicable to a response.
RemoveImContactFromGroup operation
request example
The following example of a RemoveImContactFromGroup operation request shows how
to remove an IM contact from an IM group.
7 Note
The group and contact identifiers have been shortened to preserve readability.
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
<t:MailboxCulture>en-US</t:MailboxCulture>
</soap:Header>
<soap:Body >
<m:RemoveImContactFromGroup>
<m:ContactId Id="AAMkAGQ1MjJjMTBkLTcAAAAvcAAA="
ChangeKey="EQAAABYAAABtF8oI7iVOQ"/>
<m:GroupId Id="AAMkAGQ1MjJjMTBkbWAAAAAAQKAAA="
ChangeKey="EgAAAA=="/>
</m:RemoveImContactFromGroup>
</soap:Body>
</soap:Envelope>
RemoveImContactFromGroup
ContactId
GroupId
Successful RemoveImContactFromGroup
operation response
The following example shows a successful response to a RemoveImContactFromGroup
operation request.
XML
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="349"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<RemoveImContactFromGroupResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
</RemoveImContactFromGroupResponse>
</s:Body>
</s:Envelope>
RemoveImContactFromGroupResponse
ResponseCode
RemoveImContactFromGroup operation
ErrorInvalidImContactId error response
The following example shows an error response to a RemoveImContactFromGroup
operation request. The following error response occurs when an attempt is made to
remove a contact item that does not exist in the IM group.
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="349"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<RemoveImContactFromGroupResponse ResponseClass="Error"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>ErrorInvalidImContactId</ResponseCode>
<DescriptiveLinkKey>0</DescriptiveLinkKey>
</RemoveImContactFromGroupResponse>
</s:Body>
</s:Envelope>
RemoveImContactFromGroupResponse
MessageText
ResponseCode
DescriptiveLinkKey
See also
People and contacts in EWS in Exchange
AddDistributionGroupToImList
AddImContactToGroup
AddImGroup operation
AddNewImContactToGroup operation
GetImItemList operation
GetImItems
RemoveContactFromImList
RemoveDistributionGroupFromImList
RemoveImGroup operation
SetImGroup operation
SetImListMigrationCompleted
RemoveImGroup operation
Article • 03/29/2023 • 2 minutes to read
The RemoveImGroup operation removes a single instant messaging (IM) group from a
mailbox.
Impersonation
ExchangeImpersonation Identifies the user whom the client application is
impersonating. This header is applicable to a
request.
RequestVersion RequestServerVersion
Identifies the schema version for the operation
request. This header is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This header is applicable to a response.
7 Note
The group ID has been shortened to preserve readability.
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
<t:MailboxCulture>en-US</t:MailboxCulture>
</soap:Header>
<soap:Body >
<m:RemoveImGroup>
<m:GroupId Id="AAMkAGQ1MjJjMTBkLTc4Y2UtNDA5hQoTbWAAAAAAQRAAA="
ChangeKey="EgAAAA=="/>
</m:RemoveImGroup>
</soap:Body>
</soap:Envelope>
RemoveImGroup
GroupId
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="349"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<RemoveImGroupResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
</RemoveImGroupResponse>
</s:Body>
</s:Envelope>
RemoveImGroupResponse
ResponseCode
RemoveImGroup operation
ErrorInvalidImGroupId error response
The following example shows an error response to a RemoveImGroup operation
request. The following error response occurs when an attempt is made to remove a
group that does not exist in the mailbox.
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="349"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<RemoveImGroupResponse ResponseClass="Error"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>ErrorInvalidImGroupId</ResponseCode>
<DescriptiveLinkKey>0</DescriptiveLinkKey>
</RemoveImGroupResponse>
</s:Body>
</s:Envelope>
RemoveImGroupResponse
MessageText
ResponseCode
DescriptiveLinkKey
For additional error codes that are generic to EWS and specific to this operation, see
ResponseCode.
RemoveImGroup operation
ErrorInvalidIdMalformed error response
The following example shows an error response to a RemoveImGroup operation
request. The following error response occurs when an attempt is made to remove a
group with an incorrectly formatted group identifier.
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="349"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<RemoveImGroupResponse ResponseClass="Error"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<MessageText>Id is malformed.</MessageText>
<ResponseCode>ErrorInvalidIdMalformed</ResponseCode>
<DescriptiveLinkKey>0</DescriptiveLinkKey>
</RemoveImGroupResponse>
</s:Body>
</s:Envelope>
RemoveImGroupResponse
MessageText
ResponseCode
DescriptiveLinkKey
See also
People and contacts in EWS in Exchange
AddImGroup operation
SetImGroup operation
ResolveNames operation
Article • 03/29/2023 • 3 minutes to read
The ResolveNames operation resolves ambiguous email addresses and display names.
Remarks
The ResolveNames response returns a maximum of 100 candidates. The 100 candidates
that are returned are the first 100 that are encountered in the lookup operation.
Email addresses with prefixed routing types, such as smtp or sip, are saved in a
multivalue array. The ResolveNames operation performs a partial match against each
value of that array when you add the routing type at the beginning of the unresolved
name, such as "sip:[email protected]". If you don't specify a routing type,
ResolveNames will default to the routing type of smtp, match it to a primary smtp
address property, and not search the multivalue array.
Only one ambiguous name can be specified in a single request. Active Directory is
searched first, and then the user's contact folder is searched. Resolved entries from a
user's contact folder have a non-null ItemId property, which can then be used in a
GetItem request. If it is the ID of a private distribution list, then it can be used in an
ExpandDL operation. If the ReturnFullContactData attribute is set to true, then Active
Directory entries found with the ResolveNames operation will return additional
properties that describe a Contact. The ReturnFullContactData attribute does not affect
the data that is returned for contacts and private distribution lists from the user's
contact folder.
Description
The following example of a ResolveNames request shows how to resolve the entry of
User.
Code
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<ResolveNames
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
ReturnFullContactData="true">
<UnresolvedEntry>User2</UnresolvedEntry>
</ResolveNames>
</soap:Body>
</soap:Envelope>
Comments
The response to this request will return all entries that start with "Jo" or "Mi." The
returned items are public mailboxes, public and private distribution lists, and contacts.
7 Note
ResolveNames
UnresolvedEntry
Description
The following example shows a successful response to a ResolveNames request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<ResolveNamesResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:ResolveNamesResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:ResolutionSet TotalItemsInView="1"
IncludesLastItemInRange="true">
<t:Resolution>
<t:Mailbox>
<t:Name>User2</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
<t:MailboxType>Mailbox</t:MailboxType>
</t:Mailbox>
<t:Contact>
<t:DisplayName>User2</t:DisplayName>
<t:EmailAddresses>
<t:Entry
Key="EmailAddress1">SMTP:[email protected]</t:Entry>
</t:EmailAddresses>
<t:ContactSource>ActiveDirectory</t:ContactSource>
</t:Contact>
</t:Resolution>
</m:ResolutionSet>
</m:ResolveNamesResponseMessage>
</m:ResponseMessages>
</ResolveNamesResponse>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
ResolveNamesResponse
ResponseMessages
ResolveNamesResponseMessage
ResponseCode
ResolutionSet
Resolution
Mailbox
Name (EmailAddressType)
EmailAddress (NonEmptyStringType)
RoutingType (EmailAddressType)
MailboxType
Contact
DisplayName (string)
EmailAddresses
Entry (EmailAddress)
ContactSource
Description
The following example shows an error response to a ResolveNames request. The error is
caused by trying to resolve a name that cannot be resolved.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<ResolveNamesResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:ResolveNamesResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorNameResolutionNoResults</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
</m:ResolveNamesResponseMessage>
</m:ResponseMessages>
</ResolveNamesResponse>
</soap:Body>
</soap:Envelope>
ResolveNamesResponse
ResponseMessages
ResolveNamesResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
See also
ExpandDL operation
7 Note
ManagementRole ManagementRole
Identifies the server roles that are necessary in order
for the caller to make the request. This header is
applicable to a request.
RequestVersion
RequestServerVersion Identifies the schema version for the operation
request. This header is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This header is applicable to a response.
SearchMailboxes operation request example:
Search mailboxes for number of search term
hits
The following example of a SearchMailboxes operation request shows how to use two
different queries to search three different mailboxes for statistical information about
how many times a term appears in each mailbox.
7 Note
In this example, the Query element is intentionaly left blank. This shows how a
successful request can contain error conditions on a per mailbox search basis.
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
</soap:Header>
<soap:Body >
<m:SearchMailboxes>
<m:SearchQueries>
<t:MailboxQuery>
<t:Query>Test Item</t:Query>
<t:MailboxSearchScopes>
<t:MailboxSearchScope>
<t:Mailbox>/o=First Organization/ou=Exchange
Administrative Group
(FYDLT)/cn=Recipients/cn=12311a742f0e47e392c8201a60d13ecf-Steve</t:Mailbox>
<t:SearchScope>All</t:SearchScope>
</t:MailboxSearchScope>
<t:MailboxSearchScope>
<t:Mailbox>/o=First Organization/ou=Exchange
Administrative Group
(FYDLT)/cn=Recipients/cn=f00c9f70539844beb52341d8f40c572e-Antho</t:Mailbox>
<t:SearchScope>PrimaryOnly</t:SearchScope>
</t:MailboxSearchScope>
</t:MailboxSearchScopes>
</t:MailboxQuery>
<t:MailboxQuery>
<t:Query></t:Query>
<t:MailboxSearchScopes>
<t:MailboxSearchScope>
<t:Mailbox>/o=First Organization/ou=Exchange
Administrative Group
(FYDLT)/cn=Recipients/cn=accba4fd5ddf12214a0e82ce1645f4e-Danie</t:Mailbox>
<t:SearchScope>ArchiveOnly</t:SearchScope>
</t:MailboxSearchScope>
</t:MailboxSearchScopes>
</t:MailboxQuery>
</m:SearchQueries>
<m:ResultType>StatisticsOnly</m:ResultType>
</m:SearchMailboxes>
</soap:Body>
</soap:Envelope>
SearchMailboxes
SearchQueries
MailboxQuery
Query
MailboxSearchScopes
MailboxSearchScope
Mailbox (string)
SearchScope
ResultType
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="526"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:SearchMailboxesResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:SearchMailboxesResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:SearchMailboxesResult>
<t:SearchQueries>
<t:MailboxQuery>
<t:Query>Test Item</t:Query>
<t:MailboxSearchScopes>
<t:MailboxSearchScope>
<t:Mailbox>/o=First Organization/ou=Exchange
Administrative Group
(FYPDLT)/cn=Recipients/cn=35181a94327e392c8201a60d13ecf-Steve</t:Mailbox>
<t:SearchScope>All</t:SearchScope>
</t:MailboxSearchScope>
<t:MailboxSearchScope>
<t:Mailbox>/o=First Organization/ou=Exchange
Administrative Group (FYPDLT)/cn=Recipients/cn=f00c9f789572-
beb04001d8f40c572e-Antho</t:Mailbox>
<t:SearchScope>PrimaryOnly</t:SearchScope>
</t:MailboxSearchScope>
</t:MailboxSearchScopes>
</t:MailboxQuery>
</t:SearchQueries>
<t:ResultType>StatisticsOnly</t:ResultType>
<t:ItemCount>2</t:ItemCount>
<t:Size>20206</t:Size>
<t:PageItemCount>0</t:PageItemCount>
<t:PageItemSize>0</t:PageItemSize>
<t:KeywordStats>
<t:KeywordStat>
<t:Keyword>Test Item</t:Keyword>
<t:ItemHits>2</t:ItemHits>
<t:Size>20206</t:Size>
</t:KeywordStat>
</t:KeywordStats>
<t:FailedMailboxes>
<t:FailedMailbox>
<t:Mailbox>/o=First Organization/ou=Exchange
Administrative Group
(FYPDLT)/cn=Recipients/cn=accba4as3df234234a0e82ce1645f4e-Danie</t:Mailbox>
<t:ErrorCode>0</t:ErrorCode>
<t:IsArchive>true</t:IsArchive>
</t:FailedMailbox>
</t:FailedMailboxes>
</m:SearchMailboxesResult>
</m:SearchMailboxesResponseMessage>
</m:ResponseMessages>
</m:SearchMailboxesResponse>
</s:Body>
</s:Envelope>
SearchMailboxesResponse
ResponseMessages
SearchMailboxesResponseMessage
ResponseCode
SearchMailboxesResult
SearchQueries
MailboxQuery
Query
MailboxSearchScopes
MailboxSearchScope
Mailbox (string)
SearchScope
ResultType
ItemCount
Size (long)
PageItemCount
KeywordStats
KeywordStat
Keyword
ItemHits
FailedMailboxes
FailedMailbox
Mailbox (string)
ErrorCode (int)
ErrorMessage
IsArchive
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="526"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:SearchMailboxesResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:SearchMailboxesResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorInvalidOperation</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
<m:SearchMailboxesResult>
<t:SearchQueries>
<t:MailboxQuery>
<t:Query>subject:Test Item</t:Query>
<t:MailboxSearchScopes>
<t:MailboxSearchScope>
<t:Mailbox>[email protected]</t:Mailbox>
<t:SearchScope>All</t:SearchScope>
</t:MailboxSearchScope>
</t:MailboxSearchScopes>
</t:MailboxQuery>
</t:SearchQueries>
<t:ResultType>StatisticsOnly</t:ResultType>
<t:ItemCount>0</t:ItemCount>
<t:Size>0</t:Size>
<t:PageItemCount>0</t:PageItemCount>
<t:PageItemSize>0</t:PageItemSize>
<t:FailedMailboxes>
<t:FailedMailbox>
<t:Mailbox>[email protected]</t:Mailbox>
<t:ErrorCode>0</t:ErrorCode>
<t:IsArchive>false</t:IsArchive>
</t:FailedMailbox>
</t:FailedMailboxes>
</m:SearchMailboxesResult>
</m:SearchMailboxesResponseMessage>
</m:ResponseMessages>
</m:SearchMailboxesResponse>
</s:Body>
</s:Envelope>
SearchMailboxesResponse
ResponseMessages
SearchMailboxesResponseMessage
ResponseCode
SearchMailboxesResult
SearchQueries
MailboxQuery
Query
MailboxSearchScopes
MailboxSearchScope
Mailbox (string)
SearchScope
ResultType
ItemCount
Size (long)
PageItemCount
PageItemSize
FailedMailboxes
FailedMailbox
Mailbox (string)
ErrorCode (int)
ErrorMessage
IsArchive
For additional error codes that are generic to EWS and specific to this operation, see
ResponseCode.
See also
EWS operations in Exchange
GetSearchableMailboxes operation
SetHoldOnMailboxes operation
GetHoldOnMailboxes operation
GetDiscoverySearchConfiguration operation
GetNonIndexableItemDetails operation
GetNonIndexableItemStatistics operation
SendItem operation
Article • 03/29/2023 • 2 minutes to read
The SendItem operation is used to send e-mail messages that are located in the
Exchange store.
Description
The following example shows how to send an e-mail message.
Code
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<SendItem
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
SaveItemToFolder="true">
<ItemIds>
</ItemIds>
</SendItem>
</soap:Body>
</soap:Envelope>
Comments
The item identifier has been shortened to preserve readability.
Request elements
The following elements are used in the request:
SendItem
ItemIds
ItemId
Description
The following example shows a successful SendItem response.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<SendItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:SendItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
</m:SendItemResponseMessage>
</m:ResponseMessages>
</SendItemResponse>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
SendItemResponse
ResponseMessages
SendItemResponseMessage
ResponseCode
Comments
A delegate who tries to send an e-mail message that is located in the principal's Drafts
folder with the SendAndSaveCopy option set to save a copy in the Sent Items
distinguished folder will silently fail to move a copy of the sent item to the Sent Items
distinguished folder. The item will remain in the principal's Drafts folder. The
workaround for this issue is to specify the principal's mailbox in the
DistinguishedFolderId element.
Description
The following code sample shows an example of a request with an invalid identifier.
Code
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<SendItem
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
SaveItemToFolder="true">
<ItemIds>
</ItemIds>
</SendItem>
</soap:Body>
</soap:Envelope>
Description
The following example shows an error response to a SendItem request that contains an
invalid identifier.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<SendItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:SendItemResponseMessage ResponseClass="Error">
<m:MessageText>Id is malformed.</m:MessageText>
<m:ResponseCode>ErrorInvalidIdMalformed</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
</m:SendItemResponseMessage>
</m:ResponseMessages>
</SendItemResponse>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
SendItemResponse
ResponseMessages
SendItemResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
See also
SendItem operation
SendItemType
) Important
ManagementRole ManagementRole
Identifies the server roles that are necessary in order
for the caller to make the request. This header is
applicable to a request.
RequestVersion
RequestServerVersion Identifies the schema version for the operation
request. This header is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This header is applicable to a response.
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
</soap:Header>
<soap:Body >
<m:SetHoldOnMailboxes>
<m:ActionType>Create</m:ActionType>
<m:HoldId>HoldId2</m:HoldId>
<m:Query>test</m:Query>
<m:Mailboxes>
<t:String>/o=First/ou=Exchange(DLT)/cn=Recipients/cn=1fa441ff5e4749ba43ecc0f
d94c21adf-Willi</t:String>
<t:String>/o=First/ou=Exchange(DLT)/cn=Recipients/cn=aed2346adaa34ffc9f0f339
917e8de95-Micha</t:String>
</m:Mailboxes>
<m:Language>English</m:Language>
<m:IncludeNonIndexableItems>false</m:IncludeNonIndexableItems>
<m:Deduplication>true</m:Deduplication>
</m:SetHoldOnMailboxes>
</soap:Body>
</soap:Envelope>
SetHoldOnMailboxes
ActionType (HoldActionType)
HoldId
Query
Mailboxes (ArrayOfStringsType)
String
Language
IncludeNonIndexableItems
Deduplication
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="526"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SetHoldOnMailboxesResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<MailboxHoldResult>
<HoldId
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">HoldId2</
HoldId>
<Query
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">test</Que
ry>
<MailboxHoldStatuses
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<MailboxHoldStatus>
<Mailbox>o=First/ou=Exchange(DLT)/cn=Recipients/cn=1fa441ff5e4749ba43ecc0fd9
4c21adf-Willi</Mailbox>
<Status>Pending</Status>
<AdditionalInfo/>
</MailboxHoldStatus>
<MailboxHoldStatus>
<Mailbox>/o=First/ou=Exchange(DLT)/cn=Recipients/cn=aed2346adaa34ffc9f0f3399
17e8de95-Micha</Mailbox>
<Status>Pending</Status>
<AdditionalInfo/>
</MailboxHoldStatus>
</MailboxHoldStatuses>
</MailboxHoldResult>
</SetHoldOnMailboxesResponse>
</s:Body>
</s:Envelope>
SetHoldOnMailboxesResponse
ResponseCode
MailboxHoldResult
HoldId
Query
MailboxHoldStatuses
MailboxHoldStatus
Mailbox (string)
Status (HoldStatusType)
AdditionalInfo
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="526"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SetHoldOnMailboxesResponse ResponseClass="Error"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>ErrorInvalidOperation</ResponseCode>
<DescriptiveLinkKey>0</DescriptiveLinkKey>
</SetHoldOnMailboxesResponse>
</s:Body>
</s:Envelope>
SetHoldOnMailboxesResponse
MessageText
ResponseCode
DescriptiveLinkKey
For additional error codes that are generic to EWS and specific to this operation, see
ResponseCode.
See also
EWS operations in Exchange
GetSearchableMailboxes operation
SearchMailboxes operation
GetHoldOnMailboxes operation
GetDiscoverySearchConfiguration operation
GetNonIndexableItemDetails operation
GetNonIndexableItemStatistics operation
SetImGroup operation
Article • 03/29/2023 • 2 minutes to read
The SetImGroup operation changes the display name of an instant messaging (IM)
group.
Impersonation
ExchangeImpersonation Identifies the user whom the client application is
impersonating. This header is applicable to a
request.
RequestVersion RequestServerVersion
Identifies the schema version for the operation
request. This header is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This header is applicable to a response.
7 Note
The Exchange store identifier has been shortened to preserve readability.
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
<t:MailboxCulture>en-US</t:MailboxCulture>
</soap:Header>
<soap:Body >
<m:SetImGroup>
<m:GroupId Id="AAMkAGQ1MjJjMTBkQoTbWAAAAAAQRAAA="
ChangeKey="EgAAAA=="/>
<m:NewDisplayName>MyNewGroupName</m:NewDisplayName>
</m:SetImGroup>
</soap:Body>
</soap:Envelope>
SetImGroup
GroupId
NewDisplayName
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="349"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SetImGroupResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
</SetImGroupResponse>
</s:Body>
</s:Envelope>
SetImGroupResponse
ResponseCode
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="349"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SetImGroupResponse ResponseClass="Error"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>ErrorImGroupDisplayNameAlreadyExists</ResponseCode>
<DescriptiveLinkKey>0</DescriptiveLinkKey>
</SetImGroupResponse>
</s:Body>
</s:Envelope>
SetImGroupResponse
MessageText
ResponseCode
DescriptiveLinkKey
For additional error codes that are generic to EWS and specific to this operation, see
ResponseCode.
See also
People and contacts in EWS in Exchange
AddImGroup operation
RemoveImGroup operation
SetImListMigrationCompleted operation
Article • 03/29/2023 • 2 minutes to read
The SetUserOofSettings Web method sets a mailbox user's Out of Office (OOF) settings
and message.
SOAP Headers
The SetUserOofSettings operation can use the SOAP headers that are listed and
described in the following table.
ServerVersion ServerVersionInfo
Identifies the version of the server that responded to
the request.
Description
The following example of a SetUserOofSettings request sets an OOF setting for 10 days.
Code
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<SetUserOofSettingsRequest
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<Mailbox
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Name>User1</Name>
<Address>[email protected]</Address>
<RoutingType>SMTP</RoutingType>
</Mailbox>
<UserOofSettings
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<OofState>Enabled</OofState>
<ExternalAudience>All</ExternalAudience>
<Duration>
<StartTime>2006-10-05T00:00:00</StartTime>
<EndTime>2006-10-25T00:00:00</EndTime>
</Duration>
<InternalReply>
</InternalReply>
<ExternalReply>
</ExternalReply>
</UserOofSettings>
</SetUserOofSettingsRequest>
</soap:Body>
</soap:Envelope>
Request elements
The following elements are used in the request:
SetUserOofSettingsRequest
Mailbox (Availability)
Name (EmailAddress)
Address (string)
RoutingType (EmailAddress)
UserOofSettings
OofState
ExternalAudience
Duration (UserOofSettings)
StartTime
EndTime
InternalReply
Message (Availability)
ExternalReply
Successful SetUserOofSettings response
example
Description
The following example shows a successful response to the SetUserOofSettings request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
</soap:Header>
<soap:Body>
<SetUserOofSettingsResponse
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseMessage ResponseClass="Success">
<ResponseCode>NoError</ResponseCode>
</ResponseMessage>
</SetUserOofSettingsResponse>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
SetUserOofSettingsResponse
ResponseMessage
ResponseCode
See also
EWS XML elements in Exchange
Subscribe operation
Article • 03/29/2023 • 3 minutes to read
The Subscribe operation is used to subscribe client applications to either push or pull
notifications. It is important to be aware that the structure of the request messages and
responses is different depending on the type of event notification.
Description
The following code example shows how to subscribe to a pull event notification
subscription. The subscription informs the client application if new mail is added to the
Inbox and if an item is deleted from the Inbox. The subscription will time out if the client
does not request information about events within ten minutes. If the subscription
expires, a new subscription must be established to continue to request notifications.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<Subscribe
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<PullSubscriptionRequest>
<t:FolderIds>
<t:DistinguishedFolderId Id="inbox"/>
</t:FolderIds>
<t:EventTypes>
<t:EventType>NewMailEvent</t:EventType>
<t:EventType>DeletedEvent</t:EventType>
</t:EventTypes>
<t:Timeout>10</t:Timeout>
</PullSubscriptionRequest>
</Subscribe>
</soap:Body>
</soap:Envelope>
Subscribe
PullSubscriptionRequest
FolderIds
DistinguishedFolderId
EventTypes
EventType
Timeout
To find other options for the request message of the Subscribe operation, explore the
schema hierarchy. Start at the PullSubscriptionRequest element.
Description
The following example shows a successful pull subscription response. The response
contains the subscription identifier and watermark that is used to get the array of events
that are associated with a subscription. The subscription identifier is also used to
unsubscribe a client from a subscription.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<SubscribeResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:SubscribeResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:SubscriptionId>39ea5d0f-f062-455e-a1e9-
89c0304390f4</m:SubscriptionId>
<m:Watermark>AAAAAHgGAAAAAAAAAQ==</m:Watermark>
</m:SubscribeResponseMessage>
</m:ResponseMessages>
</SubscribeResponse>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
SubscribeResponse
ResponseMessages
SubscribeResponseMessage
ResponseCode
SubscriptionId (GetEvents)
Watermark
Description
The following example shows an error response to a Subscribe request. The error is
caused by an attempt to subscribe to notifications by using delegate access.
Code
XML
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<SubscribeResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:SubscribeResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorSubscriptionDelegateAccessNotSupported</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
</m:SubscribeResponseMessage>
</m:ResponseMessages>
</SubscribeResponse>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
SubscribeResponse
ResponseMessages
SubscribeResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<Subscribe xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<PushSubscriptionRequest
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<FolderIds
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
</FolderIds>
<EventTypes
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<EventType>NewMailEvent</EventType>
<EventType>CopiedEvent</EventType>
<EventType>CreatedEvent</EventType>
<EventType>DeletedEvent</EventType>
<EventType>ModifiedEvent</EventType>
<EventType>MovedEvent</EventType>
</EventTypes>
<StatusFrequency
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">1</Status
Frequency>
<URL
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">http://cl
ientWebService/Service.asmx</URL>
</PushSubscriptionRequest>
</Subscribe>
</soap:Body>
</soap:Envelope>
Comments
The client Web service must be set up before the push notification subscribe request is
sent; otherwise, the first notification will not be sent to a valid endpoint and the push
notification will fail. For more information, see Push Notification Sample Application .
A new SubscriptionId (GetEvents) is created when you resubscribe. Use the watermark of
a previous subscription to resubscribe at the point where the previous subscription
ended.
Subscribe
PushSubscriptionRequest
FolderIds
DistinguishedFolderId
EventTypes
EventType
StatusFrequency
Url
Description
The following example shows a successful push subscription response.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<SubscribeResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseMessages>
<SubscribeResponseMessage ResponseClass="Success">
<ResponseCode>NoError</ResponseCode>
<SubscriptionId>83826921-afdf-48be-b469-
628cc02b5f49</SubscriptionId>
<Watermark>AQAAAOpvG0LURVdOhQkPOWZLPcI8EgAAAAAAAAE=</Watermark>
</SubscribeResponseMessage>
</ResponseMessages>
</SubscribeResponse>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
SubscribeResponse
ResponseMessages
SubscribeResponseMessage
ResponseCode
SubscriptionId (GetEvents)
Watermark
See also
Unsubscribe operation
GetEvents operation
7 Note
The SyncFolderHierarchy operation does not return folders when the UnreadCount
or TotalCount properties have changed.
Description
The following example of a SyncFolderHierarchy request shows how to synchronize a
client folder hierarchy with the Exchange server. This example shows a folder hierarchy
that has already been synchronized at least one time. The SyncState element is not
included in the request for the first attempt to synchronize a client with the Exchange
server. The first request will return all the folders in the mailbox. The SyncState element
will be returned in the SyncFolderHierarchyResponse. This element is used to
synchronize the state for subsequent SyncFolderHierarchy requests.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<SyncFolderHierarchy
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<FolderShape>
<t:BaseShape>AllProperties</t:BaseShape>
</FolderShape>
<SyncState>H4sIA=</SyncState>
</SyncFolderHierarchy>
</soap:Body>
</soap:Envelope>
Comments
The SyncState element base64-encoded data has been shortened to preserve
readability.
Request elements
The following elements are used in the request:
SyncFolderHierarchy
FolderShape
BaseShape
SyncState
7 Note
The schema that describes these elements is located in the EWS virtual directory of
the computer that is running MicrosoftExchange Server 2007 that has the Client
Access server role installed.
Description
The following example shows a successful response to the SyncFolderHierarchy request.
In this example, a new folder has been synchronized.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
MajorBuildNumber="628" MinorBuildNumber="0"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<SyncFolderHierarchyResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:SyncFolderHierarchyResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:SyncState>H4sIAAA==</m:SyncState>
<m:IncludesLastFolderInRange>true</m:IncludesLastFolderInRange>
<m:Changes>
<t:Create>
<t:Folder>
<t:FolderClass>IPF.Note</t:FolderClass>
<t:DisplayName>NewFolder</t:DisplayName>
<t:TotalCount>0</t:TotalCount>
<t:ChildFolderCount>0</t:ChildFolderCount>
<t:UnreadCount>0</t:UnreadCount>
</t:Folder>
</t:Create>
</m:Changes>
</m:SyncFolderHierarchyResponseMessage>
</m:ResponseMessages>
</SyncFolderHierarchyResponse>
</soap:Body>
</soap:Envelope>
Comments
The SyncState element base64-encoded data and the folder identifier data have been
shortened to preserve readability.
ServerVersionInfo
SyncFolderHierarchyResponse
ResponseMessages
SyncFolderHierarchyResponseMessage
ResponseCode
SyncState
IncludesLastFolderInRange
Changes (Hierarchy)
Create (FolderSync)
Folder
FolderId
ParentFolderId
FolderClass
DisplayName (string)
TotalCount
ChildFolderCount
UnreadCount
Description
The following example shows an error response to a SyncFolderHierarchy request. This
error was caused by an invalid SyncState.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
MajorBuildNumber="628" MinorBuildNumber="0"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<SyncFolderHierarchyResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:SyncFolderHierarchyResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorInvalidSyncStateData</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
<m:SyncState />
<m:IncludesLastFolderInRange>true</m:IncludesLastFolderInRange>
</m:SyncFolderHierarchyResponseMessage>
</m:ResponseMessages>
</SyncFolderHierarchyResponse>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
SyncFolderHierarchyResponse
ResponseMessages
SyncFolderHierarchyResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
SyncState
IncludesLastFolderInRange
See also
EWS XML elements in Exchange
SyncFolderItems operation
Article • 03/29/2023 • 2 minutes to read
The SyncFolderItems operation synchronizes items between the Exchange server and the
client.
Remarks
The SyncFolderItems operation will return a maximum of 512 changes. Subsequent
SyncFolderItems requests must be performed to get additional changes.
Description
The following example of a SyncFolderItems request shows how to synchronize items in
a folder. This example shows a folder item's synchronization that is not the first
synchronization to have occurred for the Sent Items folder. The SyncState element is not
included in the request for the first attempt to synchronize a client with the Exchange
server. The first attempt to synchronize the items in a folder hierarchy will return all the
items in the mailbox, excluding items that are identified in the Ignore element. This
SyncFolderItems request will try to synchronize all changes to the folder items since the
last synchronization. This request will ignore the attempt to synchronize the one item
that is identified in the Ignore element.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<SyncFolderItems
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ItemShape>
<t:BaseShape>Default</t:BaseShape>
</ItemShape>
<SyncFolderId>
<t:DistinguishedFolderId Id="sentitems"/>
</SyncFolderId>
<SyncState>AEbJ94eMOAAA=</SyncState>
<Ignore>
</Ignore>
<MaxChangesReturned>100</MaxChangesReturned>
</SyncFolderItems>
</soap:Body>
</soap:Envelope>
Comments
The SyncState element base64-encoded data and the ItemId element Id attribute have
been shortened to preserve readability.
Request elements
The following elements are used in the request:
SyncFolderItems
ItemShape
BaseShape
SyncFolderId
DistinguishedFolderId
SyncState
Ignore
ItemId
MaxChangesReturned
Description
The following example shows a successful response to the SyncFolderItems request. In
this example, a meeting request is synchronized from the Sent Items folder.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
MajorBuildNumber="628" MinorBuildNumber="0"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
/>
</soap:Header>
<soap:Body>
<SyncFolderItemsResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:SyncFolderItemsResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:SyncState>H4sIAAAAA=</m:SyncState>
<m:IncludesLastItemInRange>true</m:IncludesLastItemInRange>
<m:Changes>
<t:Create>
<t:MeetingRequest>
<t:Subject>Budget Q3</t:Subject>
<t:Sensitivity>Normal</t:Sensitivity>
<t:IsOutOfDate>false</t:IsOutOfDate>
<t:HasBeenProcessed>true</t:HasBeenProcessed>
<t:ResponseType>NoResponseReceived</t:ResponseType>
<t:IntendedFreeBusyStatus>Busy</t:IntendedFreeBusyStatus>
<t:Start>2006-08-02T17:30:00Z</t:Start>
<t:End>2006-08-02T19:30:00Z</t:End>
<t:Organizer>
<t:Mailbox>
<t:Name>Dan Park</t:Name>
<t:EmailAddress>[email protected]</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
</t:Mailbox>
</t:Organizer>
</t:MeetingRequest>
</t:Create>
</m:Changes>
</m:SyncFolderItemsResponseMessage>
</m:ResponseMessages>
</SyncFolderItemsResponse>
</soap:Body>
</soap:Envelope>
Comments
The SyncState element base64-encoded data and the ItemId element Id attribute have
been shortened to preserve readability.
ServerVersionInfo
SyncFolderItemsResponse
ResponseMessages
SyncFolderItemsResponseMessage
ResponseCode
SyncState
IncludesLastItemInRange
Changes (Items)
Create (ItemSync)
MeetingRequest
ItemId
Subject
Sensitivity
IsOutOfDate
HasBeenProcessed
ResponseType
IntendedFreeBusyStatus
Start
End
Location
Organizer
Mailbox
Name (EmailAddressType)
EmailAddress (NonEmptyStringType)
RoutingType (EmailAddressType)
Description
The following example shows an error response to a SyncFolderItems request. This error
was caused by an invalid SyncState.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
MajorBuildNumber="628" MinorBuildNumber="0"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<SyncFolderItemsResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:SyncFolderItemsResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorInvalidSyncStateData</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
<m:SyncState />
<m:IncludesLastItemInRange>true</m:IncludesLastItemInRange>
</m:SyncFolderItemsResponseMessage>
</m:ResponseMessages>
</SyncFolderItemsResponse>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
SyncFolderItemsResponse
ResponseMessages
SyncFolderItemsResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
SyncState
IncludesLastItemInRange
See also
EWS XML elements in Exchange
UninstallApp operation
Article • 03/29/2023 • 2 minutes to read
RequestVersion RequestServerVersion Identifies the schema version for the operation request.
This header is applicable to a request.
ServerVersion
ServerVersionInfo
Identifies the version of the server that responded to
the request. This header is applicable to a response.
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
</soap:Header>
<soap:Body >
<m:UninstallApp>
<m:ID>1C50226D-04B5-4AB2-9FCD-42E236B59E4B</m:ID>
</m:UninstallApp>
</soap:Body>
</soap:Envelope>
UninstallApp
ID (String)
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="556"
MinorBuildNumber="14"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<UninstallAppResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
</UninstallAppResponse>
</s:Body>
</s:Envelope>
ResponseCode
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="556"
MinorBuildNumber="14"
Version="Exchange2013"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<UninstallAppResponse ResponseClass="Error"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<MessageText>Extension ID 1c50226d-04b5-4ab2-9fcd-42e236b59e4b
can't be found.</MessageText>
<ResponseCode>ErrorInternalServerError</ResponseCode>
<DescriptiveLinkKey>0</DescriptiveLinkKey>
</UninstallAppResponse>
</s:Body>
</s:Envelope>
UninstallAppResponse
MessageText
ResponseCode
DescriptiveLinkKey
For additional error codes that are generic to EWS and specific to this operation, see
ResponseCode.
See also
EWS operations in Exchange
InstallApp operation
DisableApp operation
GetAppManifests
GetAppMarketplaceUrl operation
Unsubscribe operation
Article • 03/29/2023 • 2 minutes to read
The Unsubscribe operation is used to end a pull notification subscription. Use this
operation rather than letting a subscription timeout. This operation is only valid for pull
notifications.
Description
The following example shows the SOAP XML message that is sent to unsubscribe a
client from the Notification service.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<Unsubscribe
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<SubscriptionId>e6fbf5c1-7e26-4bc6-a5f2-882063d5e34e</SubscriptionId>
</Unsubscribe>
</soap:Body>
</soap:Envelope>
Unsubscribe
SubscriptionId (GetEvents)
Description
The following example shows a successful response to an Unsubscribe request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<UnsubscribeResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:UnsubscribeResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
</m:UnsubscribeResponseMessage>
</m:ResponseMessages>
</UnsubscribeResponse>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
Unsubscribe
ResponseMessages
UnsubscribeResponseMessage
ResponseCode
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<UnsubscribeResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:UnsubscribeResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorSubscriptionNotFound</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
</m:UnsubscribeResponseMessage>
</m:ResponseMessages>
</UnsubscribeResponse>
</soap:Body>
</soap:Envelope>
ServerVersionInfo
UnsubscribeResponse
ResponseMessages
UnsubscribeResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
See also
Subscribe operation
GetEvents operation
Using Pull Subscriptions
UpdateDelegate operation
Article • 03/29/2023 • 2 minutes to read
SOAP Headers
The UpdateDelegate operation can use the SOAP headers that are listed and described
in the following table.
RequestVersion RequestServerVersion
Identifies the schema version for the operation
request.
ServerVersion ServerVersionInfo
Identifies the version of the server that responded to
the request.
Description
The following example of an UpdateDelegate request shows you how to update
delegate permissions on user1's account. User2 is granted the None permission level for
the Tasks folder and is granted permission to view private items. User3 is granted
Reviewer permissions for the Journal folder. Meeting requests are sent to the delegates,
and information about the request is sent to User1.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Header>
<t:RequestServerVersion Version="Exchange2007_SP1"/>
</soap:Header>
<soap:Body>
<UpdateDelegate
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<Mailbox>
<t:EmailAddress>[email protected]</t:EmailAddress>
</Mailbox>
<DelegateUsers>
<t:DelegateUser>
<t:UserId>
<t:PrimarySmtpAddress>[email protected]</t:PrimarySmtpAddress>
</t:UserId>
<t:DelegatePermissions>
<t:TasksFolderPermissionLevel>None</t:TasksFolderPermissionLevel>
</t:DelegatePermissions>
<t:ViewPrivateItems>true</t:ViewPrivateItems>
</t:DelegateUser>
<t:DelegateUser>
<t:UserId>
<t:PrimarySmtpAddress>[email protected]</t:PrimarySmtpAddress>
</t:UserId>
<t:DelegatePermissions>
<t:JournalFolderPermissionLevel>Reviewer</t:JournalFolderPermissionLevel>
</t:DelegatePermissions>
</t:DelegateUser>
</DelegateUsers>
<DeliverMeetingRequests>DelegatesAndSendInformationToMe</DeliverMeetingReque
sts>
</UpdateDelegate>
</soap:Body>
</soap:Envelope>
Comments
The UpdateDelegate request does not require that updates be applied to delegates.
Clients can change only the DeliverMeetingMessage setting.
Description
The following example shows a successful response to an UpdateDelegate operation.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<t:ServerVersionInfo MajorVersion="8"
MinorVersion="1"
MajorBuildNumber="206"
MinorBuildNumber="0"
Version="Exchange2007_SP1"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<m:UpdateDelegateResponse
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
ResponseClass="Success"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseCode>NoError</m:ResponseCode>
<m:ResponseMessages>
<m:DelegateUserResponseMessageType ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:DelegateUser>
<t:UserId>
<t:SID>S-1-5-21-1333220396-2200287332-232816053-1117</t:SID>
<t:PrimarySmtpAddress>[email protected]</t:PrimarySmtpAddress>
<t:DisplayName>User2</t:DisplayName>
</t:UserId>
<t:ReceiveCopiesOfMeetingMessages>true</t:ReceiveCopiesOfMeetingMessages>
<t:ViewPrivateItems>true</t:ViewPrivateItems>
</m:DelegateUser>
</m:DelegateUserResponseMessageType>
<m:DelegateUserResponseMessageType ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:DelegateUser>
<t:UserId>
<t:SID>S-1-5-21-1333220396-2200287332-232816053-1118</t:SID>
<t:PrimarySmtpAddress>[email protected]</t:PrimarySmtpAddress>
<t:DisplayName>User3</t:DisplayName>
</t:UserId>
<t:ReceiveCopiesOfMeetingMessages>true</t:ReceiveCopiesOfMeetingMessages>
<t:ViewPrivateItems>false</t:ViewPrivateItems>
</m:DelegateUser>
</m:DelegateUserResponseMessageType>
</m:ResponseMessages>
</m:UpdateDelegateResponse>
</soap:Body>
</soap:Envelope>
Description
The following example shows an error response to an UpdateDelegate request. The
error was generated because the delegate does not exist in the principal's delegate list.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<t:ServerVersionInfo MajorVersion="8"
MinorVersion="1"
MajorBuildNumber="206"
MinorBuildNumber="0"
Version="Exchange2007_SP1"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<m:UpdateDelegateResponse
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
ResponseClass="Success"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseCode>NoError</m:ResponseCode>
<m:ResponseMessages>
<m:DelegateUserResponseMessageType ResponseClass="Error">
<m:ResponseCode>ErrorNotDelegate</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
</m:DelegateUserResponseMessageType>
</m:ResponseMessages>
</m:UpdateDelegateResponse>
</soap:Body>
</soap:Envelope>
See also
EWS XML elements in Exchange
UpdateFolder operation
Article • 03/29/2023 • 2 minutes to read
An internal path of an element in the folder, as specified by the folder shape, which
specifies the data to update.
A folder that contains the new value of the updated field, if the update is not a
deletion.
Remarks
Three basic update actions can be performed on an item. These actions are listed in the
following table.
Action Description
Append The append action adds data to an existing property. It preserves the data that is
currently there. Append is not applicable to all properties.
Set The set action replaces data for a property if it contains data, or creates the property
and sets its value if it does not exist. The set action is only applicable to writable
properties.
Delete The delete action removes a property from a folder. This is different than setting it to
an empty value. When complete, the property does not exist for the folder. Delete is
only applicable to writable properties.
Description
The following example of an UpdateFolder request shows how to update a folder
display name.
Code
XML
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<UpdateFolder
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<FolderChanges>
<t:FolderChange>
<t:Updates>
<t:SetFolderField>
<t:FieldURI FieldURI="folder:DisplayName"/>
<t:Folder>
<t:DisplayName>NewFolderName</t:DisplayName>
</t:Folder>
</t:SetFolderField>
</t:Updates>
</t:FolderChange>
</FolderChanges>
</UpdateFolder>
</soap:Body>
</soap:Envelope>
Comments
This example changes the display name of the folder to NewFolderName.
7 Note
The values of the Id and ChangeKey attributes of the FolderId element have been
shortened for readability.
Request elements
The following elements are used in the request:
UpdateFolder
FolderChanges
FolderChange
FolderId
Updates (Folder)
SetFolderField
FieldURI
Folder
DisplayName (string)
See the schema for additional elements that you can use to form an UpdateFolder
request.
7 Note
The default location of the schema is in the EWS virtual directory on the computer
that has the Client Access server role installed.
Description
The following example shows a successful response to the UpdateFolder request. In this
example, the new change key is returned to reflect the updated status of the folder.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<UpdateFolderResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:UpdateFolderResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Folders>
<t:Folder>
</t:Folder>
</m:Folders>
</m:UpdateFolderResponseMessage>
</m:ResponseMessages>
</UpdateFolderResponse>
</soap:Body>
</soap:Envelope>
Comments
7 Note
The folder ID and the change key have been shortened to preserve readability.
The folder ID that is returned in the response represents the updated folder.
ServerVersionInfo
UpdateFolderResponse
ResponseMessages
UpdateFolderResponseMessage
ResponseCode
Folders
Folder
FolderId
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<UpdateFolderResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:UpdateFolderResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorInvalidChangeKey</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
<m:Folders />
</m:UpdateFolderResponseMessage>
</m:ResponseMessages>
</UpdateFolderResponse>
</soap:Body>
</soap:Envelope>
Comments
This example shows an error response that is caused by an invalid ChangeKey attribute
in the request.
ServerVersionInfo
UpdateFolderResponse
ResponseMessages
UpdateFolderResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
Folders
See also
EWS XML elements in Exchange
UpdateInboxRules operation
Article • 03/29/2023 • 3 minutes to read
When you use the UpdateInboxRules operation, Exchange Web Services deletes client-
side send rules. Client-side send rules are stored on the client in the rule Folder
Associated Information (FAI) Message and nowhere else. EWS deletes this rule FAI
message by default, based on the expectation that Outlook will recreate it. However,
Outlook can't recreate rules that don't also exist as an extended rule, and client-side
send rules don't exist as extended rules. As a result, these rules are lost. We suggest you
consider this when designing your solution.
Description
The client constructs the request XML and sends it to the server.
Code
XML
<soap:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
</soap:Header>
<soap:Body>
<m:UpdateInboxRules>
<m:RemoveOutlookRuleBlob>true</m:RemoveOutlookRuleBlob>
<m:Operations>
<t:CreateRuleOperation>
<t:Rule>
<t:DisplayName>MoveInterestingToJunk</t:DisplayName>
<t:Priority>1</t:Priority>
<t:IsEnabled>true</t:IsEnabled>
<t:Conditions>
<t:ContainsSubjectStrings>
<t:String>Interesting</t:String>
</t:ContainsSubjectStrings>
</t:Conditions>
<t:Exceptions />
<t:Actions>
<t:MoveToFolder>
</t:MoveToFolder>
</t:Actions>
</t:Rule>
</t:CreateRuleOperation>
</m:Operations>
</m:UpdateInboxRules>
</soap:Body>
</soap:Envelope>
Comments
This example builds a rule that will move an e-mail message to the Junk E-mail folder if
the e-mail subject contains a string that equals "Interesting".
Request elements
The UpdateInboxRules request includes the following elements:
MailboxSmtpAddress
RemoveOutlookRuleBlob
Operations
Code
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="14"
MinorVersion="1"
MajorBuildNumber="139"
MinorBuildNumber="0" Version="Exchange2010_SP1"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<UpdateInboxRulesResponse
ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
</UpdateInboxRulesResponse>
</s:Body>
</s:Envelope>
ServerVersionInfo
UpdateInboxRulesResponse
ResponseMessages
ResponseCode
Description
The client constructs the request XML and sends it to the server.
Code
XML
<soap:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
</soap:Header>
<soap:Body>
<m:UpdateInboxRules>
<m:RemoveOutlookRuleBlob>true</m:RemoveOutlookRuleBlob>
<Operations
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<SetRuleOperation
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Rule>
<RuleId>Nh8AAAAwW/w=</RuleId>
<Priority>1</Priority>
<IsEnabled>true</IsEnabled>
<Conditions>
<ContainsSubjectStrings>
<String>Interesting</String>
</ContainsSubjectStrings>
</Conditions>
<Actions>
<MoveToFolder>
</MoveToFolder>
</Actions>
</Rule>
</SetRuleOperation>
</Operations>
</m:UpdateInboxRules>
</soap:Body>
</soap:Envelope>
Comments
This example changes the display name to "(Modified) This is Junk".
7 Note
The values of the Id and ChangeKey attributes of the FolderId element have been
shortened for readability.
Request elements
The UpdateInboxRules request includes the following elements:
MailboxSmtpAddress
RemoveOutlookRuleBlob
Operations
Description
The following Simple Object Access Protocol (SOAP) body example shows a successful
response to the UpdateInboxRules request that modifies a rule.
Code
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="14"
MinorVersion="1"
MajorBuildNumber="139"
MinorBuildNumber="0"
Version="Exchange2010_SP1"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<UpdateInboxRulesResponse
ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
</UpdateInboxRulesResponse>
</s:Body>
</s:Envelope>
ServerVersionInfo
UpdateInboxRulesResponse
ResponseMessages
ResponseCode
Description
The client constructs the request XML and sends it to the server.
Code
XML
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
</soap:Header>
<soap:Body>
<m:UpdateInboxRules>
<m:RemoveOutlookRuleBlob>true</m:RemoveOutlookRuleBlob>
<m:Operations>
<t:DeleteRuleOperation>
<t:RuleId>Nh8AAAAwW/U=</t:RuleId>
</t:DeleteRuleOperation>
</m:Operations>
</m:UpdateInboxRules>
</soap:Body>
</soap:Envelope>
Comments
This example deletes the existing identified rule.
Request elements
The UpdateInboxRules request includes the following elements:
MailboxSmtpAddress
RemoveOutlookRuleBlob
Operations
Description
The following Simple Object Access Protocol (SOAP) body example shows a successful
response to the UpdateInboxRules request that deletes a rule.
Code
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="14"
MinorVersion="1"
MajorBuildNumber="139"
MinorBuildNumber="0"
Version="Exchange2010_SP1"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<UpdateInboxRulesResponse ResponseClass="Success"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
</UpdateInboxRulesResponse>
</s:Body>
</s:Envelope>
ServerVersionInfo
UpdateInboxRulesResponse
ResponseMessages
ResponseCode
See also
GetInboxRules operation
UpdateItem operation
Article • 03/29/2023 • 4 minutes to read
The UpdateItem operation is used to modify the properties of an existing item in the
Exchange store.
Remarks
You can perform three basic update actions on an item. The following table lists the
actions that you can perform.
Action Description
Append Adds data to an existing property. This action preserves the current data. Append does
not apply to all properties.
Set Replaces data for a property if the property contains data, or creates the property and
sets its value if the property does not exist. The set action is only applicable to writable
properties.
Delete Removes a property from an item. This differs from setting a property to an empty
value. When this action is finished, the property does not exist for the item. Delete is
only applicable to writable properties.
An UpdateItem call can be used to modify one or more items, and one or more
properties on each item. The ItemChanges element contains all the modifications that
are to be performed as part of this call. The ItemChange element, a child of the
ItemChanges element, represents the modifications to be performed on a single item.
The ItemChange element contains a set of update actions that can be performed on a
single item. These changes are contained in the Updates (Item) element. The ItemId
element identifies the item to update. To update more than one property on an item, a
SetItemField, AppendToItemField, or DeleteItemField must be provided for each
property that requires the update.
7 Note
Update actions are applied in the order in which they are specified.
For each change, you have to specify the path of the property to change and a
representation of that item with its new value. The delete action is slightly different in
that only the path of the property that should be deleted is required. For set and
append actions, the path that is specified must refer to the same property that is being
set in the item representation. If these differ, an error will be returned.
The UpdateItem operation can set the Start and End time of an Exchange store item. In
an UpdateItem request, the Start time can be set without also setting the End time. This
can cause an error if the Start time is later than the End time. Be aware that client
applications must adjust the End time when the Start time is changed in order to
preserve the duration.
When a single calendar item is updated to become a recurring master calendar item, the
MeetingTimeZone property must be set by the UpdateItem operation in order to
preserve the calendar item's original time zone.
Description
The following example of an UpdateItem request shows how to set the sensitivity
property on an item.
Code
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<UpdateItem MessageDisposition="SaveOnly"
ConflictResolution="AutoResolve"
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<ItemChanges>
<t:ItemChange>
<t:Updates>
<t:SetItemField>
<t:FieldURI FieldURI="item:Sensitivity"/>
<t:Message>
<t:Sensitivity>Normal</t:Sensitivity>
</t:Message>
</t:SetItemField>
</t:Updates>
</t:ItemChange>
</ItemChanges>
</UpdateItem>
</soap:Body>
</soap:Envelope>
Comments
The item identifier and change key have been shortened to preserve readability.
UpdateItem
ItemChanges
ItemChange
ItemId
Updates (Item)
SetItemField
FieldURI
Message
Sensitivity
Description
The following example of an UpdateItem request shows how to append text to the
body property on an item.
Code
XML
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<UpdateItem MessageDisposition="SaveOnly"
ConflictResolution="AutoResolve"
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<ItemChanges>
<t:ItemChange>
<t:Updates>
<t:AppendToItemField>
<t:FieldURI FieldURI="item:Body"/>
<t:Message>
</t:Message>
</t:AppendToItemField>
</t:Updates>
</t:ItemChange>
</ItemChanges>
</UpdateItem>
</soap:Body>
</soap:Envelope>
Comments
The following properties support the append action:
message:ReplyTo
item:Body
The item identifier and change key have been shortened to preserve readability.
UpdateItem
ItemChanges
ItemChange
ItemId
Updates (Item)
AppendToItemField
FieldURI
Message
Body
Description
The following example of an UpdateItem request shows how to delete a property on an
item.
Code
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<UpdateItem MessageDisposition="SaveOnly"
ConflictResolution="AutoResolve"
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<ItemChanges>
<t:ItemChange>
<t:Updates>
<t:DeleteItemField>
<t:FieldURI FieldURI="item:Body"/>
</t:DeleteItemField>
</t:Updates>
</t:ItemChange>
</ItemChanges>
</UpdateItem>
</soap:Body>
</soap:Envelope>
Comments
The item identifier and change key have been shortened to preserve readability.
UpdateItem
ItemChanges
ItemChange
ItemId
Updates (Item)
DeleteItemField
FieldURI
Description
The following example shows a successful response to an UpdateItem request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"/>
</soap:Header>
<soap:Body>
<UpdateItemResponse
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:UpdateItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:Message>
<t:ItemId Id="AAAtAEFkbW..." ChangeKey="CQAAABYAAA..."/>
</t:Message>
</m:Items>
</m:UpdateItemResponseMessage>
</m:ResponseMessages>
</UpdateItemResponse>
</soap:Body>
</soap:Envelope>
Comments
The item identifier and change key have been shortened to preserve readability.
ServerVersionInfo
UpdateItemResponse
ResponseMessages
UpdateItemResponseMessage
ResponseCode
Items
Message
ItemId
See also
UpdateItem operation (task)
Updating Tasks
UpdateItem operation (task)
Article • 03/29/2023 • 2 minutes to read
The UpdateItem operation is used to update task item properties in the Exchange store.
Remarks
You cannot use Exchange Web Services to send task requests. Exchange Web Services
can return task requests that are created by MicrosoftOfficeOutlook. If a task request
has already been sent, a request to update the task will return an error.
For example, if an UpdateItem request sets the Completed value of a recurring task to
true, the UpdateItemResponse will include a new Id and ChangeKey that represent a
newly created one-off task. The Id that was included in the request is still valid and the
recurring task that is represented by that Id has been updated to represent the next
occurrence. The ChangeKey that was included in the request is no longer valid because
the recurring task has been updated.
You can use the GetItem operation to get the latest ChangeKey for the recurring task.
For nonrecurring tasks or for the last occurrence of a recurring task, the UpdateItem
response returns the same Id that was passed to it and returns the associated updated
ChangeKey.
See also
UpdateItem operation
UpdateItem operation (contact)
Article • 03/29/2023 • 2 minutes to read
The UpdateItem operation is used to update contact item properties in the Exchange
store.
Description
The following code example shows how to update the e-mail address of a contact.
Code
XML
<soap:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<UpdateItem
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
ConflictResolution="AlwaysOverwrite">
<ItemChanges>
<t:ItemChange>
<t:Updates>
<t:SetItemField>
<t:IndexedFieldURI FieldURI="contacts:EmailAddress"
FieldIndex="EmailAddress1"/>
<t:Contact>
<t:EmailAddresses>
<t:Entry
Key="EmailAddress1">[email protected]</t:Entry>
</t:EmailAddresses>
</t:Contact>
</t:SetItemField>
</t:Updates>
</t:ItemChange>
</ItemChanges>
</UpdateItem>
</soap:Body>
</soap:Envelope>
Comments
The item identifier has been shortened to preserve readability.
Request elements
The following elements are used in the request:
UpdateItem
ItemChanges
ItemChange
ItemId
Updates (Item)
SetItemField
IndexedFieldURI
Contact
EmailAddresses
Entry (EmailAddress)
Description
The following code example shows a successful UpdateItem response.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<UpdateItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:UpdateItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:Contact>
<t:ItemId Id="AAAtAE=" ChangeKey="EQAAABYx" />
</t:Contact>
</m:Items>
</m:UpdateItemResponseMessage>
</m:ResponseMessages>
</UpdateItemResponse>
</soap:Body>
</soap:Envelope>
Comments
The item identifier has been shortened to preserve readability.
ServerVersionInfo
UpdateItemResponse
ResponseMessages
UpdateItemResponseMessage
ResponseCode
Items (NonEmptyArrayOfAllItemsType)
Contact
ItemId
Code
XML
<soap:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<UpdateItem
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
ConflictResolution="AlwaysOverwrite">
<ItemChanges>
<t:ItemChange>
<t:Updates>
<t:SetItemField>
<t:IndexedFieldURI FieldURI="contacts:EmailAddress"
FieldIndex="EmailAddress4"/>
<t:Contact>
<t:EmailAddresses>
<t:Entry
Key="EmailAddress4">[email protected]</t:Entry>
</t:EmailAddresses>
</t:Contact>
</t:SetItemField>
</t:Updates>
</t:ItemChange>
</ItemChanges>
</UpdateItem>
</soap:Body>
</soap:Envelope>
Comments
The item identifier has been shortened to preserve readability.
Description
The following code example shows an error response to an UpdateItem (Contact)
request.
Code
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<soap:Fault>
<soap:faultcode>Client</soap:faultcode>
<detail>
<e:ResponseCode
xmlns:e="https://schemas.microsoft.com/exchange/services/2006/errors">ErrorS
chemaValidation</e:ResponseCode>
<e:Message
xmlns:e="https://schemas.microsoft.com/exchange/services/2006/errors">The
'Key' attribute is invalid - The value 'EmailAddress4' is invalid according
to its data type
'https://schemas.microsoft.com/exchange/services/2006/types:EmailAddressKeyT
ype' - The Enumeration constraint failed.</e:Message>
<e:Line
xmlns:e="https://schemas.microsoft.com/exchange/services/2006/errors">17</e:
Line>
<e:Position
xmlns:e="https://schemas.microsoft.com/exchange/services/2006/errors">19</e:
Position>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
Comments
Some elements that are used in the SOAP body of an error response that is caused by a
schema validation error are not defined in the messages or types schemas. The detail
element contains information about the error. The ResponseCode element contains the
error code. The Message element contains an explanation for the error, if one is
available. The Line element describes the line number where the schema validation error
occurred. The Position element describes the position from the leftmost character of the
XML document.
See also
UpdateItem operation
UpdateUserConfiguration operation
Article • 03/29/2023 • 2 minutes to read
Description
The following example of an UpdateUserConfiguration request shows how to form a
request to update a user configuration object on the Drafts folder.
Code
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<soap:Header>
</soap:Header>
<soap:Body>
<m:UpdateUserConfiguration>
<m:UserConfiguration>
<t:UserConfigurationName Name="TestConfig">
<t:DistinguishedFolderId Id="drafts"/>
</t:UserConfigurationName>
<t:Dictionary>
<t:DictionaryEntry>
<t:DictionaryKey>
<t:Type>String</t:Type>
<t:Value>PhoneNumber</t:Value>
</t:DictionaryKey>
<t:DictionaryValue>
<t:Type>String</t:Type>
<t:Value>111-111-5555</t:Value>
</t:DictionaryValue>
</t:DictionaryEntry>
</t:Dictionary>
</m:UserConfiguration>
</m:UpdateUserConfiguration>
</soap:Body>
</soap:Envelope>
Description
The following example shows a successful response to the UpdateUserConfiguration
request.
Code
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="14"
MinorVersion="0"
MajorBuildNumber="639"
MinorBuildNumber="20"
Version="Exchange2010"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:UpdateUserConfigurationResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:UpdateUserConfigurationResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
</m:UpdateUserConfigurationResponseMessage>
</m:ResponseMessages>
</m:UpdateUserConfigurationResponse>
</s:Body>
</s:Envelope>
See also
EWS operations in Exchange
) Important
Description
The following example of an UploadItems request shows how to upload two items into
a mailbox. The first item is a new item. The second item is an updated version of an
existing item in the mailbox.
Code
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
</soap:Header>
<soap:Body>
<m:UploadItems>
<m:Items>
<t:Item CreateAction="CreateNew">
<t:Data>
AQAAAAgAAAAAAAAAAQAAAAMAAAAYAAAAAQAAAAcDAgAAAAAAwAAAAA
AAAEYAJACABAAAAAYAAAABDqSAAAACAAAAcSMAAOSECEBbAAAAL089
RklSU1QgT1JHQU5JWkFUSU9OL09VPUVYQ0hBTkdFIEFETUlOSVNUUk
FUSVZFIEdST1VQIChGWURJQk9IRjIzU1BETFQpL0NOPVJFQ0lQSUVO
VFMvQ049AAMAFwABAAAAsIQaABIAAABJAFAATQAuAE4AbwB0AGUAAA
ALACMAAAADACYAAAAAAAsAKQAAAAMALgAAAAAAAwA2AAAAAACwhw4=
</t:Data>
</t:Item>
<t:Item CreateAction="Update">
<t:Data>
AQAAAAgAAAAAAAAAAQAAAAMAAAAYAAAAAQAAAAcDAgAAAAAAwAAAAA
AAAEYAJACABAAAAAYAAAABDqSAAAACAAAANiAAAOSECEBbAAAAL089
RklSU1QgT1JHQU5JWkFUSU9OL09VPUVYQ0hBTkdFIEFETUlOSVNUUk
FUSVZFIEdST1VQIChGWURJQk9IRjIzU1BETFQpL0NOPVJFQ0lQSUVO
VFMvQ049AAMAFwABAAAAsIQaABIAAABJAFAATQAuAE4AbwB0AGUAAA
ALACMAAAALACkAAAADADYAAAAAALCENwAyAAAASQBuAHQAZQByAGUA
cwB0AGkAbgBnACAALQAgAGYAcgBvAG0AIABFAFcAUwBNAEEAAABAAD
kAgJ2chyHuygECATsAZQAAAEVYOi9PPUZJUlNUIE9SR0FOSVpBVBMO
</t:Data>
</t:Item>
</m:Items>
</m:UploadItems>
</soap:Body>
</soap:Envelope>
Comments
Identifiers and the item data have been shortened to preserve readability.
Request elements
The following elements are used in the request:
RequestServerVersion
UploadItems
Items (NonEmptyArrayOfUploadItemsType)
Item (UploadItemType)
ParentFolderId
Data (base64Binary)
ItemId
Code
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="14"
MinorVersion="1"
MajorBuildNumber="164"
MinorBuildNumber="0"
Version="Exchange2010_SP1"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:UploadItemsResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:UploadItemsResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:ItemId Id="AAMkADhhUFZ/AAA="
ChangeKey="CQAAABYAAABsMBS3hrihS7voMf0GPIQeAAAAULQm"/>
</m:UploadItemsResponseMessage>
<m:UploadItemsResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:ItemId Id="AAMkADhhOGZ7AAA="
ChangeKey="CQAAABYAAABsMBS3hrihS7voMf0GPIQeAAAAULQn"/>
</m:UploadItemsResponseMessage>
</m:ResponseMessages>
</m:UploadItemsResponse>
</s:Body>
</s:Envelope>
Comments
Item identifiers have been shortened to preserve readability.
Response elements
The following elements are used in the response:
ServerVersionInfo
UploadItemsResponse
ResponseMessages
UploadItemsResponseMessage
ResponseCode
ItemId
Description
The following example shows a response to the UploadItems request that contains an
error caused by an attempt to update an item that cannot be found in the mailbox.
Code
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="14"
MinorVersion="1"
MajorBuildNumber="164"
MinorBuildNumber="0"
Version="Exchange2010_SP1"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:UploadItemsResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:UploadItemsResponseMessage ResponseClass="Error">
<m:ResponseCode>ErrorItemNotFound</m:ResponseCode>
<m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
</m:UploadItemsResponseMessage>
</m:ResponseMessages>
</m:UploadItemsResponse>
</s:Body>
</s:Envelope>
ServerVersionInfo
UploadItemsResponse
ResponseMessages
UploadItemsResponseMessage
MessageText
ResponseCode
DescriptiveLinkKey
See also
ExportItems operation
Exchange Web Services (EWS) is a SOAP-based web service, which means that the
request and response messages that are sent between the client and server are
comprised of XML elements. The documentation in this section is based on the XML
instances that are sent between the client and server. The XML instances are defined in
the WSDL and schema files that are located in the virtual directory that hosts EWS. If you
are an authenticated user, you can browse to the WSDL and schema files by using the
following URLs, where <yourclientaccessserver> is the name of your Client Access
server:
The schema files that describe the EWS XML elements provide a general roadmap of the
XML structure that is possible for request-response message interactions. The actual
XML structure that is sent between client and server varies according to the operation
that is called, the information requested, and the server-side settings.
The EWS WSDL file, services.wsdl, does not fully conform to the WSDL standard because
it does not include a WSDL service definition. This is because EWS is not designed to be
hosted on a computer that has a predefined address. You can use the Autodiscover
service to get the EWS endpoint address. Some client-side object model generators
parse the WSDL and can encounter an error condition because the WSDL file does not
contain a WSDL service definition. If your object model generator encounters an error,
you can insert a placeholder WSDL service definition.
Tip
If you are using the .NET Framework to develop your application, we recommend
that you use the EWS Managed API , rather than an object model generator. The
EWS Managed API provides an easy-to-use object model to handle the serialization
and deserialization of the EWS XML. For more information, see Get started with
EWS Managed API client applications .
The messages.xsd schema file contains the element definitions for the top-level
elements in the SOAP body. With the exception of the error response codes, most of the
definitions in messages.xsd are specific to an operation. The types.xsd schema contains
the definitions for the SOAP headers and all the common definitions that are shared
across operations.
See also
EWS reference for Exchange
EWS operations in Exchange
Explore the EWS Managed API, EWS, and web services in Exchange
Start using web services in Exchange
Autodiscover for Exchange
AbsoluteDate
Article • 03/29/2023 • 2 minutes to read
The AbsoluteDate element represents the date when the time changes from standard or
daylight saving time.
XML
<AbsoluteDate/>
date
Attributes
None.
Child elements
None.
Parent elements
Element Description
Standard Represents the date and time when the time changes from daylight saving time to
standard time.
Daylight
Represents the date and time when the time changes from standard time to daylight
saving time.
Text value
The text value represents the date when the shift between standard or daylight saving
time occurs.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
AbsoluteDateTransition
Article • 03/29/2023 • 2 minutes to read
XML
<AbsoluteDateTransition>
<To/>
<DateTime/>
</AbsoluteDateTransition>
AbsoluteDateTransitionType
Attributes
None.
Child elements
Element Description
To
Specifies the Period or TransitionsGroup that is the target of the time zone transition.
DateTime
Represents the date and time at which the time zone transition occurs.
Parent elements
Element Description
Transitions
Represents a collection of time zone transitions.
TransitionsGroup
Represents a collection of time zone transitions.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
AbsoluteMonthlyRecurrence
Article • 03/29/2023 • 2 minutes to read
XML
<AbsoluteMonthlyRecurrence>
<Interval/>
<DayOfMonth/>
</AbsoluteMonthlyRecurrence>
AbsoluteMonthlyRecurrencePatternType
Attributes
None.
Child elements
Element Description
DayOfMonth Describes the day in a month that a recurring item occurs. The range of values for
this property is 1 to 31. If for a particular month this value is larger than the
number of days in the month, the last day of the month is assumed for this
property.
Interval
Defines the interval between two consecutive recurring items. For example, if the
Interval element has a value of 5, the recurring item occurs every 5 months. The
range of valid values is from 1 to 99.
Parent elements
Element Description
Element Description
Recurrence (RecurrenceType)
Contains the recurrence pattern for calendar items and meeting
requests.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
AbsoluteYearlyRecurrence
Article • 03/29/2023 • 2 minutes to read
XML
<AbsoluteYearlyRecurrence>
<DayOfMonth/>
<Month/>
</AbsoluteYearlyRecurrence>
AbsoluteYearlyRecurrencePatternType
Attributes
None.
Child elements
Element Description
DayOfMonth Describes the day in a month on which a recurring item occurs. The range of
values for this property is 1 to 31. If for a particular month this value is larger than
the number of days in the month, the last day of the month is assumed for this
property.
Month (Item Describes the month in which a yearly recurring item occurs.
Recurrence)
Parent elements
Element Description
Element Description
Recurrence (RecurrenceType)
Contains the recurrence pattern for calendar items and meeting
requests.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
AcceptItem
Article • 03/29/2023 • 2 minutes to read
XML
<AcceptItem>
<ItemClass/>
<Sensitivity/>
<Body/>
<Attachments/>
<InternetMessageHeaders/>
<Sender/>
<ToRecipients/>
<CcRecipients/>
<BccRecipients/>
<IsReadReceiptRequested/>
<IsDeliveryReceiptRequested/>
<ReferenceItemId/>
<ReceivedBy/>
<ReceivedRepresenting/>
<ProposedStart/>
<ProposedEnd/>
</AcceptItem>
AcceptItemType
Attributes
None.
Child elements
Element Description
ItemClass
Represents the message class of an item.
Sensitivity
Indicates the sensitivity level of an item.
Body
Represents the actual body content of a message.
Attachments
Contains the item or file that is attached to an item in the Exchange store.
InternetMessageHeaders
Represents the Internet message header name for a given header within the headers collection.
Sender
Identifies the sender of an item.
ToRecipients
Contains a set of recipients of an item. These are the primary recipients of an item.
CcRecipients
Represents a collection of recipients that will receive a copy of the message.
BccRecipients
Represents a collection of recipients to receive a blind carbon copy (Bcc) of an e-mail.
IsReadReceiptRequested
Indicates whether the sender of an item requests a read receipt.
Element Description
ReferenceItemId
Identifies the item to which the response object refers.
ReceivedBy
Identifies the delegate in a delegate access scenario. This element was introduced in Microsoft
Exchange Server 2007 Service Pack 1 (SP1).
ReceivedRepresenting
Identifies the principal in a delegate access scenario. This element was introduced in Exchange
2007 SP1.
ProposedStart
Specifies the proposed start time of the meeting.
ProposedEnd
Specifies the proposed end time of the meeting.
Parent elements
Element Description
AdjacentMeetings
Describes all items that are adjacent to a meeting time.
/CalendarItem/AdjacentMeetings
/MeetingRequest/AdjacentMeetings
/SetItemField/CalendarItem/AdjacentMeetings
/AppendToItemField/CalendarItem/AdjacentMeetings
/AcceptItem/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/DeclineItem/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/TentativelyAcceptItem/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/SetItemField/CalendarItem/AdjacentMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/AppendToItemField/CalendarItem/AdjacentMeetings
/CreateAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/GetAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/CalendarItem/ConflictingMeetings
/MeetingRequest/ConflictingMeetings
/SetItemField/CalendarItem/ConflictingMeetings
/AppendToItemField/CalendarItem/ConflictingMeetings
/AcceptItem/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/DeclineItem/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/TentativelyAcceptItem/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/SetItemField/CalendarItem/ConflictingMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/AppendToItemField/CalendarItem/ConflictingMeetings
/CreateAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/GetAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
ResponseObjects
Contains a collection of all the response objects that are associated with an item in the Exchange
store.
Items Contains an array of items to create in the folder identified by the ParentFolderId
(NonEmptyArrayOfAllItemsType) (TargetFolderIdType) element.
Remarks
The schema that describes this element is located in the EWS directory of the Exchange server that has the Client
Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
AcceptSharingInvitation
Article • 03/29/2023 • 2 minutes to read
XML
<AcceptSharingInvitation>
<ReferenceItemId/>
</AcceptSharingInvitation>
AcceptSharingInvitationType
Attributes
None.
Child elements
Element Description
ReferenceItemId
Identifies the item to which the response object refers.
Parent elements
Element Description
ResponseObjects
Contains a collection of all the response objects that are
associated with an item in the Exchange store.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
CreateItem (AcceptSharingInvitation)
EWS XML elements in Exchange
AccessLevel
Article • 03/29/2023 • 2 minutes to read
The AccessLevel element specifies the access level for an online meeting.
XML
<AccessLevel/>
OnlineMeetingSettingsType
Attributes
None.
Child elements
None.
Parent elements
Element Description
OnlineMeetingSettings
Specifies the settings for online meetings.
Text value
The following table lists the text values for the AccessLevel element.
Value Description
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
See also
EWS XML elements in Exchange
Accuracy
Article • 03/29/2023 • 2 minutes to read
The Accuracy element specifies the accuracy of the latitude and longitude of the
associated postal address.
XML
<Accuracy></Accuracy>
xs:double
Attributes
None.
Child elements
None.
Parent elements
Element Description
PostalAddress (PersonaPostalAddressType)
Specifies the postal address for a persona.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
ActingAs
Article • 03/29/2023 • 2 minutes to read
XML
<ActingAs>
<EmailAddress/>
<RoutingType/>
</ActingAs>
EmailAddressType
Attributes
None.
Child elements
Element Description
EmailAddress Defines the Simple Mail Transfer Protocol (SMTP) address of a mailbox
(NonEmptyStringType)
user. This element is optional.
RoutingType Defines the routing that is used for the mailbox. The default is SMTP.
(EmailAddress)
This element is optional.
Parent elements
Element Description
GetServiceConfiguration
Defines a GetServiceConfiguration request.
Remarks
This element is optional. If this element is not present, the authenticated user is
assumed to be the sender. The ActingAs element must be included for requesting
sender hints. An ErrorInvalidArgument error can be returned in a response if the
ActingAs element is missing, does not include a routing type, does not include an e-
mail address, contains an invalid e-mail address, does not resolve to a user in Active
Directory Domain Services (AD DS), or resolves to multiple users in AD DS.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
Action (ConversationActionTypeType)
Article • 03/29/2023 • 2 minutes to read
The Action element contains the action to perform on the conversation specified by the
ConversationId element.
ApplyConversationAction
ConversationActions
ConversationAction
Action (ConversationActionTypeType)
XML
ConversationActionTypeType
Attributes
None.
Child elements
None.
Parent elements
Element Description
ConversationAction
Contains a single action to be applied to a single conversation.
Text value
The text value of the Action element indicates which action will be performed on a
conversation. The following are the possible text values and the corresponding actions:
AlwaysCategorize - The current items and new items in the conversation will
automatically be set with the categories identified in the Categories element.
AlwaysDelete - The current items and new items in the conversation will
automatically be deleted. The deletion mode is set by the DeleteType element.
AlwaysMove - The current items and new items in the conversation will
automatically be moved to the folder identified by the DestinationFolderId
element.
Delete - The current items in the conversation will be deleted. Subsequent items in
the conversation will not be deleted. The deletion mode is set by the DeleteType
element.
Move - The current items in the conversation will be moved to the folder identified
by the DestinationFolderId element. Subsequent items in the conversation will not
be moved.
Copy - The current items in the conversation will be copied to the folder identified
by the DestinationFolderId element. Subsequent items in the conversation will not
be copied.
SetReadState - The current items in the conversation will have their read state set.
The read state is set by the IsRead element.
Flag - The current items in the conversation will have a flag set as defined by the
Flag element.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Element Example
See also
ApplyConversationAction operation
EWS XML elements in Exchange
Action (ProtectionRuleActionType)
Article • 03/29/2023 • 2 minutes to read
The Action element identifies what action must be executed if the condition part of the
rule matches.
XML
<Action Name="">
<Argument/>
</Action>
ProtectionRuleActionType
Attributes
Attribute Description
Name
Identifies the name of the action.
Child elements
Element Description
Argument Specifies arguments to the action. This element will not occur if the specified action
does not require arguments to be specified. This element can occur one or more
times if an action requires one or more arguments. The RightsProtectMessage action
will contain a single argument.
Parent elements
Element Description
Rule
Contains a single protection rule.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Action (SetClientExtensionActionType)
Article • 03/29/2023 • 2 minutes to read
The Action element contains the action that the Exchange server should take on an app.
XML
<ClientExtension/>
</Action>
SetClientExtensionActionType
Attributes
Attribute Description
ActionId
Value Description
Child elements
Element Description
ClientExtension
Contains user and configuration information about an app.
Parent elements
Element Description
Actions (ArrayOfSetClientExtensionActionsType)
Specifies an array of Action elements.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
ActionUrl
Article • 03/29/2023 • 2 minutes to read
The ActionUrl element identifies the URL that the user should navigate to, in order to fix
an issue indicated by the AppStatus element.
XML
<ActionUrl/>
string
Attributes
None.
Child elements
None.
Parent elements
Metadata
Text value
The text value of the ActionUrl element identifies the URL that the user should navigate
to, in order to fix an issue indicated by the AppStatus element.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Metadata
EWS XML elements in Exchange
Actions
Article • 03/29/2023 • 2 minutes to read
The Actions element represents the set of actions that are available to be taken on a
message when the conditions are fulfilled.
Rule (RuleType)
XML
<Actions>
<AssignCategories>
<CopyToFolder>
<Delete>
<ForwardAsAttachmentToRecipients>
<ForwardToRecipients>
<MarkImportance>
<MarkAsRead>
<MoveToFolder>
<PermanentDelete>
<RedirectToRecipients>
<SendSMSAlertToRecipients>
<ServerReplyWithMessage>
<StopProcessingRules>
</Actions>
RuleActionsType
Attributes
None.
Child elements
Element Description
AssignCategories
Represents the categories that are stamped on e-mail
messages.
Element Description
CopyToFolder
Identifies the ID of the folder that e-mail items will be
copied to.
Delete
Indicates whether messages are to be moved to the Deleted
Items folder.
ForwardToRecipients
Indicates the e-mail addresses to which messages are to be
forwarded.
MarkAsRead
Indicates whether messages are to be marked as read.
MoveToFolder
Identifies the ID of the folder that e-mail items will be
moved to.
PermanentDelete
Indicates whether messages are to be permanently deleted
and not saved to the Deleted Items folder.
SendSMSAlertToRecipients
Indicates the mobile phone numbers to which a Short
Message Service (SMS) alert is to be sent.
ServerReplyWithMessage
Indicates. the ID of the template message that is to be sent
as a reply to incoming messages.
StopProcessingRules
Indicates whether subsequent rules are to be evaluated.
Parent elements
Element Description
Rule (RuleType)
Represents a single rule in a user's mailbox.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Conditions
EWS XML elements in Exchange
Actions
(ArrayOfSetClientExtensionActionsType)
Article • 03/29/2023 • 2 minutes to read
XML
<Actions>
<Action/>
<Actions>
ArrayOfSetClientExtensionActionsType
Attributes
None.
Child elements
Action (SetClientExtensionActionType)
Parent elements
SetClientExtension
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Type
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
Actions (RuleActionsType)
Article • 03/29/2023 • 2 minutes to read
The Actions element contains a list of actions associated with Inbox rules.
XML
<Actions>
<AssignCategories/>
<CopyToFolder/>
<Delete/>
<ForwardAsAttachmentToRecipients/>
<ForwardToRecipients/>
<MarkImportance/>
<MarkAsRead/>
<MoveToFolder/>
<PermanentDelete/>
<RedirectToRecipients/>
<SendSMSAlertToRecipients/>
<ServerReplyWithMessage/>
<StopProcessingRules/>
</Actions>
RuleActionsType
Attributes
None.
Child elements
AssignCategories | CopyToFolder | Delete | ForwardAsAttachmentToRecipients |
ForwardToRecipients | MarkImportance | MarkAsRead | MoveToFolder | PermanentDelete
| RedirectToRecipients | SendSMSAlertToRecipients | ServerReplyWithMessage |
StopProcessingRules
Parent elements
Rule (RuleType)
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
The ActionType element indicates the type of action for the hold.
XML
HoldActionType
Attributes
None.
Child elements
None.
Parent elements
SetHoldOnMailboxes
Text value
The text value of the ActionType element is the type of hold set on a mailbox. A text
value of Create indicates that a mailbox hold will be created. A text value of Update
indicates that a mailbox hold will be updated. A text value of Remove indicates that a
mailbox hold will be removed.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
XML
ReminderActionType
Attributes
None.
Child elements
None.
Parent elements
ReminderItemAction
Text value
The text value of the ActionType element specifies the action to take on the reminder.
The text value of Dismiss indicates the reminder should be dismissed. The text value of
Snooze indicates that the reminder should be delayed until the time specified by the
NewReminderTime element.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
ReminderItemAction
EWS XML elements in Exchange
ActualWork
Article • 03/29/2023 • 2 minutes to read
The ActualWork element represents the actual amount of time that is spent on a task.
XML
<ActualWork/>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
Task
Represents a task in the Exchange store.
Text value
The text value for this element represents an integer.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
AddBlankTargetToLinks
Article • 03/29/2023 • 2 minutes to read
The AddBlankTargetToLinks element specifies that the target attribute in HTML links are
set to open a new window.
XML
xs:Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
ItemShape Identifies the item properties and content to include in a GetItem, FindItem,
GetConversationItems or SyncFolderItems response.
/GetItem/ItemShape
/FindItem/ItemShape
/SyncFolderItems/ItemShape
/GetConversationItems/ItemShape
Text value
A text value of true for the AddBlankTargetToLinks element indicates that all HTML links
will be set to open a new window. A value of false indicates that HTML links will open in
the current window.
Remarks
This element is optional.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
AddDelegate
Article • 03/29/2023 • 2 minutes to read
XML
<AddDelegate>
<DelegateUsers/>
<DeliverMeetingRequests/>
<Mailbox/>
</AddDelegate>
AddDelegateType
Attributes
None.
Child elements
Element Description
DelegateUsers
Contains the identities of delegates to add to or update in a mailbox.
This element was introduced in Microsoft Exchange Server 2007
Service Pack 1 (SP1).
DeliverMeetingRequests Defines how meeting requests are handled between the delegate and
the principal. This element was introduced in Microsoft Exchange
Server 2007 Service Pack 1 (SP1).
Mailbox
Identifies a mail-enabled Active Directory directory service object.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
AddDelegate operation
EWS XML elements in Exchange
Adding Delegates
AddDelegateResponse
Article • 03/29/2023 • 2 minutes to read
XML
<AddDelegateResponse>
<ResponseMessages/>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</AddDelegateResponse>
AddDelegateResponseMessageType
Attributes
None.
Child elements
Element Description
MessageText
Provides a text description of the status of the
response.
ResponseCode
Provides an error code that identifies the specific
error that the request encountered.
DescriptiveLinkKey
Currently unused and is reserved for future use. It
contains a value of 0.
MessageXml
Provides additional error response information.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
AddDelegate operation
EWS XML elements in Exchange
Adding Delegates
AddDistributionGroupToImList
Article • 03/29/2023 • 2 minutes to read
XML
<AddDistributionGroupToImList>
<SmtpAddress/>
<DisplayName/>
</AddDistributionGroupToImList>
AddDistributionGroupToImListType
Attributes
None.
Child elements
SmtpAddress | DisplayName (NonEmptyStringType)
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<AddNewImContactToGroupResponse>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<ImGroup/>
</AddNewImContactToGroupResponse>
AddDistributionGroupToImListResponseMessageType
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml | ImGroup
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Description
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<AddImContactToGroup>
<ContactId/>
<GroupId/>
</AddImContactToGroup>
AddImContactToGroupType
Attributes
None.
Child elements
ContactId | GroupId
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<AddImContactToGroupResponse>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</AddImContactToGroupResponse>
AddImContactToGroupResponseMessageType
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
The AddImGroup element defines a request to add a new instant messaging group.
XML
<AddImGroup>
<DisplayName/>
</AddImGroup>
AddImGroupType
Attributes
None.
Child elements
DisplayName
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<AddImGroupResponse>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<ImGroup/>
</AddImGroupResponse>
AddImContactToGroupResponseMessageType
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml | ImGroup
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
AdditionalInfo
Article • 03/29/2023 • 2 minutes to read
The AdditionalInfo element specifies additional information about the hold status of a
mailbox.
XML
<AdditionalInfo></AdditionalInfo>
xs:string
Attributes
None.
Child elements
None.
Parent elements
Element Description
MailboxHoldStatus
Specifies the hold status of the mailbox.
NonIndexableItemDetail
Specifies detail for an item that cannot be indexed.
Text value
The text value of the AdditionalInfo element is additional information about the hold
status of a mailbox.
Remarks
This element is optional.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
AdditionalProperties
Article • 03/29/2023 • 2 minutes to read
XML
<AdditionalProperties>
<ExtendedFieldURI/>
<FieldURI/>
<IndexedFieldURI/>
</AdditionalProperties>
NonEmptyArrayOfPathsToElementType
Attributes
None.
Child elements
Element Description
ExtendedFieldURI
Identifies extended MAPI properties to get, set, or create.
FieldURI
Identifies frequently referenced properties by URI.
IndexedFieldURI
Identifies frequently referenced dictionary properties by URI.
Parent elements
Element Description
Element Description
FolderShape
Identifies the folder properties to include in a GetFolder, FindFolder, or
SyncFolderHierarchy response.
/FindFolder/FolderShape
/GetFolder/FolderShape
/SyncFolderHierarchy/FolderShape
ItemShape
Identifies the item properties and content to include in a GetItem, FindItem,
or SyncFolderItems response.
/GetItem/ItemShape
/FindItem/ItemShape
/SyncFolderItems/ItemShape
/GetAttachment/AttachmentShape
Remarks
Not all the child elements can be used with GetItem, UpdateItem, CreateItem, FindItem,
or FindFolder requests. The property must be applicable to the folder or item that is
accessed. Use extended properties to access other properties. If the property does not
exist for a given item, no corresponding element will be emitted into the resulting XML.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Example
The following request example shows how to get an item subject by using the
AdditionalProperties element.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<GetItem
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
<t:FieldURI FieldURI="item:Subject"/>
</t:AdditionalProperties>
</ItemShape>
<ItemIds>
<t:ItemId Id="ASkAS="/>
</ItemIds>
</GetItem>
</soap:Body>
</soap:Envelope>
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
XML
<AddNewImContactToGroup>
<ImAddress/>
<DisplayName/>
<GroupId/>
</AddNewImContactToGroup>
AddNewImContactToGroupType
Attributes
None.
Child elements
ImAddress (NonEmptyStringType) | DisplayName (NonEmptyStringType) | GroupId
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<AddNewImContactToGroupResponse>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<Persona/>
</AddNewImContactToGroupResponse>
AddNewImContactToGroupResponseMessageType
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml | Persona
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<AddNewTelUriContactToGroup>
<TelUriAddress/>
<ImContactSipUriAddress/>
<ImTelephoneNumber/>
<GroupId/>
</AddNewTelUriContactToGroup>
AddNewTelUriContactToGroupType
Attributes
None.
Child elements
TelUriAddress | ImContactSipUriAddress | ImTelephoneNumber | GroupId
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
AddNewTelUriContactToGroup operation
EWS XML elements in Exchange
AddNewTelUriContactToGroupResponse
Article • 03/29/2023 • 2 minutes to read
XML
<AddNewTelUriContactToGroupResponse>
<Persona/>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
</AddNewTelUriContactToGroupResponse>
AddNewTelUriContactToGroupResponseMessageType
Attributes
None.
Child elements
Persona | MessageText | ResponseCode | DescriptiveLinkKey
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
AddNewTelUriContactToGroup operation
EWS XML elements in Exchange
Address (ContactType)
Article • 03/29/2023 • 2 minutes to read
XML
<Address></Address>
xs:string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Addresses (ArrayOfAddressesType)
Specifies an array of Address elements.
Text value
The text value of the Address element is the contact's postal address.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
Address (EmailAddressType)
Article • 03/29/2023 • 2 minutes to read
XML
<Address>
<Name/>
<EmailAddress/>
<RoutingType/>
<MailboxType/>
<ItemId/>
</Address >
EmailAddressType
Attributes
None.
Child elements
Element Description
Name Defines the name of the mailbox user. This element is optional.
(EmailAddressType)
EmailAddress Defines the Simple Mail Transfer Protocol (SMTP) address of a mailbox
(NonEmptyStringType) user. This element is optional.
RoutingType Defines the routing that is used for the mailbox. The default is SMTP.
(EmailAddress)
This element is optional.
MailboxType
Defines the mailbox type of a mailbox user. This element is optional.
ItemId
Defines the item identifier of a contact or private distribution list for
recipients from a user's Contacts folder. This element is optional.
Parent elements
Element Description
RoomLists
Contains a list of meeting rooms in an organization.
SentToAddresses
Contains a list of e-mail addresses that incoming messages have to have
been sent to in order for the condition or exception to apply.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Description
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetMessageTrackingReport operation
GetRoomLists operation
EWS XML elements in Exchange
Address (string)
Article • 03/29/2023 • 2 minutes to read
The Address element represents the e-mail address of the mailbox user.
XML
<Address>...</Address>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Email Specifies the e-mail address of the MailboxData object. This element is used
(EmailAddressType) in the GetUserAvailability operation.
/GetUserAvailabilityRequest/MailboxDataArray/MailboxData[i]/Email
/GetUserOofSettingsRequest/Mailbox
/SetUserOofSettingsRequest/Mailbox
Text value
A text value is required if this element is used.
Remarks
This element can occur at most one time in the Email (EmailAddressType) element and
the Mailbox (Availability) element.
7 Note
The schema that describes this element is located in the EWS virtual directory of
the computer that is running MicrosoftExchange Server 2007 that has the Client
Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserOofSettings operation
SetUserOofSettings operation
GetUserAvailabilityRequest
GetUserOofSettingsRequest
SetUserOofSettingsRequest
Getting User Availability
AddressEntity
Article • 03/29/2023 • 2 minutes to read
XML
<AddressEntity>
<Address></Address>
<Position></Position>
</AddressEntity>
AddressEntityType
Attributes
None.
Child elements
Element Description
Address (string)
Specifies an address.
Position
Specifies the position in an email message.
Parent elements
Element Description
Addresses (ArrayOfAddressEntitiesType)
Specifies an array of AddressEntity elements.
Text value
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
Addresses (ArrayOfAddressEntitiesType)
Article • 03/29/2023 • 2 minutes to read
XML
<Addresses>
<AddressEntity/>
</Addresses>
ArrayOfAddressEntitiesType
Attributes
None.
Child elements
Element Description
AddressEntity
Specifies a single address entity.
Parent elements
Element Description
EntityExtractionResult
Specifies the EntityExtractionResult property of an item.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
Addresses (ArrayOfAddressesType)
Article • 03/29/2023 • 2 minutes to read
XML
<Addresses>
<Address></Address>
</Addresses>
ArrayOfAddressesType
Attributes
None.
Child elements
Element Description
Address (ContactType)
Specifies the address of a contact.
Parent elements
Element Description
Contact (ContactType)
Specifies a contact in the Unified Contact Store.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
AddressListId
Article • 03/29/2023 • 2 minutes to read
XML
<AddressListId Id="">
</AddressListId>
AddressListIdType
Attributes
Attribute Description
Id
A string address list identifier. This attribute is required.
Child elements
None.
Parent elements
Element Description
ContextFolderId
Indicates the folder that is targeted for actions that use folders. This
element must be present when copying, deleting, moving, and setting read
state on conversation items in a target folder.
CopyToFolder
Specifies the identifier of the folder to which email items are copied.
DestinationFolderId Indicates the destination folder for copy and move actions.
MoveToFolder
Specifies the identifier of the folder to which email items are moved
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
AdjacentMeetingCount
Article • 03/29/2023 • 2 minutes to read
The AdjacentMeetingCount element represents the total number of calendar items that
are adjacent to a meeting time.
XML
<AdjacentMeetingCount/>
Int
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
MeetingRequest
Represents a meeting in the Exchange store.
Text value
A text value that represents an integer is required.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
AdjacentMeetings
Article • 03/29/2023 • 2 minutes to read
The AdjacentMeetings element identifies all calendar items that are adjacent to a
meeting time.
XML
<AdjacentMeetings>
<CalendarItem/>
</AdjacentMeetings>
NonEmptyArrayOfAllItemsType
Attributes
None.
Child elements
Element Description
CalendarItem
Represents an Exchange calendar item.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
MeetingRequest
Represents a meeting request in the Exchange store.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
7 Note
Although additional child elements are valid per the schema, the CalendarItem
element is the only child element that Exchange Web Services (EWS) will return
within the AdjacentMeetings element. This topic does not list child elements that
are valid per the schema but will not be returned by EWS.
Element information
Element Description
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
AggregateOn
Article • 03/29/2023 • 3 minutes to read
The AggregateOn element represents the property that is used to determine the order
of grouped items for a grouped FindItem result set.
FindItem
GroupBy
AggregateOn
XML
<AggregateOn>
<FieldURI/>
</AggregateOn>
XML
<AggregateOn>
<IndexedFieldURI/>
</AggregateOn>
XML
<AggregateOn>
<ExtendedFieldURI/>
</AggregateOn>
AggregateOnType
Attributes
Attribute Description
Attribute Description
Aggregate Indicates the maximum or minimum value of the property identified by the FieldURI
element that is used for ordering the groups of items.
- Minimum
- Maximum
Child elements
Element Description
FieldURI
Identifies frequently referenced properties by URI.
IndexedFieldURI
Identifies individual members of a dictionary.
ExtendedFieldURI
Identifies extended MAPI properties to get, set, or create.
Parent elements
Element Description
GroupBy
Specifies arbitrary groupings for FindItem queries.
The following is the XPath expression to this element: /FindItem/GroupBy
Remarks
The FindItem operation can return grouped results. Within grouped results, all items
that have the same value for a given grouping property are gathered together and
presented as children of that group. For example, if you group by sender, all e-mails are
organized into separate groups based on whether they are from sender A, sender B, and
so on. These groups are children of the sender group.
Each of the groups within the sender group contains a collection of items, such as the
actual e-mails that came from each sender. You can use the SortOrder element to sort
the items within a group. To sort the groups based on an item's property values,
however, you must use aggregation.
With aggregation, the order of groups is based on a specific property of the items
within the group. When you use aggregation to sort items within a group, you must
identify a representative property by which to sort the groups. You can use the
AggregateOn element to specify the representative property.
For example, if you want to issue a FindItem grouped query, grouping by sender, but
you want to order the groups so that the group with the most recent e-mail message is
on top, you can group by sender and aggregate on date/time received with an
Aggregate attribute of Maximum.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Example
The following example shows a grouped FindItem request and response. The example
shows a request to return items grouped by the ConversationTopic property. Two
groups, A and B, are returned in descending order based on the maximum value of the
DateTimeReceived property.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<FindItem
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
Traversal="Shallow">
<ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
<t:FieldURI FieldURI="message:ConversationTopic"/>
<t:FieldURI FieldURI="item:DateTimeReceived"/>
</t:AdditionalProperties>
</ItemShape>
<GroupBy Order="Ascending">
<t:FieldURI FieldURI="message:ConversationTopic"/>
<t:AggregateOn Aggregate="Maximum">
<t:FieldURI FieldURI="item:DateTimeReceived"/>
</t:AggregateOn>
</GroupBy>
<ParentFolderIds>
<t:DistinguishedFolderId Id="inbox"/>
</ParentFolderIds>
</FindItem>
</soap:Body>
</soap:Envelope>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<FindItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:FindItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<t:Groups>
<t:GroupedItems>
<t:GroupIndex>B</t:GroupIndex>
<t:Items>
<t:Message>
<t:DateTimeReceived>2006-09-
14T23:59:18Z</t:DateTimeReceived>
<t:ConversationTopic>B</t:ConversationTopic>
</t:Message>
<t:Message>
<t:DateTimeReceived>2006-09-
15T00:00:24Z</t:DateTimeReceived>
<t:ConversationTopic>B</t:ConversationTopic>
</t:Message>
<t:Message>
<t:DateTimeReceived>2006-09-
15T00:22:45Z</t:DateTimeReceived>
<t:ConversationTopic>B</t:ConversationTopic>
</t:Message>
</t:Items>
</t:GroupedItems>
<t:GroupedItems>
<t:GroupIndex>A</t:GroupIndex>
<t:Items>
<t:Message>
<t:DateTimeReceived>2006-09-
14T23:56:12Z</t:DateTimeReceived>
<t:ConversationTopic>A</t:ConversationTopic>
</t:Message>
<t:Message>
<t:DateTimeReceived>2006-09-
14T23:57:33Z</t:DateTimeReceived>
<t:ConversationTopic>A</t:ConversationTopic>
</t:Message>
<t:Message>
<t:DateTimeReceived>2006-09-
15T00:23:31Z</t:DateTimeReceived>
<t:ConversationTopic>A</t:ConversationTopic>
</t:Message>
</t:Items>
</t:GroupedItems>
</t:Groups>
</m:RootFolder>
</m:FindItemResponseMessage>
</m:ResponseMessages>
</FindItemResponse>
</soap:Body>
</soap:Envelope>
7 Note
The item identifiers and change keys have been shortened to preserve readability.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Element Example
See also
FindItem operation
EWS XML elements in Exchange
Finding Items
AggregationRestriction
Article • 03/29/2023 • 2 minutes to read
XML
<AggregationRestriction>
<SearchExpression/>
</AggregationRestriction>
RestrictionType
Attributes
None.
Child elements
SearchExpression
Parent elements
FindPeople
Remarks
The AggregationRestriction element can contain any child element that uses the
SearchExpression substitution group. The elements that are a part of the
SearchExpression substitution group are: Contains, Excludes, Exists, Not, Or, And,
IsEqualTo, IsNotEqualTo, IsGreaterThan, IsGreaterThanOrEqualTo, IsLessThan, and
IsLessThanOrEqualTo.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<Alias/>
string
Attributes
None.
Child elements
None.
Parent elements
Contact
Represents a contact item in the Exchange store.
Text value
The text value is a string that represents the email alias of a contact.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
This element was introduced in Exchange Server 2010 Service Pack 2 (SP2).
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Creating Contacts (Exchange Web Services)
Alias (FederatedDirectoryGroupType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Alias (MasterMailboxType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
AllInternal
Article • 03/29/2023 • 2 minutes to read
The AllInternal element evaluates to true if all recipients of an e-mail message are
internal to the sender's organization.
XML
<AllInternal/>
ProtectionRuleAllInternalType
Attributes
None.
Child elements
None.
Parent elements
Element Description
Condition
Identifies the condition that must be satisfied for the action part of the
rule to be executed.
And Specifies that all child elements must match to evaluate to true.
(ProtectionRuleAndType)
Text value
The AllInternal element must be empty.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
AllowExternalOof
Article • 03/29/2023 • 2 minutes to read
The AllowExternalOof element contains a value that identifies to whom external Out of
Office (OOF) messages are sent.
GetUserOofSettingsResponse
AllowExternalOof
XML
ExternalAudience
Attributes
None.
Child elements
None.
Parent elements
Element Description
GetUserOofSettingsResponse
Contains the response results and the OOF settings for a user.
Text value
A text value is required for this element. The following table lists the possible values for
this element.
Value Description
Value Description
None
E-mail senders outside the mailbox user's organization who send messages to the user
will not receive an external OOF message response.
Known E-mail senders outside the mailbox user's organization who send messages to the user
will only receive an external OOF message response if the sender is in the user's
Exchange store contact list.
All
E-mail senders outside the mailbox user's organization who send messages to the user
will receive an external OOF message response.
Remarks
This element shares the same type as the ExternalAudience element.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetUserOofSettings operation
SetUserOofSettings operation
AllowNewTimeProposal
Article • 03/29/2023 • 2 minutes to read
XML
<AllowNewTimeProposal/>
Boolean
Attributes
None
Child elements
None.
Parent elements
Element Description
MeetingRequest
Represents a meeting in the Exchange store.
CalendarItem
Represents an Exchange calendar item.
Text value
A text value that represents a Boolean value is required. A value of true indicates that a
new proposal for the meeting time can be created; a value of false indicates that new
time proposals are not allowed. The organizer sets this value in the meeting request.
Remarks
The AllowNewTimeProposal property is read-writable for the organizer's calendar item.
It is read-only for meeting requests and for attendees' calendar items.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
7 Note
Exchange Web Services does not support new time proposal messages. To get
properties that are related to new time proposal messages, use extended
properties.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
AlternateId
Article • 03/29/2023 • 2 minutes to read
The AlternateId element describes an identifier to convert in a request and the results of a converted identifier in the
response.
XML
AlternateIdType
Attributes
Attribute Description
Id Describes the source identifier in a ConvertId operation request and describes the destination identifier in a ConvertId
operation response.
Format Describes the source format in a ConvertId operation request and describes the destination format in a ConvertId operation
response. The destination format is described by the DestinationFormat attribute of the ConvertId element in the request.
This attribute is of type IdFormatType.
Mailbox Describes the mailbox primary Simple Mail Transfer Protocol (SMTP) address that contains the identifiers to translate.
IsArchive Indicates whether the identifier represents an archived item or folder. A value of true indicates that the identifier represents
an archived item or folder. This attribute is optional.
Value Description
EwsLegacyId Describes identifiers that are produced by Exchange Web Services in the initial release version of Exchange 2007.
EwsId Describes identifiers that are produced by Exchange Web Services starting with Exchange 2007 SP1.
HexEntryId Describes a hexadecimal-encoded representation of the PR_ENTRYID property. This is the format of availability calendar
event identifiers.
Child elements
None.
Parent elements
Element Description
ConvertIdResponseMessage
Contains the status and result of a ConvertId operation request.
Element Description
SourceIds
Contains the source identifiers to convert.
Text value
None.
Remarks
The AlternateId element describes two identifiers, the source identifier that is to be converted in the ConvertId operation
request, and the converted identifier in the ConvertIdResponse element.
The schema that describes this element is located in the IIS virtual directory that hosts Exchange Web Services.
Element information
Element Example Type
See also
ConvertId operation
EWS XML elements in Exchange
Converting Identifiers
AlternatePublicFolderId
Article • 03/29/2023 • 2 minutes to read
ConvertId
SourceIds
AlternatePublicFolderId
XML
AlternatePublicFolderIdType
Attributes
Attribute Description
FolderId Contains the public folder identifier to convert. This attribute is required.
Format Identifies the format that describes the public folder identifier to convert. This
attribute is required.
Format attribute
Value Description
EwsLegacyId Describes identifiers that are produced by Exchange Web Services in the initial
release version of Exchange 2007.
EwsId Describes identifiers that are produced by Exchange Web Services starting with
Exchange 2007 SP1.
Child elements
None.
Parent elements
Element Description
SourceIds Contains the source identifiers to convert. This element was introduced in Microsoft
Exchange Server 2007 Service Pack 1 (SP1).
Element information
Element Description
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
ConvertId operation
EWS XML elements in Exchange
Converting Identifiers
AlternatePublicFolderItemId
Article • 03/29/2023 • 2 minutes to read
ConvertId
SourceIds
AlternatePublicFolderItemId
XML
AlternatePublicFolderItemIdType
Attributes
Attribute Description
FolderId Identifies the public folder that contains the public folder item. This attribute is
required.
Format Identifies the format that describes the public folder item identifier to convert. This
attribute is required.
ItemId Identifier the public folder item to convert. This attribute is required.
Value Description
EwsLegacyId Describes identifiers that are produced by Exchange Web Services in the initial
release version of Exchange 2007.
Value Description
EwsId Describes identifiers that are produced by Exchange Web Services starting with
Exchange 2007 SP1.
Child elements
None.
Parent elements
Element Description
SourceIds Contains the source identifiers to convert. This element was introduced in Exchange
2007 SP1.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Description
Namespace https://schemas.microsoft.com/exchange/services/2006/types
XML
<Altitude></Altitude>
xs:double
Attributes
None.
Child elements
None.
Parent elements
Element Description
PostalAddress (PersonaPostalAddressType)
Specifies the postal address of the location.
Text value
The text value of the Altitude element is the altitude of a postal address.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Description
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
AltitudeAccuracy
Article • 03/29/2023 • 2 minutes to read
The AltitudeAccuracy element specifies the accuracy of the altitude property for a
postal address.
XML
<AltitudeAccuracy></AltitudeAccuracy>
xs:double
Attributes
None.
Child elements
None.
Parent elements
Element Description
PostalAddress (PersonaPostalAddressType)
Specifies the postal address of the location.
Text value
The text value of the AltitudeAccuracy element is the accuracy estimate for the altitude
property of a postal address.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
And
Article • 03/29/2023 • 2 minutes to read
The And element represents a search expression that allows you to perform a Boolean
AND operation between two or more search expressions. The result of the AND
operation is true if all the search expressions contained within the And element are true.
XML
<And>
<SearchExpression/>
<SearchExpression/>
</And>
AndType
Attributes
None.
Child elements
Element Description
Element Description
SearchExpression Represents the base class for expressions within a restriction. There must be
two or more search expressions in an And operation.
Exists
Excludes
IsEqualTo
IsNotEqualTo
IsGreaterThan
IsGreaterThanOrEqualTo
IsLessThan
IsLessThanOrEqualTo
Contains
Not
And
Or
Parent elements
Element Description
Restriction Represents the restriction or query that is used to filter items or folders in
FindItem/FindFolder and search folder operations.
Not
Represents a search expression that negates the Boolean value of the search
expression that it contains.
And
Represents a search expression that allows you to perform a Boolean AND operation
between two or more search expressions. The result of the AND operation is true if
all of the search expressions contained within the And element are true.
Or
Represents a search expression that performs a logical OR operation on the search
expression that it contains. Or will return true if any of its children return true. Or
must have two or more children.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
And (ProtectionRuleAndType)
Article • 03/29/2023 • 2 minutes to read
The And element specifies that all child elements must match to evaluate to true.
XML
<And>
<AllInternal/>
<And/>
<RecipientIs/>
<SenderDepartments/>
<True/>
</And>
ProtectionRuleAndType
Attributes
None.
Child elements
Element Description
AllInternal
Evaluates to true if all recipients of an e-mail message are internal to the
sender's organization.
And
Specifies that all child elements must match to evaluate to true.
RecipientIs
Specifies that any recipient of the e-mail message matches any of the
specified recipients in the child Value (ProtectionRuleValueType) elements.
SenderDepartments Specifies that the department of the sender matches any of the specified
departments in the child Value (ProtectionRuleValueType) elements.
True
Specifies a condition that always matches.
Parent elements
Element Description
Condition Identifies the condition that must be satisfied for the action part of the rule to be
executed.
And
Specifies that all child elements must match to evaluate to true.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Annotation
Article • 03/29/2023 • 2 minutes to read
XML
<Annotation></Annotation>
xs:string
Attributes
None.
Child elements
None.
Parent elements
Element Description
EnhancedLocation Specifies location information such as the name, address, and optional notes
about a location.
Text value
The text value of the Annotation element is a user added note about a location.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
ApiVersionSupported
Article • 03/29/2023 • 2 minutes to read
The ApiVersionSupported element contains the version of the JavaScript API for Office
supported by the client.
XML
<ApiVersionSupported />
string
Attributes
None.
Child elements
None.
Parent elements
GetAppManifests
Text value
The text value of the ApiVersionSupported element contains the version of the
JavaScript API for Office supported by the client. This value indicates which app
manifests should be returned to the client in the response.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
Element information
Element Description
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetAppManifests
EWS XML elements in Exchange
App
Article • 03/29/2023 • 2 minutes to read
The App element contains information about an XML manifest file for a mail app that is
installed in a mailbox.
XML
<App>
<Metadata/>
<Manifest/>
</App>
Attributes
None.
Child elements
Metadata | Manifest
Parent elements
Apps
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Apps
Metadata
Manifest
EWS XML elements in Exchange
AppendToFolderField
Article • 03/29/2023 • 2 minutes to read
The AppendToFolderField element is not implemented. Any request that uses this
element will always return an error response.
AppendToFolderFieldType
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
AppendToItemField
Article • 03/29/2023 • 2 minutes to read
UpdateItem
ItemChanges
ItemChange
Updates (Item)
AppendToItemField
XML
<AppendToItemField>
<FieldURI/>
<Item/>
</AppendToItemField>
AppendToItemFieldType
Attributes
None.
Child elements
Element Description
FieldURI
Identifies frequently referenced properties by URI.
IndexedFieldURI
Identifies individual members of a dictionary.
ExtendedFieldURI
Identifies extended MAPI properties to append.
Item
Represents an item in the Exchange store.
Element Description
Message
Represents an Exchange e-mail message.
CalendarItem
Represents an Exchange calendar item.
Contact
Represents an Exchange contact item.
DistributionList
Represents a distribution list.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
Task
Represents a task in the Exchange store.
Parent elements
Element Description
Updates Contains an array that defines append, set, and delete changes to item properties.
(Item)
The following is the XPath expression to this element:
/UpdateItem/ItemChanges/ItemChange[i]/Updates
Remarks
Only certain properties support append operations. An attempt to append to a property
that does not support appending will result in an error.
For update operations, only one property can be modified within a single request. That
single property must be referenced in the Path element. The Item element in the derived
classes can then only hold a single property that is in agreement with the single Path
element.
7 Note
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
UpdateItem operation
EWS XML elements in Exchange
ApplicationRoles
Article • 03/29/2023 • 2 minutes to read
The ApplicationRoles element specifies the application roles that the calling partner
application uses for the current call.
XML
<ApplicationRoles>
<Role></Role>
</ApplicationRoles>
NonEmptyArrayOfRoleType
Attributes
None.
Child elements
Element Description
Role
Specifies a string that represents a management role.
Parent elements
Element Description
ManagementRole
Specifies the management role.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
ApplyConversationAction
Article • 03/29/2023 • 2 minutes to read
ApplyConversationAction
XML
<ApplyConversationAction>
<ConversationActions/>
</ApplyConversationAction>
ApplyConversationActionType
Attributes
None.
Child elements
Element Description
ConversationActions
Contains a collection of conversations and the actions to apply to them.
Parent elements
None.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
ApplyConversationAction operation
EWS XML elements in Exchange
ApplyConversationActionResponse
Article • 03/29/2023 • 2 minutes to read
ApplyConversationActionResponse
XML
<ApplyConversationActionResponse>
<ResponseMessages/>
</ApplyConversationActionResponse>
ApplyConversationActionResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Parent elements
None.
Text value
None.
Remarks
This element was introduced in Exchange Server 2010 Service Pack 1 (SP1).
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
ApplyConversationAction operation
EWS XML elements in Exchange
ApplyConversationActionResponseMess
age
Article • 03/29/2023 • 2 minutes to read
ApplyConversationActionResponse
ResponseMessages
ApplyConversationActionResponseMessage
XML
<ApplyConversationActionResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</ApplyConversationActionResponseMessage>
ApplyConversationActionResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of the response.
Success
Warning
Error
Value Description
Value Description
Success
Describes a request that is fulfilled.
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and reserved for future use. This element contains a value
of 0.
MessageXml
Provides additional error response information.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Version differences
In versions of Exchange starting with build 15.00.0986.00, the
ApplyConversationActionResponseMessage element is of type
ApplyConversationActionResponseMessageType. In previous versions, the element is
of type ResponseMessageType.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
ApplyConversationAction operation
EWS XML elements in Exchange
AppMarketplaceUrl
Article • 03/29/2023 • 2 minutes to read
The AppMarketplaceUrl element specifies the URL for the app marketplace.
XML
<AppMarketplaceUrl></AppMarketplaceUrl>
xs:string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
The text value of the AppMarketplaceUrl element is the URL for the app marketplace.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can Be Empty
See also
EWS XML elements in Exchange
AppointmentReplyTime
Article • 03/29/2023 • 2 minutes to read
The AppointmentReplyTime element represents the date and time that an attendee
replied to a meeting request.
XML
<AppointmentReplyTime/>
DateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
MeetingRequest
Represents a meeting in the Exchange store.
Text value
A string that represents a date and time.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
AppointmentSequenceNumber
Article • 03/29/2023 • 2 minutes to read
XML
<AppointmentSequenceNumber/>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
MeetingRequest
Represents a meeting request in the Exchange store.
Text value
The text value represents a version number.
Remarks
This value is updated when the appointment is updated with new information.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Description
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
AppointmentState
Article • 03/29/2023 • 2 minutes to read
XML
<AppointmentState/>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
MeetingRequest
Represents a meeting in the Exchange store.
Text value
This element contains a text value that represents set bits. This is in integer form. This
element is read-only. It will only be returned in a response.
Remarks
The integer value that is returned represents the appointment state bitmask. The
following table describes each bit.
None 0x0000 No flags have been set. This is only used for an appointment that does not
include attendees.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ApprovalDecision
Article • 03/29/2023 • 2 minutes to read
XML
<ApprovalDecision> 1 | 2 </ApprovalDecision>
int
Attributes
None.
Child elements
None.
Parent elements
ApprovalRequestData
Text value
The text value of the ApprovalDecision element is 1 if approved and 2 if rejected.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
ApprovalRequestData
EWS XML elements in Exchange
ApprovalDecisionMaker
Article • 03/29/2023 • 2 minutes to read
The ApprovalDecisionMaker element specifies the display name of the person who
made the approval decision.
XML
<ApprovalDecisionMaker />
string
Attributes
None.
Child elements
None.
Parent elements
ApprovalRequestData
Text value
The text value of the ApprovalDecisionMaker element is a display name.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
ApprovalRequestData
EWS XML elements in Exchange
ApprovalDecisionTime
Article • 03/29/2023 • 2 minutes to read
The ApprovalDecisionTime element specifies the time at which the approval decision
was made.
XML
<ApprovalDecisionTime />
dateTime
Attributes
None.
Child elements
None.
Parent elements
ApprovalRequestData
Text value
The text value of the ApprovalDecisionTime element represents the time and date at
which the approval decision was made.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
ApprovalRequestData
EWS XML elements in Exchange
ApprovalRequestData
Article • 03/29/2023 • 2 minutes to read
XML
<ApprovalRequestData>
<IsUndecidedApprovalRequest/>
<ApprovalDecision/>
<ApprovalDecisionMaker/>
<ApprovalDecisionTime/>
</ApprovalRequestData>
ApprovalRequestDataType
Attributes
None.
Child elements
IsUndecidedApprovalRequest | ApprovalDecision | ApprovalDecisionMaker |
ApprovalDecisionTime
Parent elements
Message
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Message
EWS XML elements in Exchange
Apps
Article • 03/29/2023 • 2 minutes to read
The Apps element contains information about all the XML manifest files for apps
installed in a mailbox.
XML
<Apps>
<App/>
</Apps>
Attributes
None.
Child elements
App
Parent elements
GetAppManifestsResponse
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Description
Element Description
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
App
GetAppManifestsResponse
EWS XML elements in Exchange
AppStatus
Article • 03/29/2023 • 2 minutes to read
The AppStatus element value indicates the status of the mail app.
XML
<AppStatus/>
string
Attributes
None.
Child elements
None.
Parent elements
Metadata
Text value
The text value of the AppStatus element indicates the status of the mail app. If the user
can fix an issue related to the status of the mail app, the ActionUrl element provides the
URL to perform the fix.
Value Description
1.0 The mail app could not be automatically updated. The mail app needs to be re-installed
from the Office Store.
1.1 The mail app could not be automatically updated. The mail app requires increased
permissions, and this requires your review and confirmation to install.
1.2 The mail app couldn't be updated automatically. The current license has expired or is
invalid. Please update the mail app from the Office Store.
2.0 The mail app license could not be automatically updated. The license for the mail app
needs to be recovered from the Office Store.
2.1 The mail app license could not be automatically updated. The current license has expired.
A new license for this app needs to be installed from the Office Store.
3.0 The Office Store status for the mail app has changed. This may indicate that there is a
problem with the mail app. Go to the mail app page in the Office Store for more
information.
3.1 The mail app has been removed from the Office Store.
3.2 A problem has been discovered with the mail app and it has temporarily been withdrawn
from the Office Store.
3.3 The mail app will be removed from the Office Store within 30 days.
4.0 The mail app has been automatically disabled by your mail client.
4.1 The mail app has been disabled by Outlook for performance reasons.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Metadata
EWS XML elements in Exchange
ArchiveItem
Article • 03/29/2023 • 2 minutes to read
The ArchiveItem element contains the source folder Id and an array of item Ids for the
associated archive item.
XML
<ArchiveItem>
<ArchiveSourceFolderId/>
<ItemIds/>
</ArchiveItem>
ArchiveItemType
Attributes
None.
Child elements
ArchiveSourceFolderId | ItemIds
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<ArchiveItemResponse>
<ResponseMessages></ResponseMessages>
</ArchiveItemResponse>
ArchiveItemResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages to an Exchange Web Services request.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can Be Empty
See also
EWS XML elements in Exchange
ArchiveItemResponseMessage
Article • 03/29/2023 • 2 minutes to read
XML
<ArchiveItemResponseMessage ResponseClass="">
<MessageText></MessageText>
<ResponseCode></ResponseCode>
<DescriptiveLinkKey></DescriptiveLinkKey>
<MessageXml></MessageXml>
<Items></Items>
</ArchiveItemResponseMessage>
ItemInfoResponseMessageType
Attributes
Attribute Description
ResponseClass
Value Description
Child elements
Element Description
Element Description
DescriptiveLinkKey
Currently unused and reserved for future use.
Items
Contains an array of items.
MessageText
Provides a text description of the status of the response.
MessageXml
Provides additional error response information.
ResponseCode
Provides status information about the request.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can Be Empty
See also
EWS XML elements in Exchange
ArchiveSourceFolderId
Article • 03/29/2023 • 2 minutes to read
The ArchiveSourceFolderId element specifies the Id of the source folder for the archive
item.
XML
<ArchiveSourceFolderId>
<FolderId/>
<DistinguishedFolderId/>
<AddressListId/>
</ArchiveSourceFolderId>
TargetFolderIdType
Attributes
None.
Child elements
FolderId | DistinguishedFolderId | AddressListId
Parent elements
ArchiveItem
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
The ArchiveTag element specifies the retention identifier of the archive tag set on an
item or folder.
XML
<ArchiveTag IsExplicit=""></ArchiveTag>
RetentionTagType
Attributes
Attribute Description
IsExplicit Specifies whether the retention policy is explicitly set on an item or folder or whether
it is inherited from a parent folder.
Child elements
None.
Parent elements
Element Description
CalendarFolder
Represents a folder that primarily contains calendar items.
CalendarItem
Represents an Exchange calendar item.
Contact
Represents a contact item in the Exchange store.
ContactsFolder
Represents a contacts folder that is contained in a mailbox.
DistributionList
Represents a distribution list.
Folder
Defines a folder to create, get, find, synchronize, or update.
Element Description
Item
Represents a generic item in the Exchange store.
Message
Represents a Microsoft Exchange email message.
PostItem
Represents a post item in the Exchange store.
SearchFolder
Represents a search folder that is contained in a mailbox.
Task
Represents a task in the Exchange store.
TasksFolder
Represents a tasks folder that is contained in a mailbox.
Text value
The text value of the ArchiveTag element is a GUID that identifies the retention policy.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
Argument
Article • 03/29/2023 • 2 minutes to read
XML
<Argument Value=""/>
ProtectionRuleArgumentType
Attributes
Attribute Description
Value
A non-empty string value that represents the value of an argument to the action part
of a protection rule. This attribute is required.
Child elements
None.
Parent elements
Element Description
Action Identifies what action must be executed if the condition part of the
(ProtectionRuleActionType)
rule matches.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
AssignCategories
Article • 03/29/2023 • 2 minutes to read
The AssignCategories element represents the categories that are stamped on e-mail
messages.
Rule (RuleType)
Actions
XML
<AssignCategories>
<String/>
</AssignCategories>
ArrayOfStringsType
Attributes
None.
Child elements
Element Description
String
Contains a string that identifies a single category.
Parent elements
Element Description
Actions
Represents the set of actions that are available to be taken on a message when the
conditions are fulfilled.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
AssignedTime
Article • 03/29/2023 • 2 minutes to read
The AssignedTime element represents the time when a task is assigned to a contact.
XML
<AssignedTime/>
DateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
Task
Represents a task in the Exchange store.
Text value
This property is read-only.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Assignees
Article • 03/29/2023 • 2 minutes to read
XML
<Assignees>
<Name></Name>
<UserID></UserID>
</Assignees>
EmailUserType
Attributes
None.
Child elements
Element Description
Name (EmailAddress)
Represents the display name of the mailbox user.
UserId (string)
Specifies the user identifier of an email user.
Parent elements
Element Description
TaskSuggestion
Specifies a proposed task.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Description
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
AssistantName
Article • 03/29/2023 • 2 minutes to read
XML
<AssistantName/>
String
Attributes
None.
Child elements
None.
Parent elements
Element Description
Contact
Represents an Exchange contact item.
Text value
A text value that represents a string is required if this element is used.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Description
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
AssistantNames
Article • 03/29/2023 • 2 minutes to read
The AssistantNames element specifies an array of assistant names and the identifiers of
their source attributions for the associated persona.
XML
<AssistantNames>
<StringAttributedValue></StringAttributedValue>
</AssistantNames>
ArrayOfStringAttributedValuesType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
AssistantPhoneNumbers
Article • 03/29/2023 • 2 minutes to read
XML
<AssistantPhoneNumbers>
<PhoneNumberAttributedValue></PhoneNumberAttributedValue>
</AssistantPhoneNumbers>
ArrayOfPhoneNumberAttributedValuesType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
AssociatedCalendarItemId
Article • 03/29/2023 • 2 minutes to read
XML
ItemIdType
Attributes
Attribute Description
Id
Identifies the calendar item that is associated with meeting.
ChangeKey
Identifies a specific version of the calendar item that is associated with a meeting.
Child elements
None.
Parent elements
MeetingMessage | MeetingRequest | MeetingResponse | MeetingCancellation |
ReminderMessageData
Remarks
Versions of Exchange starting with build number 15.00.0913.09 can include the
AssociatedCalendarItemId element as a child element of the ReminderMessageData
element.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Association
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
AttachLongPathName
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
AttachmentId
Article • 03/29/2023 • 2 minutes to read
The AttachmentId element identifies an item or file attachment. This element is used in
CreateAttachment responses.
XML
AttachmentIdType
Attributes
Attribute Description
Id
Identifies the unique identifier of the attachment.
RootItemId
Identifies the unique identifier of the root store item to which the
attachment is attached.
RootItemChangeKey Identifies the change key of the root store item to which the attachment is
attached.
Child elements
None.
Parent elements
Element Description
ItemAttachment
Represents an Exchange item that is attached to another Exchange item.
FileAttachment
Represents a file that is attached to an item in the Exchange store.
Remarks
It is important to note that when an attachment is created, the change key of the root
item is altered.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Description
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
AttachmentId (GetAttachment and
DeleteAttachment)
Article • 03/29/2023 • 2 minutes to read
XML
RequestAttachmentIdType
Attributes
Attribute Description
Id
Specifies the attachment identifier.
Child elements
None.
Parent elements
Element Description
AttachmentIds
Contains an array of attachment identifiers.
/DeleteAttachment/AttachmentIds
/GetAttachment/AttachmentIds
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
DeleteAttachment operation
GetAttachment operation
AttachmentIds
Article • 03/29/2023 • 2 minutes to read
XML
<AttachmentIds>
<AttachmentId Id=""/>
</AttachmentIds>
NonEmptyArrayOfRequestAttachmentIdsType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
DeleteAttachment The element that defines a request to delete an attachment from the
Exchange store.
The following is the XPath expression to this element:
/DeleteAttachment
GetAttachment
The element that defines a request to get an attachment from the Exchange
store.
The following is the XPath expression to this element:
/GetAttachment
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
DeleteAttachment operation
GetAttachment operation
Attachments
Article • 03/29/2023 • 2 minutes to read
The Attachments element contains the items or files that are attached to an item in the Exchange store.
XML
<Attachments>
<ItemAttachment/>
<FileAttachment/>
</Attachments>
Attributes
None.
Child elements
Element Description
ItemAttachment
Represents an Exchange item that is attached to another Exchange item.
FileAttachment
Represents a file that is attached to an item in the Exchange store.
Parent elements
Element Description
CreateAttachment
Defines a request to create an attachment to an item in the Exchange store.
AcceptItem
Represents an Accept reply to a meeting request.
/CreateItem/Items
/MeetingRequest/ConflictingMeetings
/SetItemField/CalendarItem/ConflictingMeetings
/AppendToItemField/CalendarItem/ConflictingMeetings
/AcceptItem/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/DeclineItem/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/AppendToItemField/CalendarItem/AdjacentMeetings
/CreateAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/GetAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
DeclineItem
Represents a Decline reply to a meeting request.
TentativelyAcceptItem
Represents a Tentative reply to a meeting request.
RemoveItem
Removes an item from the Exchange store.
Element Description
Item
Represents a generic Exchange item.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Message
Represents an Exchange e-mail message.
Task
Represents a task in the Exchange store.
CalendarItem
Represents an Exchange calendar item.
Contact
Represents an Exchange contact item.
DistributionList
Represents a distribution list.
GetAttachmentResponseMessage
Contains the status and result of a GetAttachment request.
Remarks
The Attachments elements have the same child elements but are based on different types: ArrayOfAttachmentsType
and NonEmptyArrayOfAttachmentsType. The types define whether a child element is required. The
ArrayOfAttachmentsType is only used in the response message. It is also important to note that these elements occur
in both the messages and types namespaces.
The schema that describes this element is located in the EWS virtual directory of the computer that is running
MicrosoftExchange Server 2007 that has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
AttachmentShape
Article • 03/29/2023 • 2 minutes to read
GetAttachment
AttachmentShape
XML
<AttachmentShape>
<IncludeMimeContent/>
<BodyType/>
<FilterHtmlContent/>
<AdditionalProperties/>
</AttachmentShape>
AttachmentResponseShapeType
Attributes
None.
Child elements
Element Description
BodyType
Identifies how the body text is formatted in the response. This element is
optional.
FilterHtmlContent
Specifies whether potentially unsafe HTML content is filtered from an
attachment. This element is optional.
Element Description
Parent elements
Element Description
GetAttachment The element that defines a request to get an attachment from a mailbox in the
Exchange store.
The following is the XPath expression to this element:
/GetAttachment
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetAttachment operation
EWS XML elements in Exchange
AttemptCount
Article • 03/29/2023 • 2 minutes to read
The AttemptCount element represents the number of attempts that have been made to
index the item.
XML
<AttemptCount></AttemptCount>
integer
Attributes
None.
Child elements
None.
Parent elements
NonIndexableItemDetail
Text value
The value of the AttemptCount element is the number of attempts that have been
made to index an item.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Attendee
Article • 03/29/2023 • 2 minutes to read
XML
<Attendee>
<Mailbox/>
<ResponseType/>
<LastResponseTime/>
</Attendee>
AttendeeType
Attributes
None.
Child elements
Element Description
Mailbox
Identifies a fully resolved e-mail address.
ResponseType
Represents the type of recipient response that is received for a meeting. This
property is only relevant to a meeting organizer's calendar item.
LastResponseTime Represents the date and time of the latest response that is received.
ProposedStart
Represents an attendee's proposed start time for a meeting.
ProposedEnd
Represents an attendee's proposed end time for a meeting.
Parent elements
Element Description
RequiredAttendees
Represents attendees that are required to attend a meeting.
Element Description
OptionalAttendees
Represents attendees that are not required to attend a meeting.
Resources
Represents a scheduled resource for a meeting.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
AttendeeConflictDataArray
Article • 03/29/2023 • 2 minutes to read
The AttendeeConflictDataArray element contains an array of conflict data for queried attendees identified in the
GetUserAvailability operation.
GetUserAvailabilityResponse
SuggestionsResponse
SuggestionDayResultArray
SuggestionDayResult
SuggestionArray
Suggestion
AttendeeConflictDataArray
XML
<ArrayOfAttendeeConflictData>
<UnknownAttendeeConflictData>...</UnknownAttendeeConflictData>
<IndividualAttendeeConflictData>...</IndividualAttendeeConflictData>
<TooBigGroupAttendeeConflictData>...</TooBigGroupAttendeeConflictData>
<GroupAttendeeConflictData>...</GroupAttendeeConflictData>
</ArrayOfAttendeeConflictData>
ArrayOfAttendeeConflictData
Attributes
None.
Child elements
Element Description
UnknownAttendeeConflictData
Represents an unresolvable attendee or an attendee that is not a user, distribution list, or contact.
IndividualAttendeeConflictData
Contains a user's or contact's free/busy status for a time window that occurs at the same time as the
suggested meeting time identified in the Suggestion element.
TooBigGroupAttendeeConflictData Represents an attendee that resolved as a distribution list that was too large to expand.
GroupAttendeeConflictData
Contains aggregate conflict information about the number of users available, the number of users who
have conflicts, and the number of users who do not have availability information in a distribution list
for a suggested meeting time.
Parent elements
Element Description
The schema that describes this element is located in the EWS virtual directory of the computer that is running
MicrosoftExchange Server 2007 that has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityResponse
Getting User Availability
AttendeeLocation
Article • 03/29/2023 • 2 minutes to read
The AttendeeLocation element specifies the location of an attendee for a calendar item.
XML
<AttendeeLocation></AttendeeLocation>
xs:string
Attributes
None.
Child elements
None.
Parent elements
Element Description
LocationBasedStateDefinition
Specifies the state when it is based on location.
Text value
The text value of the AttendeeLocation element is the attendess location.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Description
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
Attendees
Article • 03/29/2023 • 2 minutes to read
XML
<Attendees>
<EmailUser></EmailUser>
</Attendees>
ArrayOfEmailUsersType
Attributes
None.
Child elements
Element Description
EmailUser
Specifies an email recipient or Active Directory contact.
Parent elements
Element Description
MeetingSuggestion
Specifies a proposed meeting.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Description
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
AttendeeType
Article • 03/29/2023 • 2 minutes to read
The AttendeeType element represents the type of attendee that is identified in the
Email (EmailAddressType) element. This element is used in requests for meeting
suggestions.
GetUserAvailabilityRequest
MailboxDataArray
MailboxData
AttendeeType
XML
MeetingAttendeeType
Attributes
None.
Child elements
None.
Parent elements
Element Description
MailboxData Represents an individual mailbox user and options for the type of data to be
returned about the mailbox user.
The following is the XPath to this element:
/GetUserAvailabilityRequest/MailboxDataArray[i]/MailboxData
Text value
A text value is required for this element. The following table lists the possible values for
this element.
Value Description
Organizer The mailbox user and attendee who created the calendar item.
Room A mailbox entity that represents a room resource used for the meeting.
Resource A resource such as a TV or projector that is scheduled for use in the meeting.
Remarks
This element is a required child element of the MailboxData element. This element can
only occur once in the MailboxData element. The schema that describes this element is
located in the /EWS/ directory of the computer that is running MicrosoftExchange
Server 2007 that has the Client Access server role installed.
7 Note
Element information
Element Description
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityRequest
Getting User Availability
Attribution (PersonaAttributionType)
Article • 03/29/2023 • 2 minutes to read
XML
<Attribution>
<Id></Id>
<SourceId></SourceId>
<DisplayName></DisplayName>
<IsWritable></IsWritable>
<IsQuickContact></IsQuickContact>
<IsHidden></IsHidden>
<FolderId></FolderId>
</Attribution>
PersonaAttributionType
Attributes
None.
Child elements
Element Description
ID (String)
Specifies a string that uniquely identifies an app or an attribution in a persona.
SourceId
Specifies the identifier of the contact or Active Directory recipient.
DisplayName Defines the display name of a folder, contact, distribution list, delegate user, or
(string)
rule.
IsWritable
Specifies whether the underlying contact or Active Directory recipient can be
written to.
IsQuickContact Specifies a Boolean value that indicates whether the underlying contact or
Active Directory recipient is a quick contact.
Element Description
IsHidden
Contains a Boolean value that indicates whether the underlying contact or
Active Directory recipient should be hidden or displayed as part of the persona.
FolderId
Contains the identifier and change key of a folder.
Parent elements
Element Description
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
Attribution (string)
Article • 03/29/2023 • 2 minutes to read
XML
<Attribution></Attribution>
xs:string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
The text value of the attribution element is a string value that attributes a property
value to the source contact.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
Attributions
(ArrayOfPersonaAttributionsType)
Article • 03/29/2023 • 2 minutes to read
The Attributions element specifies an array of attribution information for one or more of
the contacts or Active Directory recipients aggregated into the associated persona.
XML
<Attributions>
<Attribution></Attribution>
</Attributions>
ArrayOfPersonaAttributionsType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Description
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
Attributions
(ArrayOfValueAttributionsType)
Article • 03/29/2023 • 2 minutes to read
The Attributions element specifies an array of attributions for its associated Value
element.
XML
<Attributions>
<Attribution></Attribution>
</Attribution>
ArrayOfValueAttributionsType
Attributes
None.
Child elements
Element Description
Attribution (string)
Specifies a string used to identify an attribute.
Parent elements
Element Description
BodyContentAttributedValue
Specifies the body content of an item.
EmailAddressAttributedValue
Specifies an instance of an array of email addresses and their
associated attributions.
PhoneNumberAttributedValue
Specifies an instance of an array of phone numbers and their
associated attributions.
PostalAddressAttributedValue
Specifies an instance of an array of postal addresses and their
associated attributions.
StringArrayAttributedValue
Specifies an instance of an array of string data for a persona
element.
StringAttributedValue
Specifies an instance in an array of attributes associated with
a persona element.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
AudioData
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Base64Binary
Article • 03/29/2023 • 2 minutes to read
XML
<Base64Binary/>
Base64Binary
Attributes
None.
Child elements
None.
Parent elements
UserSMIMECertificate
Contains a value that encodes the SMIME certificate of a contact.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
This element was introduced in Exchange Server 2010 Service Pack 2 (SP2).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
The BaseFolderIds element represents the collection of folders that will be mined to
determine the contents of a search folder.
XML
<BaseFolderIds>
<FolderId/>
<DistinguishedFolderId/>
</BaseFolderIds>
NonEmptyArrayOfBaseFolderIdsType
Attributes
None.
Child elements
Element Description
FolderId
Contains the identifier and change key of a folder.
Parent elements
Element Description
SearchParameters
Represents the parameters that define a search folder.
Remarks
The BaseFolderIds element must contain at least one FolderId or DistinguishedFolderId
element.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Exchange Server 2007 that has the Client Access server role
installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
BaseItemId
Article • 03/29/2023 • 2 minutes to read
The BaseItemId element represents the base class for IDs that represent items in a
mailbox. This is an abstract class and therefore will not occur in an instance document.
XML
<BaseItemId/>
BaseItemIdType
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element is an abstract base type for item identifiers. This element is not used in
Web service calls.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
BaseOffset
Article • 03/29/2023 • 2 minutes to read
The BaseOffset element represents the hourly offset from Coordinated Universal Time
(UTC) for the current time zone.
XML
<BaseOffset/>
duration
Attributes
None
Child elements
None.
Parent elements
Element Description
MeetingTimeZone
Represents the time zone of the location where the meeting is hosted.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
BaseShape
Article • 03/29/2023 • 2 minutes to read
The BaseShape element identifies the set of properties to return in an item or folder
response.
XML
DefaultShapeNamesType
Attributes
None.
Child elements
None
Parent elements
Element Description
/GetFolder/FolderShape
/FindFolder/FolderShape
/SyncFolderHierarchy/FolderShape
Element Description
ItemShape
Identifies the item properties and content to include in a GetItem, FindItem, or
SyncFolderItems response.
/GetItem/ItemShape
/FindItem/ItemShape
/SyncFolderItems/ItemShape
Text value
A text value is required. The following table lists the possible text values.
Value Description
Default Returns a set of properties that are defined as the default for the item or folder.
AllProperties Returns all the properties used by the Exchange Business Logic layer to construct a
folder.
The following table lists the default properties that are returned for a FindFolder
request. All subfolders of a given folder are returned in order by name.
Default properties
Inbox FolderId, display name, unread count, total count, subfolder count
Drafts FolderId, display name, unread count, total count, subfolder count
Deleted items FolderId, display name, unread count, total count, subfolder count
Other folders FolderId, display name, unread count, total count, subfolder count
Outbox FolderId, display name, unread count, total count, subfolder count
Tasks FolderId, display name, past due count, total count, subfolder count
Folder Default Properties
Remarks
To return properties in addition to those identified by the BaseShape element, use the
AdditionalProperties element.
Example
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<FindFolder Traversal="Shallow"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<FolderShape>
<t:BaseShape>Default</t:BaseShape>
</FolderShape>
<ParentFolderIds>
<t:DistinguishedFolderId Id="inbox"/>
</ParentFolderIds>
</FindFolder>
</soap:Body>
</soap:Envelope>
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
FolderShape
ItemShape
BaseShape
(PreviewItemBaseShapeType)
Article • 03/29/2023 • 2 minutes to read
The BaseShape element specifies either the default preview with all properties returned
or a compact preview with fewer properties returned.
XML
PreviewItemBaseShapeType
Attributes
None.
Child elements
None.
Parent elements
Element Description
PreviewItemResponseShape
Contains the shape of the response.
Text value
BaseShape element text values
Value Description
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
BccRecipient
Article • 03/29/2023 • 2 minutes to read
The BccRecipient element represents a recipient to receive a blind carbon copy (Bcc) of
an e-mail message.
XML
<BccRecipient>true | false</BccRecipient>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
RecipientTrackingEvent
Contains information for a single event for a recipient.
Text value
This element can be either true or false. A value of true indicates that the recipient is
blind carbon copied; a value of false indicates that the recipient is not blind carbon
copied.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
BccRecipients
Article • 03/29/2023 • 2 minutes to read
XML
<BccRecipients>
<Mailbox/>
</BccRecipients>
ArrayOfRecipientsType
Attributes
None.
Child elements
Element Description
Mailbox
Identifies a mail-enabled Active Directory directory service object.
Parent elements
Element Description
RemoveItem
Removes an item from the Exchange store.
Message
Represents an Exchange e-mail message.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Element Description
AcceptItem
Represents an accept reply to a meeting request.
DeclineItem
Represents a decline reply to a meeting request.
ReplyToItem
Contains a reply to the creator of an item in the Exchange store.
ReplyAllToItem
Contains a reply to all identified recipients of an item in the Exchange
store.
ForwardItem
Contains an Exchange store item to forward to recipients.
CancelCalendarItem
Represents the response object that is used to cancel a meeting.
Remarks
You cannot get BccRecipients by using a FindItem request. Use a GetItem request to get
BccRecipients.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Item Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
BeginTime
Article • 03/29/2023 • 2 minutes to read
The BeginTime element specifies the beginning of the time span to query for reminders.
XML
<BeginTime/>
dateTime
Attributes
None.
Child elements
None.
Parent elements
GetReminders
Text value
The text value of the BeginTime element is the beginning time of the item the reminder
is for.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetReminders
The Bias element represents the offset from the Coordinated Universal Time (UTC) offset identified by the Bias (UTC)
element for standard time and daylight saving time. This value is in minutes.
XML
<Bias>...</Bias>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
StandardTime Represents an offset from the time relative to UTC represented by the Bias (UTC) element. This element also contains
information about the transition to standard time from daylight saving time in regions where daylight saving time is
observed.
/GetUserAvailabilityResponse/FreeBusyResponseArray/FreeBusyResponse/FreeBusyView/WorkingHours/TimeZone/StandardTime
/GetUserAvailabilityRequest/TimeZone/StandardTime
DaylightTime
Represents an offset from the time relative to UTC represented by the Bias (UTC) element in regions where daylight saving
time is observed. This element also contains information about when the transition to daylight saving time from standard
time occurs.
/GetUserAvailabilityResponse/FreeBusyResponseArray/FreeBusyResponse/FreeBusyView/WorkingHours/TimeZone/DaylightTime
/GetUserAvailabilityRequest/TimeZone/DaylightTime
Text value
A text value is required. The text value represents an integer.
Remarks
The offset used to determine the local time can only be provided by one of the Bias elements. The sum of the values
of the Bias element provided by the DaylightTime element or the StandardTime element plus the Bias (UTC) element
identifies the local time.
Example
The following example shows part of an XML request that identifies a user who observes daylight saving time by
adjusting the offset from UTC by -60 minutes. This effectively makes the bias 420 minutes from UTC.
XML
<TimeZone xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Bias>480</Bias>
<StandardTime>
<Bias>0</Bias>
<Time>02:00:00</Time>
<DayOrder>5</DayOrder>
<Month>10</Month>
<DayOfWeek>Sunday</DayOfWeek>
</StandardTime>
<DaylightTime>
<Bias>-60</Bias>
<Time>02:00:00</Time>
<DayOrder>1</DayOrder>
<Month>4</Month>
<DayOfWeek>Sunday</DayOfWeek>
</DaylightTime>
</TimeZone>
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
Getting User Availability
Bias (UTC)
Article • 03/29/2023 • 2 minutes to read
The Bias element represents the general offset from Coordinated Universal Time (UTC). This value is in
minutes.
XML
<TimeZone>
<Bias>int</Bias>
</TimeZone>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
TimeZone The container that identifies the date-time information of the request. This element contains information
(Availability) about the transition between standard time and daylight saving time.
/GetUserAvailabilityResponse/FreeBusyResponseArray/FreeBusyResponse/FreeBusyView/WorkingHours/TimeZone
/GetUserAvailabilityRequest/TimeZone
Text value
A text value is required. The text value represents an integer.
Remarks
A second Bias element in the schema represents the offset from the Coordinated Universal Time (UTC)
offset.
Example
The following example shows part of an XML request that identifies an offset of 8 hours from UTC on
the client application.
XML
<TimeZone xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Bias>480</Bias>
<StandardTime>
<Bias>0</Bias>
<Time>02:00:00</Time>
<DayOrder>5</DayOrder>
<Month>10</Month>
<DayOfWeek>Sunday</DayOfWeek>
</StandardTime>
<DaylightTime>
<Bias>-60</Bias>
<Time>02:00:00</Time>
<DayOrder>1</DayOrder>
<Month>4</Month>
<DayOfWeek>Sunday</DayOfWeek>
</DaylightTime>
</TimeZone>
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
Bias
Getting User Availability
BillingInformation
Article • 03/29/2023 • 2 minutes to read
XML
<BillingInformation/>
String
Attributes
None.
Child elements
None.
Parent elements
Element Description
Task
Represents a task in the Exchange store.
Text value
The text value represents task-related billing information.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Description
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
BinaryData
Article • 03/29/2023 • 2 minutes to read
XML
<BinaryData/>
Base64Binary
Attributes
None.
Child elements
None.
Parent elements
Element Description
UserConfiguration
Defines a single user configuration object.
Text value
The BinaryData element contains binary data.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Birthday
Article • 03/29/2023 • 2 minutes to read
XML
<Birthday/>
DateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
Contact
Represents an Exchange contact item.
Text value
A text value that represents a date and time is required.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Birthdays
Article • 03/29/2023 • 2 minutes to read
The Birthdays element specifies an array of birthdays, stored as strings, and the
identifiers of their source attributions for the associated persona.
XML
<Birthdays>
<StringAttributedValue/>
</Birthdays>
ArrayOfStringAttributedValuesType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
Bitmask
Article • 03/29/2023 • 2 minutes to read
XML
ExcludesValueType
Attributes
Attribute Description
((0x|0X)[0-9A-Fa-f]*)|([0-9]*) .
- 0x12AF
- 0X334AE
- 10
- 255
- 4562
Child elements
None.
Parent elements
Element Description
Element Description
Excludes
Performs a bitwise mask of the properties.
Remarks
Hexadecimal values must have a prefix of either 0x or 0X. If this prefix does not exist, the
value is assumed to be a decimal number.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
BlockExternalImages
Article • 03/29/2023 • 2 minutes to read
XML
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
ItemShape
Identifies the item properties and content to include in a GetItem, FindItem, or
SyncFolderItems response.
Text value
A text value of true for BlockExternalImages element indicates that external images are
blocked in HTML bodies. A value of false indicates that external images are allowed.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
BlockStatus
Article • 03/29/2023 • 2 minutes to read
XML
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
Contact
Represents a contact item in the Exchange store.
DistributionList
Represents a distribution list.
Item
Represents a generic item in the Exchange store.
Text value
A text value of true for the BlockStatus element indicates that an item is blocked. A
value of false indicates that an item is not blocked.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Description
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
Bodies
Article • 03/29/2023 • 2 minutes to read
XML
<Bodies>
<BodyContentAttributedValue></BodyContentAttributedValue>
<Bodies>
ArrayOfBodyContentAttributedValuesType
Attributes
None.
Child elements
Element Description
BodyContentAttributedValue
Specifies the body content of an item.
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
Body
Article • 03/29/2023 • 2 minutes to read
XML
BodyType
Attributes
Attribute Description
BodyType
Value Description
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
Element Description
Contact
Represents a contact item in the Exchange store.
DistributionList
Represents a distribution list.
Item
Represents a generic item in the Exchange store.
Message
Represents a Microsoft Exchange email message.
PostItem
Represents a post item in the Exchange store.
Task
Represents a task in the Exchange store.
Text value
The text value of the Body element is the body content of the item.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
BodyContentAttributedValue
Article • 03/29/2023 • 2 minutes to read
XML
<BodyContentAttributedValue>
<Value></Value>
<Attributions></Attributions>
</ BodyContentAttributedValue>
BodyContentAttributedValueType
Attributes
None.
Child elements
Element Description
Value (BodyContentType)
Specifies the value of a BodyContentAttributedValue
element.
Parent elements
Element Description
Bodies
Specifies an array of BodyContentAttributedValue elements.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Description
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
BodyType
Article • 03/29/2023 • 2 minutes to read
The BodyType element identifies how the body text is formatted in the response.
XML
BodyTypeResponseType
Attributes
None.
Child elements
None.
Parent elements
Element Description
ItemShape
Identifies the item properties and content to include in a GetItem, FindItem,
or SyncFolderItems response.
/GetItem/ItemShape
/FindItem/ItemShape
/SyncFolderItems/ItemShape
Element Description
/GetAttachment/AttachmentShape
Text value
The following table lists the possible values for the BodyType element.
Value Description
Best The response will return the richest available content of body text. This is useful if it is
unknown whether the content is text or HTML.
The returned body will be text if the stored body is plain text. Otherwise, the response
will return HTML if the stored body is in either HTML or RTF format.
Remarks
You can identify the type of body returned in the response by checking the BodyType
attribute of the Body element. The BodyType attribute will identify the body as either
HTML or text.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Example
The following example of a request shows where a BodyType element is used.
XML
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<GetAttachment
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<AttachmentShape>
<t:BodyType>Best</t:BodyType>
</AttachmentShape>
<AttachmentIds>
<t:AttachmentId Id="ASkAS="/>
</AttachmentIds>
</GetAttachment>
</soap:Body>
</soap:Envelope>
Element information
Element Description
Namespace https://schemas.microsoft.com/exchange/services/2006/types
The BodyType element specifies the type of the body of the item.
XML
BodyTypeType
Attributes
None.
Child elements
None.
Parent elements
Element Description
Body
Specifies the body of an item.
Text value
BodyType element text values
Value Description
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Description
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
BusinessAddresses
Article • 03/29/2023 • 2 minutes to read
XML
<BusinessAddresses>
<PostalAddressAttributedValue></PostalAddressAttributedValue>
</BusinessAddresses
ArrayOfPostalAddressAttributedValuesType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
BusinessHomePage
Article • 03/29/2023 • 2 minutes to read
The BusinessHomePage element represents the Home page (Web address) for the
contact.
XML
<BusinessHomePage/>
AnyUri
Attributes
None.
Child elements
None.
Parent elements
Element Description
Contact
Represents an Exchange contact item.
Text value
The text value represents a uniform resource identifier (URI) for the Home page.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
The BusinessHomePages element specifies an array of business home pages and the
identifiers of their source attributions for the associated persona.
XML
<BusinessHomePages>
<StringAttributedValue></StringAttributedValue>
</BusinessHomePages>
ArrayOfStringAttributedValuesType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
BusinessName
Article • 03/29/2023 • 2 minutes to read
XML
<BusinessName></BusinessName>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Contact (ContactType)
Specifies a contact in the Unified Contact Store.
Text value
The text value of the BusinessName element is the name of a business.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
BusinessPhoneNumbers
Article • 03/29/2023 • 2 minutes to read
XML
<BusinessPhoneNumbers>
<Value></Value>
<Attributions></Attributions>
</BusinessPhoneNumbers>
ArrayOfPhoneNumberAttributedValuesType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
BusinessPhoneNumbers2
Article • 03/29/2023 • 2 minutes to read
XML
<BusinessPhoneNumbers2>
<Value></Value>
<Attributions></Attributions>
</BusinessPhoneNumbers2>
ArrayOfPhoneNumberAttributedValuesType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
BusyType
Article • 03/29/2023 • 2 minutes to read
The BusyType element represents the free/busy status set for a calendar event.
XML
BusyType
Attributes
None.
Child elements
None.
Parent elements
Element Description
IndividualAttendeeConflictData Contains a user's or contact's free/busy status for a time window that occurs at the same time as the suggested meeting time.
The following is the XPath expression to this element:
/GetUserAvailabilityResponse/SuggestionsResponse/SuggestionDayResultArray/SuggestionDayResult[i]/SuggestionArray/Suggestion[
CalendarEvent
Represents a unique calendar item occurrence.
The following is the XPath expression to this element:
/GetUserAvailabilityResponse/FreeBusyResponseArray/FreeBusyResponse/FreeBusyView/CalendarEventArray/CalendarEvent[i]
Text value
A text value is required for this element. The value is a string type. The following are the possible values for the BusyType element:
Free
Tentative
Busy
OOF
NoData
Remarks
The schema that describes this element is located in the EWS virtual directory of the computer that is running MicrosoftExchange Server
2007 that has the Client Access server role installed.
Element information
Element Description
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityResponse
GetUserAvailabilityResponse
FreeBusyResponseArray
FreeBusyResponse
FreeBusyView
CalendarEventArray
CalendarEvent
XML
<CalendarEvent>
<StartTime>...</StartTime>
<EndTime>...</EndTime>
<BusyType>...</BusyType>
<CalendarEventDetails>...</CalendarEventDetails>
</CalendarEvent>
CalendarEvent
Attributes
None.
Child elements
Element Description
StartTime
Represents the start of a calendar event. This is a required child element.
EndTime
Represents the end of a calendar event. This is a required child element.
BusyType
Represents the free/busy status set for a calendar event. This is a required child element.
CalendarEventDetails
Provides additional information for a calendar event. This is an optional child element.
Parent elements
Element Description
Element Description
CalendarEventArray Contains a set of unique calendar item occurrences that represent the requested user's availability.
The following is the XPath 2.0 expression to this element:
/GetUserAvailabilityResponse/FreeBusyResponseArray/FreeBusyResponse/FreeBusyView/CalendarEventArray
Remarks
The appointment and meeting times are returned in the time zone of the client. All the child elements are
listed in the sequence in which they occur. The level of detail provided by this element depends on the
permissions granted to the requestor.
The schema that describes this element is located in the EWS virtual directory of the computer that is
running MicrosoftExchange Server 2007 that has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityResponse
GetUserAvailabilityResponse
FreeBusyResponseArray
FreeBusyResponse
FreeBusyView
CalendarEventArray
XML
<CalendarEventArray>
<CalendarEvent>...</CalendarEvent>
</CalendarEventArray>
ArrayOfCalendarEvent
Attributes
None.
Child elements
Element Description
CalendarEvent
Represents a unique calendar item occurrence.
Parent elements
Element Description
Element Description
Remarks
The level of detail provided by this element depends on the permissions granted to the
requestor. This element is included when the FreeBusyViewType element is set to
FreeBusy, FreeBusyMerged, Detailed, or DetailedMerged. This element does not
include any child elements if no calendar items are present in the requested time
window.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityResponse
GetUserAvailabilityResponse
FreeBusyResponseArray
FreeBusyResponse
FreeBusyView
CalendarEventArray
CalendarEvent
CalendarEventDetails
XML
<CalendarEventDetails>
<ID/>
<Subject/>
<Location/>
<IsMeeting/>
<IsRecurring/>
<IsException/>
<IsReminderSet/>
<IsPrivate/>
</CalendarEventDetails>
CalendarEventDetails
Attributes
None.
Child elements
Element Description
ID
Represents the entry ID of the calendar item.
Subject (CalendarEventDetails)
Represents the subject of the calendar item.
Location (CalendarEventDetails)
Represents the location field of the calendar item.
IsRecurring Indicates whether the calendar event is an instance of a recurring calendar item or a single
(CalendarEventDetails)
calendar item.
IsException
Indicates whether an instance of a recurring calendar item is changed from the master.
Element Description
IsReminderSet
Indicates whether a reminder has been set for the calendar event.
IsPrivate
Indicates whether the calendar item is private.
Parent elements
Element Description
Remarks
All the child elements are listed in the sequence in which they occur.
If the IsPrivate element is true, all the other elements in the CalendarEventDetails element are not returned in the
response.
The GetUserAvailability operation does not return detailed caller information unless the caller has read access on the
target user's calendar. You can set access permissions by using the Exchange Management Shell.
The schema that describes this element is located in the EWS virtual directory of the computer that is running
MicrosoftExchange Server 2007 that has the Client Access server role installed.
Element information
Element Description
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityResponse
The CalendarFolder element represents a folder that primarily contains calendar items.
XML
<CalendarFolder>
<FolderId/>
<ParentFolderId/>
<FolderClass/>
<DisplayName/>
<TotalCount/>
<ChildFolderCount/>
<ExtendedProperty/>
<ManagedFolderInformation/>
<EffectiveRights/>
<SharingEffectiveRights/>
<PermissionSet/>
</CalendarFolder>
CalendarFolderType
Attributes
None.
Child elements
Element Description
FolderId
Contains the identifier and change key of a folder.
FolderClass
Represents the folder class for a given folder.
DisplayName (string)
Contains the display name of a folder.
TotalCount
Represents the total count of items within a given folder.
Element Description
ChildFolderCount
Represents the number of child folders that are contained
within a folder. This property is read-only.
ExtendedProperty
Identifies extended properties on folders.
ManagedFolderInformation
Contains information about a managed folder.
EffectiveRights
Contains the client's rights based on the permission
settings for the item or folder. This element is read-only.
SharingEffectiveRights Indicates the permissions that the user has for the
(CalendarPermissionReadAccessType) calendar data that is being shared.
Parent elements
Element Description
Create (FolderSync)
Identifies a single folder to create in the local client store.
SetFolderField
Represents an update to a single property on a folder in an UpdateFolder
operation.
Update (FolderSync)
Identifies a single folder to update in the local client store.
Folders
Contains an array of folders that are used in folder operations.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
CalendarFolderPermissionLevel
Article • 03/29/2023 • 2 minutes to read
XML
<CalendarFolderPermissionLevel>
</CalendarFolderPermissionLevel>
DelegateFolderPermissionLevelType
Attributes
None.
Child elements
None.
Parent elements
Element Description
DelegatePermissions Contains the delegate permission level settings for a user. This element
was introduced in Exchange 2007 SP1.
Text value
The following table lists the text values that represent the permission levels.
None The delegate user has no access permissions to the Calendar folder.
Reviewer The delegate user can read items in the Calendar folder.
Author The delegate user can read and create items in the Calendar folder.
Editor The delegate user can read, create, and modify items in the Calendar folder.
Custom The delegate user has custom access permissions to the Calendar folder.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
AddDelegate operation
UpdateDelegate operation
Adding Delegates
CalendarItem
Article • 03/29/2023 • 7 minutes to read
XML
<CalendarItem>
<MimeContent/>
<ItemId/>
<ParentFolderId/>
<ItemClass/>
<Subject/>
<Sensitivity/>
<Body/>
<Attachments/>
<DateTimeReceived/>
<Size/>
<Categories/>
<InReplyTo/>
<IsSubmitted/>
<IsDraft/>
<IsFromMe/>
<IsResend/>
<IsUnmodified/>
<InternetMessageHeaders/>
<DateTimeSent/>
<DateTimeCreated/>
<ResponseObjects/>
<ReminderDueBy/>
<ReminderIsSet/>
<ReminderMinutesBeforeStart/>
<DisplayCc/>
<DisplayTo/>
<HasAttachments/>
<ExtendedProperty/>
<Culture/>
<Start/>
<End/>
<OriginalStart/>
<IsAllDayEvent/>
<LegacyFreeBusyStatus/>
<Location/>
<When/>
<IsMeeting/>
<IsCancelled/>
<IsRecurring/>
<MeetingRequestWasSent/>
<IsResponseRequested/>
<CalendarItemType/>
<MyResponseType/>
<Organizer/>
<RequiredAttendees/>
<OptionalAttendees/>
<Resources/>
<ConflictingMeetingCount/>
<AdjacentMeetingCount/>
<ConflictingMeetings/>
<AdjacentMeetings/>
<Duration/>
<TimeZone/>
<AppointmentReplyTime/>
<AppointmentSequenceNumber/>
<AppointmentState/>
<Recurrence/>
<FirstOccurrence/>
<LastOccurrence/>
<ModifiedOccurrences/>
<DeletedOccurrences/>
<MeetingTimeZone/>
<StartTimeZone/>
<EndTimeZone/>
<ConferenceType/>
<AllowNewTimeProposal/>
<IsOnlineMeeting/>
<MeetingWorkspaceUrl/>
<NetShowUrl/>
<EffectiveRights/>
<LastModifiedName/>
<LastModifiedTime/>
<IsAssociated/>
<WebClientReadFormQueryString/>
<WebClientEditFormQueryString/>
<ConversationId/>
<UniqueBody/>
</CalendarItem>
CalendarItemType
Attributes
None.
Child elements
Element Description
Element Description
MimeContent
Contains the native Multipurpose Internet Mail Extensions
(MIME) stream of an object that is represented in base64Binary
format.
ItemId
Contains the unique identifier and change key of an item in the
Exchange store.
ParentFolderId Represents the identifier of the parent folder that contains the
item or folder.
ItemClass
Represents the message class of an item.
Subject
Represents the subject for Exchange store items and response
objects.
Sensitivity
Indicates the sensitivity level of an item.
Body
Represents the actual body content of a message.
Attachments
Contains the items or files that are attached to an item in the
Exchange store.
DateTimeReceived
Represents the date and time that an item in a mailbox was
received.
Size
Represents the size in bytes of an item. This property is read-
only.
Categories
Represents a collection of strings that identify the categories to
which an item in the mailbox belongs.
Importance
Describes the importance of an item.
InReplyTo
Represents the identifier of the item to which this item is a
reply.
IsSubmitted
Indicates whether an item has been submitted to the Outbox
default folder.
IsDraft
Indicates whether an item has not yet been sent.
IsFromMe
Indicates whether a user sent an item to him or herself.
IsResend
Indicates whether the item had previously been sent.
IsUnmodified
Indicates whether the item has been modified.
InternetMessageHeaders
Represents the collection of all Internet message headers that
are contained in an item in a mailbox.
Element Description
DateTimeSent
Represents the date and time that an item in a mailbox was
sent.
DateTimeCreated
Represents the date and time that a given item in the mailbox
was created.
ResponseObjects
Contains a collection of all the response objects that are
associated with an item in the Exchange store.
ReminderDueBy
Represents the date and time when the event occurs. This is
used by the ReminderMinutesBeforeStart element to
determine when the reminder is displayed.
ReminderIsSet
Indicates whether a reminder has been set for an item in the
Exchange store.
ReminderMinutesBeforeStart
Represents the number of minutes before an event when a
reminder is displayed.
DisplayCc
Represents the display string that is used for the contents of
the Cc line. This is the concatenated string of all Cc recipient
display names.
DisplayTo
Represents the display string that is used for the contents of
the To line. This is the concatenated string of all To recipient
display names.
HasAttachments
Represents a property that is set to true if an item has at least
one visible attachment. This property is read-only.
ExtendedProperty
Identifies extended properties on folders and items.
Culture
Represents the culture for a given item in a mailbox.
UID
Identifies a calendar item.
RecurrenceId
Used to identify a specific instance of a recurring calendar
item.
DateTimeStamp
Indicates the date and time that an instance of a iCalendar
object was created.
Start
Represents the start of a calendar item. This element only
applies to a single occurrence of a calendar item.
OriginalStart
Represents the original start time of a calendar item.
Element Description
IsAllDayEvent
Indicates whether a calendar item or meeting request
represents an all-day event.
LegacyFreeBusyStatus
Represents the free/busy status of the calendar item.
Location
Represents the location of a meeting or appointment.
When
Provides information about when a calendar item occurs.
IsCancelled
Indicates whether an appointment or meeting has been
canceled.
IsRecurring
Indicates whether a calendar item is part of a recurring item.
This element is read-only.
MeetingRequestWasSent
Indicates whether a meeting request has been sent to
requested attendees.
IsResponseRequested
Indicates whether a response to an item is required.
CalendarItemType
Represents the occurrence type of a calendar item.
MyResponseType
Contains the status of or response to a calendar item.
Organizer
Represents the organizer of a meeting.
RequiredAttendees
Represents attendees that are required to attend a meeting.
OptionalAttendees
Represents attendees that are not required to attend a
meeting.
Resources
Represents a scheduled resource for a meeting.
ConflictingMeetingCount
Represents the number of meetings that conflict with the
calendar item.
AdjacentMeetingCount
Represents the total number of calendar items that are
adjacent to a meeting time.
AdjacentMeetings
Describes all calendar items that are adjacent to a meeting
time.
Duration (Items)
Represents the duration of a calendar item.
TimeZone (Item)
Provides a text description of a time zone.
Element Description
AppointmentReplyTime
Represents the date and time when an attendee replied to a
meeting request.
AppointmentSequenceNumber
Specifies the sequence number of a version of an appointment.
AppointmentState
Specifies the status of the appointment.
Recurrence (RecurrenceType)
Contains the recurrence pattern for calendar items and
meeting requests.
This element is valid if CalendarItemType has the
RecurringMaster value.
FirstOccurrence
Represents the first occurrence of a recurring calendar item.
This element is valid if CalendarItemType has the
RecurringMaster value.
LastOccurrence
Represents the last occurrence of a recurring calendar item.
This element is valid if CalendarItemType has the
RecurringMaster value.
ModifiedOccurrences
Contains an array of recurring calendar item occurrences that
have been modified so that they differ from the recurrence
master item.
This element is valid if CalendarItemType has the
RecurringMaster value.
DeletedOccurrences
Contains an array of deleted occurrences of a recurring
calendar item.
This element is valid if CalendarItemType has the
RecurringMaster value.
MeetingTimeZone
Represents the time zone of the location where the meeting is
hosted.
StartTimeZone
Represents the start time zone of the calendar item.
EndTimeZone
Represents the end time zone of the calendar item.
ConferenceType
Describes the type of conferencing that is performed with a
calendar item.
AllowNewTimeProposal
Indicates whether a new meeting time can be proposed for a
meeting by an attendee.
IsOnlineMeeting
Indicates whether the meeting is online.
MeetingWorkspaceUrl
Contains the URL for the meeting workspace that is linked to
by the calendar item.
NetShowUrl
Specifies the URL for a Microsoft NetShow online meeting.
Element Description
EffectiveRights
Contains the client's rights based on the permission settings
for the item or folder. This element is read-only.
LastModifiedName
Contains the display name of the last user to modify an item.
LastModifiedTime
Indicates when an item was last modified.
IsAssociated
Indicates whether the item is associated with a folder.
WebClientEditFormQueryString
Represents a URL to concatenate to the Microsoft Office
Outlook Web App endpoint to edit an item in Outlook Web
App.
ConversationId
Contains the identifier of an item or conversation.
UniqueBody
Represents an HTML fragment or plain text which represents
the unique body of this conversation.
Parent elements
Element Description
AdjacentMeetings
Describes all calendar items that are adjacent to a meeting
time.
Create (ItemSync)
Identifies a single folder to create in the local client store.
ItemAttachment
Represents an Exchange item that is attached to another
Exchange item.
Items
Contains an array of items.
SetItemField
Represents an update to a single property of an item in an
UpdateItem operation.
Update (ItemSync)
Identifies a single item to update in the local client store.
Text value
None.
Remarks
When a single calendar item is updated to become a recurring master calendar item, the
MeetingTimeZone element must be specified in order to preserve the calendar item's
original time zone.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
XML
<CalendarItemType/>
CalendarItemTypeType
Attributes
None.
Child elements
None.
Parent elements
Element Description
MeetingRequest
Represents a meeting in the Exchange store.
CalendarItem
Represents an Exchange calendar item.
Text value
A text value is required if this element is used. The following are the possible values for
this element:
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
CalendarPermission
Article • 03/29/2023 • 2 minutes to read
The CalendarPermission element defines the access that a user has to a Calendar folder.
This element was introduced in Microsoft Exchange Server 2007 Service Pack 1 (SP1).
XML
<Permission>
<CalendarPermissionLevel/>
<CanCreateItems/>
<CanCreateSubfolders/>
<IsFolderOwner/>
<IsFolderVisible/>
<IsFolderContact/>
<EditItems/>
<DeleteItems/>
<ReadItems/>
<UserId/>
</Permission>
CalendarPermissionType
Attributes
None.
Child elements
Element Description
CalendarPermissionLevel
Represents the permission level that a user has on a Calendar folder.
This element was introduced in Exchange 2007 SP1.
CanCreateItems
Indicates whether a user has permission to create items in a folder.
This element was introduced in Exchange 2007 SP1.
CanCreateSubFolders
Indicates whether a user has permission to create subfolders in a
folder. This element was introduced in Exchange 2007 SP1.
Element Description
DeleteItems
Indicates whether a user has permission to delete items in a folder.
This element was introduced in Exchange 2007 SP1.
EditItems
Indicates whether a user has permission to edit items in a folder. This
element was introduced in Exchange 2007 SP1.
IsFolderContact
Indicates whether a user is a contact for a folder. This element was
introduced in Exchange 2007 SP1.
IsFolderOwner
Indicates whether a user is the owner of a folder. This element was
introduced in Exchange 2007 SP1.
IsFolderVisible
Indicates whether a user can view a folder. This element was
introduced in Exchange 2007 SP1.
UserId
Identifies a delegate user or a user who has folder access permissions.
This element was introduced in Exchange 2007 SP1.
Parent elements
Element Description
CalendarPermissions Contains an array of calendar permissions for a folder. This element was
introduced in Exchange 2007 SP1.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Description
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
The CalendarPermissionLevel element represents the permission level that a user has
on a Calendar folder. This element was introduced in Microsoft Exchange Server 2007
Service Pack 1 (SP1).
XML
CalendarPermissionLevelType
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarPermission Defines the access that a user has to a Calendar folder. This element was
introduced in Exchange 2007 SP1.
Text value
The following table lists the possible values for the CalendarPermissionLevel element.
Owner Indicates that the user can create, read, edit, and delete
all items in the folder, and create subfolders. The user is
both folder owner and folder contact.
PublishingEditor Indicates that the user can create, read, edit, and delete
all items in the folder, and create subfolders.
Editor Indicates that the user can create, read, edit and delete all
items in the folder.
PublishingAuthor Indicates that the user can create and read all items in
the folder, edit and delete only items that the user
creates, and create subfolders.
Author Indicates that the user can create and read all items in
the folder, and edit and delete only items that the user
creates.
NoneditingAuthor Indicates that the user can create and read all items in
the folder, and delete only items that the user creates.
Reviewer Indicates that the user can read all items in the folder.
Contributor Indicates that the user can create items in the folder. The
contents of the folder do not appear.
FreeBusyTimeOnly Indicates that the user can view only free/busy time
within the calendar.
FreeBusyTimeAndSubjectAndLocation Indicates that the user can view free/busy time within the
calendar and the subject and location of appointments.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
XML
<CalendarPermissions>
<PermissionSet/>
</CalendarPermissions>
ArrayOfCalendarPermissionsType
Attributes
None.
Child elements
Element Description
CalendarPermission
Defines the access that a delegate user has to a calendar folder.
Parent elements
Element Description
PermissionSet Contains all the configured permissions for a calendar folder. This
(CalendarPermissionSetType) element was introduced in Exchange 2007 SP1.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
CalendarUrl (MasterMailboxType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
CalendarView
Article • 03/29/2023 • 2 minutes to read
FindItem
CalendarView
XML
CalendarView
Attributes
Attribute Description
StartDate
Identifies the start of a time span queried for calendar items. All calendar
items that have an end time that is before StartDate will not be returned.
The value of StartDate can be specified in coordinated universal time
(UTC) format, as in 2006-01-02T12:00:00Z, or in a format where local time
and time zone offset is specified, as in 2006-01-02T04:00:00-08:00.
EndDate
Identifies the end of a time span queried for calendar items. All calendar
items that have a start time that is on or after EndDate will not be
returned. The value of EndDate can be specified in UTC format, as in 2006-
02-02T12:00:00Z, or in a format where local time and time zone offset is
specified, as in 2006-02-02T04:00:00-08:00.
Parent elements
Element Description
FindItem
Defines a request to find items in a mailbox.
Remarks
If the CalendarView element is specified in a FindItem request, the Web service returns a
list of single calendar items and occurrences of recurring calendar items within the
range specified by StartDate and EndDate.
If the CalendarView element is not specified in a FindItem request, the Web service
returns a list of single calendar items and recurring master calendar items. Calendar
occurrences of a recurring calendar item are not expanded.
CalendarView queries should only make use of the following properties since they
support faster calendar queries.
MapiEndTime
SubjectPrefixInternal
NormalizedSubjectInternal
MapiSubject
Location
AppointmentColor
MapiIsAllDayEvent
MapiHasAttachment
FreeBusyStatus
ReminderIsSetInternal
ReminderMinutesBeforeStartInternal
AppointmentState
AllAttachmentsHidden
ChangeHighlight
IsRecurring
IsException
AppointmentRecurring
MapiStartTime
MapiPRStartDate
MapiEndTime
MapiPREndDate
CalendarItemType
GlobalObjectId
TimeZoneDefinitionStart
TimeZoneDefinitionEnd
ChangeKey
ItemClass
SentRepresentingEmailAddress
SentRepresentingDisplayName
SentRepresentingEntryId
AppointmentRecurrenceBlob
TimeZone
TimeZoneBlob
TimeZoneDefinitionRecurring
CleanGlobalObjectId
AppointmentRecurring
IsException
IsRecurring
MapiSensitivity
ContainerClass
MapiPRStartDate
MapiPREndDate
Categories
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Example
The following example shows a FindItem request. A successful request returns a
response that includes calendar items that started at 2006-05-18T00:00:00-08:00 or after
and ended before 2006-05-19T00:00:00-08:00.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<FindItem Traversal="Shallow"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
<t:FieldURI FieldURI="calendar:Start"/>
<t:FieldURI FieldURI="calendar:End"/>
<t:FieldURI FieldURI="item:Subject"/>
</t:AdditionalProperties>
</ItemShape>
<ParentFolderIds>
<t:DistinguishedFolderId Id="calendar"/>
</ParentFolderIds>
</FindItem>
</soap:Body>
</soap:Envelope>
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
FindItem operation
Finding Items
CallbackPhones
Article • 03/29/2023 • 2 minutes to read
The CallbackPhones element specifies an array of call-back phone numbers and the
identifiers of their source attributions for the associated persona.
XML
<CallbackPhones>
<Value></Value>
<Attributions></Attributions>
</CallbackPhones>
ArrayOfPhoneNumberAttributedValuesType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Description
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
CallerData
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
CancelCalendarItem
Article • 03/29/2023 • 2 minutes to read
The CancelCalendarItem element represents the response object that is used to cancel a meeting.
XML
<CancelCalendarItem>
<Subject/>
<Body/>
<ToRecipients/>
<CcRecipients/>
<BccRecipients/>
<IsReadReceiptRequested/>
<IsDeliveryReceiptRequested/>
<ReferenceItemId/>
<NewBodyContent/>
<ReceivedBy/>
<ReceivedRepresenting/>
</CancelCalendarItem>
CancelCalendarItemType
Attributes
None.
Child elements
Element Description
Subject
Represents the subject property of Exchange store items.
Body
Not used by CancelCalendarItem. Use the NewBodyContent property to set the body content.
ToRecipients
Contains a set of recipients of an item. These are the primary recipients of an item.
CcRecipients
Represents a collection of recipients that will receive a copy of the message.
BccRecipients
Represents a collection of recipients to receive a blind carbon copy (Bcc) of an e-mail.
IsReadReceiptRequested
Indicates whether the sender of an item requests a read receipt.
ReferenceItemId
Identifies the item to which the response object refers.
NewBodyContent
Represents the new body content of a message.
ReceivedBy
Identifies the delegate in a delegate access scenario. This element was introduced in Microsoft
Exchange Server 2007 Service Pack 1 (SP1).
ReceivedRepresenting
Identifies the principal in a delegate access scenario. This element was introduced in Microsoft
Exchange Server 2007 Service Pack 1 (SP1).
Parent elements
Element Description
AdjacentMeetings
Describes all items that are adjacent to a meeting time.
/CalendarItem/AdjacentMeetings
/MeetingRequest/AdjacentMeetings
/SetItemField/CalendarItem/AdjacentMeetings
/AppendToItemField/CalendarItem/AdjacentMeetings
/AcceptItem/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/DeclineItem/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/TentativelyAcceptItem/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/SetItemField/CalendarItem/AdjacentMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/AppendToItemField/CalendarItem/AdjacentMeetings
/CreateAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/GetAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/CalendarItem/ConflictingMeetings
/MeetingRequest/ConflictingMeetings
/SetItemField/CalendarItem/ConflictingMeetings
/AppendToItemField/CalendarItem/ConflictingMeetings
/AcceptItem/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/DeclineItem/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/TentativelyAcceptItem/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/SetItemField/CalendarItem/ConflictingMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/AppendToItemField/CalendarItem/ConflictingMeetings
/CreateAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/GetAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
ResponseObjects
Contains a collection of all the response objects that are associated with an item in the Exchange
store.
Items Contains an array of items to create in the folder identified by the ParentFolderId
(NonEmptyArrayOfAllItemsType) (TargetFolderIdType) element.
Remarks
The CancelCalendarItem element is only viewed by the organizer. It only applies to the organizer's calendar item.
The schema that describes this element is located in the EWS virtual directory of the computer that is running
MicrosoftExchange Server 2007 that has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
CanCreateItems
Article • 03/29/2023 • 2 minutes to read
The CanCreateItems element indicates whether a user has permission to create items in
a folder. This element was introduced in Microsoft Exchange Server 2007 Service Pack 1
(SP1).
XML
<CanCreateItems/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Permission
Defines the access that a user has to a folder. This element was introduced
in Exchange 2007 SP1.
CalendarPermission Defines the access that a user has to a Calendar folder. This element was
introduced in Exchange 2007 SP1.
Text value
A text value of true indicates that the user can create items in the folder. A value of false
indicates that the user cannot create items in the folder.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
XML
<CanCreateSubFolders/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Permission
Defines the access that a user has to a folder. This element was introduced
in Exchange 2007 SP1.
CalendarPermission Defines the access that a user has to a Calendar folder. This element was
introduced in Exchange 2007 SP1.
Text value
A text value of true indicates that the user can create subfolders in the folder. A value of
false indicates that the user cannot create subfolders in the folder.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
XML
<CanDelete/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
ManagedFolderInformation
Contains information about a managed folder.
Text value
A text value that represents a Boolean value is required if this element is present. A
value of true indicates that the folder can be deleted; a value of false means that the
folder cannot be deleted.
Remarks
To delete a managed folder, use the DeleteFolder operation.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
CreateManagedFolder operation
Deleting Folders
CanRenameOrMove
Article • 03/29/2023 • 2 minutes to read
XML
<CanRenameOrMove/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
ManagedFolderInformation
Contains information about a managed folder.
Text value
The text value represents a Boolean value. A value of true indicates that the folder can
be renamed or moved; a value of false indicates that the folder cannot be renamed or
moved.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
CarPhones
Article • 03/29/2023 • 2 minutes to read
The CarPhone element specifies an array of car phone numbers and the identifiers of
their source attributions for the associated persona.
XML
<CarPhones>
<Value></Value>
<Attributions></Attributions>
</CarPhones>
ArrayOfPhoneNumberAttributedValuesType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
Categories
Article • 03/29/2023 • 2 minutes to read
The Categories element contains a collection of strings that identify the categories to
which an item in the mailbox belongs.
XML
<Categories>
<String/>
</Categories>
ArrayOfStringsType
Attributes
None.
Child elements
Element Description
String
Contains a string that identifies a single category.
Parent elements
Element Description
Item
Represents an item in the Exchange store.
RemoveItem
Removes an item from the Exchange store.
Message
Represents an Exchange e-mail message.
Task
Represents a task in the Exchange store.
CalendarItem
Represents an Exchange calendar item.
Element Description
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Contact
Represents an Exchange contact item.
DistributionList
Represents a distribution list.
Conditions
Represents the conditions that, when fulfilled, will trigger the rule
actions for a rule.
Exceptions
Represents all the available rule exception conditions for an Inbox
rule.
ConversationAction
Contains a single action to be applied to a single conversation.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
The CcRecipients element represents a collection of recipients that will receive a copy of
the message.
XML
<CcRecipients>
<Mailbox/>
</CcRecipients>
ArrayOfRecipientsType
Attributes
None.
Child elements
Element Description
Mailbox
Identifies a mail-enabled Active Directory directory service object.
Parent elements
Element Description
RemoveItem
Removes an item from the Exchange store.
Message
Represents an Exchange e-mail message.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Element Description
AcceptItem
Represents an Accept reply to a meeting request.
DeclineItem
Represents a Decline reply to a meeting request.
ReplyToItem
Contains a reply to the creator of an item in the Exchange store.
ReplyAllToItem
Contains a reply to all identified recipients of an item in the Exchange
store.
ForwardItem
Contains an Exchange store item to forward to recipients.
CancelCalendarItem
Represents the response object that is used to cancel a meeting.
Remarks
You cannot get CcRecipients by using a FindItem request. Use a GetItem request to get
CcRecipients.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ChangeCount
Article • 03/29/2023 • 2 minutes to read
XML
<ChangeCount/>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
Task
Represents a task in the Exchange store.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ChangeHighlights
Article • 03/29/2023 • 2 minutes to read
The ChangeHighlights element specifies what has changed between two versions of a
meeting request message.
XML
<ChangeHighlights>
<HasLocationChanged></HasLocationChanged>
<Location></Location>
<HasStartTimeChanged></HasStartTimeChanged>
<Start></Start>
<HasEndTimeChanged></HasEndTimeChanged>
<End></End>
</ChangeHighlights>
ChangeHighlightsType
Attributes
None.
Child elements
Element Description
HasLocationChanged
Specifies whether the location property of a meeting has changed.
Location
Represents the location of a meeting or appointment.
HasStartTimeChanged
Specifies whether the start time for a meeting has changed.
Start
Represents the start of a duration.
HasEndTimeChanged
Specifies whether the end time for a meeting has changed.
Element Description
MeetingRequest
Represents a meeting request in the Exchange store.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
Changes (Hierarchy)
Article • 03/29/2023 • 2 minutes to read
The Changes element contains a sequenced array of change types that represent the
type of differences between the folders on the client and the folders on the computer
that is running Microsoft Exchange Server 2007.
SyncFolderHierarchyResponse
ResponseMessages
SyncFolderHierarchyResponseMessage
Changes (Hierarchy)
XML
<Changes>
<Create/>
<Update/>
<Delete/>
</Changes>
SyncFolderHierarchyChangesType
Attributes
None.
Child elements
Element Description
Create (FolderSync)
Identifies a single folder to create in the local client store.
Update (FolderSync)
Identifies a single folder to update in the local client store.
Delete (FolderSync)
Identifies a single folder to delete in the local client store.
Parent elements
Element Description
Text value
A text value that represents a Boolean value is required.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
Exchange 2007 computer that has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
SyncFolderHierarchy operation
The Changes element contains a sequence array of change types that represent the
types of differences between the items on the client and the items on the Exchange
server.
SyncFolderItemsResponse
ResponseMessages
SyncFolderItemsResponseMessage
Changes (Items)
XML
<Changes>
<Create/>
<Update/>
<Delete/>
<ReadFlagChange/>
</Changes>
SyncFolderItemsChangesType
Attributes
None.
Child elements
Element Description
Element Description
Parent elements
Element Description
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
SyncFolderItems operation
The ChildFolderCount element represents the number of immediate child folders that
are contained within a folder. This property is read-only.
XML
<ChildFolderCount/>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
Folder
Represents a folder in a mailbox.
CalendarFolder
Represents a Calendar folder in a mailbox.
ContactsFolder
Represents a Contacts folder in a mailbox.
SearchFolder
Represents a search folder in a mailbox.
TasksFolder
Represents a Tasks folder in a mailbox.
Text value
The text value represents an integer. This property is read-only.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Children
Article • 03/29/2023 • 2 minutes to read
XML
<Children>
<String/>
</Children>
ArrayOfStringsType
Attributes
None.
Child elements
Element Description
String
Contains the name of a contact's child.
Parent elements
Element Description
Contact
Represents a contact in the Exchange store.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Children
(ArrayOfStringArrayAttributedValuesTyp
e)
Article • 03/29/2023 • 2 minutes to read
The Children element specifies an array of child names and identifiers of their source
attributions for the associated persona.
XML
<Children>
<StringAttributedValue></StringAttributedValue>
</Children>
ArrayOfStringArrayAttributedValuesType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
City
Article • 03/29/2023 • 2 minutes to read
The City element represents the city name that is associated with a contact.
XML
<City/>
String
Attributes
None.
Child elements
None.
Parent elements
Element Description
Entry (PhysicalAddress)
Describes a single physical address for a contact item.
Text value
The text value is a string value that represents the name of a city.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ClientExtension
Article • 03/29/2023 • 2 minutes to read
The ClientExtension element contains user and configuration information about an app.
XML
<SpecificUsers></SpecificUsers>
<Manifest></Manifest>
</ClientExtension>
ClientExtensionType
Attributes
Attribute Description
IsAvailable Specifies whether the app is available. A text value of true for the
IsAvailable attribute indicates that the app is available. A value of
false indicates that the app is not available. This attribute is
optional.
IsMandatory Specifies whether the app is mandatory. A text value of true for the
IsMandatory attribute indicates that the app is mandatory for the
mailbox. A value of false indicates that the app is not mandatory.
This attribute is optional.
IsEnabledByDefault Specifies whether the app is enabled by default. A text value of true
for the IsEnabledByDefault attribute indicates that the app is
enabled by default. A value of false indicates that the app is not
enabled by default. This attribute is optional.
MarketplaceContentMarket Specifies the marketplace content that a user sees for details and
reviews about an app.
Etoken Specifies the license token for paid or trial mail apps.
Type
Value Description
Scope
Value Description
Child elements
Element Description
SpecificUsers
Specifies the email accounts that can access the app.
Manifest
Contains the base-64 encoded app manifest file.
Parent elements
Element Description
ClientExtensions
Specifies an array of ClientExtension elements.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
ClientExtensions
Article • 03/29/2023 • 2 minutes to read
XML
<ClientExtensions>
<ClientExtension/>
</ClientExtensions>
ArrayOfClientExtensionsType
Attributes
None.
Child elements
Element Description
ClientExtension
Contains user and configuration information about an app.
Parent elements
Element Description
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element
Namespace
Schema Name
Validation File
Can be Empty
ClientIntent
Article • 03/29/2023 • 2 minutes to read
XML
<ClientIntent />
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can Be Empty
Comment
Article • 03/29/2023 • 2 minutes to read
The Comment element contains the comment that is associated with a managed folder.
XML
<Comment/>
String
Attributes
None.
Child elements
None.
Parent elements
Element Description
ManagedFolderInformation
Contains information about a managed folder.
Text value
The text value represents the comment that is associated with a managed folder.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Companies
Article • 03/29/2023 • 2 minutes to read
The Companies element represents the collection of companies that are associated with
a contact or task.
XML
<Companies>
<String/>
</Companies>
ArrayOfStringsType
Attributes
None.
Child elements
Element Description
String
Represents the name of a company.
Parent elements
Element Description
Contact
Represents a contact in the Exchange store.
Task
Represents a task in the Exchange store.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
CompanyName
Article • 03/29/2023 • 2 minutes to read
The CompanyName element represents the company name that is associated with a
contact.
XML
<CompanyName/>
String
Attributes
None.
Child elements
None.
Parent elements
Element Description
Contact
Represents a contact item in the Exchange store.
Text value
A text value is required if this element is used.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Updating Contacts
Deleting Contacts
CompanyNames
Article • 03/29/2023 • 2 minutes to read
The CompanyNames element contains an array of company names and the identifiers
of their source attributions for the associated persona.
XML
<CompanyNames>
<StringAttributedValue></StringAttributedValue>
</CompanyNames>
ArrayOfStringAttributedValuesType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
CompanyNameSortKey
Article • 03/29/2023 • 2 minutes to read
The CompanyNameSortKey element contains the sort key for a company name.
XML
<CompanyNameSortKey></CompanyNameSortKey>
string
Attributes
None.
Child elements
None.
Parent elements
Persona
Text value
The text value of the CompanyNameSortKey element is the sort key for a company
name.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
CompleteDate
Article • 03/29/2023 • 2 minutes to read
The CompleteDate element represents the date on which an item was completed.
XML
<CompleteDate/>
DateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
Task
Represents a task in the Exchange store.
Flag
Specifies a flag on a mailbox item.
Text value
A text value that represents the date and time is required if this element is used.
Remarks
Setting CompleteDate has the same effect as setting PercentComplete to 100 or Status
to Completed. In a request that sets at least two of these properties, the last processed
property will determine the value that is set for these elements. For example, if
PercentComplete is 100, CompleteDate is January 1, 2007, and Status is NotStarted, and
the properties are streamed in that order, the effect will be to set the Status of the task
to NotStarted, the CompleteDate to null, and PercentComplete to 0.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Creating Tasks
Deleting Tasks
CompleteFindInGALSpeechRecognition
Article • 03/29/2023 • 2 minutes to read
XML
<CompleteFindInGALSpeechRecognition />
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can Be Empty
CompleteFindInGALSpeechRecognitionR
esponse
Article • 03/29/2023 • 2 minutes to read
XML
<CompleteFindInGALSpeechRecognitionResponse />
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can Be Empty
CompleteName
Article • 03/29/2023 • 2 minutes to read
XML
<CompleteName>
<Title/>
<FirstName/>
<MiddleName/>
<LastName/>
<Suffix/>
<Initials/>
<FullName/>
<Nickname/>
<YomiFirstName/>
<YomiLastName/>
</CompleteName>
CompleteNameType
Attributes
None.
Child elements
Element Description
FirstName
Represents the first name of contact.
MiddleName
Represents the middle name of a contact.
LastName
Represents the last name of a contact.
Suffix
Represents a suffix to a contact's name.
Initials
Represents the initials of a contact.
Element Description
FullName
Represents the full name of a contact.
Nickname
Represents the nickname of a contact.
YomiFirstName Represents the name used in Japan for the searchable or phonetic spelling of a
Japanese first name.
YomiLastName Represents the name used in Japan for the searchable or phonetic spelling of a
Japanese last name.
Parent elements
Element Description
Contact
Represents an Exchange contact item.
Remarks
The CompleteName property is part of the Default shape. In the initial release version of
Microsoft Exchange Server 2007, the CompleteName property is returned by the
GetItem operation, but not the FindItem operation. Starting with Exchange Server 2007
Service Pack 1 (SP1), the FindItem operation also returns the CompleteName property
with the Default shape. This change does not affect the schema.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
CompleteNameType
EWS XML elements in Exchange
Creating Contacts (Exchange Web Services)
Condition
Article • 03/29/2023 • 2 minutes to read
The Condition element identifies the condition that must be satisfied for the action part
of the rule to be executed.
XML
<Condition>
<AllInternal/>
</Condition>
XML
<Condition>
<SenderDepartments/>
</Condition>
XML
<Condition>
<True/>
</Condition>
XML
<Condition>
<Recipients/>
</Condition>
XML
<Condition>
<And/>
</Condition>
ProtectionRuleConditionType
Child elements
Element Description
AllInternal
Evaluates to true if all recipients of an e-mail message are internal to
the sender's organization.
And Specifies that all child elements must match to evaluate to true.
(ProtectionRuleAndType) Specifies that there must be more than one protection rule child
condition.
RecipientIs
Specifies that any recipient of the e-mail message matches any of the
specified recipients in the child Value (ProtectionRuleValueType)
elements.
SenderDepartments
Specifies that the department of the sender matches any of the
specified departments in the child Value (ProtectionRuleValueType)
elements.
True
Specifies a condition that always matches.
Parent elements
Element Description
Rule
Contains a single protection rule.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Condition (RestrictionType)
Article • 03/29/2023 • 2 minutes to read
The Condition element specifies the condition that is used to identify the end of a
search for a FindItem or a FindConversation operation.
XML
<Condition>
<SearchExpression></SearchExpression>
</Condition>
RestrictionType
Attributes
None.
Child elements
Element Description
SearchExpression
Abstract element that represents the substituted element within a restriction.
Parent elements
Element Description
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
Conditions
Article • 03/29/2023 • 4 minutes to read
The Conditions element identifies the conditions that, when fulfilled, will trigger the rule
actions for a rule.
XML
<Conditions>
<Categories/>
<ContainsBodyStrings/>
<ContainsHeaderStrings/>
<ContainsRecipientStrings/>
<ContainsSenderStrings/>
<ContainsSubjectOrBodyStrings/>
<ContainsSubjectStrings/>
<FlaggedForAction/>
<FromAddresses/>
<FromConnectedAccounts/>
<HasAttachments/>
<Importance/>
<IsApprovalRequest/>
<IsAutomaticForward/>
<IsAutomaticReply/>
<IsEncrypted/>
<IsMeetingRequest/>
<IsMeetingResponse/>
<IsNDR/>
<IsPermissionControlled/>
<IsReadReceipt/>
<IsSigned/>
<IsVoicemail/>
<ItemClasses/>
<MessageClassifications/>
<NotSentToMe/>
<SentCcMe/>
<SentOnlyToMe/>
<SentToAddresses/>
<SentToMe/>
<SentToOrCcMe/>
<Sensitivity/>
<WithinDateRange/>
<WithinSizeRange/>
</Conditions>
RulePredicatesType
Attributes
None.
Child elements
Element Description
Categories
Contains the categories that must be applied to an incoming
message in order for the condition or exception to apply.
ContainsBodyStrings
Indicates the strings that must appear in the body of incoming
messages in order for the condition or exception to apply.
ContainsHeaderStrings
Indicates the strings that must appear in the headers of
incoming messages in order for the condition or exception to
apply.
ContainsRecipientStrings
Indicates the strings that must appear in either the ToRecipients
or CcRecipients properties of incoming messages in order for
the condition or exception to apply.
ContainsSenderStrings
Indicates the strings that must appear in the From property of
incoming messages in order for the condition or exception to
apply.
ContainsSubjectOrBodyStrings Indicates the strings that must appear in either the body or the
subject of incoming messages in order for the condition or
exception to apply.
ContainsSubjectStrings
Indicates the strings that must appear in the subject of incoming
messages in order for the condition or exception to apply.
FlaggedForAction
Specifies the flag for action value that must appear on incoming
messages in order for the condition or exception to apply.
FromAddresses
Indicates the e-mail addresses from which incoming messages
must be sent in order for the condition or exception to apply.
FromConnectedAccounts
Represents the e-mail account names from which incoming
messages have to have been aggregated in order for the
condition or exception to apply.
HasAttachments
Indicates whether incoming messages have to have attachments
in order for the condition or exception to apply.
Element Description
Importance
Specifies the importance that is stamped on incoming messages
in order for the condition or exception to apply.
IsApprovalRequest
Indicates whether incoming messages must be approval
requests in order for the condition or exception to apply.
IsAutomaticForward
Indicates whether incoming messages must be automatic
forwards in order for the condition or exception to apply.
IsAutomaticReply
Indicates whether incoming messages must be automatic replies
in order for the condition or exception to apply.
IsEncrypted
Indicates whether incoming messages must be S/MIME
encrypted in order for the condition or exception to apply.
IsMeetingRequest
Indicates whether incoming messages must be meeting requests
in order for the condition or exception to apply.
IsMeetingResponse
Indicates whether incoming messages must be meeting
responses in order for the condition or exception to apply.
IsNDR
Indicates whether incoming messages must be non-delivery
reports (NDRs) in order for the condition or exception to apply.
IsPermissionControlled
Indicates whether incoming messages must be permission
controlled (RMS protected) in order for the condition or
exception to apply.
IsReadReceipt
Indicates whether incoming messages must be read receipts in
order for the condition or exception to apply.
IsSigned
Indicates whether incoming messages must be S/MIME signed in
order for the condition or exception to apply.
IsVoicemail
Indicates whether incoming messages must be voice mail
messages in order for the condition or exception to apply.
MessageClassifications
Represents the message classifications that must be stamped on
incoming messages in order for the condition or exception to
apply.
NotSentToMe
Indicates whether the owner of the mailbox must not be in the
ToRecipients property of the incoming messages in order for the
condition or exception to apply.
Element Description
SentCcMe
Indicates whether the owner of the mailbox has to be in the
CcRecipients property of incoming messages in order for the
condition or exception to apply.
SentOnlyToMe
Indicates whether the owner of the mailbox has to be the only
one in the ToRecipients property of incoming messages in order
for the condition or exception to apply.
SentToAddresses
Indicates the e-mail addresses that incoming messages have to
have been sent to in order for the condition or exception to
apply.
SentToMe
Indicates whether the owner of the mailbox has to be in the
ToRecipients property of incoming messages in order for the
condition or exception to apply.
SentToOrCcMe
Indicates whether the owner of the mailbox has to be in either a
ToRecipients or CcRecipients property of incoming messages in
order for the condition or exception to apply.
Sensitivity
Indicates the sensitivity that must be stamped on incoming
messages in order for the condition or exception to apply.
WithinDateRange
Specifies the date range within which incoming messages have
to have been received in order for the condition or exception to
apply.
WithinSizeRange
Specifies the minimum and maximum sizes that incoming
messages must be in order for the condition or exception to
apply.
Parent elements
Element Description
Rule (RuleType)
Contains a single rule and represents a rule in a user's mailbox.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Exceptions
The ConferenceType element describes the type of conferencing that is performed with
a calendar item.
XML
<ConferenceType/>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
MeetingRequest
Represents a meeting request in the Exchange store.
Text value
A text value that represents an integer value is required if this element is used. The
following are the possible values for this element:
0 = NetMeeting
1 = NetShow
2 = Chat
Remarks
The MeetingWorkspaceUrl property is read-writable for the organizer's calendar item. It
is read-only for meeting requests and for attendee's calendar items.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ConfigurationName
Article • 03/29/2023 • 2 minutes to read
XML
<ConfigurationName>MailTips or UnifiedMessagingConfiguration or
ProtectionRules</ConfigurationName>
ServiceConfigurationType
Attributes
None.
Child elements
None.
Parent elements
Element Description
RequestedConfiguration
Contains the requested service configurations.
Text value
The following table lists the possible values for the ConfigurationName element.
Value Description
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
ConfigurationRequestDetails
Article • 03/29/2023 • 2 minutes to read
The ConfigurationRequestDetails element contains client state for policy nudges. State
information can include the rules that are installed and client component version.
XML
<ConfigurationRequestDetails></ConfigurationRequestDetails>
ConfigurationRequestDetailsType
Attributes
None.
Child elements
The child elements are not defined in the Exchange Web Services schema.
Parent elements
GetServiceConfiguration
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<ConflictingMeetingCount/>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
MeetingRequest
Represents a meeting in the Exchange store.
CalendarItem
Represents an Exchange calendar item.
Text value
The text value represents an integer. This property is read-only.
Remarks
A calendar item is considered conflicting if it occurs, at least in part, at the same time as
another calendar item in the same calendar folder. If a calendar item is in a noncalendar
folder, it is compared with calendar items in the default calendar folder. Meeting
requests are compared with calendar items in the default calendar folder.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ConflictingMeetings
Article • 03/29/2023 • 2 minutes to read
The ConflictingMeetings element identifies all calendar items that conflict with a
meeting time.
XML
<ConflictingMeetings>
<CalendarItem/>
</ConflictingMeetings>
NonEmptyArrayOfAllItemsType
Attributes
None.
Child elements
Element Description
CalendarItem
Represents an Exchange calendar item.
Parent elements
Element Description
MeetingRequest
Represents a meeting request in the Exchange store.
CalendarItem
Represents an Exchange calendar item.
Remarks
If this element is used, it must contain one or more child elements.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
7 Note
Although additional child elements are valid per the schema, the CalendarItem
element is the only child element that Exchange Web Services (EWS) will return
within the ConflictingMeetings element. This topic does not list child elements that
are valid per the schema but will not be returned by EWS.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ConflictResults
Article • 03/29/2023 • 2 minutes to read
UpdateItemResponse
ResponseMessages
UpdateItemResponseMessage
ConflictResults
XML
<ConflictResults>
<Count/>
</ConflictResults>
ConflictResultsType
Attributes
None.
Child elements
Element Description
Count
Contains the number of conflicts in an UpdateItem operation response.
Parent elements
Element Description
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
UpdateItem operation
ConflictResultsType
ConnectingSID
Article • 03/29/2023 • 2 minutes to read
The ConnectingSID element represents an account to impersonate when you are using
the ExchangeImpersonation SOAP header.
ExchangeImpersonation
ConnectingSID
XML
<ConnectingSID>
<PrincipalName/>
</ConnectingSID>
XML
<ConnectingSID>
<SmtpAddress/>
</ConnectingSID>
XML
<ConnectingSID>
<SID/>
</ConnectingSID>
XML
<ConnectingSID>
<PrimarySmtpAddress/>
</ConnectingSID>
ConnectingSIDType
Attributes
None.
Child elements
Element Description
PrincipalName
Represents the user principal name (UPN) of the account to use for
impersonation. This should be the UPN for the domain where the user
account exists.
SID
Represents the security descriptor definition language (SDDL) form of the
security identifier (SID) for the account to use for impersonation.
PrimarySmtpAddress Represents the primary Simple Mail Transfer Protocol (SMTP) address of
the account to use for Exchange impersonation. If the primary SMTP
address is supplied, it will cost an extra Active Directory directory service
lookup in order to obtain the SID of the user. We recommend that you use
the SID or UPN if they are available.
SmtpAddress
Represents the Simple Mail Transfer Protocol (SMTP) address of the
account to use for Exchange Impersonation. If the SMTP address is
supplied, it will cost an extra Active Directory lookup in order to obtain the
SID of the user. We recommend that you use the SID or UPN if they are
available.
Parent elements
Element Description
ExchangeImpersonation Used in the SOAP header of a request. When this element is present,
the caller is trying to impersonate the account that is contained within
the ExchangeImpersonation element.
The following is the XPath expression to this element:
/ExchangeImpersonation
Remarks
The calling account must have the ms-exch-impersonation right on the Client Access
server and the ms-exch-MayImpersonate right on either the mailbox database that
contains the mailbox to impersonate or the Active Directory user or contact object.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Server-to-server authorization in EWS
ConnectionFailureCause
Article • 03/29/2023 • 2 minutes to read
XML
ConnectionFailureCauseType
Attributes
None.
Child elements
None.
Parent elements
Element Description
PhoneCallInformation
Specifies the state information for a telephone call.
Text value
The following table lists the possible values for the ConnectionFailureCause element.
Value Description
None Call state is not disconnected or the disconnect reason is not known.
Value Description
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Description
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ConnectionStatus
Article • 03/29/2023 • 2 minutes to read
XML
<ConnectionStatus>OK or Closed</ConnectionStatus>
ConnectionStatusType
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
A text value is required. The following are the possible text values for this element:
OK
Closed
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetStreamingEvents operation
GetStreamingEvents operation
ConnectionTimeout
XML
<ConnectionTimeout/>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
GetStreamingEvents
Defines a request to get event notifications from a streaming connection.
Text value
The text value represents an integer that describes the maximum number of minutes to
keep a streaming connection open. The value must be between 1 and 30, inclusive.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetStreamingEvents operation
XML
ConstantValueType
Attributes
Attribute Description
Value
Specifies the value to compare in the restriction.
Child elements
None.
Parent elements
Element Description
Contains
Represents a search expression that determines whether a given property
contains the supplied constant string value.
Remarks
The string value in the Value attribute must be coercible into the type you are trying to
compare against. For example, if you are comparing a date/time property against a
constant value, the string value must represent a date/time.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Contact
Article • 03/29/2023 • 6 minutes to read
XML
<Contact>
<MimeContent/>
<ItemId/>
<ParentFolderId/>
<ItemClass/>
<Subject/>
<Sensitivity/>
<Body/>
<Attachments/>
<DateTimeReceived/>
<Size/>
<Categories/>
<Importance/>
<InReplyTo/>
<IsSubmitted/>
<IsDraft/>
<IsFromMe/>
<IsResend/>
<IsUnmodified/>
<InternetMessageHeaders/>
<DateTimeSent/>
<DateTimeCreated/>
<ResponseObjects/>
<ReminderDueBy/>
<ReminderIsSet/>
<ReminderMinutesBeforeStart/>
<DisplayCc/>
<DisplayTo/>
<HasAttachments/>
<ExtendedProperty/>
<Culture/>
<EffectiveRights/>
<LastModifiedName/>
<LastModifiedTime/>
<IsAssociated/>
<WebClientReadFormQueryString/>
<WebClientEditFormQueryString/>
<ConversationId/>
<UniqueBody/>
<FileAs/>
<FileAsMapping/>
<DisplayName/>
<GivenName/>
<Initials/>
<MiddleName/>
<Nickname/>
<CompleteName/>
<CompanyName/>
<EmailAddresses/>
<PhysicalAddresses/>
<PhoneNumbers/>
<AssistantName/>
<Birthday/>
<BusinessHomePage/>
<Children/>
<Companies/>
<ContactSource/>
<Department/>
<Generation/>
<ImAddresses/>
<JobTitle/>
<Manager/>
<Mileage/>
<OfficeLocation/>
<PostalAddressIndex/>
<Profession/>
<SpouseName/>
<Surname/>
<WeddingAnniversary/>
<HasPicture/>
<PhoneticFullName/>
<PhoneticFirstName/>
<PhoneticLastName/>
<Alias/>
<Notes/>
<Photo/>
<UserSMIMECertificate/>
<MSExchangeCertificate/>
<DirectoryId/>
<ManagerMailbox/>
<DirectReports/>
</Contact>
ContactItemType
Attributes
None.
Child elements
Element name Description
MimeContent
Contains the native Multipurpose Internet Mail Extensions
(MIME) stream of an object that is represented in base64Binary
format.
ItemId
Contains the unique identifier and change key of an item in the
Exchange store.
ParentFolderId Represents the identifier of the parent folder that contains the
item or folder.
ItemClass
Represents the message class of an item.
Subject
Represents the subject for Exchange store items and response
objects.
Sensitivity
Indicates the sensitivity level of an item.
Body
Represents the actual body content of a message.
Attachments
Contains the items or files that are attached to an item in the
Exchange store.
DateTimeReceived
Represents the date and time that an item in a mailbox was
received.
Size
Represents the size in bytes of an item. This property is read-
only.
Categories
Represents a collection of strings that identify to which
categories an item in the mailbox belongs.
Importance
Describes the importance of an item.
InReplyTo
Represents the identifier of the item to which this item is a
reply.
IsSubmitted
Indicates whether an item has been submitted to the Outbox
default folder.
IsDraft
Represents whether an item has not yet been sent.
IsFromMe
Indicates whether a user sent an item to himself or herself.
IsResend
Indicates whether the item had previously been sent.
IsUnmodified
Indicates whether the item has been modified.
InternetMessageHeaders
Represents the collection of all Internet message headers that
are contained in an item in a mailbox.
Element name Description
DateTimeSent
Represents the date and time that an item in a mailbox was
sent.
DateTimeCreated
Represents the date and time that a given item in the mailbox
was created.
ResponseObjects
Contains a collection of all the response objects that are
associated with an item in the Exchange store.
ReminderDueBy
Represents the date and time when the event occurs. This is
used by the ReminderMinutesBeforeStart element to
determine when the reminder is displayed.
ReminderIsSet
Indicates whether a reminder has been set for an item in the
Exchange store.
ReminderMinutesBeforeStart
Represents the number of minutes before an event when a
reminder is displayed.
DisplayCc
Represents the display string that is used for the contents of
the Cc line. This is the concatenated string of all Cc recipient
display names.
DisplayTo
Represents the display string that is used for the contents of
the To line. This is the concatenated string of all To recipient
display names.
HasAttachments
Represents a property that is set to true if an item has at least
one visible attachment. This property is read-only.
ExtendedProperty
Identifies extended properties on folders and items.
Culture
Represents the culture for a given item in a mailbox.
EffectiveRights
Contains the client's rights based on the permission settings
for the item or folder. This element is read-only.
LastModifiedName
Contains the display name of the last user to modify an item.
LastModifiedTime
Indicates when an item was last modified.
IsAssociated
Indicates whether the item is associated with a folder.
WebClientEditFormQueryString
Represents a URL to concatenate to the Outlook Web App
endpoint to edit an item in Outlook Web App.
Element name Description
ConversationId
Contains the identifier of an item or conversation.
UniqueBody
Represents an HTML fragment or plain text which represents
the unique body of this conversation.
FileAs
Represents how a contact is filed in the Contacts folder.
FileAsMapping
Defines how to construct what is displayed for a contact.
DisplayName (string)
Defines the display name of a contact.
GivenName
Contains a contact's given name.
Initials
Represents the initials of a contact.
MiddleName
Represents the middle name of a contact.
Nickname
Represents the nickname of a contact.
CompleteName
Represents the complete name of a contact.
CompanyName
Represents the company name that is associated with a
contact.
EmailAddresses
Represents a collection of e-mail addresses for a contact.
PhysicalAddresses
Contains a collection of physical addresses that are associated
with a contact.
PhoneNumbers
Represents a collection of telephone numbers for a contact.
AssistantName
Represents an assistant to a contact.
Birthday
Represents the birth date of a contact.
BusinessHomePage
Represents the Home page (Web address) for the contact.
Children
Contains the names of a contact's children.
Companies
Represents the collection of companies that are associated
with a contact.
ContactSource
Describes whether the contact is located in the Exchange store
or the Active Directory directory service.
Department
Represents the contact's department at work.
Generation
Represents a generational abbreviation that follows the full
name of a contact.
Element name Description
ImAddresses
Represents a collection of instant messaging addresses for a
contact.
JobTitle
Represents the job title of a contact.
Mileage
Represents mileage for a contact item.
OfficeLocation
Represents the office location of a contact.
PostalAddressIndex
Represents the display types for physical addresses.
Profession
Represents the profession of a contact.
SpouseName
Represents the name of a contact's spouse/partner.
Surname
Represents the surname of a contact.
WeddingAnniversary
Contains the wedding anniversary of a contact.
HasPicture
Indicates whether the contact item has a file attachment that
represents the contact's picture.
PhoneticFullName
Contains the full name of a contact, including the first and last
name, spelled phonetically.
PhoneticFirstName
Contains the first name of a contact, spelled phonetically.
Alias
Contains the email alias of a contact.
Notes (Contact)
Contains supplementary contact information.
Photo
Contains a value that encodes the photo of a contact.
UserSMIMECertificate
Contains a value that encodes the SMIME certificate of a
contact.
MSExchangeCertificate
Contains a value that encodes the Microsoft Exchange
certificate of a contact.
DirectoryId
Contains the directory ID of a contact.
ManagerMailbox
Contains SMTP information that identifies the manager
mailbox of the contact.
DirectReports
Contains SMTP information that identifies the direct reports of
a contact.
Parent elements
AdjacentMeetings
Describes all calendar items that are adjacent to a meeting
time.
Create (ItemSync)
Identifies a single folder to create in the local client store.
ItemAttachment
Represents an Exchange item that is attached to another
Exchange item.
Items
Contains an array of items.
Resolution
Contains a single resolved entity.
SetItemField
Represents an update to a single property of an item in an
UpdateItem operation.
Update (ItemSync)
Identifies a single item to update in the local client store.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Updating Contacts
Deleting Contacts
Contact (ContactType)
Article • 03/29/2023 • 2 minutes to read
XML
<Contact>
<PersonName></PersonName>
<BusinessName></BusinessName>
<PhoneNumbers></PhoneNumbers>
<Urls></Urls>
<EmailAddresses></EmailAddresses>
<Addresses></Addesses> <ContactString></ContactString
</Contact>
ContactType
Attributes
None.
Child elements
Element Description
PersonName
Specifies the name of an individual.
BusinessName
Specifies the name of a business.
PhoneNumbers
Represents a collection of telephone numbers for a
contact.
Urls
Specifies an array of URLs for a persona.
Addresses (ArrayOfAddressesType)
Specifies an array of Address elements.
ContactString
Specifies the display name of a contact.
Parent elements
Element Description
Contacts (ArrayOfContactsType)
Specifies an array of contacts.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
ContactId
Article • 03/29/2023 • 2 minutes to read
XML
ItemIdType
Attributes
Attribute Description
Id The text value of the Id attribute is the identifier of the contact item.
ChangeKey The text value of the ChangeKey attribute is the change key of the contact item.
Child elements
None.
Parent elements
AddImContactToGroup | RemoveContactFromImList | RemoveImContactFromGroup
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
XML
<ContactIds>
<ItemId/>
<OccurrenceItemId/>
<RecurringMasterItemId/>
<RecurringMasterItemIdRanges/>
</ContactIds>
NonEmptyArrayOfBaseItemIdsType
Attributes
None.
Child elements
ItemId | OccurrenceItemId | RecurringMasterItemId | RecurringMasterItemIdRanges
Parent elements
GetImItems
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
The Contacts element contains a list of contacts that are associated with a task.
XML
<Contacts>
<String/>
</Contacts>
ArrayOfStringsType
Attributes
None.
Child elements
Element Description
String
Represents a comma-separated list of contact names.
Parent elements
Element Description
Task
Represents a task in the Exchange store.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Contacts (ArrayOfContactsType)
Article • 03/29/2023 • 2 minutes to read
XML
<Contacts>
<Contact></Contact>
</Contacts>
ArrayOfContactsType
Attributes
None.
Child elements
Element Description
Contact (ContactType)
Specifies a contact in the Unified Contact Store.
Parent elements
Element Description
EntityExtractionResult
Specifies the EntityExtractionResult property of an item.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
ContactsFolder
Article • 03/29/2023 • 2 minutes to read
XML
<ContactsFolder>
<FolderId/>
<ParentFolderId/>
<FolderClass/>
<DisplayName/>
<TotalCount/>
<ChildFolderCount/>
<ExtendedProperty/>
<ManagedFolderInformation/>
<EffectiveRights/>
<SharingEffectiveRights/>
<PermissionSet/>
</ContactsFolder>
ContactsFolderType
Attributes
None.
Child elements
Element Description
FolderId
Contains the identifier and change key of a contacts folder.
ParentFolderId Represents the identifier of the parent folder that contains the
contacts folder.
FolderClass
Represents the folder class for a contacts folder.
DisplayName (string)
Contains the display name of a contacts folder.
TotalCount
Represents the total count of items within a contacts folder.
Element Description
ChildFolderCount
Represents the number of child folders that are contained within
a contacts folder. This property is read-only.
ExtendedProperty
Identifies extended properties on contacts folders.
ManagedFolderInformation
Contains information about a managed folder.
EffectiveRights
Contains the client's rights based on the permission settings for
the item or folder.
SharingEffectiveRights Indicates the permissions that the user has for the contact data
(PermissionReadAccessType)
that is being shared.
Parent elements
Element Description
Create (FolderSync)
Identifies a single folder to create in the local client store.
SetFolderField
Represents an update to a single property on a folder in an UpdateFolder
operation.
Update (FolderSync)
Identifies a single folder to update in the local client store.
Folders
Contains an array of folders that are used in folder operations.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ContactsFolderPermissionLevel
Article • 03/29/2023 • 2 minutes to read
XML
<ContactsFolderPermissionLevel>
</ContactsFolderPermissionLevel>
DelegateFolderPermissionLevelType
Attributes
None.
Child elements
None.
Parent elements
Element Description
DelegatePermissions Contains the delegate permission level settings for a user. This element
was introduced in Exchange 2007 SP1.
Text value
The following table lists the text values that represent the permission levels.
None The delegate user has no access permissions to the Contacts folder.
Reviewer The delegate user can read items in the Contacts folder.
Author The delegate user can read and create items in the Contacts folder.
Editor The delegate user can read, create, and modify items in the Contacts folder.
Custom The delegate user has custom access permissions to the Contacts folder.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
AddDelegate operation
UpdateDelegate operation
Adding Delegates
ContactSource
Article • 03/29/2023 • 2 minutes to read
The ContactSource element describes whether the contact is located in the Exchange
store or Active Directory Domain Services (AD DS).
XML
<ContactSource/>
ContactSourceType
Attributes
None.
Child elements
None.
Parent elements
Element Description
Contact
Represents a contact item in the Exchange store.
DistributionList
Represents a distribution list.
Text value
The following are the possible values for this element:
ActiveDirectory
Store
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ContactString
Article • 03/29/2023 • 2 minutes to read
XML
<ContactString></ContactString>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Contact (ContactType)
Specifies a contact in the Unified Contact Store.
Text value
The text value of the ContactString element is the string value that specifies the display
name.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
ContactsView
Article • 03/29/2023 • 2 minutes to read
The ContactsView element defines a search for contact items based on alphabetical
display names.
FindItem
ContactsView
XML
ContactsViewType
Attributes
Attribute Description
InitialName
Defines the first name in the contacts list to return in the response. If the
specified initial name is not in the contacts list, the next alphabetical name
as defined by the cultural context will be returned, except if the next name
comes after FinalName. If the InitialName attribute is omitted, the
response will contain a list of contacts that starts with the first name in the
contact list. This attribute is optional.
FinalName
Defines the last name in the contacts list to return in the response. If the
FinalName attribute is omitted, the response will contain all subsequent
contacts in the specified sort order. If the specified final name is not in the
contacts list, the next alphabetical name as defined by the cultural context
will be excluded.
Parent elements
Element Description
FindItem
Defines a request to find items in a mailbox.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Example
The following example of a request demonstrates how to find the first three contacts
starting with the contact that has the display name of Kelly Rollin.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<FindItem Traversal="Shallow"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
<t:FieldURI FieldURI="contacts:DisplayName"/>
</t:AdditionalProperties>
</ItemShape>
<SortOrder>
<t:FieldOrder Order="Descending">
<t:FieldURI FieldURI="contacts:DisplayName"/>
</t:FieldOrder>
</SortOrder>
<ParentFolderIds>
<t:DistinguishedFolderId Id="contacts"/>
</ParentFolderIds>
</FindItem>
</soap:Body>
</soap:Envelope>
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
FindItem operation
Finding Items
Contains
Article • 03/29/2023 • 2 minutes to read
The Contains element represents a search expression that determines whether a given
property contains the supplied constant string value.
XML
<FieldURI/>
<Constant/>
</Contains>
XML
<ExtendedFieldURI/>
<Constant/>
</Contains>
XML
<IndexedFieldURI/>
<Constant/>
</Contains>
ContainsExpressionType
Attributes
Attribute Description
ContainmentMode
Identifies the boundaries of a search.
ContainmentComparison
Determines whether the search ignores cases and spaces.
FullString The comparison is between the full string and the constant. The property value
and the supplied constant are precisely the same.
Prefixed The comparison is between the string prefix and the constant.
Substring The comparison is between a substring of the string and the constant.
PrefixOnWords The comparison is between a prefix on individual words in the string and the
constant.
ExactPhrase The comparison is between an exact phrase in the string and the constant.
Value Description
Loose To be removed.
LooseAndIgnoreCase To be removed.
LooseAndIgnoreNonSpace To be removed.
LooseAndIgnoreCaseAndIgnoreNonSpace To be removed.
Child elements
Element Description
FieldURI
Identifies frequently referenced properties by URI.
IndexedFieldURI
Identifies individual members of a dictionary.
ExtendedFieldURI
Identifies MAPI properties.
Constant
Identifies a constant value in a restriction.
Parent elements
Element Description
Restriction Represents the restriction or query that is used to filter items or folders in
FindItem/FindFolder and search folder operations.
Not
Represents a search expression that negates the Boolean value of the search
expression it contains.
And
Represents a search expression that allows you to perform a Boolean And operation
between two or more search expressions. The result of the And operation is true if all
of the search expressions contained within the And are true.
Or
Represents a search expression that performs a logical OR on the search expression
it contains. The Or element will return true if any of its children return true.
Remarks
The attributes are used to determine how the elements are matched.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ContainsBodyStrings
Article • 03/29/2023 • 2 minutes to read
The ContainsBodyStrings element indicates the strings that must appear in the body of
incoming messages in order for the condition or exception to apply.
XML
<ContainsBodyStrings>
<String/>
</ContainsBodyStrings>
ArrayOfStringsType
Attributes
None.
Child elements
Element Description
String
Represents a string that must appear in the body of incoming messages in order for
the condition or exception to apply.
Parent elements
Element Description
Conditions Represents the conditions that, when fulfilled, will trigger the rule actions for a rule.
Exceptions Represents the exceptions that represent all the available rule exception conditions
for an Inbox rule.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
ContainsHeaderStrings
Article • 03/29/2023 • 2 minutes to read
The ContainsHeaderStrings element indicates the strings that must appear in the
headers of incoming messages in order for the condition or exception to apply.
XML
<ContainsHeaderStrings>
<String/>
</ContainsHeaderStrings>
ArrayOfStringsType
Attributes
None.
Child elements
Element Description
String
Represents a string that must appear in message headers in order for the condition or
exception to apply.
Parent elements
Element Description
Conditions Represents the conditions that, when fulfilled, will trigger the rule actions for a rule.
Exceptions Represents the exceptions that represent all the available rule exception conditions
for an Inbox rule.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
ContainsRecipientStrings
Article • 03/29/2023 • 2 minutes to read
The ContainsRecipientStrings element indicates the strings that must appear in either
the ToRecipients or CcRecipients properties of incoming messages in order for the
condition or exception to apply.
XML
<ContainsRecipientStrings>
<String/>
</ContainsRecipientStrings>
ArrayOfStringsType
Attributes
None.
Child elements
Element Description
String
Represents a string that must appear in either the ToRecipients or CcRecipients
properties of incoming messages in order for the condition or exception to apply.
Parent elements
Element Description
Conditions Represents the conditions that, when fulfilled, will trigger the rule actions for a rule.
Exceptions Represents the exceptions that represent all the available rule exception conditions
for an Inbox rule.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
ContainsSenderStrings
Article • 03/29/2023 • 2 minutes to read
The ContainsSenderStrings element indicates the strings that must appear in the From
property of incoming messages in order for the condition or exception to apply.
XML
<ContainsSenderStrings>
<String/>
</ContainsSenderStrings>
ArrayOfStringsType
Attributes
None.
Child elements
Element Description
String
Represents a string that must appear in the From property of incoming messages in
order for the condition or exception to apply.
Parent elements
Element Description
Conditions Represents the conditions that, when fulfilled, will trigger the rule actions for a rule.
Exceptions Represents the exceptions that represent all the available rule exception conditions
for an Inbox rule.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
ContainsSubjectOrBodyStrings
Article • 03/29/2023 • 2 minutes to read
XML
<ContainsSubjectOrBodyStrings>
<String/>
</ContainsSubjectOrBodyStrings>
ArrayOfStringsType
Attributes
None.
Child elements
Element Description
String
Represents a string that must appear in either the body or the subject of incoming
messages in order for the condition or exception to apply.
Parent elements
Element Description
Conditions Represents the conditions that, when fulfilled, will trigger the rule actions for a rule.
Exceptions Represents the exceptions that represent all the available rule exception conditions
for an Inbox rule.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
ContainsSubjectStrings
Article • 03/29/2023 • 2 minutes to read
The ContainsSubjectStrings element indicates the strings that must appear in the
subject of incoming messages in order for the condition or exception to apply.
XML
<ContainsSubjectStrings>
<String/>
</ContainsSubjectStrings>
ArrayOfStringsType
Attributes
None.
Child elements
Element Description
String
Represents a string that must appear in the subject of incoming messages in order for
the condition or exception to apply.
Parent elements
Element Description
Conditions Represents the conditions that, when fulfilled, will trigger the rule actions for a rule.
Exceptions Represents the exceptions that represent all the available rule exception conditions
for an Inbox rule.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
Content
Article • 03/29/2023 • 2 minutes to read
XML
<Content/>
Base64Binary
Attributes
None.
Child elements
None.
Parent elements
Element Description
FileAttachment
Represents a file t is thattached to an item in the Exchange store.
Text value
The string value represents the Base64-encoded binary data of the file attachment.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ContentExpiryDate
Article • 03/29/2023 • 2 minutes to read
XML
<ContentExpiryDate></ContentExpiryDate>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
RightsManagementLicenseData
Specifies information about the rights management license.
Text value
The text value of the ContentExpiryDate element is a string that specifies the expiration
date of the content.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
ContentId
Article • 03/29/2023 • 2 minutes to read
XML
<ContentId/>
String
Attributes
None.
Child elements
None.
Parent elements
Element Description
ItemAttachment
Represents an Exchange item that is attached to another Exchange item.
FileAttachment
Represents a file that is attached to an item in the Exchange store.
Text value
The string value represents the identifier to the contents of an attachment.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ContentLocation
Article • 03/29/2023 • 2 minutes to read
The ContentLocation element contains the Uniform Resource Identifier (URI) that
corresponds to the location of the content of an attachment.
XML
<ContentLocation/>
String
Attributes
None.
Child elements
None.
Parent elements
Element Description
ItemAttachment
Represents an Exchange item that is attached to another Exchange item.
FileAttachment
Represents a file that is attached to an item in the Exchange store.
Text value
The text value is a string value that represents a URI.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ContentOwner
Article • 03/29/2023 • 2 minutes to read
XML
<ContentOwner></ContentOwner>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
RightsManagementLicenseData
Specifies information about the rights management license.
Text value
The text value of the ContentOwner element is a string that specifies the expiration date
of the content.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
ContentType
Article • 03/29/2023 • 2 minutes to read
The ContentType element describes the Multipurpose Internet Mail Extensions (MIME)
type of the attachment content.
XML
<ContentType/>
String
Attributes
None.
Child elements
None.
Parent elements
Element Description
ItemAttachment
Represents an Exchange item that is attached to another Exchange item.
FileAttachment
Represents a file that is attached to an item in the Exchange store.
Text value
The text value is a string value that represents the content type of the attachment.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ContextFolderId
Article • 03/29/2023 • 2 minutes to read
The ContextFolderId element indicates the folder that is targeted for actions that use
folders. This element must be present when copying, deleting, moving, and setting read
state on conversation items in a target folder.
ApplyConversationAction
ConversationActions
ConversationAction
ContextFolderId
XML
<ContextFolderId>
<FolderId/>
</ContextFolderId>
XML
<ContextFolderId>
<DistinguishedFolderId/>
</ContextFolderId>
TargetFolderIdType
Attributes
None.
Child elements
Element Description
FolderId
Contains the identifier and change key of the context folder.
DistinguishedFolderId
Identifies folders that can be referenced by name.
Parent elements
Element Description
ConversationAction
Contains a single action to be applied to a single conversation.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
ApplyConversationAction operation
Conversation
(ConversationRequestType)
Article • 03/29/2023 • 2 minutes to read
XML
<Conversation>
<ConversationId/>
<SyncState/>
</Conversation>
Attributes
None.
Child elements
ConversationId | SyncState (base64Binary)
Parent elements
Conversations
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
XML
<Conversation />
ConversationResponseType
The following sections describe attributes, child elements, and parent elements.
Attributes
Attribute Description
Value Description
Child elements
Element Description
Parent elements
Element Description
Remarks
This element was introduced in Exchange Server 2013.
Example
Microsoft.Win32.RegistryKey#4
Element information
Element information
Namespace
Schema name
Validation file
Can be empty
Conversation (ConversationType)
Article • 03/29/2023 • 2 minutes to read
FindConversationResponse
Conversations
Conversation (ConversationType)
XML
<Conversation>
<ConversationId/>
<ConversationTopic/>
<UniqueRecipients/>
<GlobalUniqueRecipients/>
<UniqueUnreadSenders/>
<GlobalUniqueUnreadSenders/>
<UniqueSenders/>
<GlobalUniqueSenders/>
<LastDeliveryTime/>
<GlobalLastDeliveryTime/>
<Categories/>
<GlobalCategories/>
<FlagStatus/>
<GlobalFlagStatus/>
<HasAttachments/>
<GlobalHasAttachments/>
<MessageCount/>
<GlobalMessageCount/>
<UnreadCount/>
<GlobalUnreadCount/>
<Size/> <GlobalSize/>
<ItemClasses/>
<GlobalItemClasses/>
<Importance/>
<GlobalImportance/>
<ItemIds/>
<GlobalItemIds/>
</Conversation>
ConversationType
Child elements
Element Description
ConversationId
Represents the identifier of a conversation.
ConversationTopic
Represents the conversation topic. This element is read-only.
UniqueRecipients
Contains the recipient list of a conversation aggregated from a
particular folder. This element is read-only.
GlobalUniqueRecipients
Contains the recipient list of a conversation aggregated across a
mailbox. This element is read-only.
UniqueUnreadSenders
Contains a list of all the people who have sent messages that are
currently unread in this conversation in the current folder. This
element is read-only.
GlobalUniqueUnreadSenders Contains a list of all the people who have sent messages that are
currently unread in this conversation across all folders in the
mailbox.
UniqueSenders
Contains a list of all the senders of conversation items in the
current folder. This element is read-only.
GlobalUniqueSenders
Contains a list of all the senders of conversation items in the
mailbox.
LastDeliveryTime
Contains the delivery time of the message that was last received in
this conversation in the current folder.
GlobalLastDeliveryTime
Contains the delivery time of the message that was last received in
this conversation across all folders in the mailbox.
Categories
Contains a collection of strings that identify the categories that are
applied to all conversation items in the current folder.
GlobalCategories
Contains the category list for all conversation items in a mailbox.
FlagStatus
Contains the aggregated flag status for conversation items in the
current folder.
GlobalFlagStatus
Contains the aggregated flag status for all conversation items in a
mailbox.
Element Description
HasAttachments
Contains a value that indicates whether at least one conversation
item in the current folder has an attachment.
GlobalHasAttachments
Contains a value that indicates whether at least one conversation
item in a mailbox has an attachment.
MessageCount
Contains the total number of conversation items in the current
folder.
GlobalMessageCount
Contains the total number of conversation items in the mailbox.
UnreadCount
Contains the count of unread conversation items within a folder.
GlobalUnreadCount
Contains a count of all the unread conversation items in the
mailbox.
Size
Contains the conversation size calculated from the size of all
conversation items in the current folder.
GlobalSize
Contains the size of the conversation calculated from the size of
all conversation items in the mailbox.
ItemClasses Contains a list of item classes that represents all the item classes
(ArrayOfItemClassType)
of the conversation items in the current folder.
GlobalItemClasses
Contains a list of item classes that represents all the item classes
of the conversation items in a mailbox.
Importance
Contains the aggregated importance for all conversation items in
the current folder.
GlobalImportance
Contains the aggregated importance for all conversation items in
a mailbox.
ItemIds
Contains the collection of item identifiers for all conversation
items in the current folder.
GlobalItemIds
Contains the collection of item identifiers for all conversation
items in a mailbox.
Parent elements
Element Description
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
FindConversation operation
ApplyConversationAction operation
Conversations in EWS
ConversationAction
Article • 03/29/2023 • 2 minutes to read
ApplyConversationAction
ConversationActions
ConversationAction
XML
<ConversationAction>
<Action/>
<ConversationId/>
<ContextFolderId/>
<ConversationLastSyncTime/>
<ProcessRightAway/>
<DestinationFolderId/>
<Categories/>
<EnableAlwaysDelete/>
<IsRead/>
<DeleteType/>
</ConversationAction>
ConversationActionType
Attributes
None.
Child elements
Element Description
ConversationId
Contains the identifier of the conversation that will have the
action specified by the Action (ConversationActionTypeType)
element applied to items in the conversation. This element must
be present.
ContextFolderId
Indicates the folder that is targeted for actions that use folders.
This element must be present when copying, deleting, moving,
and setting read state on conversation items in a target folder.
ConversationLastSyncTime
Contains the date and time that a conversation was last
synchronized. This element must be present when trying to
delete all items in a conversation that were received up to the
specified time.
ProcessRightAway
Indicates whether the response is sent as soon as the action
starts processing on the server or whether the response is sent
after the action has completed. This element must be present for
the response to be sent asynchronous to the requested action.
DestinationFolderId
Indicates the destination folder for copy and move actions.
Categories
Contains a collection of strings that identify the categories to
which items in a conversation belong.
EnableAlwaysDelete
Specifies a flag that enables deletion for all new items in a
conversation.
IsRead
Indicates whether a message has been read.
DeleteType
Indicates how items in a conversation are deleted.
Parent elements
Element Description
ConversationActions
Contains a collection of conversations and the actions to apply to them.
Text value
ConversationAction element text values
Value Description
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
ApplyConversationAction operation
ApplyConversationAction
ConversationActions
XML
<ConversationActions>
<ConversationAction/>
</ConversationActions>
NonEmptyArrayOfApplyConversationActionType
Attributes
None.
Child elements
Element Description
ConversationAction
Contains a single action to be applied to a single conversation.
Parent elements
Element Description
ApplyConversationAction
Defines a request to apply actions to items in a conversation.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
ApplyConversationAction operation
ConversationId
Article • 03/29/2023 • 2 minutes to read
XML
ItemIdType
Attributes
Attribute Description
Id
Identifies a specific item in the Exchange store.
ChangeKey Identifies a specific version of an item. A ChangeKey is required for the following
scenarios:
Child elements
None.
Parent elements
Element Description
Element Description
CalendarItem
Represents an Exchange calendar item.
Contact
Represents an Exchange contact item.
ConversationAction
Represents a single action to be applied to a single
conversation.
DistributionList
Represents a distribution list.
Item
Represents an item in the Exchange store.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Message
Represents an Exchange e-mail message.
PostItem
Represents a post item in the Exchange store.
RemoveItem
Removes an item from the Exchange store.
Task
Represents a task in the Exchange store.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Element Example
See also
FindConversation operation
EWS XML elements in Exchange
ConversationIndex
Article • 03/29/2023 • 2 minutes to read
The ConversationIndex element contains a binary ID that represents the thread to which
this message belongs.
XML
<ConversationIndex/>
Base64Binary
Attributes
None.
Child elements
None.
Parent elements
Element Description
RemoveItem
Removes an item from the Exchange store.
Message
Represents an Exchange e-mail message.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
AcceptItem
Represents an Accept reply to a meeting request.
DeclineItem
Represents a Decline reply to a meeting request.
ReplyToItem
Contains a reply to the creator of an item in the Exchange store.
ReplyAllToItem
Contains a reply to all identified recipients of an item in the Exchange
store.
ForwardItem
Contains an Exchange store item to forward to recipients.
CancelCalendarItem
Represents the response object that is used to cancel a meeting.
PostItem
Represents a post item in the Exchange store. This element was
introduced in Microsoft Exchange Server 2007 Service Pack 1 (SP1).
Text value
The text value represents a binary identifier in Base64Binary format.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
Exchange server that has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ConversationIndex (string)
Article • 03/29/2023 • 2 minutes to read
XML
<ConversationIndex></ConversationIndex>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
ConversationNode
Specifies a node in a conversation.
Text value
String value that represents the index of the conversation.
Remarks
This element is required.
The ConversationIndex element is applicable for clients that target Exchange Online
and versions of Microsoft Exchange Server starting with Exchange 2013.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
ConversationLastSyncTime
Article • 03/29/2023 • 2 minutes to read
The ConversationLastSyncTime element contains the date and time that a conversation
was last synchronized. This element must be present when trying to delete all items in a
conversation that were received up to the specified time.
ApplyConversationAction
ConversationActions
ConversationAction
ConversationLastSyncTime
XML
<ConversationLastSyncTime/>
xs:dateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
ConversationAction
Contains a single action to be applied to a single conversation.
Text value
The text value of the ConversationLastSyncTime indicates the last time the conversation
was synchronized.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
ApplyConversationAction operation
XML
<ConversationNode>
<InternetMessageId></InternetMessageId>
<ParentInternetMessageId></ParentInternetMessageId>
<Items></Items>
</ConversationNode>
ConversationNodeType
Attributes
None.
Child elements
Element Description
InternetMessageId
Represents the Internet message identifier of an item.
ParentInternetMessageId
Specifies the identifier of the parent Internet message.
ItemIds (NonEmptyArrayOfItemIdsType)
Specifies all the items in the conversation node.
Parent elements
Element Description
ConversationNodes
Specifies a collection of conversation nodes.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
ConversationNodes
Article • 03/29/2023 • 2 minutes to read
XML
<ConversationNodes>
<ConversationNode></ConversationNode>
</ConversationNodes>
ArrayOfConversationNodesType
Attributes
None.
Child elements
Element Description
ConversationNode
Specifies a node in a conversation.
Parent elements
Element Description
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
Conversations
Article • 03/29/2023 • 2 minutes to read
The Conversations element contains an array of conversations that are returned in the
FindConversation response.
FindConversationResponse
Conversations
XML
<Conversations>
<Conversation/>
</Conversations>
ArrayOfConversationsType
Attributes
None.
Child elements
Element Description
Conversation (ConversationType)
Represents a single conversation.
Parent elements
Element Description
FindConversationResponse
Defines a response to a FindConversation request.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
FindConversation operation
Conversations in EWS
ConversationShape
Article • 03/29/2023 • 2 minutes to read
XML
<ConversationShape>
<BaseShape/>
<AdditionalProperties/>
</ConversationShape>
Attributes
None.
Child elements
BaseShape | AdditionalProperties
Parent elements
FindConversation
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
XML
<ConversationTopic/>
String
Attributes
None.
Child elements
None.
Parent elements
Element Description
RemoveItem
Removes an item from the Exchange store.
Message
Represents an Exchange e-mail message.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
AcceptItem
Represents an Accept reply to a meeting request.
DeclineItem
Represents a Decline reply to a meeting request.
ReplyToItem
Contains a reply to the creator of an item in the Exchange store.
ReplyAllToItem
Contains a reply to all identified recipients of an item in the Exchange
store.
ForwardItem
Contains an Exchange store item to forward to recipients.
CancelCalendarItem
Represents the response object that is used to cancel a meeting.
PostItem
Represents a post item in the Exchange store. This element was
introduced in Microsoft Exchange Server 2007 Service Pack 1 (SP1).
Text value
The text value represents the topic for the conversation thread.
Remarks
The conversation topic is usually the subject of the first e-mail message in a thread.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
FindConversation operation
EWS XML elements in Exchange
ConvertHtmlCodePageToUTF8
Article • 03/29/2023 • 2 minutes to read
XML
<ConvertHtmlCodePageToUTF8/>
xs:boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
ItemShape
Identifies a set of properties to return in a response.
Text value
A text value of true for the ConvertHtmlCodePageToUTF8 element indicates that the
HTML body is converted to UTF8. A text value of false indicates that the HTML body is
not converted to UTF8.
Remarks
The default value of true is used if the ConvertHtmlCodePageToUTF8 element is not
specified in a request.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ConvertId
Article • 03/29/2023 • 2 minutes to read
The ConvertId element defines a request to convert item and folder identifiers between
supported Exchange formats. This element was introduced in Microsoft Exchange Server
2007 Service Pack 1 (SP1).
XML
<ConvertId DestinationFormat="">
<SourceIds/>
</ConvertId>
ConvertIdType
Attributes
Attribute Description
DestinationFormat Describes the identifier format that will be returned for all the converted
identifiers. The DestinationFormat is described by the IdFormatType.
DestinationFormat Attribute
Value Description
EwsLegacyId Represents the identifier format that is used for Exchange Web Services identifiers
that are provided in the initial release version of Exchange 2007.
EwsId
Represents the identifier format that is used for Exchange Web Services identifiers
starting with Exchange Server 2007 SP1.
EntryId
Represents the MAPI identifier, as in the PR_ENTRYID property.
HexEntryId
Represents the availability calendar event identifier. This is a hexadecimal-encoded
representation of the PR_ENTRYID property.
StoreId
Represents the Exchange store identifier.
Value Description
OwaId
Represents the Outlook Web Access identifier format.
Child elements
Element Description
SourceIds
Contains the source identifiers to convert.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
ConvertId operation
Converting Identifiers
ConvertIdResponse
Article • 03/29/2023 • 2 minutes to read
XML
<ConvertIdResponse>
<ResponseMessages/>
</ConvertIdResponse>
ConvertIdResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Parent elements
None.
Remarks
The response messages that are contained within the ResponseMessages element will
be instances of ConvertIdResponseMessageType.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
ConvertId operation
Converting Identifiers
ConvertIdResponseMessage
Article • 03/29/2023 • 2 minutes to read
ConvertIdResponse
ResponseMessages
ConvertIdResponseMessage
XML
<ConvertIdResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<AlternateId/>
</ConvertIdResponseMessage>
ConvertIdResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of a ConvertId operation response.
- Success
- Warning
- Error
Value Description
Value Description
Success
Describes a request that is fulfilled.
Warning Describes a request that was not fully processed or for which an unintended result
occurred.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and reserved for future use. This element contains a value
of 0.
MessageXml
Provides additional error response information.
AlternateId
Describes a converted identifier in the response.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
One response message per converted identifier is returned. The AlternateId element will
be missing from the response if an error response code is returned,
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Exchange 2010 that has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
ConvertId operation
EWS XML elements in Exchange
CopiedEvent
Article • 03/29/2023 • 2 minutes to read
XML
<CopiedEvent>
<Watermark/>
<TimeStamp/>
<FolderId/>
<ParentFolderId/>
<OldFolderId/>
<OldParentFolderId/>
</CopiedEvent>
XML
<CopiedEvent>
<Watermark/>
<TimeStamp/>
<ItemId/>
<ParentFolderId/>
<OldItemId/>
<OldParentFolderId/>
</CopiedEvent>
MovedCopiedEventType
Attributes
None.
Child elements
Element Description
Watermark
Represents an events bookmark in the mailbox events table.
TimeStamp
Represents the timestamp of a copy item/folder mailbox event.
Element Description
FolderId
Represents the identifier of the folder.
ItemId
Represents the identifier of the item.
ParentFolderId Represents the identifier of the folder that contains the copy.
OldFolderId
Represents the folder identifier of the original folder before it was copied.
OldItemId
Contains the unique identifier of the original item before it was copied.
OldParentFolderId Contains the identifier of the original parent folder of an item or folder that
was copied.
Parent elements
Element Description
Notification Contains information about the subscription and the events that have occurred
since the last notification.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Description
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Subscribe operation
GetEvents operation
Unsubscribe operation
Using Pull Subscriptions
Push Notification Sample Application
CopyFolder
Article • 03/29/2023 • 2 minutes to read
The CopyFolder element defines a request to copy folders in a mailbox in the Exchange
store.
XML
<CopyFolder>
<ToFolderId/>
<FolderIds/>
</CopyFolder>
CopyFolderType
Attributes
None.
Child elements
Element Description
FolderIds
Contains an array of folders to copy to the folder identified by the ToFolderId
element.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
CopyFolder operation
CopyFolderResponse
Article • 03/29/2023 • 2 minutes to read
XML
<CopyFolderResponse>
<ResponseMessages/>
</CopyFolderResponse>
CopyFolderResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
CopyFolder operation
CopyFolder
CopyFolderResponse
ResponseMessages
CopyFolderResponseMessage
XML
<CopyFolderResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<Folders/>
</CopyFolderResponseMessage>
FolderInfoResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of a CopyFolder operation response.
- Success
- Warning
- Error
Value Description
Value Description
Success
Describes a request that is fulfilled.
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and is reserved for future use. It contains a value of 0.
MessageXml
Provides additional error response information.
Folders
Contains an array of copied folders.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
CopyFolder operation
EWS reference for Exchange
EWS XML elements in Exchange
CopyItem
Article • 03/29/2023 • 2 minutes to read
The CopyItem element defines a request to copy an item in a mailbox in the Exchange
store.
XML
<CopyItem>
<ToFolderId/>
<ItemIds/>
<ReturnNewItemIds/>
</CopyItem>
CopyItemType
Attributes
None.
Child elements
Element Description
ToFolderId
Represents the destination folder for a copied item.
ItemIds
Contains an array of identified items to copy to the folder represented by the
ToFolderId element.
ReturnNewItemIds Indicates whether the item identifiers of new items are returned in the
response.
Parent elements
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
CopyItem operation
XML
<CopyItemResponse>
<ResponseMessages/>
</CopyItemResponse>
CopyItemResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
CopyItem operation
CopyItem
XML
<CopyItemResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<Items/>
</CopyItemResponseMessage>
ItemInfoResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of a CopyItem operation response.
- Success
- Warning
- Error
Value Description
Success
Describes a request that is fulfilled.
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
- EWS XML elements in Provides a text description of the status of the response.
Exchange
MessageText
ResponseCode
Provides an error code that identifies the specific error that the
request encountered.
DescriptiveLinkKey
Currently unused and is reserved for future use. It contains a value
of 0.
MessageXml
Provides additional error response information.
Items
Contains an array of copied items
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
CopyItem operation
EWS reference for Exchange
CopyToFolder
Article • 03/29/2023 • 2 minutes to read
The CopyToFolder element specifies the identifier of the folder that email items can be
copied to.
XML
<CopyToFolder>
<FolderId></FolderId>
<DistinguishedFolderId></DistinguisedFolderId>
</CopyToFolder>
TargetFolderIdType
Attributes
None.
Child elements
Element Description
FolderId
Contains the identifier of a destination folder for a copied or moved item
or folder.
Parent elements
Element Description
Actions
Represents the set of actions that are available to be taken on a message when the
conditions are fulfilled.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
MoveToFolder
UpdateItemResponse
ResponseMessages
UpdateItemResponseMessage
ConflictResults
Count
XML
<Count/>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
ConflictResults
Contains the number of conflicts in an UpdateItem operation response.
Text value
The text value is an integer that represents the number of conflicts in an UpdateItem
operation response.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
UpdateItem operation
ConflictResultsType
Country
Article • 03/29/2023 • 2 minutes to read
XML
<Country></Country>
string
Attributes
None.
Child elements
None.
Parent elements
PostalAddress (PersonaPostalAddressType)
Text value
The text value of the Country element is a country identifier.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
CountryOrRegion
Article • 03/29/2023 • 2 minutes to read
The Country element represents the country or region for a given physical address.
XML
<Country/>
String
Attributes
None.
Child elements
None.
Parent elements
Element Description
Entry (PhysicalAddress)
Describes a single physical address for a contact item.
Text value
The text value is a string value that represents the name of a country.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Create (FolderSync)
Article • 03/29/2023 • 2 minutes to read
The Create element identifies a single folder to create in the local client store.
SyncFolderHierarchyResponse
ResponseMessages
SyncFolderHierarchyResponseMessage
Changes (Hierarchy)
Create (FolderSync)
XML
<Create>
<Folder/>
<CalendarFolder/>
<ContactsFolder/>
<SearchFolder/>
<TasksFolder/>
</Create>
SyncFolderHierarchyCreateOrUpdateType
Attributes
None.
Child elements
Element Description
Folder
Defines the folder to create, get, find, synchronize, or update.
CalendarFolder
Represents a folder that primarily contains calendar items.
ContactsFolder
Represents a contact folder in a mailbox.
Element Description
SearchFolder
Represents a search folder contained in a mailbox.
TasksFolder
Represents a task folder contained in a mailbox.
Parent elements
Element Description
Changes Contains a sequence array of change types that represent the type of differences
(Hierarchy) between the items on the client and the items on the Exchange server.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
SyncFolderItems operation
The Create element identifies a single item to create in the local client store.
SyncFolderItemsResponse
ResponseMessages
SyncFolderItemsResponseMessage
Changes (Items)
Create (ItemSync)
XML
<Create>
<Item/>
</Create>
XML
<Create>
<Task/>
</Create>
XML
<Create>
<MeetingResponse/>
</Create>
XML
<Create>
<CalendarItem/>
</Create>
XML
<Create>
<MeetingMessage/>
</Create>
XML
<Create>
<DistributionList/>
</Create>
XML
<Create>
<MeetingCancellation/>
</Create>
XML
<Create>
<MeetingRequest/>
</Create>
XML
<Create>
<Message/>
</Create>
XML
<Create>
<Contact/>
</Create>
SyncFolderItemsCreateOrUpdateType
Attributes
None.
Child elements
Element Description
Element Description
Item
Represents a generic Exchange item to create.
Message
Represents an Exchange e-mail message to create.
CalendarItem
Represents an Exchange calendar item to create.
Contact
Represents an Exchange contact item to create.
DistributionList
Represents a distribution list to create.
MeetingMessage
Represents a meeting message to create.
MeetingRequest
Represents a meeting request to create.
MeetingResponse
Represents a meeting response to create.
Task
Represents a task to create.
Parent elements
Element Description
Changes Contains a sequence array of change types that represent the types of differences
(Items)
between the items on the client and the items on the Exchange server.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
XML
<CreateAssociated>true or false</CreateAssociated>
boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
EffectiveRights Contains the rights of the client based on the permission settings for the item or
folder. This element was introduced in Exchange 2007 SP1.
Text value
A text value of true indicates that a client can create an associated contents table.
Remarks
This property is only used on folder objects.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
XML
<CreateAttachment>
<ParentItemId/>
<Attachments/>
</CreateAttachment>
CreateAttachmentType
Attributes
None.
Child elements
Element Description
ParentItemId Identifies the parent Exchange store item that contains the created attachment.
The ParentItemId element must provide the ID of a real Exchange store item. Real
store items can be retrieved by using the GetItem operation; attachments are
retrieved by using the GetAttachment operation. An error occurs if the
ParentItemId is passed the ID of a file attachment. If the ParentItemId represents
the ID of an existing item attachment, the CreateAttachment operation adds the
new attachment to the existing attachment.
This element is required for the CreateAttachment operation.
Attachments Contains the items or files to attach to an item in the Exchange store.
Parent elements
None.
Remarks
An item attachment does not exist as a store item. It only exists as an attachment to an
item or another attachment. Item attachments can only be retrieved by using the
GetAttachment request.
Item
Message
CalendarItem
Contact
Task
MeetingMessage
MeetingRequest
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Example
The following example shows how to create and attach an item to another item in the
Exchange store.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<CreateAttachment
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<ParentItemId Id="ASkAS"/>
<Attachments>
<t:ItemAttachment>
<t:Name>MyAttachment</t:Name>
<t:Message>
<t:ItemClass>IPM>Note</t:ItemClass>
</t:Message>
</t:ItemAttachment>
</Attachments>
</CreateAttachment>
</soap:Body>
</soap:Envelope>
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
CreateAttachment operation
DeleteAttachment operation
GetAttachment operation
CreateAttachmentResponse
Article • 03/29/2023 • 2 minutes to read
XML
<CreateAttachmentResponse>
<ResponseMessages/>
</CreateAttachmentResponse>
CreateAttachmentResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
CreateAttachment operation
CreateAttachment
CreateAttachmentResponse
ResponseMessages
CreateAttachmentResponseMessage
XML
<CreateAttachmentResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<Attachments/>
</CreateAttachmentResponseMessage>
AttachmentInfoResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of a CreateAttachment operation response.
- Success
- Warning
- Error
Value Description
Value Description
Success
Describes a request that is fulfilled.
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and is reserved for future use. It contains a value of 0.
MessageXml
Provides additional error response information.
Attachments
Contains the items or files that are attached to an item in the Exchange
store.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
7 Note
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
CreateAttachment operation
CreateAttachment
EWS reference for Exchange
EWS XML elements in Exchange
CreateContents
Article • 03/29/2023 • 2 minutes to read
The CreateContents element indicates whether a client can create a contents table. This
element was introduced in Microsoft Exchange Server 2007 Service Pack 1 (SP1).
XML
<CreateContents>true or false</CreateContents>
boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
EffectiveRights Contains the rights of the client based on the permission settings for the item or
folder. This element was introduced inExchange 2007 SP1.
Text value
A text value of true indicates that a client can create a contents table.
Remarks
This property is only used on folder objects.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
XML
<CreatedEvent>
<Watermark/>
<TimeStamp/>
<ItemId/>
<ParentFolderId/>
</CreatedEvent>
XML
<CreatedEvent>
<Watermark/>
<TimeStamp/>
<FolderId/>
<ParentFolderId/>
</CreatedEvent>
BaseObjectChangedEventType
Attributes
None.
Child elements
Element Description
Watermark
Represents an event bookmark in the mailbox events table.
TimeStamp
Represents the timestamp of a created item or folder mailbox event.
FolderId
Represents the identifier of the created folder.
ItemId
Represents the identifier of the created item.
Element Description
ParentFolderId Represents the identifier of the parent folder of the created item or folder.
Parent elements
Element Description
Notification Contains information about the subscription and the events that have occurred
since the last notification.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Subscribe operation
GetEvents operation
Unsubscribe operation
Using Pull Subscriptions
Event notifications in EWS
CreatedTime
Article • 03/29/2023 • 2 minutes to read
The CreatedTime element specifies the time at which the item was created.
XML
<CreatedTime></CreatedTime>
dateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
SearchPreviewItem Specifies the first 256 characters of a mailbox item for preview without
opening the item.
Text value
The text value of the CreatedTime element is the time at which the item was created.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
CreateFolder
Article • 03/29/2023 • 2 minutes to read
The CreateFolder element defines a request to create a folder in the Exchange store.
XML
<CreateFolder>
<ParentFolderId/>
<Folders/>
</CreateFolder>
CreateFolderType
Attributes
None.
Child elements
Element Description
ParentFolderId The element that identifies the location where the new folder is
(TargetFolderIdType)
created.
Folders
The element that contains all the folders to create.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
CreateFolder operation
The CreateFolderPath element is used to create a folder path and includes a parent
folder Id and a relative folder path.
XML
<CreateFolderPath>
<ParentFolderId/>
<RelativeFolderPath/>
</CreateFolderPath>
CreateFolderPathType
Attributes
None.
Child elements
ParentFolderId (TargetFolderIdType) | RelativeFolderPath
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<CreateFolderPathResponse>
<ResponseMessages/>
</CreateFolderPathResponse>
CreateFolderPathResponseType
Attributes
None.
Child elements
ResponseMessages
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<CreateFolderPathResponseMessage ResponseClass="">
<Folders></Folders>
<MessageText></MessageText>
<ResponseCode></ResponseCode>
<DescriptiveLinkKey></DescriptiveLinkKey>
<MessageXml></MessageXml>
</CreateFolderPathResponseMessage>
FolderInfoResponseMessageType
Attributes
Attribute Description
ResponseClass
Value Description
Child elements
Element Description
Element Description
Folders
Contains an array of folders that are used in folder operations.
DescriptiveLinkKey
Currently unused and reserved for future use.
MessageText
Provides a text description of the status of the response.
MessageXml
Provides additional error response information.
ResponseCode
Provides status information about the request.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can Be Empty
See also
EWS XML elements in Exchange
CreateFolderResponse
Article • 03/29/2023 • 2 minutes to read
XML
<CreateFolderResponse>
<ResponseMessages/>
</CreateFolderResponse>
CreateFolderResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
CreateFolder operation
CreateFolder
XML
<CreateFolderResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<Folders/>
</CreateFolderResponseMessage>
FolderInfoResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of a CreateFolder operation response.
- Success
- Warning
- Error
Value Description
Success
Describes a request that is fulfilled.
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and is reserved for future use. It contains a value of 0.
MessageXml
Provides additional error response information.
Folders
Contains an array of created folders.
Parent elements
Element Description
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Exchange Server with the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
CreateFolder operation
EWS reference for Exchange
EWS XML elements in Exchange
CreateHierarchy
Article • 03/29/2023 • 2 minutes to read
The CreateHierarchy element indicates whether a client can create a hierarchy table.
This element was introduced in Microsoft Exchange Server 2007 Service Pack 1 (SP1).
XML
<CreateHierarchy>true or false</CreateHierarchy>
boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
EffectiveRights Contains the rights of the client based on the permission settings for the item or
folder. This element was introduced in Exchange 2007 SP1.
Text value
A text value of true indicates that a client can create a hierarchy table.
Remarks
This property is only used on folder objects.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
The CreateItem element defines a request to create an item in the Exchange store.
XML
<SavedItemFolderId/>
<Items/>
</CreateItem>
CreateItemType
Attributes
Attribute Description
MessageDisposition
Describes how the item will be handled after it is created. The attribute
is required for e-mail messages. This attribute is only applicable to e-
mail messages.
SendMeetingInvitations Describes how meeting requests are handled after they are created.
This attribute is required for calendar items.
MessageDisposition Attribute
Value Description
SaveOnly The message item is saved in the folder that is specified by the
SavedItemFolderId element. Messages can be sent later by using the
SendItem operation. An item identifier is returned in the response. Item
identifiers are not returned for any item types except for message items.
This includes response objects.
Value Description
SendOnly The item is sent but no copy is saved in the Sent Items folder. An item
identifier is not returned in the response.
NOTE: CreateItem does not support delegate access when the SendOnly
option is used because a destination folder cannot be specified with this
option. The workaround is to create the item, get the item identifier, and
then use the SendItem operation to send the item.
SendAndSaveCopy The item is sent and a copy is saved in the folder that is identified by the
SavedItemFolderId element. An item identifier is not returned in the
response.
NOTE: Meeting requests are not saved to the folder that is identified by the
SavedItemFolderId property. For calendaring, only the save location for
calendar items can be specified by the SavedItemFolderId property. You
cannot control where a meeting request item is saved. Only the associated
calendar items are copied and saved into the folder that is identified by the
SavedItemFolderId property.
SendMeetingInvitations Attribute
Value Description
SendToNone If the item is a meeting request, it is saved as a calendar item but not
sent.
SendOnlyToAll The meeting request is sent to all attendees but is not saved in the Sent
Items folder.
SendToAllAndSaveCopy The meeting request is sent to all attendees and a copy is saved in the
folder that is identified by the SavedItemFolderId element.
Child elements
Element Description
SavedItemFolderId
Identifies the target folder where a new item can be created. If
the MessageDisposition attribute is set to SendOnly, a created
message will only be sent. The message will not be put in the
folder that is identified by the SavedItemFolderId element.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
CreateItemResponse
CreateItem operation
Creating E-mail Messages
Creating Contacts (Exchange Web Services)
Creating Tasks
Creating Appointments
CreateItemResponse
Article • 03/29/2023 • 2 minutes to read
XML
<CreateItemResponse>
<ResponseMessages/>
</CreateItemResponse>
CreateItemResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Description
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
CreateItem operation
CreateItem
CreateItemResponse
ResponseMessages
CreateItemResponseMessage
XML
<CreateItemResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<Items/>
</CreateItemResponseMessage>
ItemInfoResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of a CreateItem operation response.
- Success
- Warning
- Error
Value Description
Value Description
Success
Describes a request that is fulfilled.
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and is reserved for future use. It contains a value of 0.
MessageXml
Provides additional error response information.
Items
Contains an array of created items.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
CreateItem operation
EWS reference for Exchange
EWS XML elements in Exchange
CreateManagedFolder
Article • 03/29/2023 • 2 minutes to read
XML
<CreateManagedFolder>
<FolderNames/>
<Mailbox/>
</CreateManagedFolder>
CreateManagedFolderRequestType
Attributes
None.
Child elements
Element Description
FolderNames
Contains an array of named managed folders to add to a mailbox.
Mailbox
Identifies a mail-enabled Active Directory directory service object.
Parent elements
None.
Remarks
The account of the person who is making the request must have FullAccess permissions
on the mailbox where the managed folders are created. You can use the _ -AccessRights
_ parameter with the Exchange Management Shell Add-MailboxPermission cmdlet to
assign the FullAccess permission.
Although you can use Exchange Web Services to add managed folders to a mailbox, you
cannot use Exchange Web Services to access the list of managed folders that are
available. To obtain a list of available managed folders, use the get-managedfolder
Exchange Management Shell cmdlet. The list that is returned by the get-managedfolder
cmdlet will contain both managed custom folders and managed default folders. You can
only add folders of type managedcustomfolder to the mailbox by using the
CreateManagedFolder operation.
7 Note
You can also get a list of managed folders by using the DirectoryServices API of the
Microsoft .NET Framework.
You can use the FindFolder operation to find managed folders in a mailbox. Managed
folders can be distinguished by setting the BaseShape element to AllProperties in the
request. The response will contain a ManagedFolderInformation element to distinguish
the managed folders from the Exchange store folders. You can delete managed folders
in the same manner that you delete other folder types.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
CreateManagedFolder operation
FindFolder operation
Finding Folders
XML
<CreateManagedFolderResponse>
<ResponseMessages/>
</CreateManagedFolderResponse>
CreateManagedFolderResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
CreateManagedFolder operation
CreateManagedFolder
CreateManagedFolderResponse
ResponseMessages
CreateManagedFolderResponseMessage
XML
<CreateManagedFolderResponseMessage>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<Folders/>
</CreateManagedFolderResponseMessage>
FolderInfoResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of a CreateManagedFolder operation response.
- Success
- Warning
- Error
Value Description
Value Description
Success
Describes a request that is fulfilled.
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and is reserved for future use. It contains a value of 0.
MessageXml
Provides additional error response information.
Folders
Contains an array of created managed folders.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
CreateManagedFolder operation
EWS reference for Exchange
EWS XML elements in Exchange
CreateRuleOperation
Article • 03/29/2023 • 2 minutes to read
UpdateInboxRules
Operations
XML
<CreateRuleOperation>
<Rule/>
</CreateRuleOperation>
CreateRuleOperationType
Attributes
None.
Child elements
Element Description
Rule (RuleType)
Represents a rule to be created in a user's mailbox.
Parent elements
Element Description
Operations
Contains the operations that can be performed on an Inbox.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
UpdateInboxRules
SetRuleOperation
DeleteRuleOperation
XML
<CreateUserConfiguration>
<UserConfiguration/>
</CreateUserConfiguration>
CreateUserConfigurationType
Attributes
None.
Child elements
Element Description
UserConfiguration
Represents a single user configuration object.
Parent elements
None.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
CreateUserConfigurationResponse
Article • 03/29/2023 • 2 minutes to read
XML
<CreateUserConfigurationResponse>
<ResponseMessages/>
</CreateUserConfigurationResponse>
CreateUserConfigurationResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Parent elements
None.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
CreateUserConfigurationResponseMess
age
Article • 03/29/2023 • 2 minutes to read
XML
<CreateUserConfigurationResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</CreateUserConfigurationResponseMessage>
ResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of the response.
- Success
- Warning
- Error
Value Description
Success
Describes a request that is fulfilled.
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and reserved for future use. This element contains a value
of 0.
MessageXml
Provides additional error response information.
Parent elements
Element Description
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
CreationTime
Article • 03/29/2023 • 2 minutes to read
XML
<CreationTime></CreationTime>
datetime
Attributes
None.
Child elements
None.
Parent elements
Persona
Text value
The text value of the CreationTime element is the date and time that a persona was
created.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Culture
Article • 03/29/2023 • 2 minutes to read
The Culture element represents the culture for a given item in a mailbox.
XML
<Culture/>
Language
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
Contact
Represents an Exchange contact item.
DistributionList
Represents a distribution list.
Item
Represents an item in the Exchange store.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Element Description
Message
Represents an Exchange e-mail message.
RemoveItem
Removes an item from the Exchange store.
Task
Represents a task in the Exchange store.
Text value
The text value indicates the language that is used in the Exchange Web Services
operations. Culture is specified by using the RFC 1766 culture identifier; for example, en-
US.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
CurrentMeetingTime
Article • 03/29/2023 • 2 minutes to read
The CurrentMeetingTime element represents the start time of a meeting that you want
to update with a meeting time proposed by a meeting attendee.
GetUserAvailabilityRequest
SuggestionsViewOptions
CurrentMeetingTime
XML
<CurrentMeetingTime>...</CurrentMeetingTime>
DateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
SuggestionsViewOptions
Contains the options for obtaining meeting suggestion information.
The following is the XPath to this element:
/GetUserAvailabilityRequest/SuggestionViewOptions
Remarks
This element is not required.
7 Note
The schema that describes this element is located in the /EWS/ directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
XML
<CustomMailTip/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
MailTips
Represents values for the various types of mail tips.
Text value
A text value that represents a string is required if this element is used.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
DailyRecurrence
Article • 03/29/2023 • 2 minutes to read
The DailyRecurrence element describes the frequency, in days, in which a calendar item
or a task recurs.
XML
<DailyRecurrence>
<Interval/>
</DailyRecurrence>
DailyRecurrencePatternType
Attributes
None.
Child elements
Element Description
Interval
Defines the interval, in days, between two consecutive recurring items. The value must
be in the range from 1 to 999.
Parent elements
Element Description
Recurrence (RecurrenceType)
Contains the recurrence pattern for calendar items and meeting
requests.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
DailyRegeneration
Article • 03/29/2023 • 2 minutes to read
XML
<DailyRegeneration>
<Interval/>
</DailyRegeneration>
DailyRegeneratingPatternType
Attributes
None.
Child elements
Element Description
Interval
Defines the interval, in days, between two consecutive recurring items. The value must
be in the range of 1 to 999.
Parent elements
Element Description
Recurrence (TaskRecurrenceType)
Contains recurrence information for recurring tasks.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Data
Article • 03/29/2023 • 2 minutes to read
The Data element contains encrypted data that represents the shared data.
EncryptedSharedFolderData
Data
XML
<Data/>
EncryptedDataContainerType
Attributes
None.
Child elements
None.
Parent elements
Element Description
EncryptedSharedFolderData Contains the encrypted data that a client can use to authorize the
sharing of its calendar or contact data with other clients.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetSharingMetadata operation
EWS XML elements in Exchange
Data (base64Binary)
Article • 03/29/2023 • 2 minutes to read
The Data element contains the data of a single exported item or an item to upload into
a mailbox.
XML
<Data/>
xs:base64Binary
Attributes
None.
Child elements
None.
Parent elements
Element Description
Item (UploadItemType)
Represents a single item to upload into a mailbox.
Text value
The Data element contains the property names and values for an exported item or an
item that will be uploaded into a mailbox.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
ExportItems operation
UploadItems operation
DataType
Article • 03/29/2023 • 2 minutes to read
The DataType element describes the type of data that is shared by a shared folder.
XML
<DataType>Calendar or Contacts</DataType>
SharingDataType
Attributes
None.
Child elements
None.
Parent elements
Element Description
GetSharingFolder Defines a request to get the local folder identifier of a specified shared folder.
Text value
The following table lists the possible values for the DataType element.
Value Description
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
Date
Article • 03/29/2023 • 2 minutes to read
The Date element represents the date that contains the suggested meeting times.
GetUserAvailabilityResponse
SuggestionsResponse
SuggestionDayResultArray
SuggestionDayResult
Date
XML
<Date>...</Date>
dateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
/GetUserAvailabilityResponse/SuggestionsResponse/SuggestionDayResultArray/SuggestionDayResult[i]
Text value
A text value is required. Review the World Wide Web Consortium (W3C) schema datatype
recommendations for the format of the dateTime primitive datatype.
Remarks
The schema that describes this element is located in the EWS virtual directory of the computer that is
running MicrosoftExchange Server 2007 that has the Client Access server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityResponse
Getting User Availability
Date (MessageTracking)
Article • 03/29/2023 • 2 minutes to read
The Date element represents the date and time at which the event occurred.
XML
<Date/>
dateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
RecipientTrackingEvent
Contains details for a specific event in the tracking report.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
DateTime
Article • 03/29/2023 • 2 minutes to read
The DateTime element represents the date and time at which the time zone transition
occurs.
XML
<DateTime/>
DateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
AbsoluteDateTransition Represents a time zone transition that occurs on a specific date and at a
specific time.
Text value
The text value of the DateTime element represents the date and time at which the time
zone transition occurs.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
DateTimeCreated
Article • 03/29/2023 • 2 minutes to read
The DateTimeCreated element represents the date and time that an item in the mailbox
was created.
XML
<DateTimeCreated/>
DateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
Contact
Represents an Exchange contact item.
DistributionList
Represents a distribution list.
Item
Represents an item in the Exchange store.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Element Description
Message
Represents an Exchange e-mail message.
RemoveItem
Removes an item from the Exchange store.
Task
Represents a task in the Exchange store.
Text value
The text value represents the date and time when an item in the mailbox was created.
Remarks
Using calendar response objects updates the DateTimeCreated property on the
associated calendar item. The expected behavior is for the DateTimeCreated property to
remain unchanged. For example, user A sends a meeting request to user B. User B
accepts the meeting request with the identifier of the meeting request. The
DateTimeCreated property of the associated calendar item is changed.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
DateTimePrecision
Article • 03/29/2023 • 2 minutes to read
The DateTimePrecision element specifies the precision for returned date/time values.
XML
<DateTimePrecision />
DateTimePrecisionType
Attributes
None
Child elements
None.
Parent elements
The DateTimePrecision element is located in the SOAP header.
Text value
A text value is required. The following are the possible values:
Seconds
Milliseconds
Remarks
When a SOAP header with the DateTimePrecision element set to "Seconds" is used,
date/time values are returned to the nearest seconds (00:00:00). When "Milliseconds" is
used, date/time values are returned to the nearest millisecond (00:00:00.0000).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
This element was introduced in Exchange Server 2010 Service Pack 2 (SP2).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
The DateTimeReceived element represents the date and time that an item in a mailbox
was received.
XML
<DateTimeReceived/>
DateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
Item
Represents an item in the Exchange store.
RemoveItem
Removes an item from the Exchange store.
Message
Represents an Exchange e-mail message.
Task
Represents a task in the Exchange store.
CalendarItem
Represents an Exchange calendar item.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Element Description
Contact
Represents an Exchange contact item.
DistributionList
Represents a distribution list.
Text value
The text value represents the time at which an item is received in a mailbox. This
property is read-only.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
DateTimeSent
Article • 03/29/2023 • 2 minutes to read
The DateTimeSent element represents the date and time at which an item in a mailbox
was sent.
XML
<DateTimeSent/>
DateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
Contact
Represents an Exchange contact item.
DistributionList
Represents a distribution list.
Item
Represents an item in the Exchange store.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Element Description
Message
Represents an Exchange e-mail message.
RemoveItem
Removes an item from the Exchange store.
Task
Represents a task in the Exchange store.
Text value
The text value represents the date and time at which an item was sent.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
DateTimeStamp
Article • 03/29/2023 • 2 minutes to read
The DateTimeStamp element indicates the date and time that an instance of a calendar
object was created.
XML
<DateTimeStamp/>
dateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
MeetingMessage
Represents a meeting message.
MeetingRequest
Represents a meeting request.
MeetingResponse
Represents a meeting response.
Text value
The text value represents a date/time value that identifies a calendar occurrence.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Day
Article • 03/29/2023 • 2 minutes to read
The Day element represents the day of the month on which the time zone transition
occurs.
XML
<Day/>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
RecurringDateTransition Represents a time zone transition that occurs on a specific date each
year.
Text value
The text value of the Day element is an integer that represents the day of the month on
which the time zone transition occurs.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Daylight
Article • 03/29/2023 • 2 minutes to read
The Daylight element represents the date and time when the time changes from
standard time to daylight saving time.
XML
<Daylight TimeZoneName="">
<Offset/>
<RelativeYearlyRecurrence/>
<Time/>
</Daylight>
XML
<Daylight TimeZoneName="">
<Offset/>
<AbsoluteDate/>
<Time/>
</Daylight>
TimeChangeType
Attributes
Attribute Description
TimeZoneName
Describes the name of the time zone.
Child elements
Element Description
Offset
Describes the offset from the BaseOffset. The base offset in addition to
this offset identifies the time according to whether it is standard or
daylight saving time.
Element Description
RelativeYearlyRecurrence Describes a relative yearly recurrence pattern for a time zone transition
date pattern.
AbsoluteDate
Represents the date when the time changes from standard or daylight
saving time.
Time (TimeChangeType)
Describes the time when the time changes between standard time and
daylight saving time.
Parent elements
Element Description
MeetingTimeZone
Represents the time zone of the location where the meeting is hosted.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Type
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
DaylightTime
Article • 03/29/2023 • 2 minutes to read
The DaylightTime element represents an offset from the time relative to Coordinated Universal Time
(UTC) that is represented by the Bias (UTC) element in regions where daylight saving time is observed.
This element also contains information about when the transition to daylight saving time from standard
time occurs.
TimeZone (Availability)
DaylightTime
XML
<DaylightTime>
<Bias>int</Bias>
<Time>string</Time>
<DayOrder>short</DayOrder>
<Month>short</Month>
<Year>string</Year>
</DaylightTime>
SerializableTimeZoneTime
Attributes
None.
Child elements
Element Description
Bias Represents the offset from the UTC offset that is identified by the Bias (UTC) element for standard
time and daylight saving time. This value is in minutes.
Time Represents the transition time of day to and from standard time and daylight saving time.
DayOrder Represents the _n_th occurrence of the day that is specified in the DayOfWeek (TimeZone) element
that represents the date of transition from and to standard time and daylight saving time.
Month Represents the transition month of the year to and from standard time and daylight saving time.
DayOfWeek Represents the day of the week when the transition to and from standard time and daylight saving
(TimeZone) time occurs.
Element Description
Year Used to define a time zone that changes depending on the year. This element is optional. This
element was introduced in Microsoft Exchange Server 2007 Service Pack 1 (SP1).
Parent elements
Element Description
(Availability) This element also contains information about the transition between standard time and daylight saving time.
/GetUserAvailabilityResponse/FreeBusyResponseArray/FreeBusyResponse/FreeBusyView/WorkingHours/TimeZone
/GetUserAvailabilityRequest/TimeZone
Example
The following partial GetUserAvailability request represents a client application in a location that
recognizes daylight saving time.
XML
<TimeZone xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Bias>480</Bias>
<StandardTime>
<Bias>0</Bias>
<Time>02:00:00</Time>
<DayOrder>5</DayOrder>
<Month>10</Month>
<DayOfWeek>Sunday</DayOfWeek>
</StandardTime>
<DaylightTime>
<Bias>-60</Bias>
<Time>02:00:00</Time>
<DayOrder>1</DayOrder>
<Month>4</Month>
<DayOfWeek>Sunday</DayOfWeek>
</DaylightTime>
</TimeZone>
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
Getting User Availability
DayOfMonth
Article • 03/29/2023 • 2 minutes to read
The DayOfMonth element describes the day in a month that a recurring item occurs.
XML
<DayOfMonth/>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
AbsoluteYearlyRecurrence
Represents a yearly recurrence pattern.
AbsoluteMonthlyRecurrence
Represents a monthly recurrence pattern.
Text value
A text value that represents an integer in the range of 1 to 31 is required. If for a
particular month this value is larger than the number of days in the month, the last day
of the month is assumed.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
DayOfWeek (TimeZone)
Article • 03/29/2023 • 2 minutes to read
The DayOfWeek element represents the day of the week on which the time zone transition occurs.
XML
<DayOfWeek>...</DayOfWeek>
DayOfWeekType
Attributes
None.
Child elements
None.
Parent elements
Element Description
StandardTime
Represents an offset from the time relative to Coordinated Universal Time (UTC) represented by the Bias (UTC) element.
This element also contains information about the transition to standard time from daylight saving time in regions where
daylight saving time is observed.
/GetUserAvailabilityResponse/FreeBusyResponseArray/FreeBusyResponse/FreeBusyView/WorkingHours/TimeZone/StandardTime
/GetUserAvailabilityRequest/TimeZone/StandardTime
DaylightTime
Represents an offset from the time relative to UTC represented by the Bias (UTC) element in regions where daylight saving
time is observed.
This element also contains information about when the transition to daylight saving time from standard time occurs.
/GetUserAvailabilityResponse/FreeBusyResponseArray/FreeBusyResponse/FreeBusyView/WorkingHours/TimeZone/DaylightTime
/GetUserAvailabilityRequest/TimeZone/DaylightTime
RecurringDayTransition Represents a time zone transition that occurs on the same day each year.
Text value
A text value is required. The text value is represented by an enumeration that has the following possible values:
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Day
Weekday
WeekendDay
Remarks
A StandardTime element that contains a DayOrder element that has a value of 5, a Month element that has a value of 10, and
a DayOfWeek element that has a value of Sunday means that the transition from standard time to daylight saving time
occurs on the fifth Sunday of the tenth month.
The schema that describes this element is located in the IIS virtual directory that hosts Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
Getting User Availability
DayOfWeek (WorkingPeriod)
Article • 03/29/2023 • 2 minutes to read
The DayOfWeek element contains the list of working days scheduled for the mailbox user.
GetUserAvailabilityResponse
FreeBusyResponseArray
FreeBusyResponse
FreeBusyView
WorkingHours
WorkingPeriodArray
WorkingPeriod
DayOfWeek (WorkingPeriod)
XML
DaysOfWeek
Attributes
None.
Child elements
None.
Parent elements
Element Description
WorkingPeriod Contains the work week days and hours of the mailbox user.
/GetUserAvailabilityResponse/FreeBusyResponseArray/FreeBusyResponse/FreeBusyView/WorkingHours/WorkingPeriodArray/WorkingPeriod[i[
Text value
A text value is returned if the mailbox user has days set to represent the work week. The following are the possible values for this
element:
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
The schema that describes this element is located in the EWS virtual directory of the computer that is running MicrosoftExchange
Server 2007 that has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityResponse
Getting User Availability
DayOfWeekIndex
Article • 03/29/2023 • 2 minutes to read
XML
<DayOfWeekIndex/>
DayOfWeekIndexType
Attributes
None.
Child elements
None.
Parent elements
Element Description
RelativeYearlyRecurrence
Describes a relative yearly recurrence pattern.
RelativeMonthlyRecurrence
Describes a relative monthly recurrence pattern.
Text value
A text value is required. The following are the possible values:
First
Second
Third
Fourth
Last
Remarks
For example, the second Monday of a month may occur in the third week of that month.
If a month starts on a Friday, the first week of the month only contains a few days and
does not contain a Monday. Therefore, the first Monday would have to occur in the
second week.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
DayOrder
Article • 03/29/2023 • 2 minutes to read
The DayOrder element represents the _n_th occurrence of the day specified in the DayOfWeek (TimeZone) element
that represents the date of transition from and to standard time and daylight saving time.
XML
<DayOrder>...</DayOrder>
short
Attributes
None.
Child elements
None.
Parent elements
Element Description
StandardTime Represents an offset from the time relative to Coordinated Universal Time (UTC) represented by the Bias (UTC) element.
This element also contains information about the transition to standard time from daylight saving time in regions where
daylight saving time is observed.
/GetUserAvailabilityResponse/FreeBusyResponseArray/FreeBusyResponse/FreeBusyView/WorkingHours/TimeZone/StandardTime
/GetUserAvailabilityRequest/TimeZone/StandardTime
DaylightTime Represents an offset from the time relative to UTC represented by the Bias (UTC) element in regions where daylight saving
time is observed.
This element also contains information about when the transition to daylight saving time from standard time occurs.
/GetUserAvailabilityResponse/FreeBusyResponseArray/FreeBusyResponse/FreeBusyView/WorkingHours/TimeZone/DaylightTime
/GetUserAvailabilityRequest/TimeZone/DaylightTime
Text value
A text value is required. The value for the DayOrder element can be 1 through 5. The maximum value for this element
can be either 4 or 5, depending on the month and year.
Remarks
A StandardTime element that contains a DayOrder element that has a value of 5, a Month element that has a value of
10, and a DayOfWeek (TimeZone) element that has a value of Sunday means that the transition from standard time to
daylight saving time occurs on the fifth Sunday of the tenth month.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
Getting User Availability
DayQuality
Article • 03/29/2023 • 2 minutes to read
The DayQuality element represents the quality of the day for containing quality suggested meeting times.
GetUserAvailabilityResponse
SuggestionsResponse
SuggestionDayResultArray
SuggestionDayResult
DayQuality
XML
SuggestionQuality
Attributes
None.
Child elements
None.
Parent elements
Element Description
/GetUserAvailabilityResponse/SuggestionsResponse/SuggestionDayResultArray/SuggestionDayResult[i]
Text value
A text value is required. The following are the possible values for this element:
Excellent
Good
Fair
Poor
Remarks
The schema that describes this element is located in the EWS virtual directory of the computer that is
running MicrosoftExchange Server 2007 that has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityResponse
Getting User Availability
DaysOfWeek (DayOfWeekType)
Article • 03/29/2023 • 2 minutes to read
The DaysOfWeek element describes days of the week that are used in item recurrence
patterns.
XML
<DaysOfWeek/>
DayOfWeekType
Attributes
None.
Child elements
None.
Parent elements
Element Description
RelativeYearlyRecurrence
Describes a relative yearly recurrence pattern.
RelativeMonthlyRecurrence
Describes a relative monthly recurrence pattern.
Text value
A text value is required. The following are the possible values:
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Day (not used in the TimeChangePatternTypes)
Weekday (not used in the TimeChangePatternTypes)
WeekendDay (not used in the TimeChangePatternTypes)
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
DaysOfWeek (DaysOfWeekType)
Article • 03/29/2023 • 2 minutes to read
The DaysOfWeek element describes days of the week that are used in item recurrence
patterns.
XML
<DaysOfWeek/>
DaysOfWeekType
Attributes
None.
Child elements
None.
Parent elements
Element Description
WeeklyRecurrence
Describes a weekly recurrence pattern.
Text value
A text value is required. The following are the possible values:
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Day (this value is not valid for a weekly recurrence pattern)
Weekday (this value is not valid for a weekly recurrence pattern)
WeekendDay (this value is not valid for a weekly recurrence pattern)
A weekly recurrence pattern can contain multiple values. Values are separated by a
space character. For example, for a weekly recurrence on Tuesdays and Thursdays, the
text value will be "Tuesday Thursday".
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
DeclineItem
Article • 03/29/2023 • 2 minutes to read
XML
<DeclineItem>
<ItemClass/>
<Sensitivity/>
<Body/>
<Attachments/>
<InternetMessageHeaders/>
<Sender/>
<ToRecipients/>
<CcRecipients/>
<BccRecipients/>
<IsReadReceiptRequested/>
<IsDeliveryReceiptRequested/>
<ReferenceItemId/>
<ReceivedBy/>
<ReceivedRepresenting/>
<ProposedStart/>
<ProposedEnd/>
</DeclineItem>
DeclineItemType
Attributes
None.
Child elements
Element Description
ItemClass
Represents the message class of an item.
Sensitivity
Indicates the sensitivity level of an item.
Body
Represents the actual body content of a message.
Attachments
Contains the item or file that is attached to an item in the Exchange store.
InternetMessageHeaders
Represents the Internet message header name for a given header within the headers collection.
Sender
Identifies the sender of an item.
ToRecipients
Contains a set of recipients of an item. These are the primary recipients of an item.
CcRecipients
Represents a collection of recipients that will receive a copy of the message.
BccRecipients
Represents a collection of recipients to receive a blind carbon copy (Bcc) of an e-mail.
IsReadReceiptRequested
Indicates whether the sender of an item requests a read receipt.
Element Description
ReferenceItemId
Identifies the item to which the response object refers.
ReceivedBy
Identifies the delegate in a delegate access scenario. This element was introduced in Microsoft
Exchange Server 2007 Service Pack 1 (SP1).
ReceivedRepresenting
Identifies the principal in a delegate access scenario. This element was introduced in Exchange
2007 SP1.
ProposedStart
Specifies the proposed start time of the meeting.
ProposedEnd
Specifies the proposed end time of the meeting.
Parent elements
Element Description
AdjacentMeetings
Describes all items that are adjacent to a meeting time.
/CalendarItem/AdjacentMeetings
/MeetingRequest/AdjacentMeetings
/SetItemField/CalendarItem/AdjacentMeetings
/AppendToItemField/CalendarItem/AdjacentMeetings
/AcceptItem/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/DeclineItem/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/TentativelyAcceptItem/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/SetItemField/CalendarItem/AdjacentMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/AppendToItemField/CalendarItem/AdjacentMeetings
/CreateAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/GetAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/CalendarItem/ConflictingMeetings
/MeetingRequest/ConflictingMeetings
/SetItemField/CalendarItem/ConflictingMeetings
/AppendToItemField/CalendarItem/ConflictingMeetings
/AcceptItem/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/DeclineItem/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/TentativelyAcceptItem/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/SetItemField/CalendarItem/ConflictingMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/AppendToItemField/CalendarItem/ConflictingMeetings
/CreateAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/GetAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
ResponseObjects
Contains a collection of all the response objects that are associated with an item in the Exchange
store.
Items Contains an array of items to create in the folder that is identified by the ParentFolderId
(NonEmptyArrayOfAllItemsType) (TargetFolderIdType) element.
Remarks
The schema that describes this element is located in the EWS virtual directory of the Exchange server that has the
Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Deduplication
Article • 03/29/2023 • 2 minutes to read
The Deduplication element indicates whether the search result should remove duplicate
items.
XML
Boolean
Attributes
None.
Child elements
None.
Parent elements
SearchMailboxes | SetHoldOnMailboxes
Text value
A text value of true for the Deduplication element indicates that search results may not
contain duplicate items. A value of false indicates that search results may contain
duplicate items.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
XML
<DelegatePermissions>
<CalendarFolderPermissionLevel/>
<TasksFolderPermissionLevel/>
<InboxFolderPermissionLevel/>
<ContactsFolderPermissionLevel/>
<NotesFolderPermissionLevel/>
<JournalFolderPermissionLevel/>
</DelegatePermissions>
DelegatePermissionsType
Attributes
None.
Child elements
Element Description
CalendarFolderPermissionLevel Contains the permissions for the default Calendar folder. This
element was introduced in Exchange 2007 SP1.
TasksFolderPermissionLevel
Contains the permissions for the default Task folder. This
element was introduced in Exchange 2007 SP1.
InboxFolderPermissionLevel
Contains the permissions for the default Inbox folder. This
element was introduced in Exchange 2007 SP1.
ContactsFolderPermissionLevel Contains the permissions for the default Contacts folder. This
element was introduced in Exchange 2007 SP1.
Element Description
NotesFolderPermissionLevel
Contains the permissions for the default Notes folder. This
element was introduced in Exchange 2007 SP1.
JournalFolderPermissionLevel
Contains the permissions for the default Journal folder. This
element was introduced in Exchange 2007 SP1.
Parent elements
Element Description
DelegateUser Identifies a single delegate to add or update in a mailbox. This element was
introduced in Exchange 2007 SP1.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
AddDelegate operation
UpdateDelegate operation
EWS XML elements in Exchange
Adding Delegates
DelegateUser
Article • 03/29/2023 • 2 minutes to read
XML
<DelegateUser>
<UserId/>
<DelegatePermissions/>
<ReceiveCopiesOfMeetingMessages/>
<ViewPrivateItems/>
</DelegateUser>
DelegateUserType
Attributes
None.
Child elements
Element Description
UserId
Identifies the delegate. This element was introduced in
Exchange 2007 SP1.
DelegatePermissions
Contains the delegate permission level settings. This
element was introduced in Exchange 2007 SP1.
ViewPrivateItems
Indicates whether a delegate has permission to view private
calendar items in the principal's mailbox. This element was
introduced in Exchange 2007 SP1.
Parent elements
Element Description
DelegateUsers
Contains the identities of delegates to add or update in a
mailbox.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
AddDelegate operation
UpdateDelegate operation
EWS XML elements in Exchange
Adding Delegates
DelegateUserResponseMessageType
Article • 03/29/2023 • 2 minutes to read
XML
<DelegateUserResponseMessageType>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<DelegateUser/>
</DelegateUserResponseMessageType>
DelegateUserResponseMessageType
Attributes
None.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and is reserved for future use. It contains a value of 0.
MessageXml
Provides additional error response information.
DelegateUser
Identifies a single delegate that is returned in a delegate management
response.
Parent elements
Element Description
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Exchange Server with the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
AddDelegate operation
GetDelegate operation
UpdateDelegate operation
RemoveDelegate operation
EWS XML elements in Exchange
DelegateUsers
Article • 03/29/2023 • 2 minutes to read
XML
<DelegateUsers>
<DelegateUser>
</DelegateUsers>
ArrayOfDelegateUserType
Attributes
None.
Child elements
Element Description
DelegateUser
Identifies a single delegate to add to or update in a mailbox.
Parent elements
Element Description
AddDelegate
Defines a request to add delegates to a mailbox. This element was introduced
in Microsoft Exchange Server 2007 Service Pack 1 (SP1).
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
AddDelegate operation
UpdateDelegate operation
EWS XML elements in Exchange
Adding Delegates
DelegationState
Article • 03/29/2023 • 2 minutes to read
XML
<DelegationState/>
TaskDelegateStateType
Attributes
None.
Child elements
None.
Parent elements
Element Description
Task
Represents a task in the Exchange store.
Text value
This is a read-only property. The following are the possible values:
NoMatch
OwnNew
Owned
Accepted
Declined
Max
Remarks
Exchange Web Services in Microsoft Exchange Server 2007 does not support task
assignments.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Exchange 2007 that has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Delegator
Article • 03/29/2023 • 2 minutes to read
The Delegator element contains the name of the delegator who assigned the task.
XML
<Delegator/>
String
Attributes
None.
Child elements
None.
Parent elements
Element Description
Task
Represents a task in the Exchange store.
Text value
The text value represents the name of the delegator.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Delete
Article • 03/29/2023 • 2 minutes to read
The Delete element indicates whether a client can delete a folder or item.
XML
<Delete>true or false</Delete>
boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
EffectiveRights Contains the rights of the client based on the permission settings for the item or
folder.
Actions
Represents the set of actions that are available to be taken on a message when
the conditions are fulfilled.
Text value
A text value of true indicates that a client can delete an item or folder. A value of false
indicates that a client cannot delete an item or folder.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Setting Folder-Level Permissions
Delete (FolderSync)
Article • 03/29/2023 • 2 minutes to read
The Delete element identifies a single folder to delete in the local client store.
SyncFolderHierarchyResponse
ResponseMessages
SyncFolderHierarchyResponseMessage
Changes (Hierarchy)
Delete (FolderSync)
XML
<Delete>
<FolderId/>
</Delete>
SyncFolderHierarchyDeleteType
Attributes
None.
Child elements
Element Description
FolderId
Contains the identifier and change key of a folder.
Parent elements
Element Description
Changes Contains a sequenced array of change types that represent the type of differences
(Hierarchy) between the folders on the client and the folders on the computer that is running
Microsoft Exchange Server 2007.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
Exchange 2007 computer that has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
SyncFolderHierarchy operation
EWS reference for Exchange
EWS XML elements in Exchange
Delete (ItemSync)
Article • 03/29/2023 • 2 minutes to read
The Delete element identifies a single item to delete in the local client store.
SyncFolderItemsResponse
ResponseMessages
SyncFolderItemsResponseMessage
Changes (Items)
Delete (ItemSync)
XML
<Delete>
<ItemId/>
</Delete>
SyncFolderItemsDeleteType
Attributes
None.
Child elements
Element Description
ItemId
Contains the unique identifier and change key of an item in the Exchange store.
Parent elements
Element Description
Changes Contains a sequence array of change types that represent the type of differences
(Items)
between the items on the client and the items on the Exchange server.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
SyncFolderItems operation
EWS XML elements in Exchange
DeleteAttachment
Article • 03/29/2023 • 2 minutes to read
XML
<DeleteAttachment>
<AttachmentIds/>
</DeleteAttachment>
DeleteAttachmentType
Attributes
None.
Child elements
Element Description
AttachmentIds Contains an array of attachment identifiers that are used to delete the
attachments.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
DeleteAttachment operation
DeleteAttachmentResponse
Article • 03/29/2023 • 2 minutes to read
XML
<DeleteAttachmentResponse>
<ResponseMessages/>
</DeleteAttachmentResponse>
DeleteAttachmentResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
DeleteAttachment operation
DeleteAttachment
EWS XML elements in Exchange
DeleteAttachmentResponseMessage
Article • 03/29/2023 • 2 minutes to read
DeleteAttachmentResponse
ResponseMessages
DeleteAttachmentResponseMessage
XML
<DeleteAttachmentResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<RootItemId/>
</DeleteAttachmentResponseMessage>
DeleteAttachmentResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of a DeleteAttachment operation response.
- Success
- Warning
- Error
Value Description
Value Description
Success
Describes a request that is fulfilled.
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and is reserved for future use. It contains a value of 0.
MessageXml
Provides additional error response information.
RootItemId
Identifies the parent item of a deleted attachment.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Exchange Server with the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
DeleteAttachment
DeleteAttachment operation
EWS reference for Exchange
EWS XML elements in Exchange
DeletedEvent
Article • 03/29/2023 • 2 minutes to read
XML
<DeletedEvent>
<Watermark/>
<TimeStamp/>
<ItemId/>
<ParentFolderId/>
</DeletedEvent>
XML
<DeletedEvent>
<Watermark/>
<TimeStamp/>
<FolderId/>
<ParentFolderId/>
</DeletedEvent>
BaseObjectChangedEventType
Attributes
None.
Child elements
Element Description
Watermark
Represents an event bookmark in the mailbox events table.
TimeStamp
Represents the timestamp of a deleted item or folder mailbox event.
FolderId
Represents the identifier of the deleted folder.
ItemId
Represents the identifier of the deleted item.
Element Description
ParentFolderId Represents the identifier of the parent folder of the deleted item or folder before
deletion.
Parent elements
Element Description
Notification Contains information about the subscription and the events that have occurred
since the last notification.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Subscribe operation
GetEvents operation
Unsubscribe operation
DeletedOccurrence
Article • 03/29/2023 • 2 minutes to read
XML
<DeletedOccurrence>
<Start/>
</DeletedOccurrence>
DeletedOccurrenceInfoType
Attributes
None.
Child elements
Element Description
Start
Represents the start time of a deleted occurrence of a recurring calendar item.
Parent elements
Element Description
DeletedOccurrences
Contains an array of deleted occurrences of a recurring calendar item.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
EWS reference for Exchange
DeletedOccurrences
Article • 03/29/2023 • 2 minutes to read
XML
<DeletedOccurrences>
<DeletedOccurrence/>
</DeletedOccurrences>
NonEmptyArrayOfDeletedOccurrencesType
Attributes
None.
Child elements
Element Description
DeletedOccurrence
Represents a deleted occurrence of a recurring calendar item.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
MeetingRequest
Represents a meeting request in the Exchange store.
Remarks
This element is valid if the RecurringMaster text value is used for the CalendarItemType
element.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
EWS reference for Exchange
DeletedOccurrenceStateDefinition
Article • 03/29/2023 • 2 minutes to read
XML
<DeletedOccurrenceStateDefinition>
<OccurrenceDate></OccurrenceDate>
<IsOccurrencePresent></IsOccurrencePresent>
</DeletedOccurrenceStateDefinition>
DeletedOccurrenceStateDefinitionType
Attributes
None.
Child elements
Element Description
Occurrence (Time Zone Specifies the date of the occurrence of a calendar item.
Transition)
IsOccurrencePresent
Specifies a Boolean value that indicates whether an occurrence of the
calendar item is present.
Parent elements
Element Description
StateDefinition
Specifies a state definition.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
DeleteFolder
Article • 03/29/2023 • 2 minutes to read
The DeleteFolder element defines a request to delete folders from a mailbox in the
Exchange store.
XML
<DeleteFolder DeleteType="">
<FolderIds/>
</DeleteFolder>
DeleteFolderType
Attributes
Attribute Description
DeleteType
Describes how a folder is deleted. This attribute is required.
DeleteType attribute
Value Description
Child elements
Element Description
FolderIds
Contains an array of folder identifiers that are used to identify folders to delete.
Parent elements
None.
Text value
None.
Remarks
The MoveToDeletedItems and HardDelete options are transactional, which means that
by the time a Web service call completes, the database has moved the item to the
Deleted Items folder or permanently removed the item from the Exchange database.
This behavior is the same for MicrosoftExchange Server 2007 and Exchange Server 2010.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
DeleteFolder operation
DeleteFolderField
Article • 03/29/2023 • 2 minutes to read
UpdateFolder
FolderChanges
FolderChange
Updates (Folder)
DeleteFolderField
XML
<DeleteFolderField>
<FieldURI/>
</DeleteFolderField>
XML
<DeleteFolderField>
<ExtendedFieldURI/>
</DeleteFolderField>
XML
<DeleteFolderField>
<IndexedFieldURI/>
</DeleteFolderField>
DeleteFolderFieldType
Attributes
None.
Child elements
Element Description
FieldURI
Identifies frequently referenced properties by URI.
IndexedFieldURI
Identifies individual members of a dictionary property.
ExtendedFieldURI
Identifies extended MAPI properties.
Parent elements
Element Description
Updates Contains a set of elements that define append, set, and delete changes to folder
(Folder)
properties.
The following is the XPath expression to this element:
/UpdateFolder/FolderChanges/FolderChange[i]/Updates
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
UpdateFolder operation
DeleteFolderResponse
Article • 03/29/2023 • 2 minutes to read
XML
<DeleteFolderResponse>
<ResponseMessages/>
</DeleteFolderResponse>
DeleteFolderResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
DeleteFolder operation
DeleteFolder
EWS XML elements in Exchange
DeleteFolderResponseMessage
Article • 03/29/2023 • 2 minutes to read
DeleteFolderResponse
ResponseMessages
DeleteFolderResponseMessage
XML
<DeleteFolderResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</DeleteFolderResponseMessage>
ResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of a DeleteFolder operation response.
- Success
- Warning
- Error
Value Description
Success
Describes a request that is fulfilled.
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
- A password is expired.
- A quota is exceeded.
Error
Describes a request that cannot be fulfilled.
- Unknown tag
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
A text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and is reserved for future use. It contains the value of 0.
MessageXml
Provides additional error response information.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
DeleteFolder operation
EWS reference for Exchange
EWS XML elements in Exchange
Deleting Folders
DeleteFromFolderStateDefinition
Article • 03/29/2023 • 2 minutes to read
XML
<DeleteFromFolderStateDefinition>
<OccurrenceDate></OccurrenceDate>
<IsOccurrencePresent></IsOccurrencePresent>
</DeleteFromFolderStateDefinition>
DeleteFromFolderStateDefinitionType
Attributes
None.
Child elements
Element Description
Occurrence (Time Zone Specifies the date of the occurrence of a calendar item.
Transition)
IsOccurrencePresent
Specifies a Boolean value that indicates whether an occurrence of the
calendar item is present.
Parent elements
Element Description
StateDefinition
Specifies a state definition.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
DeleteItem
Article • 03/29/2023 • 2 minutes to read
The DeleteItem element defines a request to delete an item from a mailbox in the
Exchange store.
XML
<ItemIds/>
</DeleteItem>
DeleteItemType
Attributes
Attribute Description
DeleteType
Describes how an item is deleted. This attribute is required.
AffectedTaskOccurrences
Describes whether a task instance or a task master is deleted by a
DeleteItem operation. This attribute is required when tasks are
deleted. This attribute is optional when non-task items are deleted.
SuppressReadReceipts
Indicates whether read receipts for the deleted item are suppressed.
A text value of true, indicates that the read receipts are suppressed.
A value of false indicates that the read receipts are sent to the
sender. This attribute is optional.
DeleteType attribute
Value Description
SendMeetingCancellations attribute
Value Description
AffectedTaskOccurrences attribute
Value Description
AllOccurrences A delete item request deletes the master task, and therefore all
recurring tasks that are associated with the master task.
Child elements
Element Description
ItemIds
Contains an array of items, occurrence items, and recurring master items to delete
from a mailbox in the Exchange store. The DeleteItem operation can be performed on
any item type.
Parent elements
None.
Remarks
The MoveToDeletedItems and HardDelete options are transactional, which means that
by the time a Web service call completes, the database has moved the item to the
Deleted Items folder or permanently removed the item from the Exchange database.
This behavior is the same for MicrosoftExchange Server 2007 and Exchange Server 2010.
The SoftDelete option works differently for different target versions of Exchange.
SoftDelete for Exchange 2007 sets a bit on the item that indicates to the Exchange
database that the item will be moved to the dumpster folder at an indeterminate time in
the future. SoftDelete for Exchange 2010 immediately moves the item to the dumpster.
SoftDelete is not an option for folder deletion. SoftDelete traversal searches for items
and folders will not return any results.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
DeleteItemResponse
DeleteItem operation
DeleteItemField
Article • 03/29/2023 • 2 minutes to read
UpdateItem
ItemChanges
ItemChange
Updates (Item)
DeleteItemField
XML
<DeleteItemField>
<FieldURI/>
</DeleteItemField>
XML
<DeleteItemField>
<IndexedFieldURI/>
</DeleteItemField>
XML
<DeleteItemField>
<ExtendedFieldURI/>
</DeleteItemField>
DeleteItemFieldType
Attributes
None.
Child elements
Element Description
FieldURI
Identifies frequently referenced properties by URI.
IndexedFieldURI
Identifies individual members of a dictionary property.
ExtendedFieldURI
Identifies extended MAPI properties.
Parent elements
Element Description
Updates Contains a set of elements that define append, set, and delete changes to item
(Item)
properties.
/UpdateItem/ItemChanges/ItemChange[i]/Updates
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
UpdateItem operation
DeleteItemResponse
Article • 03/29/2023 • 2 minutes to read
XML
<DeleteItemResponse>
<ResponseMessages/>
</DeleteItemResponse>
DeleteItemResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
DeleteItem operation
DeleteItem
EWS XML elements in Exchange
DeleteItemResponseMessage
Article • 03/29/2023 • 2 minutes to read
DeleteItemResponse
ResponseMessages
DeleteItemResponseMessage
XML
<DeleteItemResponseMessage>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</DeleteItemResponseMessage>
DeleteItemResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of a DeleteItem operation response.
- Success
- Warning
- Error
ResponseClass attribute
Value Description
Success
Describes a request that is fulfilled.
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and is reserved for future use. It contains a value of 0.
MessageXml
Provides additional error response information.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Version differences
In versions of Exchange starting with build 15.00.0986.00, the
DeleteItemResponseMessage element is of type DeleteItemResponseMessageType. In
previous versions, the element is of type ResponseMessageType.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
DeleteItem operation
EWS reference for Exchange
EWS XML elements in Exchange
Deleting Items (Exchange Web Services)
DeleteItems
Article • 03/29/2023 • 2 minutes to read
The DeleteItems element indicates which items in a folder a user has permission to
delete. This element was introduced in Microsoft Exchange Server 2007 Service Pack 1
(SP1).
XML
PermissionActionType
Attributes
None.
Child elements
None.
Parent elements
Element Description
Permission
Defines the access that a user has to a folder. This element was introduced
in Exchange 2007 SP1.
CalendarPermission Defines the access that a user has to a Calendar folder. This element was
introduced in Exchange 2007 SP1.
Text value
The following table lists the possible values for the DeleteItems element.
None Indicates that the user does not have permission to delete items in the folder.
Owned Indicates that the user has permission to delete the items that the user owns in the
folder.
All Indicates that the user has permission to delete all items in the folder.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Setting Folder-Level Permissions
DeleteRuleOperation
Article • 03/29/2023 • 2 minutes to read
UpdateInboxRules
Operations
XML
<DeleteRuleOperation>
<RuleId/>
</DeleteRuleOperation>
DeleteRuleOperationType
Attributes
None.
Child elements
Element Description
RuleId
Specifies the identifier of the rule to delete.
Parent elements
Element Description
Operations
Contains an array of rule operations that can be performed on an Inbox.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
UpdateInboxRules
SetRuleOperation
CreateRuleOperation
EWS XML elements in Exchange
DeleteType
Article • 03/29/2023 • 2 minutes to read
ApplyConversationAction
ConversationActions
ConversationAction
DeleteType
XML
DisposalType
Attributes
None.
Child elements
None.
Parent elements
Element Description
ConversationAction
Contains a single action to be applied to a single conversation.
Text value
The text value of the DeleteType element indicates how items in a conversation are
deleted. The following are the possible text values:
HardDelete - Indicates that items in a conversation are permanently removed from
the mailbox database.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
ApplyConversationAction operation
EWS XML elements in Exchange
DeleteUserConfiguration
Article • 03/29/2023 • 2 minutes to read
XML
<DeleteUserConfiguration>
<UserConfigurationName/>
</DeleteUserConfiguration>
DeleteUserConfigurationType
Attributes
None.
Child elements
Element Description
UserConfigurationName
Represents the name of the user configuration object to delete.
Parent elements
None.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
DeleteUserConfigurationResponse
Article • 03/29/2023 • 2 minutes to read
XML
<DeleteUserConfigurationResponse> <ResponseMessages/>
</DeleteUserConfigurationResponse>
DeleteUserConfigurationResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Parent elements
None.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
DeleteUserConfigurationResponseMess
age
Article • 03/29/2023 • 2 minutes to read
XML
<DeleteUserConfigurationResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</DeleteUserConfigurationResponseMessage>
ResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of the response.
- Success
- Warning
- Error
Value Description
Success
Describes a request that is fulfilled.
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and reserved for future use. This element contains a value
of 0.
MessageXml
Provides additional error response information.
Parent elements
Element Description
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
DeliverMeetingRequests
Article • 03/29/2023 • 2 minutes to read
XML
<DeliverMeetingRequests>DelegatesOnly or DelegatesAndMe or
DelegatesAndSendInformationToMe or NoForward</DeliverMeetingRequests>
DeliverMeetingRequestsType
Attributes
None.
Child elements
None.
Parent elements
Element Description
AddDelegate
Defines a request to add delegates to a mailbox. This element was
introduced in Exchange 2007 SP1.
UpdateDelegate
Defines a request to update delegates in a mailbox. This element was
introduced in Exchange 2007 SP1.
GetDelegateResponse Contains the status and result of a GetDelegate request. This element was
introduced in Exchange 2007 SP1.
Text value
The following table lists the possible values for the DeliverMeetingRequests element.
Value Description
Remarks
The DeliverMeetingRequests setting affects all delegates in a principal's mailbox.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
AddDelegate operation
UpdateDelegate operation
GetDelegate operation
EWS XML elements in Exchange
Adding Delegates
DeliveryRestricted
Article • 03/29/2023 • 2 minutes to read
The DeliveryRestricted element indicates whether delivery restrictions will prevent the
sender's message from reaching the recipient.
XML
<DeliveryRestricted>true | false</DeliveryRestricted>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
MailTips
Represents values for various types of mail tips.
Text value
The text value of this element is true if delivery restrictions will prevent the sender's
message from reaching the recipient. The value is false if delivery restrictions will not
prevent the sender's message from reaching the recipient.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
DeliveryStatus
Article • 03/29/2023 • 2 minutes to read
XML
MessageTrackingDeliveryStatusType
Attributes
None.
Child elements
None.
Parent elements
Element Description
RecipientTrackingEvent
Contains information for a single event for a recipient.
Text value
The following table lists the possible text values for the DeliveryStatus element.
Value Description
Pending Specifies that the message is waiting for approval from a moderator.
Value Description
Delivered Specifies that the message was delivered to all of the specified recipients.
Transferred Specifies that the message was transferred to a server outside the search scope.
Read Specifies that the message was delivered and read by the recipients.
Remarks
The DeliveryStatus element was of type MessageTrackingDeliveryStatusType in
Exchange Server 2010.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Department
Article • 03/29/2023 • 2 minutes to read
XML
<Department/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Contact
Represents an Exchange contact item.
Text value
A text value is required.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Creating Contacts (Exchange Web Services)
Departments
Article • 03/29/2023 • 2 minutes to read
The Departments element specifies an array of department names and the identifiers of
their source attributions for the associated persona.
XML
<Departments>
<StringAttributedValue></StringAttributedValue>
</Departments>
ArrayOfStringAttributedValuesType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
Description
Article • 03/29/2023 • 2 minutes to read
The Description element specifies the descriptive text for the retention policy.
XML
<Description></Description>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
RetentionPolicyTag
Specifies the retention policy for a mailbox item.
Text value
The text value of the Description element is a string value that describes the retention
policy.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
Description (MasterMailboxType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
DescriptiveLinkKey
Article • 03/29/2023 • 2 minutes to read
The DescriptiveLinkKey element is currently unused and is reserved for future use. It contains a value of 0.
XML
<DescriptiveLinkKey/>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
ResponseMessage
Provides descriptive information about the response status.
/GetUserAvailabilityResponse/FreeBusyResponseArray/FreeBusyResponse/ResponseMessage
/GetUserAvailabilityResponse/SuggestionsResponse/ResponseMessage
/SetUserOofSettingsResponse/ResponseMessage
/GetUserOofSettingsResponse/ResponseMessage
DeleteItemResponseMessage
Contains the status and result of a single DeleteItem request.
SendItemResponseMessage
Contains the status and result of a single SendItem request.
DeleteFolderResponseMessage
Contains the status and result of a single DeleteFolder request.
DeleteAttachmentResponseMessage
Contains the status and result of a single DeleteAttachment request.
UnsubscribeResponseMessage
Contains the status and result of a single Unsubscribe request.
CreateFolderResponseMessage
Contains the status and result of a single CreateFolder request.
GetFolderResponseMessage
Contains the status and result of a single GetFolder request.
UpdateFolderResponseMessage
Contains the status and result of a single UpdateFolder request.
MoveFolderResponseMessage
Contains the status and result of a single MoveFolder request.
Element Description
CopyFolderResponseMessage
Contains the status and result of a single CopyFolder request.
CreateManagedFolderResponseMessage
Contains the status and result of a single CreateManagedFolder request.
FindFolderResponseMessage
Contains the status and result of a single FindFolder request.
CreateItemResponseMessage
Contains the status and result of a single CreateItem request.
GetItemResponseMessage
Contains the status and result of a single GetItem request.
UpdateItemResponseMessage
Contains the status and result of a single UpdateItem request.
MoveItemResponseMessage
Contains the status and result of a single MoveItem request.
CopyItemResponseMessage
Contains the status and result of a single CopyItem request.
CreateAttachmentResponseMessage
Contains the status and result of a single CreateAttachment request.
GetAttachmentResponseMessage
Contains the status and result of a single GetAttachment request.
FindItemResponseMessage
Contains the status and result of a single FindItem request.
ResolveNamesResponseMessage
Contains the status and result of a ResolveNames request.
ExpandDLResponseMessage
Contains the status and result of a single ExpandDL request.
SubscribeResponseMessage
Contains the status and result of a single Subscribe request.
GetEventsResponseMessage
Contains the status and result of a single GetEvents request.
SendNotificationResponseMessage
Contains the status and result of a single SendNotification request.
SyncFolderHierarchyResponseMessage
Contains the status and result of a SyncFolderHierarchy request.
SyncFolderItemsResponseMessage
Contains the status and result of a SyncFolderItems request.
ConvertIdResponseMessage
Contains the status and result of a ConvertId request.
AddDelegateResponse
Contains the status and result of an AddDelegate request.
GetServerTimeZonesResponseMessage
Contains the status and result of a GetServerTimeZones request.
GetSharingFolderResponseMessage
Contains the status and result of a GetSharingFolder request.
GetSharingFolderResponse
Defines a response to a GetSharingFolder request.
GetSharingMetadataResponseMessage
Contains the status and result of a GetSharingMetadata request.
GetSharingMetadataResponse
Defines a response to a GetSharingMetadata request.
RefreshSharingFolderResponseMessage
Contains the status and result of a RefreshSharingFolder request.
RefreshSharingFolderResponse
Defines a response to a RefreshSharingFolder request.
FindConversationResponse
Contains the status and results of a FindConversation response.
EmptyFolderResponseMessage
Contains the status and result of a single EmptyFolder request.
UpdateInboxRulesResponse
Contains the status and result of an UpdateInboxRules request.
UploadItemsResponseMessage
Contains a status and result of an UploadItemsResponse request.
GetInboxRulesResponse
Contains a response to a GetInboxRules request.
Text value
A text value is required if this element is used. This element is read-only.
Remarks
This element is not required and is not included in all responses.
The schema that describes this element is located in the IIS virtual directory that hosts Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS reference for Exchange
EWS XML elements in Exchange
DestinationFolderId
Article • 03/29/2023 • 2 minutes to read
The DestinationFolderId element indicates the destination folder for copy and move
actions.
ApplyConversationAction
ConversationActions
ConversationAction
DestinationFolderId
XML
<DestinationFolderId>
<FolderId/>
</DestinationFolderId>
XML
<DestinationFolderId>
<DistinguishedFolderId/>
</DestinationFolderId>
TargetFolderIdType
Attributes
None.
Child elements
Element Description
FolderId
Contains the identifier and change key of the destination folder.
DistinguishedFolderId
Identifies folders that can be referenced by name.
Parent elements
Element Description
ConversationAction
Contains a single action to be applied to a single conversation.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
ApplyConversationAction operation
DetailedSuggestionsWindow
Article • 03/29/2023 • 2 minutes to read
The DetailedSuggestionsWindow element identifies the time span that is queried for
detailed information about suggested meeting times.
GetUserAvailabilityRequest
SuggestionsViewOptions
DetailedSuggestionsWindow
XML
<DetailedSuggestionsWindow>
<StartTime>...</StartTime>
<EndTime>...</EndTime>
</DetailedSuggestionsWindow>
Duration
Attributes
None.
Child elements
Element Description
StartTime Represents the start of the time span queried for detailed information about
suggested meeting times.
EndTime
Represents the end of the time span queried for detailed information about
suggested meeting times.
Parent elements
Element Description
Element Description
SuggestionsViewOptions
Contains the options for obtaining meeting suggestion information.
The following is the XPath to this element:
/GetUserAvailabilityRequest/SuggestionViewOptions
Remarks
This element is not required.
7 Note
The schema that describes this element is located in the /EWS/ directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
Getting User Availability
Diagnostics
Article • 03/29/2023 • 2 minutes to read
The Diagnostics element provides timing and performance information that is used for
reporting in a DataCenter.
XML
<Diagnostics>
<String/>
</Diagnostics>
ArrayOfStringsType
Attributes
None.
Child elements
Element Description
String
Contains a string that is used by items, contacts, tasks, and conversations.
Parent elements
Element Description
GetMessageTrackingReportResponse
Contains the response for the GetMessageTrackingReport
operation.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
FindMessageTrackingReport operation
GetMessageTrackingReport operation
EWS XML elements in Exchange
DiagnosticsLevel
Article • 03/29/2023 • 2 minutes to read
The DiagnosticsLevel element represents timing and performance information that will
be used to derive the report.
XML
<DiagnosticsLevel/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
GetMessageTrackingReport
Contains the request for the GetMessageTrackingReport operation
to retrieve the full message tracking report for the specified ID.
Text value
A text value that represents a string is required if this element is used.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetMessageTrackingReport operation
EWS XML elements in Exchange
DialString (Exchange Web Services)
Article • 03/29/2023 • 2 minutes to read
The DialString element represents the dial string of the telephone number that is called
to play an item by telephone. This element is required.
XML
<DialString/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
Dictionary
Article • 03/29/2023 • 2 minutes to read
The Dictionary element defines a set of dictionary property entries for a user
configuration object.
XML
<Dictionary>
<DictionaryEntry/>
</Dictionary>
UserConfigurationDictionaryType
Attributes
None.
Child elements
Element Description
DictionaryEntry
Specifies the contents of a single dictionary entry property.
Parent elements
Element Description
UserConfiguration
Defines a single user configuration object.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
DictionaryEntry
Article • 03/29/2023 • 2 minutes to read
The DictionaryEntry element specifies the contents of a single dictionary entry property.
XML
<DictionaryEntry>
<DictionaryKey/>
<DictionaryValue/>
</DictionaryEntry>
UserConfigurationDictionaryEntryType
Attributes
None.
Child elements
Element Description
DictionaryKey
Specifies the dictionary key for a dictionary property.
DictionaryValue
Specifies the dictionary value for a dictionary property.
Parent elements
Element Description
Dictionary
Defines a set of dictionary property entries for a user configuration object.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
DictionaryKey
Article • 03/29/2023 • 2 minutes to read
The DictionaryKey element specifies the dictionary key for a dictionary property.
XML
<DictionaryKey>
<Type/>
<Value/>
</DictionaryKey>
UserConfigurationDictionaryObjectType
Attributes
None.
Child elements
Element Description
Type (UserConfiguration)
Specifies a dictionary object type.
- DateTime
- Boolean
- Byte
- String
- Integer32
- UnsignedInteger32
- Integer64
- UnsignedInteger64
- StringArray
- ByteArray
Value (UserConfiguration)
Specifies the dictionary object value as a string.
Parent elements
Element Description
DictionaryEntry
Specifies the contents of a single dictionary entry property.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
DictionaryValue
Article • 03/29/2023 • 2 minutes to read
The DictionaryValue element specifies the dictionary value for a dictionary property.
XML
<DictionaryValue>
<Type/>
<Value/>
</DictionaryValue>
UserConfigurationDictionaryObjectType
Attributes
None.
Child elements
Element Description
Type (UserConfiguration)
Specifies the dictionary object type.
Value (UserConfiguration)
Specifies the dictionary object value as a string.
Parent elements
Element Description
DictionaryEntry
Specifies the contents of a single dictionary entry property.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
DirectoryId
Article • 03/29/2023 • 2 minutes to read
XML
<DirectoryId/>
string
Attributes
None.
Child elements
None.
Parent elements
Contact
Represents an Exchange contact item.
Text value
The text value is a string that represents the directory ID of the contact.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
This element was introduced in Exchange Server 2010 Service Pack 2 (SP2).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Creating Contacts (Exchange Web Services)
DirectReports
Article • 03/29/2023 • 2 minutes to read
The DirectReports element contains SMTP information that identifies the direct reports
of a contact.
XML
<DirectReports>
<Mailbox/>
</DirectReports>
SingleRecipientType
Attributes
None.
Child elements
Element Description
Mailbox
Identifies a mail-enabled Active Directory directory service object.
Parent elements
Contact
Represents contact item in the Exchange store.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
This element was introduced in Exchange Server 2010 Service Pack 2 (SP2).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Creating Contacts (Exchange Web Services)
DisableApp
Article • 03/29/2023 • 2 minutes to read
XML
<DisableApp>
<ID></ID>
<DisableReason></DisableReason>
</DisableApp>
DisableAppType
Attributes
None.
Child elements
Element Description
ID (String)
Specifies the identifier of an item.
DisableReason
Specifies the reason for disabling an app.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can Be Empty
See also
EWS XML elements in Exchange
DisableAppResponse
Article • 03/29/2023 • 2 minutes to read
XML
<DisableAppResponse>
<MessageText></MessageText>
<ResponseCode></ResponeCode>
<DescriptiveLinkKey></DescriptiveLinkKey>
<MessageXml></MessageXml>
</DisableAppResponse>
DisableAppResponseType
Attributes
None.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides status information about the request.
DescriptiveLinkKey
Currently unused and reserved for future use.
MessageXml
Provides additional error response information.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can Be Empty
See also
EWS XML elements in Exchange
DisableReason
Article • 03/29/2023 • 2 minutes to read
XML
DisableReasonType
Attributes
None.
Child elements
None.
Parent elements
Element Description
DisableApp
Specifies a request to disable an app.
Text value
DisableReason element text value
Value Description
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
DisclaimerText
(EncryptionConfigurationResponseType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
DisclaimerText
(SetEncryptionConfigurationType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
DisconnectPhoneCall
Article • 03/29/2023 • 2 minutes to read
XML
<DisconnectPhoneCall>
<PhoneCallId/>
</DisconnectPhoneCall>
DisconnectPhoneCallType
Attributes
None.
Child elements
Element Description
PhoneCallId
Specifies the identifier of the call to disconnect. This element is required.
Parent elements
None.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
DisconnectPhoneCallResponse
Article • 03/29/2023 • 2 minutes to read
XML
<DisconnectPhoneCallResponse ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</DisconnectPhoneCallResponse>
DisconnectPhoneCallResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of the response.
- Success
- Warning
- Error
Value Description
Success
Describes a request that is fulfilled.
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and reserved for future use. This element contains a value
of 0.
MessageXml
Provides additional error response information.
Parent elements
None.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
DiscoverySearchConfiguration
Article • 03/29/2023 • 2 minutes to read
XML
<DiscoverySearchConfiguration>
<SearchId></SearchId>
<SearchQuery></SearchQuery>
<SearchableMailboxes></SearchableMailboxes>
</DiscoverySearchConfiguration>
DiscoverySearchConfigurationType
Attributes
None.
Child elements
Element Description
SearchId
Specifies the identifier of the search.
SearchQuery
Specifies the name of an eDiscovery search query.
Parent elements
Element Description
DiscoverySearchConfigurations
Specifies an array of DiscoverySearchConfiguration elements.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can Be Empty
See also
EWS XML elements in Exchange
DiscoverySearchConfigurations
Article • 03/29/2023 • 2 minutes to read
XML
<DiscoverySearchConfigurations>
<DiscoverySearchConfiguration></DiscoverySearchConfiguration>
</DiscoverySearchConfigurations>
ArrayOfDiscoverySearchConfigurationType
Attributes
None.
Child elements
Element Description
DiscoverySearchConfiguration
Specifies the configuration for eDiscovery search.
Parent elements
Element Description
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can Be Empty
See also
EWS XML elements in Exchange
DisplayCc
Article • 03/29/2023 • 2 minutes to read
The DisplayCc element represents the display string that is used for the contents of the
Cc box. This is the concatenated string of all Cc recipient display names.
XML
<DisplayCc/>
String
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
Contact
Represents an Exchange contact item.
DistributionList
Represents a distribution list.
Item
Represents an item in the Exchange store.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Element Description
Message
Represents an Exchange e-mail message.
Task
Represents a task in the Exchange store.
Text value
The text value represents the display string that is used for the contents of the Cc box.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
DisplayName
(FederatedDirectoryGroupType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
DisplayName (MasterMailboxType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
DisplayName (NonEmptyStringType)
Article • 03/29/2023 • 2 minutes to read
The DisplayName element contains the display name of a new instant messaging group
contact or the display name of a new instant messaging group.
XML
<DisplayName></DisplayName>
NonEmptyStringType
Attributes
None.
Child elements
None.
Parent elements
AddDistributionGroupToImList | AddImGroup | AddNewImContactToGroup | ImGroup
Text value
The text value of the DisplayName element is the display name of a new instant
messaging group contact or the display name of a new instant messaging group.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
The DisplayName element defines the display name of a folder, contact, distribution list,
delegate user, location, or rule.
XML
<DisplayName/>
String
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarFolder
Represents a calendar folder in a mailbox.
Contact
Represents an Exchange contact item.
ContactsFolder
Represents a contact folder in a mailbox.
DistributionList
Represents a distribution list.
Folder
Represents a folder in a mailbox.
Rule (RuleType)
Represents a rule in a user's mailbox.
SearchFolder
Represents a search folder in a mailbox.
TasksFolder
Represents a task folder in a mailbox.
Element Description
UserId
Identifies a delegate user or a user who has folder access permissions.
Text value
A text value that represents the display name is required if this element is used.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Example
This following example shows how to create a new folder and to set the DisplayName of
the folder to "TestFolder".
C#
folder.DisplayName = "TestFolder";
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
DisplayName (VotingOptionDataType)
Article • 03/29/2023 • 2 minutes to read
XML
<DisplayName />
string
Attributes
None.
Child elements
None.
Parent elements
VotingOptionData
Text value
The text value of the DisplayName (VotingOptionDataType) element is the display
name of a voting option.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
VotingOptionData
EWS XML elements in Exchange
DisplayNameFirstLast
Article • 03/29/2023 • 2 minutes to read
The DisplayNameFirstLast element specifies the display name of the associated persona
in the format, "First Name", "Last Name".
XML
<DisplayNameFirstLast>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Text value
The text value of the DisplayNameFirstLast element is a string value containing the
display name, with the given name first.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
DisplayNameFirstLastHeader
Article • 03/29/2023 • 2 minutes to read
The DisplayNameFirstLastHeader element specifies the header for the display name,
first name first.
XML
<DisplayNameFirstLastHeader></DisplayNameFirstLastHeader>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Text value
The text value of the DisplayNameFirstLastHeader element is a string value that
specifies the header.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
DisplayNameFirstLastSortKey
Article • 03/29/2023 • 2 minutes to read
The DisplayNameFirstLastSortKey element contains the sort key for a display name in
first name, last name order.
XML
<DisplayNameFirstLastSortKey></DisplayNameFirstLastSortKey>
string
Attributes
None.
Child elements
None.
Parent elements
Persona
Text value
The text value of the DisplayNameFirstLastSortKey element is the sort key for a
persona's display name, in first name, last name order.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
DisplayNameLastFirst
Article • 03/29/2023 • 2 minutes to read
The DisplayNameLastFirst element specifies the display name of the associated persona
in the format, "Last Name", "First Name".
XML
<DisplayNameLastFirst></DisplayNameLastFirst>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Text value
The text value of the DisplayNameLastFirst element is a string value that specifies the
display name, with the surname first.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
DisplayNameLastFirstHeader
Article • 03/29/2023 • 2 minutes to read
The DisplayNameLastFirstHeader element specifies the header for the display name,
last name first.
XML
<DisplayNameLastFirstHeader></DisplayNameLastFirstHeader>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Text value
The text value of the DisplayNameLastFirstHeader element is a string value that
specifies the display name, surname first.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
DisplayNameLastFirstSortKey
Article • 03/29/2023 • 2 minutes to read
The DisplayNameLastFirstSortKey element contains the sort key for a display name in
last name, first name order.
XML
<DisplayNameLastFirstSortKey></DisplayNameLastFirstSortKey>
string
Attributes
None.
Child elements
None.
Parent elements
Persona
Text value
The text value of the DisplayNameLastFirstSortKey element is the sort key for a
persona's name in last name, first name order.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Item Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
DisplayNamePrefix
Article • 03/29/2023 • 2 minutes to read
The DisplayNamePrefix element specifies the prefix of the display name of the
associated persona.
XML
<DisplayNamePrefix></DisplayNamePrefix>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Text value
The text value of the DisplayNamePrefix element is a string value that specifies the
prefix for the display name.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
DisplayNamePrefixes
Article • 03/29/2023 • 2 minutes to read
The DisplayNamePrefixes element specifies an array of display name prefixes and the
identifiers of their source attributions for the associated persona.
XML
<DisplayNamePrefixes>
<StringAttributedValue></StringAttributedValue>
</DisplayNamePrefixes>
ArrayOfStringAttributedValuesType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
DisplayNames
Article • 03/29/2023 • 2 minutes to read
The DisplayNames element specifies an array of display names and the identifiers of
their source attributions for the associated persona.
XML
<DisplayNames>
<StringAttributedValue></StringAttributedValue>
</DisplayNames>
ArrayOfStringAttributedValuesType
Attributes
None
Child elements
Element Description
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
DisplayTo
Article • 03/29/2023 • 2 minutes to read
The DisplayTo element represents the display string that is used for the contents of the
To box. This is the concatenated string of all To recipient display names.
XML
<DisplayTo/>
String
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
Contact
Represents an Exchange contact item.
DistributionList
Represents a distribution list.
Item
Represents an item in the Exchange store.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Element Description
Message
Represents an Exchange e-mail message.
Task
Represents a task in the Exchange store.
Text value
The text value represents the display string that is used for the contents of the To box.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
DistinguishedFolderId
Article • 03/29/2023 • 3 minutes to read
XML
<Mailbox/>
</DistinguishedFolderId>
DistinguishedFolderIdType
Attributes
Attribute Description
Id
Contains a string that identifies a default folder. This attribute is required.
ChangeKey Contains a string that identifies a version of a folder that is identified by the Id
attribute. This attribute is optional. Use this attribute to make sure that the correct
version of a folder is used.
Id attribute values
Value Description
Child elements
Element Description
Mailbox
Identifies a primary SMTP address. Proxy addresses are not allowed.
Parent elements
Element Description
ContextFolderId
Indicates the folder that is targeted for conversation actions that use
folders.
DestinationFolderId
Indicates the destination folder for copy and move conversation
actions.
/CreateItem/ParentFolderId
/CreateFolder/ParentFolderId
ParentFolderIds
Identifies folders to search for the FindItem operation and the
FindFolder operation.
Element Description
FolderIds
Contains an array of folder identifiers that are used to identify folders
to copy, move, get, delete, or monitor for event notifications.
FolderChange
Represents a collection of changes to be performed on a single folder.
/UpdateFolder/FolderChanges/FolderChange
ToFolderId
Represents the destination folder for a copied or moved item or folder.
/MoveFolder/ToFolderId
/CopyFolder/ToFolderId
/MoveItem/ToFolderId
/CopyItem/ToFolderId
SavedItemFolderId
Identifies the target folder for operations that update, send, and create
items in the Exchange store.
/CreateItem/SavedItemFolderId
/UpdateItem/SavedItemFolderId
/SendItem/SavedItemFolderId
SyncFolderId
Represents the folder that contains the items to synchronize.
CopyToFolder
Represents the ID of the folder that email items will be copied to.
MoveToFolder
Represents the ID of the folder that email items will be moved to.
Text value
None.
Remarks
A DistinguishedFolderId resolves to a FolderId.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Creating Folders (Exchange Web Services)
DistinguishedFolderId
(DistinguishedFolderIdNameType)
Article • 03/29/2023 • 2 minutes to read
XML
DistinguishedFolderIdNameType
Attributes
None.
Child elements
None
Parent elements
Element Description
Folder
Specifies a generic folder.
CalendarFolder
Specifies a calendar folder.
Element Description
ContactsFolder
Specifies a contacts folder.
Text value
DistinguishedFolderId element text values
Value Description
archivemsgfolderroot Indicates the URL of the archived message folder root folder.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
DistinguishedGroupBy
Article • 03/29/2023 • 2 minutes to read
FindItem
DistinguishedGroupBy
XML
<DistinguishedGroupBy>
<StandardGroupBy/>
</DistinguishedGroupBy>
DistinguishedGroupByType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
FindItem
Defines a request to find items in a mailbox.
Remarks
The DistinguishedGroupBy element can be added to a FindItem operation when the
results must come backed grouped and when one of the standard groups meets the
grouping requirements. If neither the DistinguishedGroupBy element nor the GroupBy
element is specified, FindItem results will come back ungrouped.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
FindItem operation
Finding Items
DistinguishedUser
Article • 03/29/2023 • 2 minutes to read
The DistinguishedUser element identifies Anonymous and Default user accounts for
delegate access. This element was introduced in Microsoft Exchange Server 2007 Service
Pack 1 (SP1).
XML
<DistinguishedUser>Default or Anonymous</DistinguishedUser>
DistinguishedUserType
Attributes
None.
Child elements
None.
Parent elements
Element Description
UserId
Identifies a delegate user or a user who has folder access permissions. This element
was introduced in Exchange 2007 SP1.
Text value
A text value of Default describes the default setting for delegate users who are added to
the principal's mailbox. A text value of Anonymous describes the delegate access
settings that anonymous users have on the principal's mailbox.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
AddDelegate operation
UpdateDelegate operation
EWS XML elements in Exchange
Adding Delegates
DistributionList
Article • 03/29/2023 • 4 minutes to read
XML
<DistributionList>
<MimeContent/>
<ItemId/>
<ParentFolderId/>
<ItemClass/>
<Subject/>
<Sensitivity/>
<Body/>
<Attachments/>
<DateTimeReceived/>
<Size/>
<Categories/>
<Importance/>
<InReplyTo/>
<IsSubmitted/>
<IsDraft/>
<IsFromMe/>
<IsResend/>
<IsUnmodified/>
<InternetMessageHeaders/>
<DateTimeSent/>
<DateTimeCreated/>
<ResponseObjects/>
<ReminderDueBy/>
<ReminderIsSet/>
<ReminderMinutesBeforeStart/>
<DisplayCc/>
<DisplayTo/>
<HasAttachments/>
<ExtendedProperty/>
<Culture/>
<EffectiveRights/>
<LastModifiedName/>
<LastModifiedTime/>
<IsAssociated/>
<WebClientReadFormQueryString/>
<WebClientEditFormQueryString/>
<ConversationId/>
<UniqueBody/>
<DisplayName/>
<FileAs/>
<ContactSource/>
<Members/>
</DistributionList>
DistributionListType
Attributes
None.
Child elements
Element Description
MimeContent
Contains the native MIME stream of an object represented in
base64Binary format.
ItemId
Contains the unique identifier and change key of a distribution
list item in the Exchange store.
ParentFolderId Represents the identifier of the parent folder that contains the
distribution list item.
ItemClass
Represents the message class of a distribution list item.
Subject
Represents the subject for Exchange store items and response
objects.
Sensitivity
Contains the status for a distribution list item's sensitivity.
Body
Represents the actual body content of a distribution list item.
Attachments
Contains the items or files that are attached to a distribution
list item in the Exchange store.
DateTimeReceived
Represents the date and time that a distribution list item in a
mailbox was received.
Size
Represents the size, in bytes, of a distribution list item. This
property is read-only.
Categories
Represents a collection of strings that identify to which
categories a distribution list item in the mailbox belongs.
Importance
Describes the importance of a distribution list item.
InReplyTo
Represents the identifier of the item which this item is a reply.
Element Description
IsSubmitted
Indicates whether an item has been submitted to the Outbox
default folder.
IsDraft
Represents whether an item has not yet been sent.
IsFromMe
Indicates whether a user sent an item to itself.
IsResend
Indicates whether the item had previously been sent.
IsUnmodified
Indicates whether the item has been modified.
InternetMessageHeaders
Represents the collection of all Internet message headers
contained within an item in a mailbox.
DateTimeSent
Represents the date and time that an item in a mailbox was
sent.
DateTimeCreated
Represents the date and time that a given item in the mailbox
was created.
ResponseObjects
Contains a collection of all the response objects that are
associated with an item in the Exchange store.
ReminderDueBy
Represents the date and time when the event occurs. This is
used by the ReminderMinutesBeforeStart element to
determine when the reminder is displayed.
ReminderIsSet
Indicates whether a reminder has been set for an item in the
Exchange store.
ReminderMinutesBeforeStart
Represents the number of minutes before an event when a
reminder is displayed.
DisplayCc
Represents the display string that is used for the contents of
the Cc line. This is the concatenated string of all Cc recipient
display names.
DisplayTo
Represents the display string that is used for the contents of
the To line. This is the concatenated string of all To recipient
display names.
HasAttachments
Represents a property that is set to true if an item has at least
one visible attachment. This property is read-only.
ExtendedProperty
Identifies extended properties on a distribution list item.
Culture
Represents the culture for a distribution list item in a mailbox.
EffectiveRights
Contains the client's rights based on the permission settings
for the item or folder. This element is read-only.
Element Description
LastModifiedName
Contains the display name of the last user to modify an item.
LastModifiedTime
Indicates when an item was last modified.
IsAssociated
Indicates whether the item is associated with a folder.
WebClientEditFormQueryString
Represents a URL to concatenate to the Outlook Web App
endpoint to edit an item in Outlook Web App.
ConversationId
Contains the identifier of an item or conversation.
UniqueBody
Represents an HTML fragment or plain text which represents
the unique body of this conversation.
DisplayName (string)
Defines the display name of a distribution list.
FileAs
Represents how a distribution list is filed in the Contacts folder.
ContactSource
Describes whether the contact is located in the Exchange store
or in Active Directory Domain Services (AD DS).
Members (MemberListType)
Contains a list of members of the distribution list.
Parent elements
Element Description
AdjacentMeetings
Describes all calendar items that are adjacent to a meeting
time.
Create (ItemSync)
Identifies a single distribution list to create in the local client
store.
Update (ItemSync)
Identifies a single distribution list to update in the local client
store.
Items
Contains an array of items.
Element Description
SetItemField
Represents an update to a single property of a distribution list
item in an UpdateItem operation.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
DLExpansion
Article • 03/29/2023 • 2 minutes to read
ExpandDLResponse
ResponseMessages
ExpandDLResponseMessage
DLExpansion
XML
<Mailbox/>
</DLExpansion>
ArrayOfDLExpansionType
Attributes
Attribute Description
IndexedPagingOffset
Represents the next index that should be used for the next request
when you are using an indexed page view.
NumeratorOffset
Represents the new numerator value to use for the next request
when you are using fraction page views.
AbsoluteDenominator
Represents the next denominator to use for the next request when
you are using fraction page views.
IncludesLastItemInRange Indicates whether the current results contain the last item in the
query so that additional paging is not needed.
TotalItemsInView
Represents the total number of items in the view.
Child elements
Element Description
Mailbox
Identifies a mail-enabled Active Directory directory service object.
Parent elements
Element Description
ExpandDLResponseMessage
Contains the status and result of a single ExpandDL request.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
ExpandDL operation
EWS XML elements in Exchange
EWS reference for Exchange
Domain
Article • 03/29/2023 • 2 minutes to read
XML
StmpDomain
Attributes
Attribute Description
Child elements
None.
Parent elements
Element Description
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Domain (Message Tracking)
Article • 03/29/2023 • 2 minutes to read
XML
<Domain/>
NonEmptyStringType
Attributes
None.
Child elements
None.
Parent elements
Element Description
FindMessageTrackingReport
Contains criteria for the types of messages to find.
Text value
A text value that represents a string is required if this element is used.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
DomainController (MasterMailboxType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
DraftItemIds
Article • 03/29/2023 • 2 minutes to read
XML
<DraftItemIds>
<ItemId/>
<OccirrenceItemId/>
<RecurringMasterItemId/>
<RecurringMasterItemIdRanges/>
</DraftItemIds>
NonEmptyArrayOfBaseItemIdsType
Attributes
None.
Child elements
ItemId | OccurrenceItemId | RecurringMasterItemId | RecurringMasterItemIdRanges
Parent elements
Conversation (ConversationType)
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
DueDate
Article • 03/29/2023 • 2 minutes to read
XML
<DueDate/>
dateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
Task
Represents a task in the Exchange store.
Flag
Specifies a flag on a mailbox item.
Text value
A text value that represents the date and time is required if this element is used.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Duration (Items)
Article • 03/29/2023 • 2 minutes to read
XML
<Duration/>
String
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
MeetingRequest
Represents a meeting request in the Exchange store.
Text value
The text value represents the duration of a calendar item. This property is read-only.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Duration (UserOofSettings)
Article • 03/29/2023 • 2 minutes to read
The Duration element specifies the duration that the out of office (OOF) status is
enabled if the OofState element is set to Scheduled.
XML
<Duration>
<StartTime/>
<EndTime/>
</Duration>
Duration
Attributes
None.
Child elements
Element Description
StartTime Represents the start of the time span set with an OOF status. This element is required.
EndTime
Represents the end of the time span set with an OOF status. This element is required.
Parent elements
Element Description
/SetUserOofSettingsRequest/UserOofSettings
Element Description
OofSettings
Contains the OOF settings.
/GetUserOofSettingsResponse/OofSettings
OutOfOffice
Defines the Out of Office (OOF) response message and a duration time for
sending the response message for a mailbox.
Remarks
The Duration type is also the type for the DetailedSuggestionsWindow, TimeWindow,
and OutOfOffice elements.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Example
The following example of a SetUserOofSettings operation request sets the OofState to
Enabled, the internal and external OOF messages, and sets the duration of OOF for 10
days.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<SetUserOofSettingsRequest
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<Mailbox
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Name>David Alexander</Name>
<Address>[email protected]</Address>
<RoutingType>SMTP</RoutingType>
</Mailbox>
<UserOofSettings
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<OofState>Enabled</OofState>
<ExternalAudience>All</ExternalAudience>
<Duration>
<StartTime>2005-10-05T00:00:00</StartTime>
<EndTime>2005-10-25T00:00:00</EndTime>
</Duration>
<InternalReply>
</InternalReply>
<ExternalReply>
</ExternalReply>
<SetByLegacyClient>false</SetByLegacyClient>
</UserOofSettings>
</SetUserOofSettingsRequest>
</soap:Body>
</soap:Envelope>
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserOofSettings operation
SetUserOofSettings operation
EditAllowed
Article • 03/29/2023 • 2 minutes to read
XML
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
RightsManagementLicenseData
Specifies information about the rights management license.
Text value
A text value of true for the EditAllowed element indicates that Information Rights
Management (IRM) can be edited. A value of false indicates that IRM cannot be edited.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
EditItems
Article • 03/29/2023 • 2 minutes to read
The EditItems element indicates which items in a folder a user has permission to edit.
This element was introduced in Microsoft Exchange Server 2007 Service Pack 1 (SP1).
XML
PermissionActionType
Attributes
None.
Child elements
None.
Parent elements
Element Description
Permission
Defines the access that a user has to a folder. This element was introduced
in Exchange 2007 SP1.
CalendarPermission Defines the access that a user has to a Calendar folder. This element was
introduced in Exchange 2007 SP1.
Text value
The following table lists the possible values for the EditItems element.
None Indicates that the user does not have permission to edit items in the folder.
Owned Indicates that the user has permission to edit the items that the user owns in the folder.
All Indicates that the user has permission to edit all items in the folder.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Setting Folder-Level Permissions
EffectiveRights
Article • 03/29/2023 • 2 minutes to read
The EffectiveRights element contains the client's rights based on the permission
settings for the item or folder. This element is read-only.
XML
<EffectiveRights>
<CreateAssociated/>
<CreateContents/>
<CreateHierarchy/>
<Delete/>
<Modify/>
<Read/>
<ViewPrivateItems/>
</EffectiveRights>
EffectiveRightsType
Attributes
None.
Child elements
Element Description
CreateAssociated Indicates whether a client can create an associated contents table. This
property is only used on folder objects.
CreateContents
Indicates whether a client can create a contents table. This property is only
used on folder objects.
CreateHierarchy
Indicates whether a client can create a hierarchy table. This property is only
used on folder objects.
Delete
Indicates whether a client can delete a folder or item.
Modify
Indicates whether a client can modify a folder or item.
Element Description
Read
Indicates whether a client can read a folder or item.
Parent elements
Element Description
Folder
Represents a folder in a mailbox.
TasksFolder
Represents a tasks folder in a mailbox.
ContactsFolder
Represents a contacts folder in a mailbox.
CalendarFolder
Represents a calendar folder in a mailbox.
SearchFolder
Represents a search folder in a mailbox.
CalendarItem
Represents an Exchange calendar item.
Contact
Represents an Exchange contact item.
DistributionList
Represents a distribution list.
Item
Represents a generic Exchange item.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Message
Represents an Exchange e-mail message.
Task
Represents a task in the Exchange store.
PostItem
Represents a post item in the Exchange store.
Text value
None.
Remarks
EffectiveRights is supported in the GetFolder, GetItem, FindFolder, FindItem,
SyncFolderHierarchy, and SyncFolderItems responses. The EffectiveRights property is
exposed in the AllProperties shape for folders and items.
This EffectiveRights property provides access to the same information that is provided
in the PR_ACCESS MAPI property.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Setting Folder-Level Permissions
Email (EmailAddress)
Article • 03/29/2023 • 2 minutes to read
XML
<Email></Email>
EmailAddress
Attributes
None.
Child elements
None.
Parent elements
MailboxData
Text value
The text value of the Email element identifies an attendee returned in a
GetUserAvailability operation response.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Email (EmailAddressType)
Article • 03/29/2023 • 2 minutes to read
The Email element represents the mailbox user for a GetUserAvailability query.
GetUserAvailabilityRequest
MailboxDataArray
MailboxData
Email (EmailAddressType)
XML
<Email>
<Name>...</Name>
<Address>...</Address>
<RoutingType>...</RoutingType>
</Email>
EmailAddressType
Attributes
None.
Child elements
Element Description
Name (EmailAddress)
Represents the display name of the mailbox user.
Address (string)
Represents the e-mail address of the mailbox user.
RoutingType (EmailAddress)
Represents the routing protocol for the message.
Parent elements
Element Description
Element Description
MailboxData Represents an individual mailbox user and options for the type of data to be
returned about the mailbox user.
The following is the XPath to this element:
/GetUserAvailabilityRequest/MailboxDataArray[i]/MailboxData
Remarks
The schema that describes this element is located in the /EWS/ directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityRequest
Getting User Availability
Email (String)
Article • 03/29/2023 • 2 minutes to read
The Email element identifies the email address of the user whose photo is requested in
the GetUserPhoto operation.
XML
<Email></Email>
string
Attributes
None.
Child elements
None.
Parent elements
GetUserPhoto
Text value
The text value of the Email element is the email address of the user whose photo is
requested in the GetUserPhoto operation.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
EmailAddress (EmailAddress)
Article • 03/29/2023 • 2 minutes to read
XML
<EmailAddress />
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
EmailAddress (EmailAddressType)
Article • 03/29/2023 • 2 minutes to read
The EmailAddress element specifies the fully resolved SMTP address for the site mailbox
or the associated persona.
XML
<EmailAddress>
<Name></Name>
<EmailAddress></EmailAddress>
<RoutingType></RoutingType>
<MailboxType></MailboxType>
<ItemId></ItemId>
</EmailAddress>
EmailAddressType
Attributes
None.
Child elements
Element Description
Name (string)
Specifies a search refiner name or key or the name of an email
user.
MailboxType
Represents the type of mailbox that is represented by the e-mail
address.
ItemId
Contains the unique identifier and change key of an item in the
Exchange store.
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Text value
None.
Remarks
This element is optional.
The EmailAddress element is applicable for clients that target Exchange Online and
versions of Microsoft Exchange Server starting with Exchange 2013.
Element information
Element Type
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
EmailAddress (GetPersonaType)
Article • 03/29/2023 • 2 minutes to read
XML
<EmailAddress>
<Name></Name>
<EmailAddress></EmailAddress>
<RoutingType></RoutingType>
<MailboxType></MailboxType>
<ItemId></ItemId>
<OriginalDisplayName></OriginalDisplayName>
</EmailAddress>>
EmailAddressType
Attributes
None.
Child elements
Name (string) | EmailAddress (NonEmptyStringType) | RoutingType (EmailAddressType) |
MailboxType | ItemId | OriginalDisplayName
Parent elements
GetPersona
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetPersona
EWS XML elements in Exchange
EmailAddress (NonEmptyStringType)
Article • 03/29/2023 • 2 minutes to read
The EmailAddress element defines the primary SMTP address of a mailbox user.
XML
<EmailAddress/>
NonEmptyStringType
Attributes
None.
Child elements
None.
Parent elements
Element Description
Mailbox
Identifies a fully resolved e-mail address.
/CreateItem/ParentFolderId/DistinguishedFolderId/Mailbox
/CreateFolder/ParentFolderId/DistinguishedFolderId/Mailbox
CreateItem/Items/AcceptItem/ToRecipients/Mailbox
SyncFolderItemsResponseMessage/Changes/Create/CalendarItem/ConflictingMeetings/AcceptItem/CcRecipients/Mailbox
- BccRecipients
- ReplyTo
- Sender
- From
- Organizer
- DistinguishedFolderId
- Resolution
- DLExpansion
- Attendee
Element Description
Text value
A text value that represents an SMTP address is required.
Remarks
The EmailAddress element can represent SMTP or legacy Exchange distinguished name (also known as DN)
addresses. The EmailAddress element is the only required Mailbox element.
The schema that describes this element is located in the IIS virtual directory that hosts Exchange Web
Services.
Element information
Element Type
Namespace https://schemas.microsoft.com/exchange/services/2006/types
XML
<EmailAddress></EmailAddress>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
EmailAddressEntity
Specifies a single email address entity.
Text value
The text value of the EmailAddress element is a string value that specifies the email
address.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
EmailAddressAttributedValue
Article • 03/29/2023 • 2 minutes to read
XML
<EmailAddressAttributedValue>
<Value></Value>
<Attributions></Attributions>
<EmailAddressAttributedValue>
EmailAddressAttributedValueType
Attributes
None.
Child elements
Element Description
Value (EmailAddressType)
Specifies the value of an EmailAddress associated with an
attributions array.
Parent elements
Element Description
Emails1
Specifies an array of email values and the identifiers of their source attributions for the
associated persona.
Emails2
Specifies an array of email values and the identifiers of their source attributions for the
associated persona.
Element Description
Emails3
Specifies an array of email values and the identifiers of their source attributions for the
associated persona.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
EmailAddressEntity
Article • 03/29/2023 • 2 minutes to read
XML
<EmailAddressEntity>
<EmailAddress></EmailAddress>
</EmailAddressEntity>
EmailAddressEntityType
Attributes
None.
Child elements
Element Description
EmailAddress (string)
Specifies a single email address.
Parent elements
Element Description
EmailAddresses (ArrayOfEmailAddressEntitiesType)
Specifies an array of email address entities.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
EmailAddresses
Article • 03/29/2023 • 2 minutes to read
XML
<EmailAddresses>
<Entry/>
</EmailAddresses>
EmailAddressDictionaryType
Attributes
None.
Child elements
Element Description
Entry (EmailAddress)
Represents a single e-mail address for a contact.
Parent elements
Element Description
Contact
Represents an Exchange contact item.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Creating Contacts (Exchange Web Services)
Updating Contacts
Deleting Contacts
EmailAddresses
(ArrayOfEmailAddressEntitiesType)
Article • 03/29/2023 • 2 minutes to read
XML
<EmailAddresses>
<EmailAddressEntity></EmailAddressEntity>
</EmailAddresses>
ArrayOfEmailAddressEntitiesType
Attributes
None.
Child elements
Element Description
EmailAddressEntity
Specifies a single email address entity.
Parent elements
Element Description
EntityExtractionResult
Specifies the EntityExtractionResult property of an item.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
EmailAddresses
(ArrayOfEmailAddressesType)
Article • 03/29/2023 • 2 minutes to read
The EmailAddresses element specifies an array of all email addresses of the associated
persona.
XML
<EmailAddresses>
<Address></Address>
</EmailAddresses>
ArrayOfEmailAddressesType
Attributes
None.
Child elements
Element Description
Address (EmailAddressType)
Represents a fully resolved e-mail address.
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
EmailAddresses
(ArrayOfExtractedEmailAddresses)
Article • 03/29/2023 • 2 minutes to read
XML
<EmailAddresses>
<EmailAddress/>
</EmailAddresses>
ArrayOfExtractedEmailAddresses
Attributes
None.
Child elements
EmailAddress (string)
Parent elements
Contact (ContactType)
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Emails1
Article • 03/29/2023 • 2 minutes to read
XML
<Emails1>
<EmailAddressAttributedValue></EmailAddressAttributedValue>
</Emails1>
ArrayOfEmailAddressAttributedValuesType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
Emails2
Article • 03/29/2023 • 2 minutes to read
XML
<Emails2>
<EmailAddressAttributedValue></EmailAddressAttributedValue>
</Emails2>
ArrayOfEmailAddressAttributedValuesType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
Emails3
Article • 03/29/2023 • 2 minutes to read
XML
<Emails3>
<EmailAddressAttributedValue></EmailAddressAttributedValue>
</Emails3>
ArrayOfEmailAddressAttributedValuesType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
EmailText
(EncryptionConfigurationResponseType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
EmailText
(SetEncryptionConfigurationType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
EmailUser
Article • 03/29/2023 • 2 minutes to read
XML
<EmailUser>
<Name/>
<UserId/>
</EmailUser>
EmailUserType
Attributes
None.
Child elements
Element Description
Name (string)
Specifies a search refiner name or key or the name of an email user.
UserId (string)
Specifies the user identifier of an email user.
Parent elements
Element Description
Attendees
Specifies the recipients of an invitation to a meeting.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
EmptyFolder
Article • 03/29/2023 • 2 minutes to read
XML
<EmptyFolder>
<FolderIds/>
</EmptyFolder>
EmptyFolderType
Attributes
Attribute Description
DeleteType
Specifies how a folder is emptied. This attribute is required.
DeleteSubFolders
Specifies whether subfolders are to be deleted. This attribute is required.
DeleteType Attribute
Value Description
HardDelete A messages and folders are permanently removed from the store.
SoftDelete A messages and folders are moved to the dumpster if the dumpster is
enabled.
MoveToDeletedItems A messages and folders are moved to the Deleted Items folder.
Child elements
Element Description
FolderIds
Contains an array of folder identifiers that are used to identify folders to delete.
Parent elements
None.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EmptyFolder operation
EmptyFolderResponse
Article • 03/29/2023 • 2 minutes to read
XML
<EmptyFolderResponse>
<ResponseMessages/>
</EmptyFolderResponse>
EmptyFolderResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Parent elements
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EmptyFolder operation
EmptyFolder
XML
<EmptyFolderResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</EmptyFolderResponseMessage>
ResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of an EmptyFolder operation response.
- Success
- Warning
- Error
Value Description
Success
Describes a request that is fulfilled.
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and is reserved for future use. It contains the value of 0.
MessageXml
Provides additional error response information.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Type
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EmptyFolder operation
EWS reference for Exchange
EWS XML elements in Exchange
EnableAlwaysDelete
Article • 03/29/2023 • 2 minutes to read
The EnableAlwaysDelete element specifies a flag that enables deletion for all new items
in a conversation.
ApplyConversationAction
ConversationActions
ConversationAction
EnableAlwaysDelete
XML
<EnableAlwaysDelete/>
xs:boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
ConversationAction
Contains a single action to be applied to a single conversation.
Text value
The text value of the EnableAlwaysDelete element is true to enable the deletion of all
items in conversation; otherwise, false.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
ApplyConversationAction operation
EncryptedSharedFolderData
Article • 03/29/2023 • 2 minutes to read
The EncryptedSharedFolderData element contains the encrypted data that a client can
use to authorize the sharing of its calendar or contact data with other clients.
XML
EncryptedSharedFolderDataType
Attributes
None.
Child elements
Element Description
Token
Contains encrypted data that represents the identification token for the shared data.
Data
Contains encrypted data that represents the shared data.
Parent elements
Element Description
Remarks
The schema that describes this element is located in the IIS Virtual directory that hosts
Exchange Web Services of the computer that is running Microsoft Exchange Server that
has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetSharingMetadata operation
EWS XML elements in Exchange
EncryptedSharedFolderDataCollection
Article • 03/29/2023 • 2 minutes to read
XML
<EncryptedSharedFolderDataCollection> <EncryptedSharedFolderData/>
</EncryptedSharedFolderDataCollection>
ArrayOfEncryptedSharedFolderDataType
Attributes
None.
Child elements
Element Description
EncryptedSharedFolderData Contains the encrypted data that a client can use to authorize the
sharing of its calendar or contact data with other clients.
Parent elements
Element Description
GetSharingMetadataResponse
Defines a response to a GetSharingMetadata operation
request.
Remarks
The schema that describes this element is located in the IIS Virtual directory that hosts
Exchange Web Services of the computer that is running Microsoft Exchange Server that
has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetSharingMetadata operation
EWS XML elements in Exchange
End
Article • 03/29/2023 • 2 minutes to read
XML
<End/>
DateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
The text value represents the end of a duration.
Remarks
The UpdateItem operation can set the Start and End time of an Exchange store item. In
an UpdateItem request, you can set the Start time without also setting the End time.
This can cause an error if the Start time is later than the End time. Be aware that client
applications must perform adjustments to the End time when that Start time is changed
in order to preserve the duration.
7 Note
The time zone offset information is lost if the Start and End dates of the recurring
master item do not have a date that is equal to the first occurrence of a weekly
recurrence pattern.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
WeeklyRecurrence
End
The End element specifies the changes made to a meeting end time when a meeting
update occurs.
XML
<End></End>
dateTime
Attributes
None.
Child elements
None.
Parent elements
ChangeHighlights
Text value
The text value of the End element is the new end time of a meeting.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
EndDate (Recurrence)
Article • 03/29/2023 • 2 minutes to read
The EndDate element represents the end date of a recurring task or a calendar item that
has the EndDateRecurrence pattern type.
XML
<EndDate/>
date
Attributes
None.
Child elements
None.
Parent elements
Element Description
EndDateRecurrence
Describes the start date and the end date of an item recurrence pattern.
Text value
A text value that represents a date is required if this element is used. The value cannot
be larger than September 1, 4500 00:00:00.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
EndDate (ReminderType)
Article • 03/29/2023 • 2 minutes to read
The EndDate element specifies the end date of the item the reminder is for.
XML
<EndDate/>
dateTime
Attributes
None.
Child elements
None.
Parent elements
Reminder
Text value
The text value of the EndDate element is the end date of an item.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Reminder
The EndDateRecurrence element describes the start date and the end date of an item
recurrence pattern.
XML
<EndDateRecurrence>
<StartDate/>
<EndDate/>
</EndDateRecurrence>
EndDateRecurrenceRangeType
Attributes
None.
Child elements
Element Description
StartDate (Recurrence)
Represents the start date of a recurring task or calendar item.
EndDate (Recurrence)
Represents the end date of a recurring task or calendar item.
Parent elements
Element Description
Recurrence (RecurrenceType)
Contains the recurrence pattern for calendar items and meeting
requests.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
EndDateTime
Article • 03/29/2023 • 2 minutes to read
The EndDateTime element specifies the end date and time for a rule or a search.
XML
<EndDateTime/>
dateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
WithinDateRange
Specifies the date range within which incoming messages have to
have been received in order for the condition or exception to
apply.
Text value
A text value that represents a date/time is required if this element is used.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
EndNodeUrl
Article • 03/29/2023 • 2 minutes to read
The EndNodeUrl element specifies the URL for the mail app in the Office Store.
XML
<EndNodeUrl/>
string
Attributes
None.
Child elements
None.
Parent elements
Metadata
Text value
The text value of the EndNodeUrl element is the URL for the mail app in the Office
Store.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Metadata
XML
<EndTime>dateTime</EndTime>
dateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
TimeWindow
Identifies the time span queried for the user availability information.
/GetUserAvailabilityRequest/FreeBusyViewOptions/TimeWindow
DetailedSuggestionsWindow Identifies the time span that is queried for detailed information about suggested meeting times.
/GetUserAvailabilityRequest/SuggestionViewOptions/DetailedSuggestionsWindow .
Duration (UserOofSettings)
Specifies the duration for which the Out of Office (OOF) status is enabled if the OofState element is set to Scheduled.
/SetUserOofSettingsRequest/UserOofSettings/Duration
/GetUserOofSettingsResponse/OofSettings/Duration
CalendarEvent
Represents a unique calendar item occurrence. This is used for Availability inquiries. The EndTime element is required in the
CalendarEvent element. The EndTime element in the CalendarEvent element is unique to the CalendarEvent type.
/GetUserAvailabilityResponse/FreeBusyResponseArray/FreeBusyResponse/FreeBusyView/CalendarEventArray/CalendarEvent[i]
Text value
A text value is required.
Remarks
The StartTime element represents the beginning of a time span.
7 Note
The schema that describes this element is located in the EWS virtual directory of the computer that is running
MicrosoftExchange Server 2007 that has the Client Access server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
Getting User Availability
EndTime (ReminderMessageDataType)
Article • 03/29/2023 • 2 minutes to read
The EndTime element represents the end of the time span to query for reminders.
XML
<EndTime/>
dateTime
Attributes
None.
Child elements
None.
Parent elements
ReminderMessageData
Text value
The text value of the EndTime element represents the end of the time span to query for
reminders.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
ReminderMessageData
The EndTimeInMinutes element represents the end of the working day for a mailbox user.
GetUserAvailabilityResponse
FreeBusyResponseArray
FreeBusyResponse
FreeBusyView
WorkingHours
WorkingPeriodArray
WorkingPeriod
EndTimeInMinutes
XML
<StartTimeInMinutes>...</StartTimeInMinutes>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
WorkingPeriod Contains the work week days and hours of the mailbox user.
The following is the XPath expression to this element:
/GetUserAvailabilityResponse/FreeBusyResponseArray/FreeBusyResponse/FreeBusyView/WorkingHours/WorkingPeriodArray/WorkingPeriod[i]
Text value
A text value is required. The text value represents the end of the working day by how many minutes have elapsed since the day
began. For example, an end time of 6 P.M. is represented by 1080 minutes.
Remarks
The schema that describes this element is located in the EWS virtual directory of the computer that is running MicrosoftExchange
Server 2007 that has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityResponse
The EndTimeZone element defines the time zone for the end time of a CalendarItem or
MeetingRequest.
XML
<Periods/>
<TransitionsGroups/>
<Transitions/>
</EndTimeZone>
TimeZoneDefinitionType
Attributes
Attribute Description
Child elements
Element Description
Periods
Represents an array of Period elements that define the time offset at different
stages of the time zone.
Transitions
Represents an array of time zone transitions.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
MeetingRequest
Represents a meeting request in the Exchange store.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server that has the Client Access server
role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
EndTimeZoneId
Article • 03/29/2023 • 2 minutes to read
The EndTimeZoneId element specifies the time zone in which a meeting takes place.
XML
<EndTimeZoneId></EndTimeZoneId>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Text value
The EndTimeZoneId element specifies the time zone identifier.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Item Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
EndWallClock
Article • 03/29/2023 • 2 minutes to read
The EndWallClock element specifies the end time of a meeting in the time zone of the
location in which the meeting takes place.
XML
<EndWallClock></EndWallClock>
dateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Text value
The text value of the EndWallClock element is a string value that specifies the time zone
identifier.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
EnhancedLocation
Article • 03/29/2023 • 2 minutes to read
XML
<EnhancedLocation>
<DisplayName/>
<Annotation/>
<PostalAddress/>
</EnhancedLocation>
EnhancedLocationType
Attributes
None.
Child elements
Element Description
DisplayName (string)
Defines the display name of a folder, contact, distribution list,
delegate user, location, or rule.
Annotation
Contains optional notes added by a user.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
Element Description
MeetingResponse
Represents a meeting response in the Exchange store.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
EntityExtractionResult
Article • 03/29/2023 • 2 minutes to read
XML
<EntityExtractionResult>
<Addresses/>
<MeetingSuggestions/>
<TaskSuggestions/>
<EmailAddresses/>
<Contacts/>
<Urls/>
<PhoneNumbers/>
</EntityExtractionResult>
EntityExtractionResultType
Attributes
None.
Child elements
Element Description
Addresses (ArrayOfAddressEntitiesType)
Specifies an array of AddressEntity elements.
MeetingSuggestions
Specifies an array of MeetingSuggestion
elements.
TaskSuggestions
Specifies an array of TaskSuggestion elements.
Contacts (ArrayOfContactsType)
Specifies an array of contacts.
Element Description
Urls (ArrayOfUrlEntitiesType)
Specifies an array of URLs.
PhoneNumbers (ArrayOfPhoneEntitiesType)
Specifies an array of phone numbers.
Parent elements
Element Description
Item
Represents a generic item in the Exchange store.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Type
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
Entry (EmailAddress)
Article • 03/29/2023 • 2 minutes to read
XML
EmailAddressDictionaryEntryType
Attributes
Attribute Description
Key
Identifies the e-mail address.
- EmailAddress1
- EmailAddress2
- EmailAddress3
Name
Defines the name of the mailbox user. This attribute is optional.
RoutingType Defines the routing that is used for the mailbox. The default is SMTP. This
attribute is optional.
MailboxType Defines the mailbox type of a mailbox user. This attribute is optional.
Child elements
None.
Parent elements
Element Description
EmailAddresses
Represents a collection of e-mail addresses for a contact.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Entry (IMAddress)
Article • 03/29/2023 • 2 minutes to read
The Entry element represents an instant messaging (IM) address for a contact.
XML
<Entry Key=""/>
ImAddressDictionaryEntryType
Attributes
Attribute Description
Key
Identifies the IM address.
- ImAddress1
- ImAddress2
- ImAddress3
Child elements
None.
Parent elements
Element Description
ImAddresses
Represents a collection of IM addresses for a contact.
Text value
A text value that represents the IM address is required if this element is used.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Creating Contacts (Exchange Web Services)
Updating Contacts
Deleting Contacts
Entry (PhoneNumber)
Article • 03/29/2023 • 2 minutes to read
XML
<Entry Key=""/>
PhoneNumberDictionaryEntryType
Attributes
Attribute Description
Key
Identifies the telephone number. The Key attribute is of type PhoneNumberKeyType.
- AssistantPhone
- BusinessFax
- BusinessPhone
- BusinessPhone2
- Callback
- CarPhone
- CompanyMainPhone
- HomeFax
- HomePhone
- HomePhone2
- Isdn
- MobilePhone
- OtherFax
- OtherTelephone
- Pager
- PrimaryPhone
- RadioPhone
- Telex
- TtyTddPhone
Child elements
None.
Parent elements
Element Description
PhoneNumbers
Represents a collection of telephone numbers for a contact.
Text value
A text value that represents a telephone number is required if this element is used.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Creating Contacts (Exchange Web Services)
Updating Contacts
Deleting Contacts
Entry (PhysicalAddress)
Article • 03/29/2023 • 2 minutes to read
The Entry element describes a single physical address for a contact item.
XML
<Entry Key="">
<Street/>
<City/>
<State/>
<Country/>
<PostalCode/>
</Entry>
PhysicalAddressDictionaryEntryType
Attributes
Attribute Description
Key
Identifies a physical address.
- Business
- Home
- Other
Child elements
Element Description
Street
Represents a street address for a contact item.
City
Represents the city name that is associated with a contact.
State
Represents the state of residence for a contact item.
CountryOrRegion
Represents the country or region for a given physical address.
Element Description
PostalCode
Represents the postal code for a contact item.
Parent elements
Element Description
PhysicalAddresses Contains a collection of physical addresses that are associated with a contact.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Creating Contacts (Exchange Web Services)
Updating Contacts
Deleting Contacts
Error
Article • 03/29/2023 • 2 minutes to read
The Error element represents a single validation error on a particular rule property value,
predicate property value, or action property value.
XML
<Error>
<FieldUri/>
<ErrorCode/>
<ErrorMessage/>
<FieldValue/>
</Error>
RuleValidationErrorType
Attributes
None.
Child elements
Element Description
FieldUri Specifies the URI to the rule field that caused the validation error.
(Rule)
ErrorCode
Represents a rule validation error code that describes what failed validation for
each rule predicate or action.
FieldValue
Represents the value of the field that caused the validation error.
Parent elements
Element Description
Element Description
ValidationErrors Represents an array of rule validation errors on each rule field that has an error.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
Errors
Article • 03/29/2023 • 2 minutes to read
The Errors element contains a property bag to store errors that are returned through
the Web service.
FindMessageTrackingReport
Errors
XML
<Errors>
<Properties/>
</Errors>
ArrayOfArraysOfTrackingPropertiesType
Attributes
None.
Child elements
Element Description
Properties (ArrayOfTrackingPropertiesType)
Contains a list of one or more tracking properties.
Parent elements
Element Description
GetMessageTrackingReportResponse
Contains the result of a single GetMessageTrackingReport
operation request.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
FindMessageTrackingReport operation
GetMessageTrackingReport operation
The ErrorCode element represents a rule validation error code that describes what failed
validation for each rule predicate or action.
XML
<ErrorCode/>
RuleValidationErrorCodeType
Attributes
None.
Child elements
None.
Parent elements
Element Description
Error
Represents a single validation error on a particular rule property value, predicate
property value, or action property value.
Text value
The text value for this element is restricted to one of the following strings:
ADOperationFailure
ConnectedAccountNotFound
CreateWithRuleId
EmptyValueFound
DuplicatedPriority
DuplicatedOperationOnTheSameRule
FolderDoesNotExist
InvalidAddress
InvalidDateRange
InvalidFolderId
InvalidSizeRange
InvalidValue
MessageClassificationNotFound
MissingAction
MissingParameter
MissingRangeValue
NotSettable
RecipientDoesNotExist
RuleNotFound
SizeLessThanZero
StringValueTooBig
UnsupportedAddress
UnexpectedError
UnsupportedRule
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
ErrorCode (int)
Article • 03/29/2023 • 2 minutes to read
The ErrorCode element specifies the error code of a failed search performed against a
mailbox.
XML
<ErrorCode></ErrorCode>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
FailedMailbox
Specifies the hold status of the mailbox.
Text value
The text value of the ErrorCode element is the error code returned for a failed search
performed against a mailbox.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
ErrorCode (ItemIndexErrorType)
Article • 03/29/2023 • 2 minutes to read
ItemIndexErrorType
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
The ErrorDescription element describes the error that is returned in information about
an item that cannot be indexed.
XML
<ErrorDescription></ErrorDescription>
string
Attributes
None.
Child elements
None.
Parent elements
NonIndexableItemDetail
Text value
The text value of the ErrorDescription element contains a description of an item level
error.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
ErrorMessage
Article • 03/29/2023 • 2 minutes to read
The ErrorMessage element represents the reason for the validation error.
XML
<ErrorMessage/>
String
Attributes
None.
Child elements
None.
Parent elements
Element Description
Error
Represents a single validation error on a particular rule property value, predicate
property value, or action property value.
Text value
The error message associated with the rule validation error.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
ErrorMessage
(NonIndexableItemStatisticType)
Article • 03/29/2023 • 2 minutes to read
The ErrorMessage element contains the error message that describes why an item is not
indexable.
XML
<ErrorMessage></ErrorMessage>
string
Attributes
None.
Child elements
None.
Parent elements
NonIndexableItemStatistic
Text value
The text value of the ErrorMessage element is an error message that describes why an
item is not indexable.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<ErrorSubscriptionIds>
<SubscriptionId/>
</ErrorSubscriptionIds>
NonEmptyArrayOfSubscriptionIdsType
Attributes
None.
Child elements
Element Description
SubscriptionId (GetEvents)
Represents the identifier for a subscription.
Parent elements
Element Description
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Name Value
Can be False
Empty
See also
GetStreamingEvents operation
The EventData element represents data that is associated with the processing step for
the event.
XML
<EventData>
<String/>
</EventData>
ArrayOfStringsType
Attributes
None.
Child elements
Element Description
String
Contains a string that identifies an event.
Parent elements
Element Description
RecipientTrackingEvent
Contains information for a single event for a recipient.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
EventDescription
Article • 03/29/2023 • 2 minutes to read
XML
<EventDescription/>
MessageTrackingEventDescriptionType
Attributes
None.
Child elements
None.
Parent elements
Element Description
RecipientTrackingEvent
Text value
The following table lists the possible values for the EventDescription element.
Value Description
Submitted
Resolved
Value Description
Expanded
Delivered
MovedToFolderByInboxRule
RulesCc
FailedGeneral
FailedModeration
FailedTransportRules
SmtpSend
SmtpSendCrossSite
SmtpSendCrossForest
SmtpReceive
Forwarded
Pending
PendingModeration
ApprovedModeration
QueueRetry
QueueRetryNoRetryTime
MessageDefer
TransferredToForeignOrg
TransferredToPartnerOrg
TransferredToLegacyExchangeServer
DelayedAfterTransferToPartnerOrg
Read
NotRead
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server that has the Client Access server
role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
EventType
Article • 03/29/2023 • 2 minutes to read
The EventType element is used to create a subscription and identifies an event type to
be reported in a notification.
XML
<EventType/>
NotificationEventTypeType
Attributes
None.
Child elements
None.
Parent elements
Element Description
EventTypes Contains a collection of event notification event types that are used to create a
subscription.
Text value
A text value is required. The following are the possible values:
CopiedEvent
CreatedEvent
DeletedEvent
ModifiedEvent
MovedEvent
NewMailEvent
FreeBusyChangedEvent
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Subscribe operation
GetEvents operation
Unsubscribe operation
EventTypes
Article • 03/29/2023 • 2 minutes to read
The EventTypes element contains a collection of event notification types that are used
to create a subscription.
XML
<EventTypes>
<EventType/>
</EventTypes>
NonEmptyArrayOfNotificationEventTypesType
Attributes
None.
Child elements
Element Description
EventType
Represents a requested event notification type that is used to create a subscription.
Parent elements
Element Description
PullSubscriptionRequest
Represents a subscription to a pull-based event notification
subscription.
PushSubscriptionRequest
Represents a subscription to a push-based event notification
subscription.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Type
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Subscribe operation
GetEvents operation
GetStreamingEvents operation
Unsubscribe operation
ExceptionFieldURI
Article • 03/29/2023 • 2 minutes to read
XML
ExceptionPropertyURIType
Attributes
Attribute Description
FieldURI
Identifies a property of an occurrence of a recurring item. This attribute is required.
FieldURI Attribute
Value Description
Parent elements
Element Description
MessageXml
Provides additional error response information.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Exceptions
Article • 03/29/2023 • 4 minutes to read
The Exceptions element identifies the exceptions that represent all the available rule
exception conditions for an Inbox rule.
XML
<Conditions>
<Categories/>
<ContainsBodyStrings/>
<ContainsHeaderStrings/>
<ContainsRecipientStrings/>
<ContainsSenderStrings/>
<ContainsSubjectOrBodyStrings/>
<ContainsSubjectStrings/>
<FlaggedForAction/>
<FromAddresses/>
<FromConnectedAccounts/>
<HasAttachments/>
<Importance/>
<IsApprovalRequest/>
<IsAutomaticForward/>
<IsAutomaticReply/>
<IsEncrypted/>
<IsMeetingRequest/>
<IsMeetingResponse/>
<IsNDR/>
<IsPermissionControlled/>
<IsReadReceipt/>
<IsSigned/>
<IsVoicemail/>
<ItemClasses/>
<MessageClassifications/>
<NotSentToMe/>
<SentCcMe/>
<SentOnlyToMe/>
<SentToAddresses/>
<SentToMe/>
<SentToOrCcMe/>
<Sensitivity/>
<WithinDateRange/>
<WithinSizeRange/>
</Conditions>
RulePredicatesType
Attributes
None.
Child elements
Element Description
Categories
Contains the categories that must be applied to an incoming
message in order for the condition or exception to apply.
ContainsBodyStrings
Indicates the strings that must appear in the body of incoming
messages in order for the condition or exception to apply.
ContainsHeaderStrings
Indicaqtes the strings that must appear in the headers of
incoming messages in order for the condition or exception to
apply.
ContainsRecipientStrings
Indicates the strings that must appear in either the ToRecipients
or CcRecipients properties of incoming messages in order for
the condition or exception to apply.
ContainsSenderStrings
Indicates the strings that must appear in the From property of
incoming messages in order for the condition or exception to
apply.
ContainsSubjectOrBodyStrings Indicates the strings that must appear in either the body or the
subject of incoming messages in order for the condition or
exception to apply.
ContainsSubjectStrings
Indicates the strings that must appear in the subject of incoming
messages in order for the condition or exception to apply.
FlaggedForAction
Specifies the flag for action value that must appear on incoming
messages in order for the condition or exception to apply.
FromAddresses
Indicates the e-mail addresses from which incoming messages
must be sent in order for the condition or exception to apply.
FromConnectedAccounts
Represents the e-mail account names from which incoming
messages have to have been aggregated in order for the
condition or exception to apply.
HasAttachments
Indicates whether incoming messages have to have attachments
in order for the condition or exception to apply.
Element Description
Importance
Specifies the importance that is stamped on incoming messages
in order for the condition or exception to apply.
IsApprovalRequest
Indicates whether incoming messages must be approval
requests in order for the condition or exception to apply.
IsAutomaticForward
Indicates whether incoming messages must be automatic
forwards in order for the condition or exception to apply.
IsAutomaticReply
Indicates whether incoming messages must be automatic replies
in order for the condition or exception to apply.
IsEncrypted
Indicates whether incoming messages must be S/MIME
encrypted in order for the condition or exception to apply.
IsMeetingRequest
Indicates whether incoming messages must be meeting requests
in order for the condition or exception to apply.
IsMeetingResponse
Indicates whether incoming messages must be meeting
responses in order for the condition or exception to apply.
IsNDR
Indicates whether incoming messages must be non-delivery
reports (NDRs) in order for the condition or exception to apply.
IsPermissionControlled
Indicates whether incoming messages must be permission
controlled (RMS protected) in order for the condition or
exception to apply
IsReadReceipt
Indicates whether incoming messages must be read receipts in
order for the condition or exception to apply.
IsSigned
Indicates whether incoming messages must be S/MIME signed in
order for the condition or exception to apply.
IsVoicemail
Indicates whether incoming messages must be voice mail
messages in order for the condition or exception to apply.
MessageClassifications
Represents the message classifications that must be stamped on
incoming messages in order for the condition or exception to
apply.
NotSentToMe
Indicates whether the owner of the mailbox must not be in the
ToRecipients property of the incoming messages in order for the
condition or exception to apply.
Element Description
SentCcMe
Indicates whether the owner of the mailbox has to be in the
CcRecipients property of incoming messages in order for the
condition or exception to apply.
SentOnlyToMe
Indicates whether the owner of the mailbox has to be the only
one in the ToRecipients property of incoming messages in order
for the condition or exception to apply.
SentToAddresses
Indicates the e-mail addresses that incoming messages have to
have been sent to in order for the condition or exception to
apply.
SentToMe
Indicates whether the owner of the mailbox has to be in the
ToRecipients property of incoming messages in order for the
condition or exception to apply.
SentToOrCcMe
Indicates whether the owner of the mailbox has to be in either a
ToRecipients or CcRecipients property of incoming messages in
order for the condition or exception to apply.
Sensitivity
Indicates the sensitivity that must be stamped on incoming
messages in order for the condition or exception to apply.
WithinDateRange
Specifies the date range within which incoming messages have
to have been received in order for the condition or exception to
apply.
WithinSizeRange
Specifies the minimum and maximum sizes that incoming
messages must be in order for the condition or exception to
apply.
Parent elements
Element Description
Rule (RuleType)
Contains a single rule and represents a rule in a user's mailbox.
Text value
None.
Remarks
The rule predicates are used as rule conditions or exceptions.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Conditions
ExchangeImpersonation
XML
<ExchangeImpersonation>
<ConnectingSID/>
</ExchangeImpersonation>
ExchangeImpersonationType
Attributes
None.
Child elements
Element Description
Parent elements
None.
Remarks
The calling account must have the ms-exch-impersonation right on the Client Access
server and the ms-exch-MayImpersonate right on either the mailbox database that
contains the mailbox to impersonate or the Active Directory User/Contact object.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Server-to-server authorization in EWS
ExchangeStoreId
Article • 03/29/2023 • 2 minutes to read
The ExchangeStoreId element specifies the instant messaging (IM) group identifier.
XML
ItemIdType
Attributes
Attribute Description
ChangeKey The text value of the ChangeKey attribute is the change key of the group.
Child elements
None.
Parent elements
Element Description
ImGroup
Represents an instant messaging group.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
ExcludeConflicts
Article • 03/29/2023 • 2 minutes to read
The ExcludeConflicts element specifies whether to return suggested times for calendar
times that conflict among the attendees.
GetUserAvailabilityRequest
MailboxDataArray
MailboxData
ExcludeConflicts
XML
<ExcludeConflicts>true or false</ExcludeConflicts>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
MailboxData Represents an individual mailbox user and options for the type of data to be
returned about the mailbox user.
The following is the XPath to this element:
/GetUserAvailabilityRequest/MailboxDataArray/MailboxData
Text value
A text value is required. The possible values are a Boolean true or false.
Remarks
This element is required.
7 Note
The schema that describes this element is located in the /EWS/ directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityRequest
The Excludes element performs a bitwise mask of the specified property and a supplied
value.
XML
<Excludes>
<FieldURI/>
<Bitmask/>
</Excludes>
XML
<Excludes>
<ExtendedFieldURI/>
<Bitmask/>
</Excludes>
XML
<Excludes>
<IndexedFieldURI/>
<Bitmask/>
</Excludes>
ExcludesType
Attributes
None.
Child elements
Element Description
FieldURI
Identifies frequently referenced properties by URI.
Element Description
IndexedFieldURI
Identifies individual members of a dictionary.
Bitmask
Represents a hexadecimal or decimal mask to be used during an Excludes
restriction operation. If the bitmask represents a hexadecimal number, it must
be prefixed by 0x or 0X. Otherwise, it will be considered a decimal number.
Parent elements
Element Description
Restriction Represents the restriction or query that is used to filter items or folders in
FindItem/FindFolder and search folder operations.
Not
Represents a search expression that negates the Boolean value of the search
expression that it contains.
And
Represents a search expression that allows you to perform a Boolean And operation
between two or more search expressions. The result of the And operation is true if all
of the search expressions contained within the And are true.
Or
Represents a search expression that performs a logical OR on the search expression
it contains. The Or element will return true if any of its children return true.
Remarks
Excludes will resolve to true if an AND operation performed on the following resolves to
0:
Excludes can only be applied to a property that has an integer value. If the property
type is anything other than an integer, an error code of
ErrorUnsupportedPathForQuery is returned in the response.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ExecutedSearchScope
Article • 03/29/2023 • 2 minutes to read
The ExecutedSearchScope element contains the scope of the search that was performed
to get the search results.
XML
<ExecutedSearchScope/>
String
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
The text value is optional. This information is used by the client application to cache the
results more effectively.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
FindMessageTrackingReport operation
The Exists element represents a search expression that returns true if the supplied
property exists on an item.
XML
<Exists>
<Path/>
</Exists>
ExistsType
Attributes
None.
Child elements
Element Description
FieldURI
Identifies frequently referenced properties by URI.
IndexedFieldURI
Identifies individual members of a dictionary.
ExtendedFieldURI
Identifies MAPI properties.
Parent elements
Element Description
Restriction Represents the restriction or query that is used to filter items or folders in
FindItem/FindFolder and search folder operations.
Not
Represents a search expression that negates the Boolean value of the search
expression that it contains.
Element Description
And
Represents a search expression that enables you to perform a Boolean And
operation between two or more search expressions. The result of the And operation
is true if all the search expressions contained within the And are true.
Or
Represents a search expression that performs a logical OR on the search expression
that it contains. Or will return true if any of its children return true.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ExpandDL
Article • 03/29/2023 • 2 minutes to read
XML
<ExpandDL>
<Mailbox/>
</ExpandDL>
ExpandDLType
Attributes
None
Child elements
Element Description
Mailbox Identifies a fully resolved e-mail address or a distribution list. This mailbox represents
the distribution list to expand.
Parent elements
None.
Remarks
A distribution list expansion will only be performed for a single distribution list. A
distribution list expansion is not recursive.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
ExpandDL operation
ExpandDLResponse
Article • 03/29/2023 • 2 minutes to read
ExpandDLResponse
XML
<ExpandDLResponse>
<ResponseMessages/>
</ExpandDLResponse>
ExpandDLResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
ExpandDL
ExpandDL operation
ExpandDLResponseMessage
Article • 03/29/2023 • 2 minutes to read
ExpandDLResponse
ResponseMessages
ExpandDLResponseMessage
XML
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<DLExpansion/>
</ExpandDLResponseMessage>
ExpandDLResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of an ExpandDL operation response.
- Success
- Warning
- Error
IndexedPagingOffset
Represents the next index that should be used for the next request
when an indexed paging view is used.
Attribute Description
NumeratorOffset
Represents the new numerator value to use for the next request
when fraction page views are used.
AbsoluteDenominator
Represents the next denominator to use for the next request when
doing fractional paging.
IncludesLastItemInRange Indicates that additional paging is not needed. This attribute will be
true if the current results contain the last item in the query.
TotalItemsInView
Represents the total number of items that pass the restriction.
Value Description
Success
Describes a request that is fulfilled.
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and is reserved for future use. It contains a value of 0.
MessageXml
Provides additional error response information.
DLExpansion
Contains an array of mailboxes that are contained in a distribution list.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Exchange Server with the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
ExpandDL operation
EWS reference for Exchange
EWS XML elements in Exchange
ExpandGroupMembership
Article • 03/29/2023 • 2 minutes to read
XML
<ExpandGroupMembership>true | false</ExpandGroupMembership>
Boolean
Attributes
None.
Child elements
None.
Parent elements
GetDiscoverySearchConfiguration | GetSearchableMailboxes
Text value
A text value of true for the ExpandGroupElement element indicates that group
membership is expanded. A value of false indicates that the group membership is not
expanded to show the members of the group.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<ExportAllowed>true | false</ExportAllowed>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
RightsManagementLicenseData
Specifies information about the rights management license.
Text value
A text value of true for the ExportAllowed element indicates that exporting is allowed. A
value of false indicates that exporting is not allowed.
Remarks
This element is optional.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
ExportItems
Article • 03/29/2023 • 2 minutes to read
ExportItems
XML
<ExportItems>
<ItemIds/>
</ExportItems>
ExportItemsType
Attributes
None.
Child elements
Element Description
Parent elements
None.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
ExportItems operation
UploadItems operation
ExportItemsResponse
Article • 03/29/2023 • 2 minutes to read
ExportItemsResponse
XML
<ExportItemsResponse>
<ResponseMessages/>
</ExportItemsResponse>
ExportItemsResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Parent elements
None.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
ExportItems operation
UploadItems operation
ExportItemsResponseMessage
Article • 03/29/2023 • 2 minutes to read
ExportItemsResponse
ResponseMessages
ExportItemsResponseMessage
XML
<ExportItemsResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<ItemId/>
<Data/>
</ExportItemsResponseMessage>
ExportItemsResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of the response.
- Success
- Warning
- Error
Value Description
Value Description
Success
Describes a request that is fulfilled.
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and reserved for future use. This element contains a value
of 0.
MessageXml
Provides additional error response information.
ItemId
Contains the item identifier of an exported item.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Type
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
ExportItems operation
UploadItems operation
ExtendedAttribute
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
ExtendedAttributes
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
ExtendedFieldURI
Article • 03/29/2023 • 7 minutes to read
XML
PathToExtendedFieldType
Attributes
Attribute Description
DistinguishedPropertySetId Defines the well-known property set IDs for extended MAPI
properties.
PropertySetId
Identifies a MAPI extended property set or namespace by its
identifying GUID.
PropertyTag
Identifies the property tag without the type part of the tag. The
PropertyTag can be represented as either a hexadecimal or a short
integer.
NOTE: You cannot use a property tag attribute for properties within
the custom range 0x8000-0xFFFE. You must use a named property
in this case.
PropertyName
Identifies an extended property by its name. This property must be
coupled with either DistinguishedPropertySetId or PropertySetId.
PropertyId
Identifies an extended property by its dispatch ID. The dispatch ID
can be identified in either decimal or hexadecimal formats. This
property must be coupled with either DistinguishedPropertySetId
or PropertySetId.
PropertyType
Represents the property type of a property tag. This corresponds
to the least significant word in a property tag.
DistinguishedPropertySetId Attribute
Value Description
Sharing
PropertyType Attribute
Value Description
ApplicationTime A double value that is interpreted as a date and time. The integer part is
the date and the fraction part is the time.
ApplicationTimeArray An array of double values that are interpreted as a date and time.
CurrencyArray An array of 64-bit integers that are interpreted as the number of cents.
SystemTime A 64-bit integer data and time value in the form of a FILETIME structure.
SystemTimeArray An array of 64-bit integer data and time values in the form of a FILETIME
structure.
Child elements
None.
Parent elements
Element Description
ExtendedProperty
Identifies extended properties on folders and items.
AdditionalProperties
Identifies additional properties.
/FindFolder/FolderShape/AdditionalProperties
/GetFolder/FolderShape/AdditionalProperties
/SyncFolderHierarchy/FolderShape/AdditionalProperties
/GetItem/ItemShape/AdditionalProperties
/FindItem/ItemShape/AdditionalProperties
/SyncFolderItems/ItemShape/AdditionalProperties
/GetAttachment/AttachmentShape/AdditionalProperties
SetItemField
Represents an update to a single property of an item in an UpdateItem
operation.
SetFolderField
Represents an update to a single property on a folder in an
UpdateFolder operation.
DeleteItemField
Represents a delete operation for deleting a given property from an
item during an UpdateItem operation.
DeleteFolderField
Represents a delete operation for deleting a given property from a
folder during an UpdateFolder call.
AppendToFolderField
Specifies data to append to a folder property during an UpdateFolder
operation.
Exists
Represents a search expression that returns true if the supplied
property exists on an item.
Element Description
FieldURIOrConstant
Represents either a property or a constant value to be used when
comparing with another property.
IsEqualTo
Represents a search expression that compares a property with either a
constant value or another property and evaluates to true if they are
equal.
IsGreaterThan
Represents a search expression that compares a property with either a
constant value or another property and returns true if the first property
is greater.
IsLessThan
Represents a search expression that compares a property with either a
constant value or another property and returns true if the first property
is less than the second.
IsLessThanOrEqualTo
Represents a search expression that compares a property with either a
constant value or another property and returns true if the first property
is less than the second.
IsNotEqualTo
Represents a search expression that compares a property with either a
constant value or another property and returns true if the values are
not the same.
Excludes
Performs a bitwise mask of the properties.
Contains
Represents a search expression that determines whether a given
property contains the supplied constant string value.
FieldOrder
Represents a single field by which to sort results and indicates the
direction for the sort.
Remarks
Some attributes cannot be used in combination with other attributes. Any request that
comes in with an invalid combination of extended property attributes will generate an
error message.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
7 Note
In Microsoft .NET, a Long is a 64-bit signed integer, while in MAPI and COM, a Long
is a 32-bit integer. Most developers will use the Microsoft.NET Framework to
develop Exchange Web Services client applications. Therefore, the .NET naming is
used instead of the MAPI naming.
Example
The following example of a request creates an item that has two custom properties. The
first custom property is named IsMyHouse with a Boolean value set to true. The second
custom extended property is named HousePrices. It contains an array of Currency
values.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<CreateItem
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
MessageDisposition="SaveOnly">
<SavedItemFolderId>
<t:DistinguishedFolderId Id="inbox"/>
</SavedItemFolderId>
<Items>
<t:Item>
<t:ItemClass>IPM.Note</t:ItemClass>
<t:ExtendedProperty>
<t:ExtendedFieldURI DistinguishedPropertySetId="PublicStrings"
PropertyName="IsMyHouse"
PropertyType="Boolean"/>
<t:Value>true</t:Value>
</t:ExtendedProperty>
<t:ExtendedProperty>
<t:ExtendedFieldURI DistinguishedPropertySetId="PublicStrings"
PropertyName="HousePrices"
PropertyType="CurrencyArray"/>
<t:Values>
<t:Value>30000000</t:Value>
<t:Value>40000000</t:Value>
<t:Value>50000000</t:Value>
</t:Values>
</t:ExtendedProperty>
</t:Item>
</Items>
</CreateItem>
</soap:Body>
</soap:Envelope>
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
FieldURI
IndexedFieldURI
EWS XML elements in Exchange
ExtendedProperties
(ArrayOfExtendedPropertyAttributedVal
ueType)
Article • 03/29/2023 • 2 minutes to read
The ExtendedProperties element contains the extended properties used for a persona.
XML
<ExtendedProperties>
<ExtendedPropertyAttributedValue/>
</ExtendedProperties>
ArrayOfExtendedPropertyAttributedValueType
Attributes
None.
Child elements
ExtendedPropertyAttributedValue
Parent elements
Persona
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
ExtendedProperties
(NonEmptyArrayOfExtendedFieldURIs)
Article • 03/29/2023 • 2 minutes to read
The ExtendedProperties element contains the extended properties used for the Unified
Contact Store operations.
XML
<ExtendedProperties>
<ExtendedProperty/>
</ExtendedProperties>
NonEmptyArrayOfExtendedFieldURIs
Attributes
None.
Child elements
ExtendedProperty (PathToExtendedFieldType)
Parent elements
GetImItems | GetImItemList
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
ExtendedProperties
(NonEmptyArrayOfExtendedPropertyTy
pe)
Article • 03/29/2023 • 2 minutes to read
XML
<ExtendedProperties>
<ExtendedProperty/>
</ExtendedProperties>
NonEmptyArrayOfExtendedPropertyType
Attributes
None.
Child elements
Element Description
ExtendedProperty
Identifies extended MAPI properties on folders and items.
Parent elements
Element Description
ImGroup
Represents an instant messaging group.
SearchPreviewItem Specifies the first 256 characters of a mailbox item for preview without
opening the item.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
ExtendedProperty
Article • 03/29/2023 • 2 minutes to read
XML
<ExtendedProperty>
<ExtendedFieldURI/>
<Values/>
</ExtendedProperty>
XML
<ExtendedProperty>
<ExtendedFieldURI/>
<Value/>
</ExtendedProperty>
ExtendedPropertyType
Attributes
None.
Child elements
Element Description
ExtendedFieldURI
Identifies an extended MAPI property to get, set, or create.
Values
Contains a collection of values for a multivalued extended MAPI property.
Value
Contains the value of single-valued MAPI extended property.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
Contact
Represents an Exchange contact item.
DistributionList
Represents a distribution list.
Item
Represents an item in the Exchange store.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Message
Represents an Exchange e-mail message.
RemoveItem
Removes an item from the Exchange store.
Task
Represents a task in the Exchange store.
CalendarFolder
Represents a folder that primarily contains calendar items.
ContactsFolder
Represents a contacts folder in a mailbox.
Folder
Represents a folder to create, get, find, synchronize, or update.
SearchFolder
Represents a search folder that is contained in a mailbox.
TasksFolder
Represents a tasks folder that is contained in a mailbox.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ExtendedProperty
(PathToExtendedFieldType)
Article • 03/29/2023 • 2 minutes to read
The ExtendedProperty element specifies an extended property for the Unified Contact
Store.
XML
</ExtendedProperty>
PathToExtendedFieldType
Attributes
Attribute Description
PropertySetId Indicates the GUID property set identifier. This attribute is optional.
- Hexadecimal: 0x3fa4
- Decimal: 0-65535
PropertyName String that indicates the property name. This attribute is optional.
FieldURI Indicates the field Uniform Resource Identifier (URI). This attribute is
required. For possible values, see the FieldURI element.
DistinguishedPropertySetId
Value Description
PropertyType
Value Description
Child elements
None.
Parent elements
Element Description
Element Description
ExtendedFieldURI
Identifies an extended MAPI property.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
ExtendedPropertyAttributedValue
Article • 03/29/2023 • 2 minutes to read
XML
<ExtendedPropertyAttributedValue>
<Value/>
<Attributions/>
</ExtendedPropertyAttributedValue>
ExtendedPropertyAttributedValueType
Attributes
None.
Child elements
Element Description
Value (ExtendedPropertyType)
Specifies an array of extended properties for a persona.
Parent elements
Element Description
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Type
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
ExternalAudience
Article • 03/29/2023 • 2 minutes to read
XML
ExternalAudience
Attributes
None.
Child elements
None.
Parent elements
Element Description
UserOofSettings
Specifies the OOF settings.
The following is the XPath expression to this element:
/SetUserOofSettingsRequest/UserOofSettings
OofSettings
Contains the OOF settings.
The following is the XPath expression to this element:
/GetUserOofSettingsResponse/OofSettings
Text value
A text value is required for this element. The following table lists the possible values for
this element.
Value Description
None
E-mail senders outside the mailbox user's organization who send messages to the user
will not receive an external OOF message response.
Known E-mail senders outside the mailbox user's organization who send messages to the user
will only receive an external OOF message response if the sender is in the user's
Exchange store contact list.
All
E-mail senders outside the mailbox user's organization who send messages to the user
will receive an external OOF message response.
Remarks
This element shares the same type as the AllowExternalOof element.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Example
The following example of a SetUserOofSettings request sets the OoFState to Enabled,
sets the external audience to All, sets the duration of OOF to 10 days, and sets the
internal and external OOF messages.
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<SetUserOofSettingsRequest
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<Mailbox
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Name>David Alexander</Name>
<Address>[email protected]</Address>
<RoutingType>SMTP</RoutingType>
</Mailbox>
<UserOofSettings
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<OofState>Enabled</OofState>
<ExternalAudience>All</ExternalAudience>
<Duration>
<StartTime>2005-10-05T00:00:00</StartTime>
<EndTime>2005-10-25T00:00:00</EndTime>
</Duration>
<InternalReply>
</InternalReply>
<ExternalReply>
</ExternalReply>
</UserOofSettings>
</SetUserOofSettingsRequest>
</soap:Body>
</soap:Envelope>
Element information
Element Type
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserOofSettings operation
SetUserOofSettings operation
ExternalDirectoryObjectId
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
ExternalDirectoryObjectId
(GetFederatedDirectoryUserType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
ExternalDirectoryObjectId
(FederatedDirectoryGroupType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
ExternalDirectoryObjectId
(FederatedDirectoryIdentityDetailsType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
ExternalEmailAddress
Article • 03/29/2023 • 2 minutes to read
The ExternalEmailAddress element contains the external email address of the mailbox.
XML
<ExternalEmailAddress></ExternalEmailAddress>
string
Attributes
None.
Child elements
None.
Parent elements
SearchableMailbox
Text value
The text value of the ExternalEmailAddress element is the external email address of the
mailbox.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
ExternalMemberCount
Article • 03/29/2023 • 2 minutes to read
XML
<ExternalMemberCount/>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
MailTips
Represents values for various types of mail tips.
Text value
The text value is an integer that represents the number of external members in a group.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ExternalReply
Article • 03/29/2023 • 2 minutes to read
The ExternalReply element contains the out of office (OOF) response that is sent to
addresses outside the recipient's domain or trusted domains.
XML
<ExternalReply>
<Message/>
</ExternalReply>
ReplyBody
Attributes
Attribute Description
xml:lang Specifies the language used in the ExternalReply message. The possible values for this
attribute are defined by IETF RFC 3066.
Child elements
Element Description
Message (Availability)
Contains the OOF response.
Parent elements
Element Description
UserOofSettings
Specifies the OOF settings.
The following is the XPath expression to this element:
/SetUserOofSettingsRequest/UserOofSettings
Element Description
OofSettings
Contains the OOF settings.
The following is the XPath expression to this element:
/GetUserOofSettingsResponse/OofSettings
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Example
The following example of a SetUserOofSettings request sets the OofState to Enabled,
sets the duration of OOF to 10 days, and sets the internal and external OOF messages.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<SetUserOofSettingsRequest
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<Mailbox
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Name>David Alexander</Name>
<Address>[email protected]</Address>
<RoutingType>SMTP</RoutingType>
</Mailbox>
<UserOofSettings
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<OofState>Enabled</OofState>
<ExternalAudience>All</ExternalAudience>
<Duration>
<StartTime>2005-10-05T00:00:00</StartTime>
<EndTime>2005-10-25T00:00:00</EndTime>
</Duration>
<InternalReply>
</InternalReply>
<ExternalReply>
</ExternalReply>
</UserOofSettings>
</SetUserOofSettingsRequest>
</soap:Body>
</soap:Envelope>
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
SetUserOofSettings operation
ExternalUserIdentity
Article • 03/29/2023 • 2 minutes to read
XML
<ExternalUserIdentity/>
String
Attributes
None.
Child elements
None.
Parent elements
Element Description
UserId
Identifies a delegate user or a user who has folder access permissions.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ExtractAllowed
Article • 03/29/2023 • 2 minutes to read
XML
<ExtractAllowed>true | false</ExtractAllowed
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
RightsManagementLicenseData
Specifies information about the rights management license.
Text value
A text value of true for the ExtractAllowed element indicates that entity extraction is
enabled. A value of false indicates that entity extraction is not enabled.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
FailedMailbox
Article • 03/29/2023 • 2 minutes to read
The FailedMailbox element specifies the error message for a mailbox that failed on
search.
XML
<FailedMailbox>
<Mailbox/>
<ErrorCode/>
<ErrorMessage/>
<IsArchive/>
</FailedMailbox>
FailedSearchMailboxType
Attributes
None.
Child elements
Element Description
Mailbox (string)
Contains an identifier for the mailbox.
ErrorCode (int)
Specifies the error code of the mailbox that failed the search.
ErrorMessage
Represents the reason for the validation error.
IsArchive
Specifies a Boolean value that indicates whether the mailbox is an archive.
Parent elements
Element Description
FailedMailboxes
Specifies an array of failed mailboxes.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
FailedMailboxes
Article • 03/29/2023 • 2 minutes to read
XML
<FailedMailboxes>
<FailedMailbox/>
<FailedMailboxes>
ArrayOfFailedSearchMailboxesType
Attributes
None.
Child elements
Element Description
FailedMailbox
Specifies the error message for a mailbox that failed on search.
Parent elements
Element Description
SearchMailboxesResult
Contains the result of the SearchMailboxes request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
FederatedDeliveryMailbox
Article • 03/29/2023 • 2 minutes to read
XML
<FederatedDeliveryMailbox>
<Name/>
<EmailAddress/>
<RoutingType/>
<MailboxType/>
<ItemId/>
</FederatedDeliveryMailbox>
EmailAddressType
Attributes
None.
Child elements
Element Description
Name Defines the name of the mailbox user. This element is optional.
(EmailAddressType)
EmailAddress Defines the Simple Mail Transfer Protocol (SMTP) address of a mailbox
(NonEmptyStringType) user. This element is optional.
RoutingType Defines the routing that is used for the mailbox. The default is SMTP.
(EmailAddress)
This element is optional.
MailboxType
Defines the mailbox type of a mailbox user. This element is optional.
ItemId
Defines the item identifier of a contact or private distribution list for
recipients from a user's Contacts folder. This element is optional.
Parent elements
Element Description
FindMessageTrackingReport
Contains criteria for the types of messages to find.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
FieldOrder
Article • 03/29/2023 • 2 minutes to read
The FieldOrder element represents a single field by which to sort results and indicates
the direction for the sort.
XML
<FieldOrder Order="">
<FieldURI/>
</FieldOrder>
XML
<FieldOrder Order="">
<ExtendedFieldURI/>
</FieldOrder>
XML
<FieldOrder Order="">
<IndexedFieldURI/>
</FieldOrder>
FieldOrderType
Attributes
Attribute Description
Order
Describes the sort order direction.
- Ascending
- Descending
Child elements
Element Description
FieldURI
Identifies frequently referenced properties by URI.
IndexedFieldURI
Identifies individual members of a dictionary.
ExtendedFieldURI
Identifies MAPI properties.
Parent elements
Element Description
SortOrder
Defines how items are sorted in a FindItem request.
The following is the XPath expression to this element: /FindItem/SortOrder
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
FieldURI
Article • 03/29/2023 • 11 minutes to read
XML
PathToUnindexedFieldType
Attributes
Attribute Description
FieldURI
Identifies the URI of the property.
FieldURI Attribute
Value Description
Child elements
None.
Parent elements
Element Description
AdditionalProperties
Identifies additional properties to get, set, or create.
The following are the XPath expressions to this element:
/FindFolder/FolderShape/AdditionalProperties
/GetFolder/FolderShape/AdditionalProperties
/SyncFolderHierarchy/FolderShape/AdditionalProperties
/GetItem/ItemShape/AdditionalProperties
/FindItem/ItemShape/AdditionalProperties
/SyncFolderItems/ItemShape/AdditionalProperties
/GetAttachment/AttachmentShape/AdditionalProperties
AggregateOn
Represents the property that is used to determine the order of
grouped items for a grouped FindItem result set.
GroupBy
Specifies an arbitrary grouping for FindItem queries.
SetItemField
Represents an update to a single property of an item in an UpdateItem
operation.
SetFolderField
Represents an update to a single property on a folder in an
UpdateFolder operation.
DeleteItemField
Represents a delete operation for deleting a given property from an
item during an UpdateItem call.
DeleteFolderField
Represents a delete operation for deleting a given property from a
folder during an UpdateFolder call.
AppendToFolderField
Specifies data to append to a folder property during an UpdateFolder
operation.
Exists
Represents a search expression that returns true if the supplied
property exists on an item.
FieldURIOrConstant
Represents either a property or a constant value to be used when
comparing with another property.
IsEqualTo
Represents a search expression that compares a property with either a
constant value or another property and evaluates to true if they are
equal.
IsGreaterThan
Represents a search expression that compares a property with either a
constant value or another property and returns true if the first property
is greater.
Element Description
IsLessThan
Represents a search expression that compares a property with either a
constant value or another property and returns true if the first property
is less than the second.
IsLessThanOrEqualTo
Represents a search expression that compares a property with either a
constant value or another property and returns true if the first property
is less than the second.
IsNotEqualTo
Represents a search expression that compares a property with either a
constant value or another property and returns true if the values are
not the same.
Excludes
Performs a bitwise mask of the properties.
Contains
Represents a search expression that determines whether a given
property contains the supplied constant string value.
FieldOrder
Represents a single field by which to sort results and indicates the
direction for the sort.
Text value
None.
Remarks
This element is part of the Path substitution group.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Example
The following example shows how to use the FieldURI element.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<GetItem
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
<t:FieldURI FieldURI="item:Subject"/>
</t:AdditionalProperties>
</ItemShape>
<ItemIds>
<t:ItemId Id="ASkAS="/>
</ItemIds>
</GetItem>
</soap:Body>
</soap:Envelope>
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
FieldUri (Rule)
Article • 03/29/2023 • 2 minutes to read
The FieldURI element specifies the URI to the rule field that caused the validation error.
XML
<FieldURI/>
RuleFieldURIType
Attributes
None.
Child elements
None.
Parent elements
Element Description
Error
Represents a single validation error on a particular rule property value, predicate
property value, or action property value.
Text value
The text value for this element is restricted to one of the following strings:
RuleId
DisplayName
Priority
IsNotSupported
Actions
Condition:Categories
Condition:ContainsBodyStrings
Condition:ContainsHeaderStrings
Condition:ContainsRecipientStrings
Condition:ContainsSenderStrings
Condition:ContainsSubjectOrBodyStrings
Condition:ContainsSubjectStrings
Condition:FlaggedForAction
Condition:FromAddresses
Condition:FromConnectedAccounts
Condition:HasAttachments
Condition:Importance
Condition:IsApprovalRequest
Condition:IsAutomaticForward
Condition:IsAutomaticReply
Condition:IsEncrypted
Condition:IsMeetingRequest
Condition:IsMeetingResponse
Condition:IsNDR
Condition:IsPermissionControlled
Condition:IsReadReceipt
Condition:IsSigned
Condition:IsVoicemail
Condition:ItemClasses
Condition:MessageClassifications
Condition:NotSentToMe
Condition:SentCcMe
Condition:SentOnlyToMe
Condition:SentToAddresses
Condition:SentToMe
Condition:SentToOrCcMe
Condition:Sensitivity
Condition:WithinDateRange
Condition:WithinSizeRange
Exception:Categories
Exception:ContainsBodyStrings
Exception:ContainsHeaderStrings
Exception:ContainsRecipientStrings
Exception:ContainsSenderStrings
Exception:ContainsSubjectOrBodyStrings
Exception:ContainsSubjectStrings
Exception:FlaggedForAction
Exception:FromAddresses
Exception:FromConnectedAccounts
Exception:HasAttachments
Exception:Importance
Exception:IsApprovalRequest
Exception:IsAutomaticForward
Exception:IsAutomaticReply
Exception:IsEncrypted
Exception:IsMeetingRequest
Exception:IsMeetingResponse
Exception:IsNDR
Exception:IsPermissionControlled
Exception:IsReadReceipt
Exception:IsSigned
Exception:IsVoicemail
Exception:ItemClasses
Exception:MessageClassifications
Exception:NotSentToMe
Exception:SentCcMe
Exception:SentOnlyToMe
Exception:SentToAddresses
Exception:SentToMe
Exception:SentToOrCcMe
Exception:Sensitivity
Exception:WithinDateRange
Exception:WithinSizeRange
Action:AssignCategories
Action:CopyToFolder
Action:Delete
Action:ForwardAsAttachmentToRecipients
Action:ForwardToRecipients
Action:MarkImportance
Action:MarkAsRead
Action:MoveToFolder
Action:PermanentDelete
Action:RedirectToRecipients
Action:SendSMSAlertToRecipients
Action:ServerReplyWithMessage
Action:StopProcessingRules
IsEnabled
IsInError
Conditions
Exceptions
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
FieldURIOrConstant
Article • 03/29/2023 • 2 minutes to read
XML
<FieldURIOrConstant>
<Constant/>
</FieldURIOrConstant>
XML
<FieldURIOrConstant>
<IndexedFieldURI/>
</FieldURIOrConstant>
XML
<FieldURIOrConstant>
<FieldURI/>
</FieldURIOrConstant>
XML
<FieldURIOrConstant>
<ExtendedFieldURI/>
</FieldURIOrConstant>
FieldURIOrConstantType
Attributes
None.
Child elements
Element Description
Constant
Identifies a constant value in a restriction.
FieldURI
Identifies frequently referenced properties by URI.
IndexedFieldURI
Identifies individual members of a dictionary.
ExtendedFieldURI
Identifies MAPI properties.
Parent elements
Element Description
IsEqualTo
Represents a search expression that compares a property with either a
constant value or another property and evaluates to true if they are
equal.
IsGreaterThan
Represents a search expression that compares a property with either a
constant value or another property and returns true if the first property
is greater.
IsLessThan
Represents a search expression that compares a property with either a
constant value or another property and returns true if the first property
is less than the second value or property.
IsLessThanOrEqualTo
Represents a search expression that compares a property with either a
constant value or another property and returns true if the first property
is less than or equal to the second value or property.
IsNotEqualTo
Represents a search expression that compares a property with either a
constant value or another property and returns true if the values are
not the same.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Example
The following XML example shows the FieldURIOrConstant element used with both a
constant and field URI.
XML
<Restriction>
<Or xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<IsEqualTo>
<FieldURI FieldURI="item:DateTimeCreated"/>
<FieldURIOrConstant>
<FieldURI FieldURI="item:DateTimeReceived"/>
</FieldURIOrConstant>
</IsEqualTo>
<IsEqualTo>
<FieldURI FieldURI="item:Subject"/>
<FieldURIOrConstant>
</FieldURIOrConstant>
</IsEqualTo>
</Or>
</Restriction>
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
FieldValue
Article • 03/29/2023 • 2 minutes to read
The FieldValue element represents the value of the field that caused the validation error.
XML
<FieldValue/>
String
Attributes
None.
Child elements
None.
Parent elements
Element Description
Error
Represents a single validation error on a particular rule property value, predicate
property value, or action property value.
Text value
None
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
FileAs
Article • 03/29/2023 • 2 minutes to read
The FileAs element represents how a contact or distribution list is filed in the Contacts
folder.
XML
<FileAs/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
DistributionList
Represents a distribution list.
Contact
Represents an Exchange contact item.
Text value
A text value that represents a string is required if this element is used.
Remarks
The FileAs element is used to sort contacts and distribution lists by a name other than a
full name or company name.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
FileAses
Article • 03/29/2023 • 2 minutes to read
XML
<FileAses>
<StringAttributedValue/>
</FileAses>
ArrayOfStringAttributedValuesType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
FileAsHeader
Article • 03/29/2023 • 2 minutes to read
XML
<FileAsHeader></FileAsHeader>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Text value
The text value of the FileAsHeader element specifies the header.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Code Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
FileAsId
Article • 03/29/2023 • 2 minutes to read
XML
<FileAsId></FileAsId
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Text value
The text value of the FileAsId element specifies the FileAs identifier.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
FileAsIds
Article • 03/29/2023 • 2 minutes to read
XML
<FileAsIds>
<StringAttributedValue/>
<FileAsIds>
ArrayOfStringAttributedValuesType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
FileAsMapping
Article • 03/29/2023 • 2 minutes to read
The FileAsMapping element defines how to construct what is displayed for a contact.
XML
<FileAsMapping/>
FileAsMappingType
Attributes
None.
Child elements
None.
Parent elements
Element Description
Contact
Represents an Exchange contact item.
Text value
The text value for this element is restricted to one of the following string values:
None
LastCommaFirst
FirstSpaceLast
Company
LastCommaFirstCompany
CompanyLastFirst
LastFirst
LastFirstCompany
CompanyLastCommaFirst
LastFirstSuffix
LastSpaceFirstCompany
CompanyLastSpaceFirst
LastSpaceFirst
DisplayName
FirstName
LastFirstMiddleSuffix
LastName
Empty
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server that has the Client Access server
role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Updating Contacts
Deleting Contacts
FileAttachment
Article • 03/29/2023 • 2 minutes to read
The FileAttachment element represents a file that is attached to an item in the Exchange
store.
XML
<FileAttachment>
<AttachmentId/>
<Name/>
<ContentType/>
<ContentId/>
<ContentLocation/>
<Size/>
<LastModifiedTime/>
<IsInline/>
<IsContactPhoto/>
<Content/>
</FileAttachment>
FileAttachmentType
Attributes
None.
Child elements
Element Description
AttachmentId
Identifies the file attachment.
ContentType
Describes the Multipurpose Internet Mail Extensions (MIME) type of the
attachment content.
Element Description
ContentId
Represents an identifier for the contents of an attachment. ContentId can be
set to any string value. Applications can use ContentId to implement their
own identification mechanisms.
ContentLocation
Contains the Uniform Resource Identifier (URI) that corresponds to the
location of the content of the attachment.
Size
Represents the size in bytes of the file attachment.
IsInline
Represents whether the attachment appears inline within an item.
IsContactPhoto
Indicates whether the file attachment is a contact picture.
Content
Contains the Base64-encoded contents of the file attachment.
Parent elements
Element Description
Attachments
Contains the items or files that are attached to an item in the Exchange store.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
XML
<FilterHtmlContent>true or false</FilterHtmlContent>
boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
/GetAttachment/AttachmentShape
Element Description
ItemShape
Identifies the item properties and content to include in a GetItem, FindItem,
or SyncFolderItems response.
/GetItem/ItemShape
/FindItem/ItemShape
/SyncFolderItems/ItemShape
Text value
This element can be either true or false. The default value is false. This is a Boolean data
type.
Remarks
This element is optional.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Exchange Server with the Client Access server role installed.
Element information
Element Type
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
FindConversation
Article • 03/29/2023 • 2 minutes to read
FindConversation
XML
<IndexedPageItemView/>
<SeekToConditionPageItemView/>
<SortOrder/>
<ParentFolderId/>
<MailboxScope/>
<QueryString/>
<ConversationShape/>
</FindConversation>
FindConversationType
Attributes
Attribute Description
Value Description
Value Description
Child elements
Element Description
IndexedPageItemView
Describes how paged conversation information is returned.
SortOrder
Defines how items are sorted in a FindConversation operation
request. The conversation:LastDeliveryTime property is the only
property that is supported for sorting when the
FindConversation operation is used.
MailboxScope
Specifies whether a search or fetch for a conversation should
span either the primary mailbox, archive mailbox, or both the
primary and archive mailbox.
ConversationShape
Identifies the property set to return in a FindConversation
operation response.
Parent elements
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
FindConversation operation
Conversations in EWS
FindConversationResponse
Article • 03/29/2023 • 2 minutes to read
FindConversationResponse
XML
<FindConversationResponse ResponseClass="">
<Conversations/>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</FindConversationResponse>
FindConversationResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of a FindConversation operation response.
- Success
- Warning
- Error
Value Description
Success
Describes a request that is fulfilled.
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
Conversations
Contains an array of conversations.
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and is reserved for future use. It contains a value of 0.
MessageXml
Provides additional error response information.
Parent elements
None.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
FindConversation operation
EWS XML elements in Exchange
Conversations in EWS
FindFolder
Article • 03/29/2023 • 2 minutes to read
XML
<FindFolder Traversal="Shallow/Deep/SoftDeleted">
<FolderShape/>
<IndexedPageFolderView/>
<Restriction/>
<ParentFolderIds/>
</FindFolder>
XML
<FindFolder Traversal="Shallow/Deep/SoftDeleted">
<FolderShape/>
<FractionalPageFolderView/>
<Restriction/>
<ParentFolderIds/>
</FindFolder>
FindFolderType
Attributes
Attribute Description
Value Description
Shallow Instructs the FindFolder operation to search only the identified folder and to return
only the folder IDs for items that have not been deleted. This is called a shallow
traversal.
Value Description
Deep Instructs the FindFolder operation to search in all child folders of the identified
parent folder and to return only the folder IDs for items that have not been deleted.
This is called a deep traversal.
SoftDeleted Instructs the FindFolder operation to perform a shallow traversal search for deleted
items.
Child elements
Element Description
FolderShape
Identifies the folder properties to include in a FindFolder response.
IndexedPageFolderView
Describes how paged item information is returned in a FindFolder
response. This element is optional.
FractionalPageFolderView Describes where the paged view starts and the maximum number of
folders returned in a FindFolder request. This element is optional.
Restriction
Defines a restriction or query that is used to filter folders in a
FindFolder operation. This element is optional.
ParentFolderIds
Identifies folders for the FindFolder operation to search.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Example
The following example of a FindFolder request shows how to form a request to find all
the folders located in an Inbox.
XML
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<FindFolder Traversal="Shallow"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<FolderShape>
<t:BaseShape>Default</t:BaseShape>
</FolderShape>
<ParentFolderIds>
<t:DistinguishedFolderId Id="inbox"/>
</ParentFolderIds>
</FindFolder>
</soap:Body>
</soap:Envelope>
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
FindFolder operation
FindFolderResponse
Article • 03/29/2023 • 2 minutes to read
FindFolderResponse
XML
<FindFolderResponse>
<ResponseMessages/>
</FindFolderResponse>
FindFolderResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
FindFolder operation
Finding Folders
FindFolderResponseMessage
Article • 03/29/2023 • 2 minutes to read
FindFolderResponse
ResponseMessages
FindFolderResponseMessage
XML
<FindFolderResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<RootFolder/>
</FindFolderResponseMessage>
FindFolderResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of a FindFolder operation response.
- Success
- Warning
- Error
ResponseClass Attribute
Value Description
Value Description
Success
Describes a request that is fulfilled.
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the
request encountered.
DescriptiveLinkKey
Currently unused and is reserved for future use. It contains a
value of 0.
MessageXml
Provides additional error response information.
RootFolder Contains the results from a search of a single root folder during
(FindFolderResponseMessage) a FindFolder operation.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
FindFolder operation
Finding Folders
FindItem
Article • 03/29/2023 • 2 minutes to read
XML
<FindItem Traversal="">
<ItemShape/>
<IndexedPageItemView/>
<GroupBy/>
<Restriction/>
<SortOrder/>
<ParentFolderIds/>
<QueryString/>
</FindItem>
XML
<FindItem Traversal="">
<ItemShape/>
<IndexedPageItemView/>
<DistinguishedGroupBy/>
<Restriction/>
<SortOrder/>
<ParentFolderIds/>
<QueryString/>
</FindItem>
XML
<FindItem Traversal="">
<ItemShape/>
<ContactsView/>
<GroupBy/>
<Restriction/>
<SortOrder/>
<ParentFolderIds/>
<QueryString/>
</FindItem>
XML
<FindItem Traversal="">
<ItemShape/>
<ContactsView/>
<DistinguishedGroupBy/>
<Restriction/>
<SortOrder/>
<ParentFolderIds/>
<QueryString/>
</FindItem>
XML
<FindItem Traversal="">
<ItemShape/>
<CalendarView/>
<GroupBy/>
<Restriction/>
<SortOrder/>
<ParentFolderIds/>
<QueryString/>
</FindItem>
XML
<FindItem Traversal="">
<ItemShape/>
<FractionalPageItemView/>
<GroupBy/>
<Restriction/>
<SortOrder/>
<ParentFolderIds/>
<QueryString/>
</FindItem>
XML
<FindItem Traversal="">
<ItemShape/>
<FractionalPageItemView/>
<DistinguishedGroupBy/>
<Restriction/>
<SortOrder/>
<ParentFolderIds/>
<QueryString/>
</FindItem>
FindItemType
Attribute Description
Traversal Defines whether the search finds items in folders or the folders' dumpsters. This
attribute is required.
Value Description
SoftDeleted Returns only the identities of items that are in a folder's dumpster. Note that a soft-
deleted traversal combined with a search restriction will result in zero items
returned even if there are items that match the search criteria.
Child elements
Element Description
ItemShape
Identifies the item properties and content to include in a FindItem
operation response.
IndexedPageItemView
Describes how paged item information is returned for a FindItem
request. This element is optional.
FractionalPageItemView Describes where the paged view starts and the maximum number of
items returned in a FindItem request. The paged view offset from the
beginning of the set of found items is described by a fraction. This
element is optional.
CalendarView Provides time span limits to define a search for calendar items. This
element is optional.
ContactsView
Defines a search for contact items based on alphabetical display names.
This element is optional.
GroupBy
Specifies arbitrary groupings for FindItem queries. This element is
optional.
DistinguishedGroupBy
Provides standard groupings for FindItem queries. This element is
optional.
Element Description
Restriction
Defines the restriction or query that is used to filter items or folders in
FindItem/ FindFolder and search folder operations. This element is
optional.
SortOrder
Defines how items are sorted in a FindItem request. This element is
optional.
ParentFolderIds
Identifies folders to search for the FindItem and FindFolder operations.
Parent elements
None.
Remarks
Only one of the IndexedPageItemView, FractionalPageItemView, CalendarView, or
ContactsView elements can be included in a FindItem request. Only one of the GroupBy
or DistinguishedGroupBy elements can be included in a FindItem request.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
FindItem operation
Finding Items
FindItemResponse
Article • 03/29/2023 • 2 minutes to read
FindItemResponse
XML
<FindItemResponse>
<ResponseMessages/>
</FindItemResponse>
FindItemResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
FindItem operation
FindItem
Finding Items
FindItemResponseMessage
Article • 03/29/2023 • 2 minutes to read
FindItemResponse
ResponseMessages
FindItemResponseMessage
XML
<FindItemResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<RootFolder/>
</FindItemResponseMessage>
FindItemResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of a FindItem operation response.
- Success
- Warning
- Error
Value Description
Value Description
Success
Describes a request that is fulfilled.
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while processing an item in the request was processing and subsequent
items could not be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the
request encountered.
DescriptiveLinkKey
Currently unused and is reserved for future use. It contains a
value of 0.
MessageXml
Provides additional error response information.
RootFolder Contains the results from a search of a single root folder during
(FindItemResponseMessage)
a FindItem operation.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
FindItem operation
Finding Items
FindMailboxStatisticsByKeywords
Article • 03/29/2023 • 2 minutes to read
XML
<FindMailboxStatisticsByKeywords>
<Mailboxes/>
<Keywords/>
<Language/>
<Senders/>
<Recipients/>
<FromDate/>
<ToDate/>
<MessageTypes/>
<SearchDumpster/>
<IncludePersonalArchive/>
<IncludeUnsearchableItems/>
</FindMailboxStatisticsByKeywords>
FindMailboxStatisticsByKeywordsType
Attributes
None.
Child elements
Element Description
Keywords
Specifies keywords for a search.
Language
Contains the language used for the search query.
Senders
Specifies an array of SMTP addresses.
Element Description
FromDate
Specifies the date that the message was sent.
MessageTypes
Specifies an array of messages to search.
SearchDumpster
Specifies whether to search in deleted items.
IncludePersonalArchive
Specifies whether to include the personal archive in the
search.
IncludeUnsearchableItems
Specifies whether to include items that cannot be
searched.
Parent elements
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can Be Empty
See also
EWS XML elements in Exchange
FindMailboxStatisticsByKeywordsRespo
nse
Article • 03/29/2023 • 2 minutes to read
XML
<FindMailboxStatisticsByKeywordsResponse>
<ResponseMessages/>
</FindMailboxStatisticsByKeywordsResponse>
FindMailboxStatisticsByKeywordsResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages Contains the response messages for an Exchange Web Services (EWS)
request.
Parent elements
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can Be Empty
See also
EWS XML elements in Exchange
FindMailboxStatisticsByKeywordsRespo
nseMessage
Article • 03/29/2023 • 2 minutes to read
XML
<MailboxStatisticsSearchResult/>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</FindMailboxStatisticsByKeywordsResponseMessage>
FindMailboxStatisticsByKeywordsResponseMessageType
Attributes
Attribute Description
ResponseClass
Value Description
Child elements
Element Description
MailboxStatisticsSearchResult
Specifies the result of a mailbox search.
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides status information about the request.
DescriptiveLinkKey
Currently unused and reserved for future use.
MessageXml
Provides additional error response information.
Parent elements
Element Description
ResponseMessages
Specifies an array of response messages.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can Be Empty
See also
EWS XML elements in Exchange
FindMessageTrackingReport
Article • 03/29/2023 • 2 minutes to read
XML
<FindMessageTrackingReport>
<Scope/>
<Domain/>
<Sender/>
<PurportedSender/>
<Recipient/>
<Subject/>
<StartDateTime/>
<EndDateTime/>
<MessageId/>
<FederatedDeliveryMailbox/>
<DiagnosticsLevel/>
<ServerHint/>
<Properties/>
</FindMessageTrackingReport>
FindMessageTrackingReportRequestType
Attributes
None.
Child elements
Element Description
Scope (NonEmptyStringType)
Represents how extensive the message tracking report
should be.
Sender (EmailAddressType)
Contains contact information for the sender of the e-mail
message.
PurportedSender
Contains contact information for the alleged sender of an e-
mail message.
Recipient
Contains the e-mail address for the recipient of the message.
Subject
Contains the subject of the e-mail message.
StartDateTime
Contains the starting date and time for the search.
EndDateTime
Contains the ending date and time for the search.
MessageId
Contains the message identifier for the search.
FederatedDeliveryMailbox
Contains the name of the mailbox where the cross-premise
message was sent.
DiagnosticsLevel
Represents the level of detail for diagnostic reports.
ServerHint
Represents the starting point for tracking a message in a
remote site or forest.
Parent elements
None.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
FindMessageTrackingReport operation
XML
<FindMessageTrackingReportResponse ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<Diagnostics/>
<MessageTrackingSearchResults/>
<Errors/>
<Properties/>
</FindMessageTrackingReportResponse>
FindMessageTrackingReportResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of the response.
- Success
- Warning
- Error
Value Description
Success
Describes a request that is fulfilled.
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the
request encountered.
DescriptiveLinkKey
Currently unused and reserved for future use. This element
contains a value of 0.
MessageXml
Provides additional error response information.
MessageTrackingSearchResults
Contains and array of messages that match the search
requirements.
Element Description
ExecutedSearchScope
Contains the scope of the search that was performed to get the
search results.
Errors
Contains a property bag to store errors that are returned
through the Web service.
Parent elements
None.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
FindMessageTrackingReport operation
EWS XML elements in Exchange
FindPeople
Article • 03/29/2023 • 2 minutes to read
The FindPeople element specifies a set of data used in a FindPeople request. The data
includes zero or more of the following elements: a persona shape (optional), an indexed
page item view, a restriction (optional), an aggregation restriction (optional), a sort
order (optional), a parent folder Id, and a query string (optional).
XML
<FindPeople>
<PersonaShape/>
<IndexedPageItemView/>
<Restriction/>
<AggregationRestriction/>
<SortOrder/>
<ParentFolderId/>
<QueryString/>
</FindPeople>
FindPeopleType
Attributes
None.
Child elements
PersonaShape | IndexedPageItemView | Restriction | AggregationRestriction | SortOrder |
ParentFolderId (TargetFolderIdType) | QueryString (QueryStringType)
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<People/>
<TotalNumberOfPeopleInView/>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</FindPeopleResponse>
FindPeopleResponseMessageType
Attributes
Attribute Description
ResponseClass
Value Description
Child elements
Element Description
Element Description
People
Specifies an array of persona data returned as the result of a
FindPeople request.
TotalNumberOfPeopleInView Specifies the total number of personas stored on a server that are
returned by a FindPeople request.
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides status information about the request.
DescriptiveLinkKey
Currently unused and reserved for future use.
MessageXml
Provides additional error response information.
Parent elements
Element Description
ResponseMessages
Specifies an array of response messages.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can Be Empty
See also
EWS XML elements in Exchange
FindPeopleResponseMessage
Article • 03/29/2023 • 2 minutes to read
XML
<FindPeopleResponseMessage>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<People/>
<TotalNumberOfPeopleInView/>
</FindPeopleResponseMessage>
FindPeopleResponseMessageType
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml | People |
TotalNumberOfPeopleInView
Parent elements
ResponseMessages
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Item Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
DayOfWeekType
Attributes
None.
Child elements
None.
Parent elements
Element Description
WeeklyRecurrence
Describes a weekly recurrence pattern.
Text value
The text value of the FirstDayOfWeek element indicates which day of the week is used
as the first day of the week. The following are the possible text values:
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
FirstHopServer
Article • 03/29/2023 • 2 minutes to read
The FirstHopServer element contains the name of the server in the forest that first
accepted the message.
XML
<FirstHopServer/>
NonEmptyStringType
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
FindMessageTrackingReport operation
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
FirstMatchingRowIndex
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
FirstName
Article • 03/29/2023 • 2 minutes to read
XML
<FirstName/>
String
Attributes
None.
Child elements
None.
Parent elements
Element Description
CompleteName
Represents the complete name of a contact.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
XML
<FirstOccurrence>
<ItemId/>
<Start/>
<End/>
<OriginalStart/>
</FirstOccurrence>
OccurrenceInfoType
Attributes
None.
Child elements
Element Description
ItemId
Contains the unique identifier and change key of the first occurrence of a recurring
calendar item.
Start
Represents the start time of the first occurrence of a recurring calendar item.
End Represents the end time of the first occurrence of a recurring calendar item.
OriginalStart Represents the original start time of the first occurrence of a recurring calendar
item.
Parent elements
Element Description
Element Description
CalendarItem
Represents an Exchange calendar item.
MeetingRequest
Represents a meeting request in the Exchange store.
Remarks
This element is valid if CalendarItemType has the RecurringMaster value.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
XML
<Flag>
<FlagStatus/>
<StartDate/>
<DueDate/>
<CompleteDate/>
</Flag>
FlagType
Attributes
None.
Child elements
Element Description
FlagStatus
Contains the aggregated flag status for items in the current folder.
StartDate
Represents the start date of an item.
DueDate
Represents the date when an item is due.
CompleteDate
Represents the date on which an item was completed.
Parent elements
Element Description
ConversationAction
Contains a single action to be applied to a single conversation.
Item
Represents a generic item in the Exchange store.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
FlaggedForAction
Article • 03/29/2023 • 2 minutes to read
The FlaggedForAction element specifies the flag for action value that must appear on
incoming messages in order for the condition or exception to apply.
XML
<FlaggedForAction/>
FlaggedForActionType
Attributes
None.
Child elements
None.
Parent elements
Element Description
Conditions Represents the conditions that, when fulfilled, will trigger the rule actions for a rule.
Exceptions Represents the exceptions that represent all the available rule exception conditions
for an Inbox rule.
Text value
A text value is required. The following are the possible text values for this element:
Any
Call
DoNotForward
FollowUp
FYI
Forward
NoResponseNecessary
Read
Reply
ReplyToAll
Review
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Type
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
FlagStatus
Article • 03/29/2023 • 2 minutes to read
The FlagStatus element contains the aggregated flag status for conversation items in
the current folder.
FindConversationResponse
Conversations
Conversation (ConversationType)
FlagStatus
XML
FlagStatusType
Attributes
None.
Child elements
None.
Parent elements
Element Description
Conversation (ConversationType)
Represents a single conversation.
Text value
The text value of the FlagStatus element is the aggregated flag status for conversation
items in the current folder. The following are the possible text values:
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
FindConversation operation
ApplyConversationAction operation
Conversations in EWS
Folder
Article • 03/29/2023 • 2 minutes to read
The Folder element defines a folder to create, get, find, synchronize, or update.
XML
<Folder>
<FolderId/>
<ParentFolderId/>
<FolderClass/>
<DisplayName/>
<TotalCount/>
<ChildFolderCount/>
<ExtendedProperty/>
<ManagedFolderInformation/>
<UnreadCount/>
<PermissionSet/>
<EffectiveRights/>
</Folder>
FolderType
Attributes
None.
Child elements
Element Description
FolderId
Contains the identifier and change key of a folder.
ParentFolderId Represents the identifier of the parent folder that contains the
folder.
FolderClass
Represents the folder class for a given folder.
DisplayName (string)
Contains the display name of a folder.
TotalCount
Represents the total count of items within a given folder.
Element Description
ChildFolderCount
Represents the number of child folders that are contained within a
folder. This property is read-only.
ExtendedProperty
Identifies extended properties on folders.
UnreadCount
Represents the count of unread items within a given folder.
PermissionSet Contains all the configured permissions for a folder. This element
(PermissionSetType)
was introduced in Microsoft Exchange Server 2007 Service Pack 1
(SP1).
EffectiveRights
Contains the client's rights based on the permission settings for the
item or folder. This element is read-only. This element was
introduced in Exchange 2007 SP1.
Parent elements
Element Description
Create (FolderSync)
Identifies a single folder to create in the local client store.
SetFolderField
Represents an update to a single property on a folder in an UpdateFolder
operation.
Update (FolderSync)
Identifies a single folder to update in the local client store.
Folders
Contains an array of folders that are used in folder operations.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Exchange 2007 that has the Client Access server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Name Value
See also
SyncFolderItems operation
UpdateFolder
FolderChanges
FolderChange
XML
<FolderChange>
<FolderId/>
<Updates/>
</FolderChange>
XML
<FolderChange>
<DistinguishedFolderId/>
<Updates/>
</FolderChange>
FolderChangeType
Attributes
None.
Child elements
Element Description
FolderId
Contains the identifier and change key of a folder to update.
Updates (Folder)
Defines the type of update that is performed on a folder that is identified
by either the FolderId or DistinguishedFolderId element.
Parent elements
Element Description
FolderChanges
Represents a collection of changes for a folder.
The following is the XPath expression to this element:
/UpdateFolder/FolderChanges
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Exchange Server 2007 that has the Client Access server role
installed.
Element information
Element Type
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
UpdateFolder operation
FolderChanges
Article • 03/29/2023 • 2 minutes to read
UpdateFolder
FolderChanges
XML
<FolderChanges>
<FolderChange/>
</FolderChanges>
NonEmptyArrayOfFolderChangesType
Attributes
None.
Child elements
Element Description
FolderChange
Represents a single change to be performed on a single folder.
Parent elements
Element Description
UpdateFolder
Represents the operation that is used to update properties for a folder.
The following is the XPath expression to this element:
/UpdateFolder
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
UpdateFolder operation
FolderClass
Article • 03/29/2023 • 2 minutes to read
XML
<FolderClass/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Folder
Represents a folder in a mailbox.
CalendarFolder
Represents a calendar folder in a mailbox.
ContactsFolder
Represents a contacts folder in a mailbox.
SearchFolder
Represents a search folder in a mailbox.
TasksFolder
Represents a task folder in a mailbox.
Text value
A text value is required. Folder classes typically start with "IPF."
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
FolderId
Article • 03/29/2023 • 2 minutes to read
The FolderId element contains the identifier and change key of a folder.
XML
FolderIdType
Attributes
Attribute Description
Id Contains a string that identifies a folder in the Exchange store. This attribute is
required.
ChangeKey Contains a string that identifies a version of a folder that is identified by the Id
attribute. This attribute is optional. Use this attribute to make sure that the correct
version of a folder is used.
Child elements
None.
Parent elements
Element Description
ContextFolderId
Indicates the folder that is targeted for actions that use folders.
CopiedEvent
Represents an event in which an item or folder is copied.
DestinationFolderId
Indicates the destination folder for copy and move actions.
Element Description
/CreateItem/ParentFolderId
/CreateFolder/ParentFolderId
BaseFolderIds Represents the collection of folders that will be mined to determine the
contents of a search folder.
Delete (FolderSync)
Identifies a single folder to delete in the local client store.
Folder
Represents a folder in a mailbox.
CalendarFolder
Represents a calendar folder in a mailbox.
FolderChange
Represents a collection of changes to be performed on a single folder.
The following is the XPath expression to this element:
/UpdateFolder/FolderChanges/FolderChange
ContactsFolder
Represents a contact folder in a mailbox.
SearchFolder
Represents a search folder in a mailbox.
TasksFolder
Represents a task folder in a mailbox.
ToFolderId
Represents the destination folder for a copied or moved item or folder.
/MoveFolder/ToFolderId
/CopyFolder/ToFolderId
/MoveItem/ToFolderId
/CopyItem/ToFolderId
Element Description
SavedItemFolderId
Identifies the target folder for operations that update, send, and create
items in the Exchange store.
/CreateItem/SavedItemFolderId
/UpdateItem/SavedItemFolderId
/SendItem/SavedItemFolderId
SyncFolderId
Represents the folder that contains the items to synchronize.
CopyToFolder
Identifies the ID of the folder that e-mail items will be copied to.
MoveToFolder
Identifies the ID of the folder that e-mail items will be moved to.
Text value
None.
Remarks
All FolderId elements are of the FolderIdType type. The FolderId element is required in
every case except in elements whose type extends the BaseFolderType or where the
FolderId element is a part of a choice. Review the schema for more information.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Type
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Creating Folders (Exchange Web Services)
FolderIds
Article • 03/29/2023 • 2 minutes to read
The FolderIds element contains an array of folder identifiers that are used to identify
folders to copy, move, get, delete, or monitor for event notifications.
XML
<FolderIds>
<FolderId/>
<DistinguishedFolderId/>
</FolderIds>
NonEmptyArrayOfBaseFolderIdsType
Attributes
None.
Child elements
Element Description
FolderId
Contains the identifier and change key of a folder.
Parent elements
Element Description
GetFolder
Defines a request to get a folder from the Exchange store.
The following is the XPath expression to this element: /GetFolder
DeleteFolder
Defines a request to delete folders from the Exchange store.
The following is the XPath expression to this element: /DeleteFolder
Element Description
EmptyFolder
Defines a request to delete folders from the Exchange store.
The following is the XPath expression to this element: /EmptyFolder
MoveFolder
Defines a request to move a folder in the Exchange store.
The following is the XPath expression to this element: /MoveFolder
CopyFolder
Defines a request to copy a folder in the Exchange store.
The following is the XPath expression to this element: /CopyFolder
PullSubscriptionRequest
Represents a subscription to a pull-based event notification
subscription.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server that has the Client Access server
role installed.
Element information
Element Example
Can be False
Empty
See also
GetFolder operation
DeleteFolder operation
MoveFolder operation
CopyFolder operation
Subscribe operation
FolderIds (ArrayOfFolderIdType)
Article • 03/29/2023 • 2 minutes to read
XML
<FolderIds>
<FolderId/>
</FolderIds>
ArrayOfFolderIdType
Attributes
None.
Child elements
FolderId
Parent elements
Persona
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
FolderName
Article • 03/29/2023 • 2 minutes to read
CreateManagedFolder
FolderNames
FolderName
XML
<FolderName>...</FolderName>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
FolderNames
Contains an array of named managed custom folders to add to a mailbox.
The following is the XPath expression to this element:
/CreateManagedFolder/FolderNames
Text value
A text value is required. The text value represents a folder name.
Remarks
Although you can use Exchange Web Services to add managed custom folders to a
mailbox, you cannot use the same technology to access the list of available managed
custom folders. You can obtain a list of managed custom folders by using an Exchange
Management Shell command or by using an API that interfaces with the Active Directory
directory service. The folder name is the name of the corresponding Active Directory
object.
You can use the FindFolder operation to find managed custom folders. Use the
DeleteFolder operation to delete managed custom folders.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
FindFolder operation
Finding Folders
CreateManagedFolder
FolderNames
XML
<FolderNames>
<FolderName/>
</FolderNames>
NonEmptyArrayOfFolderNamesType
Attributes
None.
Child elements
Element Description
FolderName
Identifies a single managed folder to add to mailbox.
Parent elements
Element Description
CreateManagedFolder
The root element in a request to add a managed folder to a mailbox.
The following is the XPath expression to this element:
/CreateManagedFolder
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
FindFolder operation
Finding Folders
The Folders element contains an array of folders that are used in folder operations.
XML
<Folders>
<Folder/>
</Folders>
XML
<Folders>
<ContactsFolder/>
</Folders>
XML
<Folders>
<TasksFolder/>
</Folders>
XML
<Folders>
<CalendarFolder/>
</Folders>
XML
<Folders>
<SearchFolder/>
</Folders>
ArrayOfFoldersType or NonEmptyArrayOfFoldersType
Attributes
None.
Child elements
Element Description
Folder
Identifies a folder to create, get, find, synchronize, or update.
CalendarFolder
Represents a folder that primarily contains calendar items.
ContactsFolder
Represents a Contacts folder in a mailbox.
SearchFolder
Represents a Search folder contained in a mailbox.
TasksFolder
Represents a Tasks folder in a mailbox.
Parent elements
Element Description
CopyFolderResponseMessage
Contains the status and result of a single CopyFolder
operation request.
CreateFolder
Defines a request to create a folder in the Exchange
store.
CreateFolderResponseMessage
Contains the status and result of a single CreateFolder
operation request.
GetFolderResponseMessage
Contains the status and result of a GetFolder operation
request.
MoveFolderResponseMessage
Contains the status and result of a MoveFolder
operation request.
ParentFolderId (TargetFolderIdType)
Identifies the folder where a new folder is created.
UpdateFolderResponseMessage
Contains the status and result of a single UpdateFolder
operation request.
Remarks
This element is a required child element of the ParentFolderId (TargetFolderIdType)
element.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
ParentFolderId (TargetFolderIdType)
FolderShape
Article • 03/29/2023 • 2 minutes to read
XML
<FolderShape>
<BaseShape/>
<AdditionalProperties/>
</FolderShape>
FolderResponseShapeType
Attributes
None.
Child elements
Element Description
BaseShape
Identifies the basic configuration of properties to return in a response.
AdditionalProperties
Identifies additional properties to return in a response.
Parent elements
Element Description
FindFolder
Defines a request to identify folders in a mailbox.
The following is the XPath expression to this element:
/FindFolder
GetFolder
Defines a request to get a folder from the Exchange store.
The following is the XPath expression to this element:
/GetFolder
Element Description
SyncFolderHierarchy
Defines a request to synchronize a folder hierarchy on a client.
The following is the XPath expression to this element:
/SyncFolderHierarchy
Remarks
The FolderShape element is a required child element of the FindFolder element.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Example
The following example of a request demonstrates how to find all folders located in the
first level of the Inbox folder.
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<FindFolder Traversal="Shallow"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<FolderShape>
<t:BaseShape>Default</t:BaseShape>
</FolderShape>
<ParentFolderIds>
<t:DistinguishedFolderId Id="inbox"/>
</ParentFolderIds>
</FindFolder>
</soap:Body>
</soap:Envelope>
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
FindFolder
FolderSize
Article • 03/29/2023 • 2 minutes to read
The FolderSize element describes the total size of all the contents of a managed folder.
XML
<FolderSize/>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
ManagedFolderInformation
Contains information about a managed folder.
Text value
The text value represents the total size of the folder in megabytes.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
CreateManagedFolder operation
The FoldersToIgnore element identifies a list of folders that are ignored when getting
items in a conversation. All conversation items in the ignored folders are not returned in
a GetConversationItems response.
XML
<FoldersToIgnore>
<FolderId/>
<DistinguishedFolderId/>
</FoldersToIgnore>
NonEmptyArrayOfBaseFolderIdsType
Attributes
None.
Child elements
FolderId | DistinguishedFolderId
Parent elements
GetConversationItems
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
The FormattedAddress element specifies the formatted display value of the associated
postal address.
XML
<FormattedAddress></FormattedAddress>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Value (PersonaPostalAddressType)
Specifies information associated with a postal
address.
Text value
The text value of the FormattedAddress element is a string value that specifies the
formatted address.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
ForwardAllowed
Article • 03/29/2023 • 2 minutes to read
XML
<ForwardAllowed>true | false</ForwardAllowed>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
RightsManagementLicenseData
Specifies information about the rights management license.
Text value
A text value of true for the ForwardAllowed element indicates that forwarding emails is
allowed. A value of false indicates that forwarding is not allowed.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
ForwardAsAttachmentToRecipients
Article • 03/29/2023 • 2 minutes to read
XML
<ForwardAsAttachmentToRecipients>
<Address/>
</ForwardAsAttachmentToRecipients>
ArrayOfEmailAddressesType
Attributes
None.
Child elements
Element Description
Address (EmailAddressType)
Represents a fully resolved e-mail address.
Parent elements
Element Description
Actions
Represents the set of actions that are available to be taken on a message when the
conditions are fulfilled.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
ForwardItem
Article • 03/29/2023 • 2 minutes to read
XML
<ForwardItem>
<Subject/>
<Body/>
<ToRecipients/>
<CcRecipients/>
<BccRecipients/>
<IsReadReceiptRequested/>
<IsDeliveryReceiptRequested/>
<From/>
<ReferenceItemId/>
<NewBodyContent/>
<ReceivedBy/>
<ReceivedRepresenting/>
</ForwardItem>
ForwardItemType
Attributes
None.
Child elements
Element Description
Subject
Represents the subject property of Exchange store items.
Body
Represents the actual body content of a message.
ToRecipients
Contains a set of recipients of an item. These are the primary recipients of an item.
CcRecipients
Represents a collection of recipients that will receive a copy of the message.
BccRecipients
Represents a collection of recipients to receive a blind carbon copy (Bcc) of an e-mail.
IsReadReceiptRequested
Indicates whether the sender of an item requests a read receipt.
From
Represents the address from which the message was sent.
ReferenceItemId
Identifies the item to which the response object refers.
NewBodyContent
Represents the new body content of a message.
ReceivedBy
Identifies the delegate in a delegate access scenario. This element was introduced in Microsoft
Exchange Server 2007 Service Pack 1 (SP1).
Element Description
ReceivedRepresenting
Identifies the principal in a delegate access scenario. This element was introduced in Exchange
2007 SP1.
Parent elements
Element Description
AdjacentMeetings
Describes all items that are adjacent to a meeting time.
/CalendarItem/AdjacentMeetings
/MeetingRequest/AdjacentMeetings
/SetItemField/CalendarItem/AdjacentMeetings
/AppendToItemField/CalendarItem/AdjacentMeetings
/AcceptItem/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/DeclineItem/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/TentativelyAcceptItem/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/SetItemField/CalendarItem/AdjacentMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/AppendToItemField/CalendarItem/AdjacentMeetings
/CreateAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/GetAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/CalendarItem/ConflictingMeetings
/MeetingRequest/ConflictingMeetings
/SetItemField/CalendarItem/ConflictingMeetings
/AppendToItemField/CalendarItem/ConflictingMeetings
/AcceptItem/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/DeclineItem/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/TentativelyAcceptItem/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/SetItemField/CalendarItem/ConflictingMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/AppendToItemField/CalendarItem/ConflictingMeetings
/CreateAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/GetAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
ResponseObjects
Contains a collection of all the response objects that are associated with an item in the Exchange
store.
Items Contains an array of items to create in the folder that is identified by the ParentFolderId
(NonEmptyArrayOfAllItemsType) (TargetFolderIdType) element.
Remarks
The From element should be set to the e-mail address of the principal if an item is forwarded by a delegate. If the
delegate does not set the From property, the item will appear to have been sent directly from the delegate's
mailbox.
The schema that describes this element is located in the EWS virtual directory of the computer that is running
Microsoft Exchange Server 2007 that has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ForwardToRecipients
Article • 03/29/2023 • 2 minutes to read
The ForwardToRecipients element indicates the e-mail addresses to which messages are
to be forwarded.
XML
<ForwardToRecipients>
<Address/>
</ForwardToRecipients>
ArrayOfEmailAddressesType
Attributes
None.
Child elements
Element Description
Address (EmailAddressType)
Represents a fully resolved e-mail address.
Parent elements
Element Description
Actions
Represents the set of actions that are available to be taken on a message when the
conditions are fulfilled.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
FractionalPageFolderView
Article • 03/29/2023 • 2 minutes to read
The FractionalPageFolderView element describes where the paged view starts and the
maximum number of folders returned in a FindFolder request.
FindFolder
FractionalPageFolderView
XML
FractionalPageViewType
Attributes
Attribute Description
Numerator
Represents the numerator of the fractional offset from the start of the
result set. This attribute is required. The numerator must be equal to or
less than the denominator. This attribute must represent an integral value
that is equal to or greater than zero. For more information, see Remarks
later in this topic.
Denominator
Represents the denominator of the fractional offset from the start of the
total number of folders in the result set. This attribute is required. This
attribute must represent an integral value that is greater than one. For
more information, see Remarks later in this topic.
Child elements
None.
Parent elements
Element Description
FindFolder
Defines a request to identify folders in a mailbox.
The following is the XPath expression to this element:
/FindFolder
Remarks
The paged view offset from the start of the set of found folders is described by a
fraction. The fraction, which is defined by the Numerator and Denominator attributes,
describes where the page of information starts. For example, if Numerator equals four
and Denominator equals five, the page of returned information starts at an entry
located four-fifths of the way in to the result set.
If the fraction evaluates to zero, that indicates the start of the results set. If the fraction
evaluates to one, that indicates the end of the result set.
7 Note
The fraction represents the start point of page, not how many results in the result
set will be returned.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
FindFolder operation
Finding Folders
FractionalPageItemView
Article • 03/29/2023 • 2 minutes to read
The FractionalPageItemView element describes where the paged view starts and the
maximum number of items returned in a FindItem request.
FindItem
FractionalPageItemView
XML
FractionalPageViewType
Attributes
Attribute Description
Numerator
Represents the numerator of the fractional offset from the start of the
result set. This attribute is required. The numerator must be equal to or
less than the denominator. This attribute must represent an integral value
that is equal to or greater than zero.
For more information, see Remarks later in this topic.
Denominator
Represents the denominator of the fractional offset from the start of the
total number of items in the result set. This attribute is required. This
attribute must represent an integral value that is greater than one.
For more information, see Remarks later in this topic.
Child elements
None.
Parent elements
Element Description
FindItem
Defines a request to find items in a mailbox.
The following is the XPath expression to this element:
/FindItem
Remarks
The paged view offset from the start of the set of found items is described by a fraction.
The fraction, which is defined by the Numerator and Denominator attributes, describes
where the page of information starts. For example, if Numerator equals four and
Denominator equals five, the page of returned information starts at an entry located
four-fifths of the way in to the result set.
If the fraction evaluates to zero, that indicates the start of the results set. If the fraction
evaluates to one, that indicates the end of the result set.
7 Note
The fraction represents the start point of page, not how many results in the result
set will be returned.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Example
The following example shows a FindItem request. The request returns items from the
search results that start after the second third of all the items in the result set.
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<FindItem Traversal="Shallow"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
<t:FieldURI FieldURI="item:Subject"/>
</t:AdditionalProperties>
</ItemShape>
<GroupBy Order="Descending">
<t:FieldURI FieldURI="item:Importance"/>
<t:AggregateOn Aggregate="Maximum">
<t:FieldURI FieldURI="item:Subject"/>
</t:AggregateOn>
</GroupBy>
<ParentFolderIds>
<t:DistinguishedFolderId Id="inbox"/>
</ParentFolderIds>
</FindItem>
</soap:Body>
</soap:Envelope>
For example, if the result set contains nine items, the paged view will return up to 12
items, starting at the item found two-thirds of the way in to the result set. In this case,
the page starts at the seventh item. The page will contain the seventh, eighth, and ninth
items. If the numerator is set to zero, the page view will return all the items in the result
set as long as the number is less than the MaxEntriesReturned attribute.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
FindItem operation
Finding Items
FreeBusyChangedEvent
Article • 03/29/2023 • 2 minutes to read
XML
<CreatedEvent>
<Watermark/>
<TimeStamp/>
<ItemId/>
<ParentFolderId/>
</CreatedEvent>
BaseObjectChangedEventType
Attributes
None.
Child elements
Element Description
Watermark
Represents an event bookmark in the mailbox events table.
TimeStamp
Represents the timestamp of a free/busy item mailbox event.
ItemId
Represents the identifier of the free/busy item.
ParentFolderId Represents the identifier of the parent folder of the free/busy item.
Parent elements
Element Description
Element Description
Notification Contains information about the subscription and the events that have occurred
since the last notification.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Subscribe operation
GetEvents operation
Unsubscribe operation
The FreeBusyResponse element contains the free/busy information for a single mailbox
user.
GetUserAvailabilityResponse
FreeBusyResponseArray
FreeBusyResponse
XML
<FreeBusyResponse>
<ResponseMessage>...</ResponseMessage>
<FreeBusyView>...</FreeBusyView>
</FreeBusyResponse>
FreeBusyResponseType
Attributes
None.
Child elements
Element Description
ResponseMessage
Provides descriptive information about the response status.
FreeBusyView
Contains availability information for a specific user.
Parent elements
Element Description
Element Description
FreeBusyResponseArray Contains the requested users' availability information and the response
status.
The following is the XPath expression to this element:
/GetUserAvailabilityResponse/FreeBusyResponseArray
Remarks
This element is not included in a GetUserAvailability response if free/busy information is
not requested.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetUserAvailability operation
GetUserAvailabilityResponse
GetUserAvailabilityResponse
FreeBusyResponseArray
XML
<FreeBusyResponseArray>
<FreeBusyResponse>...</FreeBusyResponse>
</FreeBusyResponseArray>
ArrayOfFreeBusyResponse
Attributes
None.
Child elements
Element Description
FreeBusyResponse Contains the free/busy information for a single mailbox user and the
response status.
Parent elements
Element Description
Remarks
This element is not included in a GetUserAvailability response if free/busy information is
not requested.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetUserAvailability operation
GetUserAvailabilityResponse
GetUserAvailabilityResponse
FreeBusyResponseArray
FreeBusyResponse
FreeBusyView
XML
<FreeBusyView>
<FreeBusyViewType>...</FreeBusyViewType>
<MergedFreeBusy>...</MergedFreeBusy>
<CalendarEventArray>...</CalendarEventArray>
<WorkingHours>...</WorkingHours>
</FreeBusyView>
FreeBusyView
Attributes
None.
Child elements
Element Description
FreeBusyViewType
Represents the type of requested free/busy information returned in the
response.
MergedFreeBusy
Contains the merged free/busy stream of data.
CalendarEventArray Contains a set of unique calendar item occurrences that represent the
requested user's availability.
Element Description
WorkingHours
Represents the time zone settings and working hours for the requested
mailbox user.
Parent elements
Element Description
FreeBusyResponse
Contains the free/busy information for a single mailbox user.
The following is the XPath expression to this element:
/GetUserAvailabilityResponse/FreeBusyResponseArray/FreeBusyResponse
Remarks
All the child elements are listed in the sequence in which they occur. The level of detail
provided by this element depends on the permissions granted to the requestor.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityResponse
GetUserAvailabilityRequest
FreeBusyViewOptions
XML
<FreeBusyViewOptions>
<TimeWindow>...</TimeWindow>
<MergedFreeBusyIntervalInMinutes>...</MergedFreeBusyIntervalInMinutes>
<RequestedView>...</RequestedView>
</FreeBusyViewOptions>
FreeBusyViewOptionsType
Attributes
None.
Child elements
Element Description
TimeWindow
Identifies the time span queried for the user availability
information.
RequestedView
Defines the type of calendar information that a client
requests.
Parent elements
Element Description
Remarks
This element is not required and can only occur once if used. This value can be null if the
value of the SuggestionsViewOptions element is not null.
7 Note
The schema that describes this element is located in the /epi/ directory of the
computer that is running Microsoft® Exchange Server 2007 that has the Client
Access server role installed.
Example
The following example obtains a list of meetings and a free/busy stream in 60-minute
intervals.
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetUserAvailabilityRequest
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<TimeZone
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Bias>480</Bias>
<StandardTime>
<Bias>0</Bias>
<Time>02:00:00</Time>
<DayOrder>5</DayOrder>
<Month>10</Month>
<DayOfWeek>Sunday</DayOfWeek>
</StandardTime>
<DaylightTime>
<Bias>-60</Bias>
<Time>02:00:00</Time>
<DayOrder>1</DayOrder>
<Month>4</Month>
<DayOfWeek>Sunday</DayOfWeek>
</DaylightTime>
</TimeZone>
<MailboxDataArray>
<MailboxData
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Email>
<Name></Name>
<Address>[email protected]</Address>
<RoutingType>SMTP</RoutingType>
</Email>
<AttendeeType>Organizer</AttendeeType>
<ExcludeConflicts>false</ExcludeConflicts>
<ExcludeNonWorkingHours>false</ExcludeNonWorkingHours>
</MailboxData>
</MailboxDataArray>
<FreeBusyViewOptions
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<TimeWindow>
<StartTime>2006-02-06T00:00:00</StartTime>
<EndTime>2006-02-25T23:59:59</EndTime>
</TimeWindow>
<MergedFreeBusyIntervalInMinutes>60</MergedFreeBusyIntervalInMinutes>
<RequestedView>FreeBusyMerged</RequestedView>
</FreeBusyViewOptions>
</GetUserAvailabilityRequest>
</soap:Body>
</soap:Envelope>
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityResponse
FreeBusyResponseArray
FreeBusyResponse
FreeBusyView
FreeBusyViewType
XML
FreeBusyViewType
Attributes
None.
Child elements
None.
Parent elements
Element Description
Value Description
None This value is not valid for requests. This value is valid for responses.
FreeBusy Represents the legacy status information: free, busy, tentative, and OOF. This
also includes the start/end times of the appointments. This view is richer than
the legacy free/busy view because individual meeting start and end times are
provided instead of an aggregated free/busy stream.
FreeBusyMerged Represents all the properties in FreeBusy with a stream of merged free/busy
availability information.
Detailed Represents the legacy status information: free, busy, tentative, and OOF; the
start/end times of the appointments; and various properties of the
appointment such as subject, location, and importance. This requested view
will return the maximum amount of information for which the requesting user
is privileged. If merged free/busy information only is available, as with
requesting information for users in a Microsoft Exchange Server 2003 forest,
MergedOnly will be returned. Otherwise, FreeBusy or Detailed will be
returned.
If Detailed is specified for a distribution list, the free/busy information for the
members of the list is merged, and MergedOnly is returned.
DetailedMerged Represents all the properties in Detailed with a stream of merged free/busy
availability information. If only merged free/busy information is available, for
example if the mailbox exists on a computer running Exchange 2003,
MergedOnly will be returned. Otherwise, FreeBusyMerged or DetailedMerged
will be returned.
Remarks
This element is required if the FreeBusyView element is used. The type of free/busy
information returned is designated in the RequestedView element. The schema that
describes this element is located in the EWS virtual directory of the computer that is
running MicrosoftExchange Server 2007 that has the Client Access server role installed.
The following table shows what is returned for the different view types and the
corresponding MAPI property. Each view type builds upon the former view type.
MergedOnly
MergedFreeBusyStream
FreeBusy
Classical status PropTag (0x80860003)
FreeBusy
Working hours
FreeBusy
Start time PR_START_DATE
FreeBusy
End time PR_END_DATE
FreeBusyMerged
Classical status PropTag (0x80860003)
FreeBusyMerged
Working hours
FreeBusyMerged
Start time PR_START_DATE
FreeBusyMerged
End time PR_END_DATE
FreeBusyMerged
MergedFreeBusyStream
Detailed
Classical status PropTag (0x80860003)
Detailed
Working hours
Detailed
Start time PR_START_DATE
Detailed
End time PR_END_DATE
Detailed
Subject PR_SUBJECT
Detailed
Location PR_LOCATION
Detailed
Entry-Id(unless private)
Detailed
Private Flag
Detailed
IsMeeting
Detailed
IsRecurring
Detailed
IsException
Detailed
IsReminderSet
Detailed
Out of Office Message (if requested)
DetailedMerged
Classical status PropTag (0x80860003)
FreeBusyViewType Properties MAPI Calendar Property
DetailedMerged
Working hours
DetailedMerged
Start time PR_START_DATE
DetailedMerged
End time PR_END_DATE
DetailedMerged
Subject PR_SUBJECT
DetailedMerged
Location PR_LOCATION
DetailedMerged
Entry-Id(unless private)
DetailedMerged
Private Flag
DetailedMerged
MergedFreeBusyStream
DetailedMerged
IsMeeting
DetailedMerged
IsRecurring
DetailedMerged
IsException
DetailedMerged
IsReminderSet
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityResponse
The From element represents the address from which the message was sent.
XML
<From>
<Mailbox/>
</From>
SingleRecipientType
Attributes
None.
Child elements
Element Description
Mailbox
Identifies a mail-enabled Active Directory directory service object.
Parent elements
Element Description
RemoveItem
Removes an item from the Exchange store.
Message
Represents an Exchange e-mail message.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
AcceptItem
Represents an Accept reply to a meeting request.
DeclineItem
Represents a Decline reply to a meeting request.
ReplyToItem
Contains a reply to the creator of an item in the Exchange store.
ReplyAllToItem
Contains a reply to all identified recipients of an item in the Exchange
store.
ForwardItem
Contains an Exchange store item to forward to recipients.
CancelCalendarItem
Represents the response object that is used to cancel a meeting.
PostItem
Represents a post item in the Exchange store. This element was
introduced in Microsoft Exchange Server 2007 Service Pack 1 (SP1).
Remarks
This element is used for "send on behalf of" e-mails.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
FromAddresses
Article • 03/29/2023 • 2 minutes to read
The FromAddresses element indicates the e-mail addresses from which incoming
messages must be sent in order for the condition or exception to apply.
XML
<FromAddresses>
<Address/>
</FromAddresses>
ArrayOfEmailAddressesType
Attributes
None.
Child elements
Element Description
Address (EmailAddressType)
Represents a fully resolved e-mail address.
Parent elements
Element Description
Conditions
Represents the conditions that, when fulfilled, will trigger the rule actions for a rule.
Exceptions
Represents all the available rule exception conditions for an Inbox rule.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Code Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
FromConnectedAccounts
Article • 03/29/2023 • 2 minutes to read
The FromConnectedAccounts element represents the e-mail account names from which
incoming messages have to have been aggregated in order for the condition or
exception to apply.
XML
<FromConnectedAccounts>
<String/>
</FromConnectedAccounts>
ArrayOfStringsType
Attributes
None.
Child elements
Element Description
String
Represents an e-mail account name from which incoming messages have to have been
aggregated in order for the condition or exception to apply.
Parent elements
Element Description
Conditions Represents the conditions that, when fulfilled, will trigger the rule actions for a rule.
Exceptions Represents the exceptions that represent all the available rule exception conditions
for an Inbox rule.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
FromDate
Article • 03/29/2023 • 2 minutes to read
The FromDate element specifies the date that the message was sent.
XML
<FromDate></FromDate>
dateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
The text value of the FromDate element is the date and time that a message was sent.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can Be Empty
See also
EWS XML elements in Exchange
FullName
Article • 03/29/2023 • 2 minutes to read
XML
<FullName/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
CompleteName
Represents the complete name of a contact.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
The Generation element represents a generational abbreviation that follows the full
name of a contact.
XML
<Generation/>
String
Attributes
None.
Child elements
None.
Parent elements
Element Description
Contact
Represents an Exchange contact item.
Text value
A text value is required if this element is used.
Remarks
This element represents the same information that is represented by the PR_Generation
MAPI property.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Updating Contacts
Deleting Contacts
Generations
Article • 03/29/2023 • 2 minutes to read
The Generations element specifies an array of generation values and the identifiers of
their source attributions for the associated persona.
XML
<Generations>
<StringAttributedValue/>
</Generations>
ArrayOfStringAttributedValuesType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
GetAppManifests
Article • 03/29/2023 • 2 minutes to read
The GetAppManifests element is the base element for a request to return the manifest
for apps.
XML
<GetAppManifests />
GetAppManifestsType
Attributes
None.
Child elements
ApiVersionSupported | SchemaVersionSupported
Parent elements
None.
Text value
None.
Remarks
The GetAppManifests element is applicable for clients that target Exchange Online and
versions of Microsoft Exchange Server starting with Exchange 2013.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can Be Empty
See also
EWS XML elements in Exchange
GetAppManifestsResponse
Article • 03/29/2023 • 2 minutes to read
XML
<GetAppManifestsResponse>
<ResponseCode/>
<Manifests/>
</GetAppManifestsResponse>
XML
<GetAppManifestsResponse>
<ResponseCode/>
<Apps/>
</GetAppManifestsResponse>
GetAppManifestsResponseType
Attributes
None.
Child elements
ResponseCode | Manifests | Apps
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
GetAppManifestsResponseMessage
Article • 03/29/2023 • 2 minutes to read
XML
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</GetAppManifestsResponseMessage>
ResponseMessageType
Attributes
Attribute Description
ResponseClass
Value Description
Child elements
Element Description
DescriptiveLinkKey
Currently unused and reserved for future use.
Element Description
MessageText
Provides a text description of the status of the response.
MessageXml
Provides additional error response information.
ResponseCode
Provides status information about the request.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can Be Empty
See also
EWS XML elements in Exchange
GetAppMarketplaceUrl
Article • 03/29/2023 • 2 minutes to read
The GetAppMarketplaceUrl element specifies the request to retrieve the URL for an
app.
XML
<GetAppMarketplaceUrl/>
GetAppMarketplaceUrlType
Attributes
None.
Child elements
ApiVersionSupported | SchemaVersionSupported
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
GetAppMarketplaceUrlResponse
Article • 03/29/2023 • 2 minutes to read
XML
<AppMarketplaceUrl/>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</GetAppMarketplaceUrlResponse>
GetAppMarketplaceUrlResponseMessageType
Attributes
Attribute Description
ResponseClass
Value Description
Child elements
Element Description
Element Description
AppMarketplaceUrl
Specifies the URL for the app.
DescriptiveLinkKey
Currently unused and reserved for future use.
MessageText
Provides a text description of the status of the response.
MessageXml
Provides additional error response information.
ResponseCode
Provides status information about the request.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can Be Empty
See also
EWS XML elements in Exchange
GetAttachment
Article • 03/29/2023 • 2 minutes to read
The GetAttachment element is the root element in a request to get an attachment from
the Exchange store.
XML
<GetAttachment>
<AttachmentShape/>
<AttachmentIds/>
</GetAttachment>
GetAttachmentType
Attributes
None.
Child elements
Element Description
AttachmentIds
Contains an array of attachment identifiers.
Parent elements
None.
Remarks
The AttachmentShape element is not required to identify the properties returned in the
response. The GetAttachment operation returns the Name, ContentType, ContentId,
ContentLocation, and the Content properties for file attachments. For item attachments,
the returned properties are the Name, ContentType, ContentId, ContentLocation, and all
the attached item's properties. This is equivalent to using the AllProperties base shape in
a GetItem request.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetAttachment operation
GetAttachmentResponse
GetAttachmentResponse
Article • 03/29/2023 • 2 minutes to read
XML
<GetAttachmentResponse>
<ResponseMessages/>
</GetAttachmentResponse>
GetAttachmentResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetAttachment operation
GetAttachment
GetAttachmentResponseMessage
Article • 03/29/2023 • 2 minutes to read
GetAttachmentResponse
ResponseMessages
GetAttachmentResponseMessage
XML
<GetAttachmentResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<Attachments/>
</GetAttachmentResponseMessage>
AttachmentInfoResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of a GetAttachment operation response.
- Success
- Warning
- Error
ResponseClass Attribute
Value Description
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and is reserved for future use. It contains a value of 0.
MessageXml
Provides additional error response information.
Attachments
Contains the items or files that are ttached to an item in the Exchange store.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetAttachment
GetAttachment operation
GetClientAccessToken
Article • 03/29/2023 • 2 minutes to read
XML
<GetClientAccessToken>
<TokenRequests/>
</GetClientAccessToken>
GetClientAccessTokenType
Attributes
None.
Child elements
TokenRequests
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
GetClientAccessTokenResponse
Article • 03/29/2023 • 2 minutes to read
XML
<GetClientAccessTokenResponse>
<ResponseMessages/>
</GetClientAccessTokenResponse>
Attributes
None.
Child elements
ResponseMessages
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<Token/>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</GetClientAccessTokenResponseMessage>
GetClientAccessTokenResponseMessageType
Attributes
Attribute Description
ResponseClass
Value Description
Child elements
Element Description
Element Description
Token (ClientAccessTokenType)
Specifies a client access token.
DescriptiveLinkKey
Currently unused and reserved for future use.
MessageText
Provides a text description of the status of the response.
MessageXml
Provides additional error response information.
ResponseCode
Provides status information about the request.
Parent elements
Element Description
ResponseMessages Contains the response messages for an Exchange Web Services (EWS)
request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can Be Empty
See also
EWS XML elements in Exchange
GetClientExtension
Article • 03/29/2023 • 2 minutes to read
XML
<GetClientExtension>
<RequestedExtensionIds/>
<UserParameters/>
<IsDebug/>
</GetClientExtension>
Attributes
None.
Child elements
RequestedExtensionIds | UserParameters | IsDebug
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
GetClientExtensionResponse
Article • 03/29/2023 • 2 minutes to read
XML
<GetClientExtensionResponse>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<ClientExtensions/>
<RawMasterTableXml/>
</GetClientExtensionResponse>
ClientExtensionResponseType
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml | ClientExtensions |
RawMasterTableXml
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<GetClientIntent />
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
GetClientIntentResponseMessage
Article • 03/29/2023 • 2 minutes to read
XML
<GetClientIntentResponseMessage />
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
GetConversationItems
Article • 03/29/2023 • 2 minutes to read
The GetConversationItems element defines a request to get a set of items that are
related by being in the same conversation.
XML
<GetConversationItems>
<ItemShape/>
<FoldersToIgnore/>
<MaxItemsToReturn/>
<SortOrder/>
<MailboxScope/>
<Conversations/>
</GetConversationItems>
GetConversationItemsType
Attributes
None.
Child elements
ItemShape | FoldersToIgnore | MaxItemsToReturn | SortOrder
(ConversationNodeSortOrder) | MailboxScope | Conversations
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<GetConversationItemsResponse>
<ResponseMessages/>
</GetConversationItemsResponse>
GetConversationItemsResponseType
Attributes
None.
Child elements
ResponseMessages
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
GetConversationItemsResponseMessage
Article • 03/29/2023 • 2 minutes to read
XML
<Conversation/>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</GetConversationItemsResponseMessage>
GetConversationItemsResponseMessageType
Attributes
Attribute Description
ResponseClass
Value Description
Child elements
Element Description
Element Description
DescriptiveLinkKey
Currently unused and reserved for future use.
MessageText
Provides a text description of the status of the response.
MessageXml
Provides additional error response information.
ResponseCode
Provides status information about the request.
Parent elements
Element Description
ResponseMessages Contains the response messages for an Exchange Web Services (EWS)
request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can Be Empty
See also
EWS XML elements in Exchange
GetDelegate
Article • 03/29/2023 • 2 minutes to read
XML
<GetDelegate IncludePermissions="">
<Mailbox/>
<UserIds/>
</GetDelegate>
GetDelegateType
Attributes
Attribute Description
IncludePermissions Indicates whether the response contains permission settings for each
delegate user.
Value Description
True
Delegate user permissions are returned in addition to the delegate user information that
is returned in the UserId element.
False
UserId information is returned.
Child elements
Element Description
UserIds
Contains an array of delegate users to get from a principal's mailbox. This element was
introduced in Exchange 2007 SP1.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetDelegate operation
XML
<GetDelegateResponse>
<DeliverMeetingRequests/>
<ResponseMessages/>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</GetDelegateResponse>
GetDelegateResponseMessageType
Attributes
None.
Child elements
Element Description
DeliverMeetingRequests
Defines how meeting requests are handled
between the delegate and the principal.
MessageText
Provides a text description of the status of the
response.
ResponseCode
Provides an error code that identifies the specific
error that the request encountered.
Element Description
DescriptiveLinkKey
Currently unused and is reserved for future use. It
contains a value of 0.
MessageXml
Provides additional error response information.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetDelegate operation
XML
<GetDiscoverySearchConfiguration>
<SearchId/>
<ExpandGroupMembership/>
</GetDiscoverySearchConfiguration>
GetDiscoverySearchConfigurationType
Attributes
None.
Child elements
Element Description
SearchId
Specifies the identifier of the search.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can Be Empty
See also
EWS XML elements in Exchange
GetDiscoverySearchConfigurationRespo
nse
Article • 03/29/2023 • 2 minutes to read
XML
<GetDiscoverySearchConfigurationResponse>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<DiscoverySearchConfigurations/>
</GetDiscoverySearchConfigurationResponse>
GetDiscoverySearchConfigurationResponseMessageType
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml |
DiscoverySearchConfigurations
Parent elements
ResponseMessages
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<GetDiscoverySearchConfigurationResponseMessage>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<DiscoverySearchConfigurations/>
</GetDiscoverySearchConfigurationResponseMessage>
GetDiscoverySearchConfigurationResponseMessageType
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml |
DiscoverySearchConfigurations
Parent elements
ResponseMessages
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
GetEncryptionConfigurationResponse
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
GetEncryptionConfigurationResponseM
essage
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
GetEvents
Article • 03/29/2023 • 2 minutes to read
The GetEvents element represents the operation used by pull clients to request
notifications from the server.
GetEvents
XML
<GetEvents>
<SubscriptionId/>
<Watermark/>
</GetEvents>
GetEventsType
Attributes
None.
Child elements
Element Description
SubscriptionId Represents the identifier for a subscription that is queried for events.
(GetEvents)
Watermark
Represents the last watermark returned to the client. If GetEvents has not been
called for this subscription, the client uses the watermark returned from the
Subscribe request. Otherwise, the watermark from the last event in the last
GetEvents response is used.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
Subscribe operation
GetEvents operation
Unsubscribe operation
GetEventsResponse
Article • 03/29/2023 • 2 minutes to read
XML
<GetEventsResponse>
<ResponseMessages/>
</GetEventsResponse>
GetEventsResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<GetEventsResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<Notification/>
</GetEventsResponseMessage>
GetEventsResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of a GetEvents operation response.
- Success
- Warning
- Error
ResponseClass Attribute
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and is reserved for future use. It contains a value of 0.
MessageXml
Provides additional error response information.
Notification
Contains information about the subscription and the events that have
occurred since the last notification.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Element Type
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetEvents
GetEventsResponse
GetEvents operation
GetFederatedDirectoryGroup
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
GetFederatedDirectoryGroupResponse
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
GetFederatedDirectoryUser
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
GetFederatedDirectoryUserResponse
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
GetFolder
Article • 03/29/2023 • 2 minutes to read
The GetFolder element defines a request to get a folder from a mailbox in the Exchange
store.
XML
<GetFolder>
<FolderShape/>
<FolderIds/>
</GetFolder>
GetFolderType
Attributes
None.
Child elements
Element Description
FolderShape Identifies the properties to get for each folder identified in the FolderIds element.
FolderIds
Contains an array of folder identifiers that are used to identify folders to get from a
mailbox in the Exchange store.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetFolder operation
GetFolderResponse
Article • 03/29/2023 • 2 minutes to read
XML
<GetFolderResponse>
<ResponseMessages/>
</GetFolderResponse>
GetFolderResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetFolder
GetFolder operation
GetFolderResponseMessage
GetFolderResponseMessage
Article • 03/29/2023 • 2 minutes to read
GetFolderResponse
ResponseMessages
GetFolderResponseMessage
XML
<GetFolderResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<Folders/>
</GetFolderResponseMessage>
FolderInfoResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of a GetFolder operation response.
- Success
- Warning
- Error
ResponseClass Attribute
Value Description
Value Description
Success
Describes a request that is fulfilled.
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and is reserved for future use. It contains a value of 0.
MessageXml
Provides additional error response information.
Folders
Contains an array of folders that are used in folder operations.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetFolder
GetFolderResponse
GetFolder operation
GetHoldOnMailboxes
Article • 03/29/2023 • 2 minutes to read
XML
<GetHoldOnMailboxes>
<HoldId/>
</GetHoldOnMailboxes>
GetHoldOnMailboxesType
Attributes
None.
Child elements
HoldId
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
The GetHoldOnMailboxes element contains the request to get the hold status for a
mailbox.
XML
<GetHoldOnMailboxes>
<HoldId/>
</GetHoldOnMailboxes>
GetHoldOnMailboxesType
Attributes
None.
Child elements
HoldId
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
GetHoldOnMailboxesResponseMessage
Article • 03/29/2023 • 2 minutes to read
XML
<MailboxHoldResult/>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</GetHoldOnMailboxesResponseMessage>
GetHoldOnMailboxesResponseMessageType
Attributes
Attribute Description
ResponseClass
Value Description
Child elements
Element Description
Element Description
MailboxHoldResult
Contains the result of the GetHoldOnMailboxes request.
DescriptiveLinkKey
Currently unused and reserved for future use.
MessageText
Provides a text description of the status of the response.
MessageXml
Provides additional error response information.
ResponseCode
Provides status information about the request.
Parent elements
Element Description
ResponseMessages Contains the response messages for an Exchange Web Services (EWS)
request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can Be Empty
See also
EWS XML elements in Exchange
GetImItemList
Article • 03/29/2023 • 2 minutes to read
The GetImItemList element defines a request to get a list of instant messaging groups
and contacts.
XML
<GetImItemList>
<ExtendedProperties/>
</GetImItemList>
GetImItemListType
Attributes
None.
Child elements
ExtendedProperties (NonEmptyArrayOfExtendedFieldURIs)
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<GetImItemListResponse>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<ImItemList/>
</GetImItemListResponse>
GetImItemListResponseMessageType
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml | ImItemList
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
GetImItems
Article • 03/29/2023 • 2 minutes to read
The GetImItems request element defines a request to get information about the
specified instant messaging groups and instant messaging contact personas.
XML
<GetImItems>
<ContactIds/>
<GroupIds/>
<ExtendedProperties/>
</GetImItems>
GetImItemsType
Attributes
None.
Child elements
ContactIds | GroupIds | ExtendedProperties (NonEmptyArrayOfExtendedFieldURIs)
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
GetImItemsResponse
Article • 03/29/2023 • 2 minutes to read
XML
<GetImItemsResponse>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<ImItemList/>
</GetImItemsResponse>
GetImItemsResponseMessageType
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml | ImItemList
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
GetInboxRules
Article • 03/29/2023 • 2 minutes to read
The GetInboxRules element defines a request to get the Inbox rules on a mailbox in the
server store.
XML
<GetInboxRules>
<MailboxSmtpAddress/>
</GetInboxRules>
GetInboxRulesRequestType
Attributes
None.
Child elements
Element Description
MailboxSmtpAddress Represents the SMTP address of the user whose Inbox rules are to be
retrieved.
Parent elements
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetInboxRules operation
GetInboxRulesResponse
Article • 03/29/2023 • 2 minutes to read
XML
<GetInboxRulesResponse ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<OutlookRuleBlobExists/>
<InboxRules/>
</GetInboxRulesResponse>
GetInboxRulesResponseType
Attributes
Attribute Description
ResponseClass
Describes the status of a GetInboxRules operation response.
- Success
- Warning
- Error
ResponseClass Attribute
Value Description
Success
Describes a request that is fulfilled.
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides text description of the status of the response.
ResponseCode
Provides status information about the request.
DescriptiveLinkKey
Currently unused and is reserved for future use. It contains a value of 0.
MessageXml
Provides additional error response information.
OutlookRuleBlobExists Indicates whether a Microsoft Outlook rule blob exists in the user's
mailbox.
InboxRules
Represents an array of the rules in the user's mailbox.
Parent elements
None.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetInboxRules
GetInboxRules operation
GetItem
Article • 03/29/2023 • 2 minutes to read
The GetItem element defines a request to get an item from a mailbox in the Exchange
store.
XML
<GetItem>
<ItemShape/>
<ItemIds/>
</GetItem>
GetItemType
Attributes
None.
Child elements
Element Description
ItemShape Identifies the item properties and content to include in a GetItem response.
ItemIds
Contains the unique identities of items, occurrence items, and recurring master items
that are used to get items from the Exchange store. These items represent contacts,
tasks, messages, calendar items, meeting requests, and other valid items in a
mailbox.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetItem operation
GetItemResponse
Article • 03/29/2023 • 2 minutes to read
XML
<GetItemResponse>
<ResponseMessages/>
</GetItemResponse>
GetItemResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetItem
GetItemResponseMessage
GetItem operation
GetItemResponseMessage
Article • 03/29/2023 • 2 minutes to read
GetItemResponse
ResponseMessages
GetItemResponseMessage
XML
<GetItemResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<Items/>
</GetItemResponseMessage>
ItemInfoResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of a GetItem operation response.
- Success
- Warning
- Error
Value Description
Value Description
Success
Describes a request that is fulfilled.
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processed and subsequent items could not
be processed.
- MDB is offline.
- Password is expired.
- Quota is exceeded.
Error
Describes a request that cannot be fulfilled.
- Unknown tag
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and is reserved for future use. It contains a value of 0.
MessageXml
Provides additional error response information.
Items
Contains an array of returned items.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Element Type
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetItem
GetItem operation
GetMailTips
Article • 03/29/2023 • 2 minutes to read
The GetMailTips element represents the recipients and types of mail tips to retrieve.
XML
<GetMailTips>
<SendingAs/>
<Recipients/>
<MailTipsRequested/>
</GetMailTips>
GetMailTipsType
Attributes
None.
Child elements
Element Description
SendingAs
Contains an e-mail address that a user is trying to send as.
Recipients (ArrayOfRecipientsType)
Contains a list of recipients to check for mail tips.
MailTipsRequested
Contains the types of mail tips requested from the service.
Parent elements
None.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
GetMailTipsResponse
Article • 03/29/2023 • 2 minutes to read
XML
<GetMailTipsResponse>
<ResponseMessages/>
</GetMailTipsResponse>
GetMailTipsResponseMessageType
Attributes
None.
Child elements
Element Description
Parent elements
None.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetMailTips operation
EWS XML elements in Exchange
GetMessageTrackingReport
Article • 03/29/2023 • 2 minutes to read
XML
<GetMessageTrackingReport>
<Scope/>
<ReportTemplate/>
<RecipientFilter/>
<MessageTrackingReportId/>
<ReturnQueueEvents/>
<DiagnosticsLevel/>
<Properties/>
</GetMessageTrackingReport>
GetMessageTrackingReportRequestType
Attributes
None.
Child elements
Element Description
Scope (NonEmptyStringType)
Specifies where to perform the search. This element is required.
ReportTemplate
Specifies the type of tracking report to retrieve. This element is
required.
RecipientFilter
Specifies a recipient address to use with the specified tracking
report. This element is optional.
MessageTrackingReportId
Specifies an identity string that was obtained from the
FindMessageTrackingReport operation. This element is
required.
Element Description
ReturnQueueEvents
Specifies that the person who is running the task has a
privileged role. This element is optional.
DiagnosticsLevel
Specifies timing and performance information that will be used
to derive the tracking report. This element is optional.
Parent elements
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetMessageTrackingReport operation
XML
<GetMessageTrackingReportResponse ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<MessageTrackingReport/>
<Diagnostics/>
<Errors/>
<Properties/>
</GetMessageTrackingReportResponse>
GetMessageTrackingReportResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of the response.
- Success
- Warning
- Error
Value Description
Success
Describes a request that is fulfilled.
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the
request encountered.
DescriptiveLinkKey
Currently unused and reserved for future use. This element
contains a value of 0.
MessageXml
Provides additional error response information.
MessageTrackingReport
Contains a single message that is returned in a
GetMessageTrackingReport operation.
Errors
Contains a property bag to store errors that are returned
through the Web service.
Parent elements
None.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetMessageTrackingReport operation
EWS XML elements in Exchange
GetNonIndexableItemDetails
Article • 03/29/2023 • 2 minutes to read
XML
<GetNonIndexableItemDetails>
<Mailboxes/>
<PageSize/>
<PageItemReference/>
<PageDirection/>
</GetNonIndexableItemDetails>
GetNonIndexableItemDetailsType
Attributes
None.
Child elements
Element Description
PageSize
Contains the number of items to be returned in a single
page for a search result.
PageItemReference
Specifies the reference for a page item.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can Be Empty
See also
EWS XML elements in Exchange
GetNonIndexableItemDetailsResponse
Article • 03/29/2023 • 2 minutes to read
XML
<GetNonIndexableItemDetailsResponse>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<NonIndexableItemDetailsResult/>
</GetNonIndexableItemDetailsResponse>
GetNonIndexableItemDetailsResponseMessageType
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml |
NonIndexableItemDetailsResult
Parent elements
ResponseMessages
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Type
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<GetNonIndexableItemDetailsResponseMessage>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<NonIndexableItemDetailsResult/>
</GetNonIndexableItemDetailsResponseMessage>
GetNonIndexableItemDetailsResponseMessageType
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml |
NonIndexableItemDetailsResult
Parent elements
ResponseMessages
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Type
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<GetNonIndexableItemStatistics>
<Mailboxes/>
</GetNonIndexableItemStatistics>
GetNonIndexableItemStatisticsType
Attributes
None.
Child elements
Element Description
Mailboxes (NonEmptyArrayOfLegacyDNsType)
Specifies an array of Mailbox elements.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can Be Empty
See also
EWS XML elements in Exchange
GetNonIndexableItemStatisticsResponse
Article • 03/29/2023 • 2 minutes to read
XML
<GetNonIndexableItemStatisticsResponse>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<NonIndexableItemStatistics/>
</GetNonIndexableItemStatisticsResponse>
GetNonIndexableItemStatisticsResponseMessageType
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml |
GetNonIndexableItemStatistics
Parent elements
ResponseMessages
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Item Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<GetNonIndexableItemStatisticsResponseMessage>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<NonIndexableItemStatistics/>
</GetNonIndexableItemStatisticsResponseMessage>
GetNonIndexableItemStatisticsResponseMessageType
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml |
GetNonIndexableItemStatistics
Parent elements
ResponseMessages
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Item Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<GetPasswordExpirationDate>
<MailboxSmtpAddress/>
</GetPasswordExpirationDate>
GetPasswordExpirationDateType
Attributes
None.
Child elements
MailboxSmtpAddress Represents the email address of the email account for which the password
expiration date is to be returned.
Parent elements
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
This element was introduced in Exchange Server 2010 Service Pack 2 (SP2).
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetPasswordExpirationDate operation
ResponseMessages
GetPasswordExpirationDateResponse
XML
<GetPasswordExpirationDateResponse>
<PasswordExpirationDate />
</GetPasswordExpirationDateResponse>
GetPasswordExpirationDateResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of the response.
- Success
- Warning
- Error
Value Description
Success
Describes a request that is fulfilled.
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
PasswordExpirationDate Provides the password expiration date for the email account specified
in the request.
Parent elements
ResponseMessages Contains the response messages for an Exchange Web Services (EWS)
request.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
This element was introduced in Exchange Server 2010 Service Pack 2 (SP2).
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetPasswordExpirationDate operation
EWS XML elements in Exchange
GetPersona
Article • 03/29/2023 • 2 minutes to read
XML
<GetPersona>
<PersonaId/>
</GetPersona>
GetPersonaType
Attributes
None.
Child elements
PersonaId
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
GetPersonaResponseMessage
Article • 03/29/2023 • 2 minutes to read
XML
<GetPersonaResponseMessage>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<Persona/>
</GetPersonaResponseMessage>
GetUserPhotoResponseMessageType
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml | Persona
Parent elements
ResponseMessages
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
GetPhoneCallInformation
Article • 03/29/2023 • 2 minutes to read
XML
<GetPhoneCallInformation>
<PhoneCallId/>
</GetPhoneCallInformation>
GetPhoneCallInformationType
Attributes
None.
Child elements
Element Description
PhoneCallId
Specifies the identifier of a phone call.
Parent elements
None.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
GetPhoneCallInformationResponse
Article • 03/29/2023 • 2 minutes to read
XML
<GetPhoneCallInformationResponse ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/> <PhoneCallInformation/>
</GetPhoneCallInformationResponse>
GetPhoneCallInformationResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of the response.
- Success
- Warning
- Error
Value Description
Success
Describes a request that is fulfilled.
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey
Currently unused and reserved for future use. This element contains a
value of 0.
MessageXml
Provides additional error response information.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Exchange Server with the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
GetReminders
Article • 03/29/2023 • 2 minutes to read
XML
<GetReminders>
<BeginTime/>
<EndTime/>
<MaxItems/>
<ReminderType/>
</GetReminders>
GetRemindersType
Attributes
None.
Child elements
BeginTime | EndTime (ReminderMessageDataType) | MaxItems | ReminderType
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
GetRemindersResponse
Article • 03/29/2023 • 2 minutes to read
XML
<GetRemindersResponse>
<Reminders></Reminders>
</GetRemindersResponse>
GetRemindersResponseMessageType
Attributes
None.
Child elements
Reminders
Parent elements
ResponseMessages
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
ResponseMessages
The GetRoomLists element is the root element in a request for a list of email addresses
that represent a list of available rooms.
XML
<GetRoomLists/>
GetRoomListsType
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Name Value
See also
EWS XML elements in Exchange
GetRoomListsResponse
Article • 03/29/2023 • 2 minutes to read
ResponseMessages
GetRoomListsResponse
XML
<GetRoomListsResponse ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<RoomLists/>
</GetRoomListsResponse>
GetRoomListsResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of the response.
- Success
- Warning
- Error
Value Description
Success
Describes a request that is fulfilled.
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
-
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and reserved for future use. This element contains a value
of 0.
MessageXml
Provides additional error response information.
RoomLists
Provides a list of e-mail addresses and display names that represent lists of
meeting rooms.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetRoomLists operation
EWS XML elements in Exchange
GetRooms
Article • 03/29/2023 • 2 minutes to read
The GetRooms element is the root element in a request to get a list of rooms within a
particular room list.
XML
<GetRooms>
<RoomList/>
</GetRooms>
GetRoomsType
Attributes
None.
Child elements
Element Description
RoomList
Represents an e-mail address that identifies a list of meeting rooms
Parent elements
None.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
GetRoomsResponse
Article • 03/29/2023 • 2 minutes to read
ResponseMessages
GetRoomsResponse
XML
<GetRoomsResponse ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<Rooms/>
</GetRoomsResponse>
GetRoomsResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of the response.
- Success
- Warning
- Error
Value Description
Success
Describes a request that is fulfilled.
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and reserved for future use. This element contains a value
of 0.
MessageXml
Provides additional error response information.
Rooms
Provides a list of email addresses and display names that represent meeting
rooms.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetRooms operation
EWS XML elements in Exchange
GetSearchableMailboxes
Article • 03/29/2023 • 2 minutes to read
XML
<GetSearchableMailboxes>
<SearchFilter/>
<ExpandGroupMembership/>
</GetSearchableMailboxes>
GetSearchableMailboxesType
Attributes
None.
Child elements
SearchFilter | ExpandGroupMembership
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Type
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
GetSearchableMailboxesResponse
Article • 03/29/2023 • 2 minutes to read
XML
<GetSearchableMailboxesResponse>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<SearchableMailboxes/>
<FailedMailboxes/>
</GetSearchableMailboxesResponse>
GetSearchableMailboxesResponseMessageType
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml | SearchableMailboxes |
FailedMailboxes
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<SearchableMailboxes/>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</GetSearchablemailboxesResponseMessage>
GetSearchableMailboxesResponseMessageType
Attributes
Attribute Description
ResponseClass
Value Description
Child elements
Element Description
DescriptiveLinkKey
Currently unused and reserved for future use.
MessageText
Provides a text description of the status of the response.
MessageXml
Provides additional error response information.
ResponseCode
Provides status information about the request.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can Be Empty
See also
EWS XML elements in Exchange
GetServerTimeZones
Article • 03/29/2023 • 2 minutes to read
The GetServerTimeZones element is the root element in a request to retrieve time zone
definitions from the Exchange server.
XML
GetServerTimeZonesType
Attributes
Attribute Description
ReturnFullTimeZoneData Attribute
Value Description
true
Return the complete definitions for each time zone.
false
Return only the name and identifier for each time zone.
Child elements
Element Description
Ids
Contains an array of time zone definition identifiers that specifies the requested time
zone definitions. This element is optional. If this element is not included in the
GetServerTimeZones operation request, all time zone definitions that are available on
the server are returned in the response.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server that has the Client Access server
role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetServerTimeZones operation
GetServerTimeZonesResponse
XML
<GetServerTimeZonesResponse>
<ResponseMessages/>
</GetServerTimeZonesResponse>
GetServerTimeZonesResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Parent elements
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
GetServerTimeZonesResponseMessage
Article • 03/29/2023 • 2 minutes to read
XML
<GetServerTimeZonesResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<TimeZoneDefinitions/>
</GetServerTimeZonesResponseMessage>
GetServerTimeZonesResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of the response.
- Success
- Warning
- Error
Value Description
Success
Describes a request that is fulfilled.
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey
Currently unused and reserved for future use. This element contains a
value of 0.
MessageXml
Provides additional error response information.
Parent elements
Element Description
ResponseMessages Contains the response messages for an Exchange Web Services (EWS)
request.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
GetServiceConfiguration
Article • 03/29/2023 • 2 minutes to read
XML
<GetServiceConfiguration>
<ActingAs/>
<RequestedConfiguration/>
</GetServiceConfiguration>
GetServiceConfigurationType
Attributes
None.
Child elements
Element Description
ActingAs
Identifies who the caller is sending as. This element is optional. If this
element is not present, the authenticated user is assumed to be the
sender. The ActingAs element must be included for requesting sender
hints. An ErrorInvalidArgument error can be returned in a response if
the ActingAs element is missing, does not include a routing type, does
not include an e-mail address, contains an invalid e-mail address, does
not resolve to a user in Active Directory Domain Services (AD DS), or
resolves to multiple users in AD DS.
Parent elements
None.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
GetServiceConfigurationResponse
Article • 03/29/2023 • 2 minutes to read
XML
<GetServiceConfigurationResponse ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<ResponseMessages/>
</GetServiceConfigurationResponse>
GetServiceConfigurationResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of the response.
- Success
- Warning
- Error
Value Description
Success
Describes a request that is fulfilled.
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of
the response.
ResponseCode
Provides an error code that identifies the
specific error that the request
encountered.
DescriptiveLinkKey
Currently unused and reserved for future
use. This element contains a value of 0.
MessageXml
Provides additional error response
information.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
GetSharingFolder
Article • 03/29/2023 • 2 minutes to read
The GetSharingFolder element defines a request to get the local folder identifier of a
specified shared folder. It is the base element for the GetSharingFolder operation.
XML
GetSharingFolderType
Attributes
None.
Child elements
Element Description
SmtpAddress
Represents the SMTP e-mail address of the other party in the sharing
relationship. This element is required.
DataType
Describes the type of data that is shared by a shared folder. This element is
optional.
SharedFolderId Represents the identifier of the shared folder whose local folder identifier
should be returned. This element is optional.
Parent elements
None.
Remarks
A GetSharingFolder element must contain an SmtpAddress element. A GetSharingFolder
element must also contain either a DataType element or a SharedFolderId element, but
cannot contain both.
The schema that describes this element is located in the IIS Virtual directory that hosts
Exchange Web Services of the computer that is running Microsoft Exchange Server that
has the Client Access server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetSharingFolder operation
XML
<GetSharingFolderResponse ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/> <SharingFolderId/>
</GetSharingFolderResponse>
GetSharingFolderResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of the response.
- Success
- Warning
- Error
Value Description
Success
Describes a request that is fulfilled.
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and reserved for future use. This element contains a value
of 0.
MessageXml
Provides additional error response information.
SharingFolderId
Represents the identifier of the local folder in a sharing relationship.
Parent elements
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
GetSharingFolderResponseMessage
Article • 03/29/2023 • 2 minutes to read
XML
<GetSharingFolderResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/> <SharingFolderId/>
</GetSharingFolderResponseMessage>
GetSharingFolderResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of the response.
- Success
- Warning
- Error
Value Description
Success
Describes a request that is fulfilled.
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and reserved for future use. This element contains a value
of 0.
MessageXml
Provides additional error response information.
SharingFolderId
Represents the identifier of the local folder in a sharing relationship.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
The schema that describes this element is located in the IIS Virtual directory that hosts
Exchange Web Services of the computer that is running Microsoft Exchange Server that
has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
GetSharingMetadata
Article • 03/29/2023 • 2 minutes to read
XML
<GetSharingMetadata>
<IdOfFolderToShare/>
<SenderSmtpAddress/>
<Recipients/>
</GetSharingMetadata>
GetSharingMetadataType
Attributes
None.
Child elements
Element Description
IdOfFolderToShare
Represents the identifier of the folder on the server that will be
shared. This element is required.
SenderSmtpAddress Represents the SMTP email address that corresponds to the mailbox
that contains the folder that is identified by the IdOfFolderToShare
element. This element is required.
Recipients Represents the SMTP email addresses of one or more entities that
(ArrayOfSmtpAddressType) will be granted access to the data in the folder that is identified by
the IdOfFolderToShare element. This element is required.
Parent elements
None.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetSharingMetadata operation
XML
<GetSharingMetadataResponse ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/> <EncryptedSharedFolderDataCollection/>
<InvalidRecipients/>
</GetSharingMetadataResponse>
GetSharingMetadataResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of the response.
- Success
- Warning
- Error
Value Description
Success
Describes a request that is fulfilled.
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error
that the request encountered.
DescriptiveLinkKey
Currently unused and reserved for future use. This
element contains a value of 0.
MessageXml
Provides additional error response information.
InvalidRecipients
Represents recipients of the folder sharing request that
are invalid.
Parent elements
None.
Remarks
The schema that describes this element is located in the IIS Virtual directory that hosts
Exchange Web Services of the computer that is running Microsoft Exchange Server that
has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetSharingMetadata operation
EWS XML elements in Exchange
GetSharingMetadataResponseMessage
Article • 03/29/2023 • 2 minutes to read
XML
<GetSharingMetadataResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/> <EncryptedSharedFolderDataCollection/>
<InvalidRecipients/>
</GetSharingMetadataResponseMessage>
GetSharingMetadataResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of the response.
- Success
- Warning
- Error
Value Description
Success
Describes a request that is fulfilled.
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error
that the request encountered.
DescriptiveLinkKey
Currently unused and reserved for future use. This
element contains a value of 0.
MessageXml
Provides additional error response information.
InvalidRecipients
Represents recipients of the folder sharing request that
are invalid.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
The schema that describes this element is located in the IIS Virtual directory that hosts
Exchange Web Services of the computer that is running Microsoft Exchange Server that
has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetSharingMetadata operation
EWS XML elements in Exchange
GetStreamingEvents
Article • 03/29/2023 • 2 minutes to read
GetStreamingEvents
XML
<GetStreamingEvents>
<SubscriptionIds>
<SubscriptionId/>
</SubscriptionIds>
<ConnectionTimeout/>
</GetStreamingEvents>
GetStreamingEventsType
Attributes
None.
Child elements
Element Description
SubscriptionIds
Contains an array of subscription identifiers that identify the subscriptions
to get streaming events for.
Parent elements
None.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
Subscribe operation
GetStreamingEvents operation
Unsubscribe operation
XML
<GetStreamingEventsResponse>
<ResponseMessages/>
</GetStreamingEventsResponse>
GetStreamingEventsResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Parent elements
None.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetStreamingEvents operation
XML
<GetStreamingEventsResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<Notifications/>
<ErrorSubscriptionIds/>
<ConnectionStatus/>
</GetStreamingEventsResponseMessage>
GetStreamingEventsResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of a GetStreamingEvents operation response.
- Success
- Warning
- Error
ResponseClass Attribute
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey
Currently unused and is reserved for future use. It contains a value of 0.
MessageXml
Provides additional error response information.
Notifications
Contains a list of information about the subscription and the events that
have occurred since the last notification.
ConnectionStatus
Provides a text description of the status of a streaming subscription.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetStreamingEvents
GetStreamingEventsResponse
GetStreamingEvents operation
GetUserAvailabilityRequest
Article • 03/29/2023 • 2 minutes to read
XML
<GetUserAvailabilityRequest>
<TimeZone>...</TimeZone>
<MailboxDataArray>...</MailboxDataArray>
<FreeBusyViewOptions>...</FreeBusyViewOptions>
<SuggestionsViewOptions>...</SuggestionsViewOptions>
</GetUserAvailabilityRequest>
GetUserAvailabilityRequestType
Attributes
None.
Child elements
Element Description
TimeZone (Availability)
Contains elements that identify time zone information. This element
also contains information about the transition between standard time
and daylight saving time.
MailboxDataArray
Contains a list of mailboxes to query for availability information.
FreeBusyViewOptions
Specifies the type of free/busy information returned in the response.
Parent elements
None.
Remarks
The schema that describes this element is located in the /EWS/ directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Example
The following example shows a request for free/busy information.
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetUserAvailabilityRequest
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<TimeZone
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Bias>480</Bias>
<StandardTime>
<Bias>0</Bias>
<Time>02:00:00</Time>
<DayOrder>5</DayOrder>
<Month>10</Month>
<DayOfWeek>Sunday</DayOfWeek>
</StandardTime>
<DaylightTime>
<Bias>-60</Bias>
<Time>02:00:00</Time>
<DayOrder>1</DayOrder>
<Month>4</Month>
<DayOfWeek>Sunday</DayOfWeek>
</DaylightTime>
</TimeZone>
<MailboxDataArray>
<MailboxData
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Email>
<Name></Name>
<Address>[email protected]</Address>
<RoutingType>SMTP</RoutingType>
</Email>
<AttendeeType>Organizer</AttendeeType>
<ExcludeConflicts>false</ExcludeConflicts>
<ExcludeNonWorkingHours>false</ExcludeNonWorkingHours>
</MailboxData>
</MailboxDataArray>
<FreeBusyViewOptions
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<TimeWindow>
<StartTime>2006-02-06T00:00:00</StartTime>
<EndTime>2006-02-30T23:59:59</EndTime>
</TimeWindow>
<MergedFreeBusyIntervalInMinutes>60</MergedFreeBusyIntervalInMinutes>
<RequestedView>FreeBusyMerged</RequestedView>
</FreeBusyViewOptions>
</GetUserAvailabilityRequest>
</soap:Body>
</soap:Envelope>
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetUserAvailability operation
GetUserAvailabilityResponse
XML
<GetUserAvailabilityResponse>
<FreeBusyResponseArray>...</FreeBusyResponseArray>
<SuggestionsResponse>...</SuggestionsResponse>
</GetUserAvailabilityResponse>
GetUserAvailabilityResponseType
Attributes
None.
Child elements
Element Description
FreeBusyResponseArray Contains the requested users' availability information and the response
status.
SuggestionsResponse
Contains response status information and suggestion data for
requested meeting suggestions.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Example
The following example of a GetUserAvailability response shows a response to a
GetUserAvailability request.
<GetUserAvailabilityResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<FreeBusyResponseArray
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<FreeBusyResponse>
<ResponseMessage ResponseClass="Success">
</ResponseMessage>
<FreeBusyView>
<FreeBusyViewType
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">Detailed<
/FreeBusyViewType>
<CalendarEventArray
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<CalendarEvent>
<StartTime>2006-02-28T19:00:00-08:00</StartTime>
<EndTime>2006-02-28T23:30:00-08:00</EndTime>
<BusyType>OOF</BusyType>
<IsPrivate>false</IsPrivate>
<CalendarEventDetails>
<ID>00000</ID>
<Subject>Exercise</Subject>
<Location>the gym</Location>
<IsMeeting>false</IsMeeting>
<IsRecurring>false</IsRecurring>
<IsException>false</IsException>
<IsReminderSet>true</IsReminderSet>
</CalendarEventDetails>
</CalendarEvent>
</CalendarEventArray>
<WorkingHours
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<TimeZone>
<Bias>480</Bias>
<StandardTime>
<Bias>0</Bias>
<Time>02:00:00</Time>
<DayOrder>5</DayOrder>
<Month>10</Month>
<DayOfWeek>Sunday</DayOfWeek>
</StandardTime>
<DaylightTime>
<Bias>-60</Bias>
<Time>02:00:00</Time>
<DayOrder>1</DayOrder>
<Month>4</Month>
<DayOfWeek>Sunday</DayOfWeek>
</DaylightTime>
</TimeZone>
<WorkingPeriodArray>
<WorkingPeriod>
<StartTimeInMinutes>480</StartTimeInMinutes>
<EndTimeInMinutes>1020</EndTimeInMinutes>
</WorkingPeriod>
</WorkingPeriodArray>
</WorkingHours>
</FreeBusyView>
</FreeBusyResponse>
</FreeBusyResponseArray>
</GetUserAvailabilityResponse>
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetUserAvailabilityRequest
XML
<GetUserConfiguration>
<UserConfigurationName/>
<UserConfigurationProperties/>
</GetUserConfiguration>
GetUserConfigurationType
Attributes
None.
Child elements
Element Description
UserConfigurationName
Represents the name of a user configuration object. This element
must be present in a GetUserConfiguration request.
Parent elements
None.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
GetUserConfigurationResponse
Article • 03/29/2023 • 2 minutes to read
XML
<GetUserConfigurationResponse> <ResponseMessages/>
</GetUserConfigurationResponse>
GetUserConfigurationResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
GetUserConfigurationResponseMessage
Article • 03/29/2023 • 2 minutes to read
XML
<GetUserConfigurationResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<UserConfiguration/>
</GetUserConfigurationResponseMessage>
GetUserConfigurationResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of the response.
- Success
- Warning
- Error
Value Description
Success
Describes a request that is fulfilled.
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and reserved for future use. This element contains a value
of 0.
MessageXml
Provides additional error response information.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
GetUserOofSettingsRequest
Article • 03/29/2023 • 2 minutes to read
XML
<GetUserOofSettingsRequest>
<Mailbox>...</Mailbox>
</GetUserOofSettingsRequest>
GetUserOofSettingsRequest
Attributes
None.
Child elements
Element Description
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Example
The following is an example of a GetUserOofSettings request that gets a single user's
OOF information.
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetUserOofSettingsRequest
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<Mailbox
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Name>David Alexander</Name>
<Address>[email protected]</Address>
<RoutingType>SMTP</RoutingType>
</Mailbox>
</GetUserOofSettingsRequest>
</soap:Body>
</soap:Envelope>
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetUserOofSettings operation
GetUserOofSettingsResponse
Article • 03/29/2023 • 2 minutes to read
The GetUserOofSettingsResponse element contains the response message and the Out
of Office (OOF) settings for a user.
XML
<GetUserOofSettingsResponse>
<ResponseMessage>...</ResponseMessage>
<OofSettings>...</OofSettings>
<AllowExternalOof>...</AllowExternalOof>
</GetUserOofSettingsResponse>
GetUserOofSettingsResponse
Attributes
None.
Child elements
Element Description
ResponseMessage
Provides descriptive information about the response status.
OofSettings
Contains the OOF settings.
AllowExternalOof
Contains a value that identifies to whom external OOF messages are sent.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetUserOofSettings operation
SetUserOofSettings operation
GetUserPhoto
Article • 03/29/2023 • 2 minutes to read
XML
<GetUserPhoto>
<Email/>
<SizeRequested/>
</GetUserPhoto>
GetUserPhotoType
Attributes
None.
Child elements
Email (String) | SizeRequested
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
GetUserPhotoResponse
Article • 03/29/2023 • 2 minutes to read
XML
<GetUserPhotoResponse>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<HasChanged/>
<PictureData/>
</GetUserPhotoResponse>
GetUserPhotoResponseMessageType
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml | HasChanged |
PictureData
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Type
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
GetUserPhotoResponseMessage
Article • 03/29/2023 • 2 minutes to read
XML
<GetUserPhotoResponseMessage>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<HasChanged/>
<PictureData/>
</GetUserPhotoResponseMessage>
GetUserPhotoResponseMessageType
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml | HasChanged |
PictureData
Parent elements
ResponseMessages
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
GetUserRetentionPolicyTags
Article • 03/29/2023 • 2 minutes to read
XML
<GetUserRetentionPolicyTags/>
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Name Value
Can be empty
GetUserRetentionPolicyTagsResponse
Article • 03/29/2023 • 2 minutes to read
XML
<GetUserRetentionPolicyTagsResponse>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<RetentionPolicyTags/>
</GetUserRetentionPolicyTagsResponse>
GetUserRetentionPolicyTagsResponseMessageType
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml | RetentionPolicyTags
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<GetUserRetentionPolicyTagsResponseMessage>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<RetentionPolicyTags/>
</GetUserRetentionPolicyTagsResponseMessage>
GetUserRetentionPolicyTagsResponseMessageType
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml | RetentionPolicyTags
Parent elements
ResponseMessages
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<GivenName/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Contact
Represents an Exchange contact item.
Text value
A text value that represents a contact's given name is required if this element is used.
Remarks
A given name is usually a person's first name.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Type
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Updating Contacts
Deleting Contacts
GivenNames
Article • 03/29/2023 • 2 minutes to read
The GivenNames element specifies an array of given name values and the identifiers of
their source attributions for the associated persona.
XML
<GivenNames>
<StringAttributedValue/>
</GivenNames>
ArrayOfStringAttributedValuesType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
GlobalCategories
Article • 03/29/2023 • 2 minutes to read
The GlobalCategories element contains the category list for all conversation items in a
mailbox.
FindConversationResponse
Conversations
Conversation (ConversationType)
GlobalCategories
XML
<GlobalCategories>
<String/>
</GlobalCategories>
ArrayOfStringsType
Attributes
None.
Child elements
Element Description
String
Contains a single category.
Parent elements
Element Description
Conversation (ConversationType)
Represents a single conversation.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
FindConversation operation
ApplyConversationAction operation
Conversations in EWS
GlobalFlagStatus
Article • 03/29/2023 • 2 minutes to read
The GlobalFlagStatus element contains the aggregated flag status for all conversation
items in a mailbox.
FindConversationResponse
Conversations
Conversation (ConversationType)
GlobalFlagStatus
XML
FlagStatusType
Attributes
None.
Child elements
None.
Parent elements
Element Description
Conversation (ConversationType)
Represents a single conversation.
Text value
The text value of the GlobalFlagStatus element is the aggregated flag status for
conversation items in the current folder. The following are the possible text values:
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
FindConversation operation
ApplyConversationAction operation
Conversations in EWS
GlobalHasAttachments
Article • 03/29/2023 • 2 minutes to read
The GlobalHasAttachments element contains a value that indicates whether at least one
conversation item in a mailbox has an attachment.
FindConversationResponse
Conversations
Conversation (ConversationType)
GlobalHasAttachments
XML
<GlobalHasAttachments/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Conversation (ConversationType)
Represents a single conversation.
Text value
The value of the GlobalHasAttachments element indicates whether at least one
conversation item in a mailbox has an attachment. A text value that represents a
Boolean value is required. A value of true means that the conversation has at least one
visible attachment. A value of false means that the conversation either has no
attachments or has only hidden attachments.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
FindConversation operation
ApplyConversationAction operation
Conversations in EWS
GlobalHasIrm
Article • 03/29/2023 • 2 minutes to read
The GlobalHasIrm element specifies whether at least one message in the conversation
and across all folders is an IRM protected message.
XML
Boolean
Attributes
None.
Child elements
None.
Parent elements
Conversation (ConversationType)
Text value
The text value of the GlobalHasIrm element is true if at least one message in the
conversation and across all folders is an IRM protected message. Otherwise the value is
false.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Type
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Conversation (ConversationType)
The GlobalIconIndex element identifies the global icon index for all items in a
conversation.
XML
IconIndexType
Attributes
None.
Child elements
None.
Parent elements
Conversation (ConversationType) | Item | Contact | DistributionList | Message |
CalendarItem | PostItem | Task
Text value
The following table contains the possible text values for the GlobalIconIndex element.
Value Description
SmsSubmitted Specifies the icon for mail submitted for Short Message
Service (SMS) routing.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
The GlobalImportance element contains the aggregated importance for all conversation
items in a mailbox.
FindConversationResponse
Conversations
Conversation (ConversationType)
GlobalImportance
XML
ImportanceChoicesType
Attributes
None.
Child elements
None.
Parent elements
Element Description
Conversation (ConversationType)
Represents a single conversation.
Text value
A text value is required. The following are the possible values for this element:
Low
Normal
High
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Type
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
FindConversation operation
ApplyConversationAction operation
Conversations in EWS
GlobalItemClasses
Article • 03/29/2023 • 2 minutes to read
The GlobalItemClasses element contains a list of item classes that represents all the
item classes of the conversation items in a mailbox.
FindConversationResponse
Conversations
Conversation (ConversationType)
GlobalItemClasses
XML
<GlobalItemClasses>
<String/>
</GlobalItemClasses>
ArrayOfItemClassType
Attributes
None.
Child elements
Element Description
ItemClass
Represents the message class of an item.
Parent elements
Element Description
Conversation (ConversationType)
Represents a single conversation.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
FindConversation operation
ApplyConversationAction operation
Conversations in EWS
GlobalItemIds
Article • 03/29/2023 • 2 minutes to read
The GlobalItemIds element contains the collection of item identifiers for all conversation
items in a mailbox.
FindConversationResponse
Conversations
Conversation (ConversationType)
GlobalItemIds
XML
<ItemIds>
<ItemId/>
<OccurrenceItemId/>
<RecurringMasterItemId/>
</ItemIds>
NonEmptyArrayOfBaseItemIdsType
Attributes
None.
Child elements
Element Description
ItemId
Contains the unique identifier and change key of an item in the
Exchange store.
OccurrenceItemId
Identifies a single occurrence of a recurring item.
Element Description
Conversation (ConversationType)
Represents a single conversation.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
FindConversation operation
ApplyConversationAction operation
Conversations in EWS
GlobalLastDeliveryTime
Article • 03/29/2023 • 2 minutes to read
The GlobalLastDeliveryTime element contains the delivery time of the message that was
last received in this conversation across all folders in the mailbox.
FindConversationResponse
Conversations
Conversation (ConversationType)
GlobalLastDeliveryTime
XML
<GlobalLastDeliveryTime/>
xs:dateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
Conversation (ConversationType)
Represents a single conversation.
Text value
The text value of the GlobalLastDeliveryTime element is the date and time of the
message that was last received in this conversation across all folders in the mailbox.
Remarks
This element was introduced in Exchange Server 2010 Service Pack 1 (SP1).The schema
that describes this element is located in the IIS virtual directory that hosts Exchange Web
Services.
Element information
Element Type
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
FindConversation operation
ApplyConversationAction operation
Conversations in EWS
GlobalMessageCount
Article • 03/29/2023 • 2 minutes to read
FindConversationResponse
Conversations
Conversation (ConversationType)
GlobalMessageCount
XML
<GlobalMessageCount/>
xs:int
Attributes
None.
Child elements
None.
Parent elements
Element Description
Conversation (ConversationType)
Represents a single conversation.
Text value
The text value of the GlobalMessageCount element is the total number of conversation
items in a mailbox.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
FindConversation operation
ApplyConversationAction operation
Conversations in EWS
GlobalObjectId
Article • 03/29/2023 • 2 minutes to read
GetUserAvailabilityRequest
SuggestionsViewOptions
GlobalObjectId
XML
<GlobalObjectId>...</GlobalObjectId>
dateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
SuggestionsViewOptions
Contains the options for obtaining meeting suggestion information.
The following is the XPath to this element:
/GetUserAvailabilityRequest/SuggestionViewOptions
Element information
Element Example
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
Getting User Availability
GlobalObjectId (GetClientIntentType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
GlobalParentFolderIds
Article • 03/29/2023 • 2 minutes to read
The GlobalParentFolderIds element specifies the identifiers of the global parent folders.
XML
<GlobalParentFolderIds>
<FolderId/>
<DistinguishedFolderId/>
</GlobalParentFolderIds>
NonEmptyArrayOfBaseFolderIdsType
Attributes
None.
Child elements
Element Description
FolderId
Contains the identifier and change key of a folder.
DistinguishedFolderId
Identifies folders that can be referenced by name.
Parent elements
Element Description
Conversation (ConversationType)
Represents a single conversation.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
GlobalSize
Article • 03/29/2023 • 2 minutes to read
The GlobalSize element contains the size of the conversation calculated from the size of
all conversation items in the mailbox.
FindConversationResponse
Conversations
Conversation (ConversationType)
GlobalSize
XML
<GlobalSize/>
xs:int
Attributes
None.
Child elements
None.
Parent elements
Element Description
Conversation (ConversationType)
Represents a single conversation.
Text value
The text value of the GlobalSize element is the size of the conversation calculated from
the size of all conversation items in the mailbox.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Type
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
FindConversation operation
ApplyConversationAction operation
Conversations in EWS
GlobalUniqueRecipients
Article • 03/29/2023 • 2 minutes to read
FindConversationResponse
Conversations
Conversation (ConversationType)
GlobalUniqueRecipients
XML
<GlobalUniqueRecipients>
<String/>
</GlobalUniqueRecipients>
ArrayOfStringsType
Attributes
None.
Child elements
Element Description
String
Contains a single conversation recipient.
Parent elements
Element Description
Conversation (ConversationType)
Represents a single conversation.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
FindConversation operation
ApplyConversationAction operation
Conversations in EWS
GlobalUniqueSenders
Article • 03/29/2023 • 2 minutes to read
The GlobalUniqueSender element contains a list of all the senders of conversation items
in the mailbox.
FindConversationResponse
Conversations
Conversation (ConversationType)
GlobalUniqueSenders
XML
<GlobalUniqueSender>
<String/>
</GlobalUniqueSender>
ArrayOfStringsType
Attributes
None.
Child elements
Element Description
String
Contains a single conversation sender.
Parent elements
Element Description
Conversation (ConversationType)
Represents a single conversation.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
FindConversation operation
ApplyConversationAction operation
Conversations in EWS
GlobalUniqueUnreadSenders
Article • 03/29/2023 • 2 minutes to read
The GlobalUniqueUnreadSenders element specifies a list of all the people who have
sent messages that are currently unread in this conversation across all folders in the
mailbox.
FindConversationResponse
Conversations
Conversation (ConversationType)
GlobalUniqueUnreadSenders
XML
<GlobalUniqueUnreadSenders>
<String/>
</GlobalUniqueUnreadSenders>
ArrayOfStringsType
Attributes
None.
Child elements
Element Description
String
Contains a single conversation sender.
Parent elements
Element Description
Element Description
Conversation (ConversationType)
Represents a single conversation.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
FindConversation operation
ApplyConversationAction operation
Conversations in EWS
GlobalUnreadCount
Article • 03/29/2023 • 2 minutes to read
The GlobalUnreadCount element contains a count of all the unread conversation items
in the mailbox.
FindConversationResponse
Conversations
Conversation (ConversationType)
GlobalUnreadCount
XML
<GlobalUnreadCount/>
xs:int
Attributes
None.
Child elements
None.
Parent elements
Element Description
Conversation (ConversationType)
Represents a single conversation.
Text value
The text value of the GlobalUnreadCount element is an integer value that represents a
count of all the unread conversation items in the mailbox.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Type
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
FindConversation operation
ApplyConversationAction operation
Conversations in EWS
GoodThreshold
Article • 03/29/2023 • 2 minutes to read
The GoodThreshold element specifies the percentage of attendees that must have the
time period open in order for the time period to qualify as a Good suggested meeting
time.
GetUserAvailabilityRequest
SuggestionsViewOptions
GoodThreshold
XML
<GoodThreshold>...</GoodThreshold>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
SuggestionsViewOptions
Contains the options for obtaining meeting suggestion information.
The following is the XPath to this element:
/GetUserAvailabilityRequest/SuggestionViewOptions
Text value
A text value is required. The expected integer values are between 0 and 50.
Remarks
This element is required if the SuggestionsViewOptions element is used. The
GoodThreshold element also determines what meetings are considered Fair. It the
percentage of attendees with conflicts is less than the Good Threshold and higher than
50 percent, the suggested meeting time qualifies as Fair. The Good Threshold plus 50
equals the percentage that defines the Good/Fair threshold.
7 Note
The schema that describes this element is located in the EWS virtual directory of
the computer that is running MicrosoftExchange Server 2007 that has the Client
Access server role installed.
Element information
Element Type
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Group (MailboxAssociationType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
GroupAttendeeConflictData
Article • 03/29/2023 • 2 minutes to read
The GroupAttendeeConflictData element contains aggregate conflict information about the number of users who are available, the
number of users who have conflicts, and the number of users who do not have availability information in a distribution list for a suggested
meeting time.
GetUserAvailabilityResponse
SuggestionsResponse
SuggestionDayResultArray
SuggestionDayResult
SuggestionArray
Suggestion
AttendeeConflictDataArray
GroupAttendeeConflictData
XML
<GroupAttendeeConflictData>
<NumberOfMembers>...</NumberOfMembers>
<NumberOfMembersAvailable>...</NumberOfMembersAvailable>
<NumberOfMembersWithConflict>...</NumberOfMembersWithConflict>
<NumberOfMembersWithNoData>...</NumberOfMembersWithNoData>
</GroupAttendeeConflictData>
GroupAttendeeConflictData
Attributes
None.
Child elements
Element Description
NumberOfMembers
Represents the number of users, resources, and rooms in a distribution list.
NumberOfMembersAvailable
Represents the number of distribution list members who are available for a suggested meeting time. This element
represents members for whom the status is Free.
NumberOfMembersWithConflict Represents the number of distribution list members who have a conflict with a suggested meeting time. This element
represents members who have a Busy, OOF, or Tentative status.
NumberOfMembersWithNoData Represents the number of group members who do not have published free/busy data to compare to a suggested
meeting time. This element represents members of a distribution list that is too large or members who have No Data
status.
Parent elements
Element Description
AttendeeConflictDataArray Contains an array of conflict data for queried attendees identified in the GetUserAvailability operation.
The following is the XPath expression to this element:
/GetUserAvailabilityResponse/SuggestionsResponse/SuggestionDayResultArray/SuggestionDayResult[i]/SuggestionArray/Suggestion[i]/At
Remarks
The GroupAttendeeConflictData element is present in the response when an attendee in the GetUserAvailabilityRequest is resolved to a
distribution list. The GroupAttendeeConflictData element identifies three states for members of a distribution list: available, conflicted, or
no data. Distribution list expansion will support up to 100 members. Therefore, the NumberOfMembers element can contain a maximum of
100 members. Distribution list expansion is recursive. If a distribution list contains a child distribution list that expands the total parent
membership to over 100 members, the child distribution list will not be expanded and will count as a single entry of the
NumberOfMembersWithNoData element count. If a child distribution list can be expanded and the total parent membership does not
expand to over 100 members, its membership is expanded and the member counts are added to the child elements of the
GroupAttendeeConflictData element.
The schema that describes this element is located in the EWS virtual directory of the computer that is running MicrosoftExchange Server
2007 that has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityResponse
Getting User Availability
GroupBy
Article • 03/29/2023 • 2 minutes to read
FindItem
GroupBy
XML
<GroupBy Order="">
<FieldURI/>
<AggregateOn/>
</GroupBy>
XML
<GroupBy Order="">
<ExtendededFieldURI/>
<AggregateOn/>
</GroupBy>
XML
<GroupBy Order="">
<IndexedFieldURI/>
<AggregateOn/>
</GroupBy>
GroupByType
Attributes
Attribute Description
Order
Determines the order of the groups in the grouped item array that is returned in the
response. This attribute is of type SortDirectionType.
Order attribute values
Value Description
Child elements
Element Description
FieldURI
Identifies frequently referenced properties by URI.
IndexedFieldURI
Identifies individual members of a dictionary.
AggregateOn
Represents the field that is used to determine the order of groups in a
response.
Parent elements
Element Description
FindItem
Defines a request to find items in a mailbox.
Remarks
The FindItem response will contain a collection of groups. Each group will contain all
items that had matching values for the GroupBy property. The property that determines
the grouping is identified in the FieldURI, IndexedFieldURI, or ExtendedFieldURI element.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
FindItem operation
EWS XML elements in Exchange
Finding Items
GroupedItems
Article • 03/29/2023 • 2 minutes to read
The GroupedItems element represents a collection of items that are the result of a
grouped FindItem operation call.
FindItemResponse
ResponseMessages
FindItemResponseMessage
RootFolder (FindItemResponseMessage)
Groups
GroupedItems
XML
<GroupedItems>
<GroupIndex/>
<Items/>
</GroupedItems>
GroupedItemsType
Attributes
None.
Child elements
Element Description
GroupIndex Represents the property value that is used to group items in a grouped FindItem
operation call.
Items
Contains an array of grouped items.
Parent elements
Element Description
Groups
Contains a collection of groups that are found with the search and aggregation criteria
that is identified in the FindItem operation request.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
FindItem operation
Finding Items
GroupId
Article • 03/29/2023 • 2 minutes to read
XML
ItemIdType
Attributes
Attribute Description
ChangeKey The text value of the ChangeKey attribute is the change key of the group.
Child elements
None.
Parent elements
AddNewImContactToGroup | AddNewTelUriContactToGroup | AddImContactToGroup |
RemoveContactFromImList | RemoveImContactFromGroup | RemoveImGroup |
RemoveDistributionGroupFromImList | SetImGroup
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
GroupIdentifier
Article • 03/29/2023 • 2 minutes to read
The GroupIdentifier element represents a single security identifier and attribute for an
Active Directory directory service object group of which the account is a member.
XML
<GroupIdentifier>
<SecurityIdentifier/>
</GroupIdentifier>
SidAndAttributesType
Attributes
Attribute Description
Child elements
Element Description
Parent elements
Element Description
GroupSids Represents a collection of Active Directory group object security identifiers that make
up an account token for token serialization. Token serialization is not supported.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Type
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
GroupIds
Article • 03/29/2023 • 2 minutes to read
XML
<GroupIds>
<ItemId/>
<OccurrenceItemId/>
<RecurringMasterItemId/>
<RecurringMasterItemIdRanges/>
</GroupIds>
NonEmptyArrayOfBaseItemIdsType
Attributes
None.
Child elements
ItemId | OccurrenceItemId | RecurringMasterItemId | RecurringMasterItemIdRanges
Parent elements
GetImItems
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Type
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
GroupIndex
Article • 03/29/2023 • 2 minutes to read
The GroupIndex element represents the property value that is used to group items for the
current group of items in a FindItem operation call.
FindItemResponse
ResponseMessages
FindItemResponseMessage
RootFolder (FindItemResponseMessage)
Groups
GroupedItems
GroupIndex
XML
<GroupIndex/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
GroupedItems Represents a collection of items that are the result of a grouped FindItem operation call.
The following is the XPath expression to this element:
/FindItemResponse/ResponseMessages/FindItemResponseMessage/RootFolder/Groups/GroupedItems[i]
Text value
A text value is required. This property is read-only.
Remarks
This element only occurs in a FindItem operation response.
The schema that describes this element is located in the EWS virtual directory of the computer
that is running Microsoft Exchange Server 2010 that has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
FindItem operation
Finding Items
GroupingAction
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
GroupingAction (ItemType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Groups
Article • 03/29/2023 • 2 minutes to read
The Groups element contains a collection of groups that are found with the search and
aggregation criteria that is identified in the FindItem operation request.
XML
<Groups>
<GroupedItems/>
</Groups>
ArrayOfGroupedItemsType
Attributes
None.
Child elements
Element Description
GroupedItems Represents a collection of items that are the result of a grouped FindItem
operation call.
Parent elements
Element Description
RootFolder Contains the results from a search of a single root folder during a
(FindItemResponseMessage) FindItem operation operation.
Remarks
One GroupedItems instance will occur for each distinct group within the result.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
FindItem operation
Finding Items
Groups
(ArrayOfFederatedDirectoryGroupsType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Groups (ArrayOfImGroupType)
Article • 03/29/2023 • 2 minutes to read
XML
<Groups>
<ImGroup/>
</Groups>
ArrayOfImGroupType
Attributes
None.
Child elements
ImGroup
Parent elements
ImItemList
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
GroupSids
Article • 03/29/2023 • 2 minutes to read
XML
<GroupSids>
<GroupIdentifier/>
</GroupSids>
NonEmptyArrayOfGroupIdentifiersType
Attributes
None.
Child elements
Element Description
GroupIdentifier Represents a single security identifier and attribute for an Active Directory
object group of which the account is a member.
Parent elements
Element Description
SerializedSecurityContext Used in the Simple Object Access Protocol (SOAP) header for token
serialization in server-to-server authentication. Token serialization is
not supported.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
GroupType
Article • 03/29/2023 • 2 minutes to read
The GroupType element specifies the group class of an instant messaging (IM) group.
XML
<GroupType></GroupType>
NonEmptyStringType
Attributes
None.
Child elements
None.
Parent elements
Element Description
ImGroup
Represents an instant messaging group.
Text value
The text value of the GroupType element is a string value that specifies type of the
group.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
GroupType
(FederatedDirectoryGroupType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
GroupType (MasterMailboxType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Guid
Article • 03/29/2023 • 2 minutes to read
The Guid element specifies the globally unique identifier of the mailbox.
XML
<Guid></Guid>
GuidType
Attributes
None.
Child elements
None.
Parent elements
Element Description
SearchableMailbox
Specifies a mailbox returned from a GetSearchableMailboxes request.
Text value
The text value of the Guid element is a GUID value that uniquely identifies a mailbox.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
HasAttachment
Article • 03/29/2023 • 2 minutes to read
The HasAttachment element specifies a Boolean value to indicate whether the item has
attachments.
XML
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
SearchPreviewItem Specifies the first 256 characters of a mailbox item for preview without
opening the item.
Text value
A text value of true for the HasAttachment element indicates that the item has an
attachment. A value of false indicates that the item does not have an attachment.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
HasAttachments
Article • 03/29/2023 • 2 minutes to read
The HasAttachments element represents a property that is set to true if an item has at
least one visible attachment or if a conversation contains at least one item that has an
attachment. This property is read-only.
XML
<HasAttachments/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
Conditions
Represents the conditions that, when fulfilled, will trigger the rule
actions for that rule.
Contact
Represents an Exchange contact item.
DistributionList
Represents a distribution list.
Element Description
Exceptions
Represents all the available rule exception conditions for the Inbox
rule.
Item
Represents an item in the Exchange store.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Message
Represents an Exchange e-mail message.
Task
Represents a task in the Exchange store.
Text value
A text value that represents a Boolean value is required. A value of true means that the
item or conversation has at least one visible attachment. A value of false means that the
item or conversation either has no attachments or has only hidden attachments.
Remarks
The HasAttachments property is calculated from the Boolean AllAttachmentsHidden
MAPI property. If an item does not have an attachment, the AllAttachmentsHidden
property does not exist. If all the attachments on the item are hidden, the
AllAttachmentsHidden property is true. The AllAttachmentsHidden property is false if
it has at least one attachment and at least one of the attachments is visible. Use the
AllAttachmentsHidden MAPI property for searching, grouping, and sorting items.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
The HasBeenProcessed element indicates whether a meeting message item has been
processed.
XML
<HasBeenProcessed/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Text value
A text value of true indicates that the meeting message has been processed.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
HasBlockedImages
Article • 03/29/2023 • 2 minutes to read
The HasBlockedImages element specifies a Boolean value that indicates whether the
item has blocked images.
XML
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Item
Represents a generic item in the Exchange store.
Text value
A text value of true for the HasBlockedImages element indicates that the item has
blocked images. A value of false indicates that the item does not have any blocked
images.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
HasChanged
Article • 03/29/2023 • 2 minutes to read
XML
Attributes
None.
Child elements
None.
Parent elements
GetUserPhotoResponse
Text value
A text value of true for the HasChanged element indicates that the photo has changed
since the last time it was returned. A value of false indicates that the photo has not
changed since the last time it was returned.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
HasEndTimeChanged
Article • 03/29/2023 • 2 minutes to read
The HasEndTimeChanged element specifies whether the end time for a meeting has
changed.
XML
<HasEndTimeChanged>true | false</HasEndTimeChanged>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
ChangeHighlights Specifies what has changed between two versions of a meeting request
message.
Text value
A text value of true for the HasEndTimeChanged element indicates that the end time of
a meeting has changed. A value of false indicates that the end time of a meeting has
not changed.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
HasIrm
Article • 03/29/2023 • 2 minutes to read
The HasIrm element specifies whether at least one message in the conversation and the
current folder is an IRM protected message.
XML
Boolean
Attributes
None.
Child elements
None.
Parent elements
Conversation (ConversationType)
Text value
The text value of the HasIrm element is true if at least one message in the conversation
and the current folder has IRM. Otherwise, the value is false.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Conversation (ConversationType)
XML
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
ChangeHighlights Specifies what has changed between two versions of a meeting request
message.
Text value
A text value of true for the HasLocationChanged element indicates that the location
property of a meeting has changed. A value false indicates that the location property of
a meeting has not changed.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Code Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
HasPicture
Article • 03/29/2023 • 2 minutes to read
The HasPicture element indicates whether the contact item has a file attachment that
represents the contact's picture.
Contact
HasPicture
XML
<HasPicture>true or false</HasPicture>
boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Contact
Represents a contact item in the Exchange store.
Text value
The text value of the HasPicture element can be either true or false. The default value is
false.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
HasQuota
Article • 03/29/2023 • 2 minutes to read
The HasQuota element indicates whether the managed folder has a quota.
XML
<HasQuota/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
ManagedFolderInformation
Contains information about a managed folder.
Text value
The text value represents a Boolean value. A value of true indicates that the folder has a
quota; a value of false indicates that the folder does not have a quota.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
HasStartTimeChanged
Article • 03/29/2023 • 2 minutes to read
The HasStartTimeChanged element specifies whether the start time for a meeting has
changed.
XML
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
ChangeHighlights Specifies what has changed between two versions of a meeting request
message.
Text value
A text value of true for the HasStartTimeChanged element indicates that the start time
for a meeting has changed. A value of false indicates that the start time has not
changed.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
HiddenRecipient
Article • 03/29/2023 • 2 minutes to read
The HiddenRecipient element indicates that the recipient was added by an organization
policy that should be hidden from unprivileged users.
XML
<HiddenRecipient>true | false</HiddenRecipient>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
RecipientTrackingEvent
Contains information for a single event for a recipient.
Text value
This element can be either true or false. A value of true indicates that the user was
added by an organization policy; a value of false indicates that the user was not added
by an organization policy.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
HighlightTerms
Article • 03/29/2023 • 2 minutes to read
XML
<HighlightTerms>
<Term/>
</HighlightTerms>
ArrayOfHighlightTermsType
Attributes
None.
Child elements
Term
Parent elements
FindConversationResponse | FindItemResponseMessage
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
Hobbies
Article • 03/29/2023 • 2 minutes to read
The Hobbies element specifies an array of hobbies and the identifiers of their source
attributions for the associated persona.
XML
<Hobbies>
<StringAttributedValue/>
</Hobbies>
ArrayOfStringAttributedValuesType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Type
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
HoldId
Article • 03/29/2023 • 2 minutes to read
XML
<HoldId></HoldId>
string
Attributes
None.
Child elements
None.
Parent elements
GetHoldOnMailboxes | SetHoldOnMailboxes | MailboxHoldResult
Text value
The text value of the HoldId element is the unique identifier of a mailbox hold.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
HomeAddresses
Article • 03/29/2023 • 2 minutes to read
The HomeAddresses element specifies an array of home addresses and the identifiers of
their source attributions for the associated persona.
XML
<HomeAddresses>
<PostalAddressAttributedValue/>
</HomeAddresses>
ArrayOfPostalAddressAttributedValuesType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
HomeCity
Article • 03/29/2023 • 2 minutes to read
The HomeCity element specifies the city of the home address of the associated persona.
XML
<HomeCity></HomeCity>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Text value
The text value of the HomeCity element is a string value that specifies the city.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
HomeCitySortKey
Article • 03/29/2023 • 2 minutes to read
The HomeCitySortKey element represents the sort key for the home city.
XML
<HomeCitySortKey></HomeCitySortKey>
string
Attributes
None.
Child elements
None.
Parent elements
Persona
Text value
The text value of the HomeCitySortKey element is the sort key for the home city name
of the persona.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
HomeFaxes
Article • 03/29/2023 • 2 minutes to read
The HomeFaxes element specifies an array of home fax numbers and the identifiers of
their source attributions for the associated persona.
XML
<HomeFaxes>
<PhoneNumberAttributedValue/>
</HomeFaxes>
ArrayOfPhoneNumberAttributedValuesType
Attributes
None.
Child elements
Element Description
PhoneNumberAttributedValue
Contains a single attributed phone number for a persona.
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
HomePage
Article • 03/29/2023 • 2 minutes to read
The HomePage element specifies the URL that will be the default home page for the
managed folder.
XML
<HomePage/>
String
Attributes
None.
Child elements
None.
Parent elements
Element Description
ManagedFolderInformation
Contains information about a managed folder.
Text value
The text value is a string value that represents a URL.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
CreateManagedFolder operation
The HomePhones element specifies an array of home phone numbers and the
identifiers of their source attributions for the associated persona.
XML
<HomePhones>
<PhoneNumberAttributedValue/>
</HomePhones>
ArrayOfPhoneNumberAttributedValuesType
Attributes
None.
Child elements
Element Description
PhoneNumberAttributedValue
Contains a single attributed phone number for a persona.
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
HomePhones2
Article • 03/29/2023 • 2 minutes to read
XML
<HomePhones2>
<PhoneNumberAttributedValue/>
</HomePhones2>
ArrayOfPhoneNumberAttributedValuesType
Attributes
None.
Child elements
Element Description
PhoneNumberAttributedValue
Contains a single attributed phone number for a persona.
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
IconIndex
Article • 03/29/2023 • 2 minutes to read
The IconIndex element identifies the icon index for an item or conversation.
XML
IconIndexType
Attributes
None.
Child elements
None.
Parent elements
Conversation (ConversationType) | Item | Contact | DistributionList | Message |
CalendarItem | PostItem | Task
Text value
The following table contains the possible text values for the IconIndex element.
Value Description
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Type
Namespace https://schemas.microsoft.com/exchange/services/2006/types
GetUserAvailabilityResponse
FreeBusyResponseArray
FreeBusyResponse
FreeBusyView
CalendarEventArray
CalendarEvent
CalendarEventDetails
ID
XML
<ID>...</ID>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
A text value is required if this element is returned in the response. This element is required if the CalendarEventDetails element is used.
Remarks
The schema that describes this element is located in the EWS virtual directory of the computer that is running MicrosoftExchange Server
2007 that has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityResponse
XML
<ID></ID>
string
Attributes
None.
Child elements
None.
Parent elements
DisableApp | UninstallApp
Text value
The text value of the ID element is the identifier of app.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
The Id element identifies a meeting room within the Exchange server organization.
Room
Id (EmailAddressType)
XML
<Id>
<Name/>
<EmailAddress/>
<RoutingType/>
<MailboxType/>
<ItemId/>
</Id>
EmailAddressType
Attributes
None.
Child elements
Element Description
Name Defines the name of the meeting room. This element is optional.
(EmailAddressType)
EmailAddress Defines the Simple Mail Transfer Protocol (SMTP) address of a meeting
(NonEmptyStringType) room. This element is optional.
RoutingType Defines the routing that is used for the mailbox. The default is SMTP.
(EmailAddress)
This element is optional.
MailboxType
Defines the mailbox type of a mailbox user. This element is optional.
Element Description
ItemId
Defines the item identifier of a contact or private distribution list for
recipients from a user's contacts folder. This element is optional.
Parent elements
Element Description
Room
Defines a meeting room in the Exchange server organization.
Remarks
The schema that describes this element is located in the EWS directory of the computer
that is running Microsoft Exchange Server that has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetRooms operation
XML
ItemIdType
Attributes
Attribute Description
ChangeKey The text value of the ChangeKey attribute is the change key of the item.
Child elements
None.
Parent elements
SearchPreviewItem
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Id (TimeZone)
Article • 03/29/2023 • 2 minutes to read
XML
<Id>...</Id>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Ids
Contains an array of time zone definition identifiers.
Text value
A text value is required. The text value represents the unique identifier for time zone
definition.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server that has the Client Access server
role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Identity
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
IdentityDetails
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
IdOfFolderToShare
Article • 03/29/2023 • 2 minutes to read
The IdOfFolderToShare element represents the identifier of the folder on the server that
will be shared.
FolderIdType
Attributes
Attribute Description
Id Contains a string that identifies a folder in the Exchange store. This attribute is
required.
ChangeKey Contains a string that identifies a version of a folder that is identified by the Id
attribute. This attribute is optional. Use this attribute to make sure that the correct
version of a folder is used.
Child elements
None.
Parent elements
Element Description
GetSharingMetadata Defines a request to get an opaque authentication token that identifies the
sharing invitation.
Remarks
The schema that describes this element is located in the IIS Virtual directory that hosts
Exchange Web Services of the computer that is running Microsoft Exchange Server that
has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetSharingMetadata operation
XML
<Ids>
<Id/>
</Ids>
NonEmptyArrayOfTimeZoneIdType
Attributes
None.
Child elements
Element Description
Id (TimeZone)
The element that identifies a single time zone definition.
Parent elements
Element Description
GetServerTimeZones Defines a request to retrieve time zone definitions from the Exchange
server.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Name Value
See also
EWS XML elements in Exchange
Ignore
Article • 03/29/2023 • 2 minutes to read
SyncFolderItems
Ignore
XML
<Ignore>
<ItemId/>
</Ignore>
ArrayOfBaseItemIdsType
Attributes
None.
Child elements
Element Description
ItemId
Contains the unique identifier and change key of an item in the Exchange store.
Parent elements
Element Description
SyncFolderItems
Defines a request to synchronize items in an Exchange store folder.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
SyncFolderItems operation
The ImAddress element contains the instant messaging address of a new contact that
will be added to an instant messaging group.
XML
<ImAddress></ImAddress>
NonEmptyStringType
Attributes
None.
Child elements
None.
Parent elements
AddNewImContactToGroup
Text value
The text value of the ImAddress element is an instant messaging address.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
ImAddress (String)
Article • 03/29/2023 • 2 minutes to read
The ImAddress element contains the primary instant messaging address of a persona.
XML
<ImAddress></ImAddress>
string
Attributes
None.
Child elements
None.
Parent elements
Persona
Text value
The text value of the ImAddress element is the primary instant messaging address of a
persona.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
ImAddresses
Article • 03/29/2023 • 2 minutes to read
XML
<ImAddresses>
<Entry/>
</ImAddresses>
ImAddressDictionaryType
Attributes
None.
Child elements
Element Description
Entry (IMAddress)
Represents an instant messaging address for a contact.
Parent elements
Element Description
Contact
Represents an Exchange contact item.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ImAddresses
(ArrayOfStringAttributedValuesType)
Article • 03/29/2023 • 2 minutes to read
The ImAddresses element specifies an array of instant message addresses and the
identifiers of their source attributions for the associated persona.
XML
<ImAddresses>
<StringAttributedValue/>
</ImAddresses>
ArrayOfStringAttributedValuesType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
ImAddresses2
Article • 03/29/2023 • 2 minutes to read
The ImAddresses2 element specifies an array of instant message addresses and the
identifiers of their source attributions for the associated persona.
XML
<ImAddresses2>
<StringAttributedValue/>
</ImAddresses2>
ArrayOfStringAttributedValuesType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
ImAddresses3
Article • 03/29/2023 • 2 minutes to read
The ImAddresses3 element specifies an array of instant message addresses and the
identifiers of their source attributions for the associated persona.
XML
<ImAddresses3>
<StringAttributedValue/>
</ImAddresses3>
ArrayOfStringAttributedValuesType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
ImageBase64
(EncryptionConfigurationResponseType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
ImageBase64
(SetEncryptionConfigurationType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
ImContactSipUriAddress
Article • 03/29/2023 • 2 minutes to read
The ImContactSipUriAddress element contains the SIP URI address of a contact that is
added to an instant messaging (IM) group.
XML
<ImContactSipUriAddress></ImContactSipUriAddress>
NonEmptyStringType
Attributes
None.
Child elements
None.
Parent elements
AddNewTelUriContactToGroup
Text value
The text value of the ImContactSipUriAddress element is the SIP URI address of a
contact.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<ImGroup>
<DisplayName/>
<GroupType/>
<ExchangeStoreId/>
<MemberCorrelationKey/>
<ExtendedProperties/>
<SmtpAddress/>
</ImGroup>
ImGroupType
Attributes
None.
Child elements
DisplayName (NonEmptyStringType) | GroupType | ExchangeStoreId |
MemberCorrelationKey | ExtendedProperties (NonEmptyArrayOfExtendedPropertyType) |
SmtpAddress
Parent elements
Groups (ArrayOfImGroupType) | AddDistributionGroupToImListResponse |
AddImGroupResponse
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
ImItemList
Article • 03/29/2023 • 2 minutes to read
The ImItemList element contains a list of instant messaging groups and instant
messaging contacts.
XML
<ImItemList>
<Groups/>
<Personas/>
</ImItemList>
ImItemListType
Attributes
None.
Child elements
Groups (ArrayOfImGroupType) | Personas
Parent elements
GetImItemsResponse | GetImItemListResponse
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
ImListMigrationCompleted
Article • 03/29/2023 • 2 minutes to read
XML
<ImListMigrationCompleted>true | false</ImListMigrationCompleted>
Boolean
Attributes
None.
Child elements
None.
Parent elements
SetImListMigrationCompleted
Text value
A text value of true for the ImListMigrationCompleted element indicates that the
instant messaging contacts store has been migrated to the Exchange store. A value of
false indicates that the instant message contacts store has not been migrated.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
Importance
Article • 03/29/2023 • 2 minutes to read
XML
<Importance/>
ImportanceChoicesType
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
Conditions
Represents the conditions that, when fulfilled, will trigger the rule
actions for that rule.
Contact
Represents an Exchange contact item.
DistributionList
Represents a distribution list.
Exceptions
Represents the exceptions that represent all the available rule exception
conditions for the Inbox rule.
Element Description
Item
Represents an item in the Exchange store.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Message
Represents an Exchange e-mail message.
RemoveItem
Removes an item from the Exchange store.
Task
Represents a task in the Exchange store.
Text value
A text value is required. The following are the possible values for this element:
Low
Normal
High
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
The ImTelephoneNumber element represents the telephone number for a contact that
is added to an instant messaging (IM) group.
XML
<ImTelephoneNumber></ImTelephoneNumber>
NonEmptyStringType
Attributes
None.
Child elements
None.
Parent elements
AddNewTelUriContactToGroup
Text value
The text value of the ImTelephoneNumber element is the telephone number of a
contact.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
The InboxFolderPermissionLevel element contains the permissions for the default Inbox
folder. This element was introduced in Microsoft Exchange Server 2007 Service Pack 1
(SP1).
XML
<InboxFolderPermissionLevel>
</InboxFolderPermissionLevel>
DelegateFolderPermissionLevelType
Attributes
None.
Child elements
None.
Parent elements
Element Description
DelegatePermissions Contains the delegate permission level settings for a user. This element
was introduced in Exchange 2007 SP1.
Text value
The following table lists the text values that represent the permission levels.
None The delegate user has no access permissions to the Inbox folder.
Reviewer The delegate user can read items in the Inbox folder.
Author The delegate user can read and create items in the Inbox folder.
Editor The delegate user can read, create, and modify items in the Inbox folder.
Custom The delegate user has custom access permissions to the Inbox folder.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
AddDelegate operation
UpdateDelegate operation
Adding Delegates
InboxRules
Article • 03/29/2023 • 2 minutes to read
GetInboxRulesResponse
InboxRules
XML
<InboxRules>
<Rule/>
</InboxRules>
ArrayOfRulesType
Attributes
None.
Child elements
Element Description
Rule (RuleType)
Contains a single rule and represents a rule in the user's mailbox.
Parent elements
Element Description
GetInboxRulesResponse
Defines a response to a GetInboxRules operation request.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetInboxRules
GetInboxRules operation
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
InboxUrl (MasterMailboxType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
IncludeMimeContent
Article • 03/29/2023 • 2 minutes to read
XML
<IncludeMimeContent>true or false</IncludeMimeContent>
boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
/GetAttachment/AttachmentShape
Element Description
ItemShape
Identifies the item properties and content to include in a GetItem, FindItem,
or SyncFolderItems response.
/GetItem/ItemShape
/FindItem/ItemShape
/SyncFolderItems/ItemShape
Text value
This element can be either true or false. The default value is false. This is a Boolean data
type.
Remarks
This element is optional.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Example
The following example of a request demonstrates a how to set the
IncludeMimeContent element.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<GetAttachment
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<AttachmentShape>
<t:IncludeMimeContent>true</t:IncludeMimeContent>
<t:BodyType>Best</t:BodyType>
</AttachmentShape>
<AttachmentIds>
<t:AttachmentId Id="ASkAS="/>
</AttachmentIds>
</GetAttachment>
</soap:Body>
</soap:Envelope>
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
XML
<IncludeNonIndexableItems>true | false</IncludeNonIndexableItems>
Boolean
Attributes
None.
Child elements
None.
Parent elements
SetHoldOnMailboxes
Text value
A text value of true for the IncludeNonIndexableItems element indicates that items that
cannot be indexed are included with mailbox holds. A value of false indicates that the
items that cannot be indexed are not included in mailbox holds.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<IncludePersonalArchive>true | false</IncludePersonalArchive>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
A text value of true for the IncludePersonalArchive element indicates that the personal
archive is included in the search. A value of false indicates that the personal archive is
not included in the search.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can Be Empty
See also
EWS XML elements in Exchange
IncludesLastFolderInRange
Article • 03/29/2023 • 2 minutes to read
SyncFolderHierarchyResponse
ResponseMessages
SyncFolderHierarchyResponseMessage
IncludesLastFolderInRange
XML
<IncludesLastFolderInRange/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
A text value that represents a Boolean value is required.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
SyncFolderHierarchy operation
SyncFolderItemsResponse
ResponseMessages
SyncFolderItemsResponseMessage
IncludesLastItemInRange
XML
<IncludesLastItemInRange/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
A text value that represents a Boolean value is required.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
SyncFolderItems operation
XML
<IncludeUnsearchableItems>true | false</IncludeUnsearchableItems>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
A text value of true for the IncludeUnsearchableItems element indicates that statistics
are not included for items that are not searchable. A value of false indicates that
statistics are included for items that are not searchable.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can Be Empty
See also
EWS XML elements in Exchange
IndexedFieldURI
Article • 03/29/2023 • 2 minutes to read
XML
PathToIndexedFieldType
Attributes
Attribute Description
FieldURI
Identifies the dictionary that contains the member to return. This attribute is
required.
FieldIndex Identifies the member of the dictionary to return. This attribute is required.
FieldURI Attribute
Value Description
Child elements
None.
Parent elements
Element Description
AggregateOn
Represents the property that is used to determine the order of grouped
items for a grouped FindItem result set.
GroupBy
Specifies an arbitrary grouping for FindItem queries.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
IndexedOffset
Article • 03/29/2023 • 2 minutes to read
The IndexedOffset element indicates the index offset for a paged FindConversation
response.
XML
<IndexedOffset></IndexedOffset>
int
Attributes
None.
Child elements
None.
Parent elements
FindConversationResponse
Text value
The text value of the IndexedOffset element is the page index offset for
FindConversation responses.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
IndexedPageFolderView
Article • 03/29/2023 • 2 minutes to read
FindFolder
IndexedPageFolderView
XML
IndexedPageViewType
Attributes
Attribute Description
MaxEntriesReturned Describes the maximum number of folders to return in the response. This
attribute is optional.
Offset
Describes the offset from the BasePoint. Offset must be greater than or
equal to zero. If BasePoint is equal to Beginning, the offset is positive. If
BasePoint is equal to End, the offset is handled as if it were negative.
This identifies which folder will be the first folder delivered in the
response. This attribute is required.
BasePoint
Describes whether the page of folders will start from the start or the end
of the set of folders that are found with the search criteria. Seeking from
the end always searches backward. This attribute is required.
BasePoint Attribute
Value Description
Beginning The paged view starts at the beginning of the found folder set.
Value Description
End The paged view starts at the end of the found folder set.
Child elements
None.
Parent elements
Element Description
FindFolder
Defines a request to find folders in a mailbox.
The following is the XPath expression to this element:
/FindFolder
Remarks
Seeking from end involves moving to the origin identified by the offset. Additionally, the
pointer is moved back by the number of requested records. For example, if there are
100 records and the offset is 25 from the end, the search starts from 75. If 10 records are
returned, the pointer is moved backward an additional 10 records to 65 and returns
records 65 through 75. The next index is 64. The next offset from the end for a page is
100 minus 64 which equals 36. The value for the next offset from the end to get the next
indexed page is 36.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
IndexedPageViewType
Attributes
Attribute Description
Offset
Describes the offset from the BasePoint. If BasePoint is equal to
Beginning, the offset is positive. If BasePoint is equal to End, the offset is
handled as if it were negative. This identifies which item or conversation
will be the first to be delivered in the response. This attribute is required.
BasePoint
Describes whether the page of items or conversations will start from the
beginning or the end of the set of items or conversations that are found
by using the search criteria. Seeking from the end always searches
backward. This attribute is required.
BasePoint Attribute
Value Description
Beginning The paged view starts at the beginning of the found conversation or item set.
End The paged view starts at the end of the found conversation or item set.
Child elements
None.
Parent elements
Element Description
FindItem
Defines a request to find items in a mailbox.
The following is the XPath expression to this element:
/FindItem
FindConversation
Defines a request to find conversations in a mailbox.
Remarks
Seeking from the end involves moving to the origin identified by the offset. Additionally,
the pointer is moved back by the number of requested records. For example, if there are
100 records and the offset is 25 from the end, the search starts from 75. If 10 records are
returned, the pointer is moved backward an additional 10 records to 65 and returns
records 65 through 75. The next index is 64. The next offset from the end for a page is
100 minus 64 which equals 36. 36 is the value for the next offset from the end to get the
next indexed page.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Example
The following example shows a FindItem operation request. Each item is returned with
its ID and subject. A maximum of six items are returned in the response, as specified by
the MaxEntriesReturned attribute. The items are listed in ascending order grouped by
importance. Items in a group are aggregated by subject.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<FindItem Traversal="Shallow"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
<t:FieldURI FieldURI="item:Subject"/>
</t:AdditionalProperties>
</ItemShape>
<GroupBy Order="Ascending">
<t:FieldURI FieldURI="item:Importance"/>
<t:AggregateOn Aggregate="Maximum">
<t:FieldURI FieldURI="item:Subject"/>
</t:AggregateOn>
</GroupBy>
<ParentFolderIds>
<t:DistinguishedFolderId Id="inbox"/>
</ParentFolderIds>
</FindItem>
</soap:Body>
</soap:Envelope>
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
FindItem operation
FindConversation operation
Finding Items
IndividualAttendeeConflictData
Article • 03/29/2023 • 2 minutes to read
The IndividualAttendeeConflictData element contains a user's or contact's free/busy status for a time window that occurs at the same time
as the suggested meeting time identified in the Suggestion element.
GetUserAvailabilityResponse
SuggestionsResponse
SuggestionDayResultArray
SuggestionDayResult
SuggestionArray
Suggestion
AttendeeConflictDataArray
IndividualAttendeeConflictData
XML
<IndividualAttendeeConflictData>
<BusyType>...</BusyType>
</IndividualAttendeeConflictData>
IndividualAttendeeConflictData
Attributes
None.
Child elements
Element Description
BusyType
Represents the free/busy status of a user for a suggested meeting time.
Parent elements
Element Description
AttendeeConflictDataArray Contains an array of conflict data for attendees identified in the GetUserAvailabilityRequest.
The following is the XPath expression to this element:
/GetUserAvailabilityResponse/SuggestionsResponse/SuggestionDayResultArray/SuggestionDayResult[i]/SuggestionArray/Suggestion[i]/At
Remarks
The schema that describes this element is located in the EWS virtual directory of the computer that is running MicrosoftExchange Server
2007 that has the Client Access server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityResponse
XML
<Initials/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
CompleteName
Represents the complete name of a contact.
Contact
Represents an Exchange contact item.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
The Initials element specifies an array of initials values and the identifiers of their source
attributions for the associated persona.
XML
<Initials>
<StringAttributedValue/>
</Initials>
ArrayOfStringAttributedValuesType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
Persona
Specifies a set of persona data returned by a GetPersona request.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
InlineImageUrlTemplate
Article • 03/29/2023 • 2 minutes to read
XML
<InlineImageUrlTemplate></InlineImageUrlTemplate>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
The text value of the InlineImageUrlTemplate element specifies a template for an inline
image URL.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
InPlaceHoldConfigurationOnly
Article • 03/29/2023 • 2 minutes to read
XML
<InPlaceHoldConfigurationOnly>true | false</InPlaceHoldConfigurationOnly>
Boolean
Attributes
None.
Child elements
None.
Parent elements
GetDiscoverySearchConfiguration
Text value
A text value of true for the InPlaceHoldConfigurationOnly element indicates that the
in-place hold configuration is included. A value of false indicates that the in-place hold
configuration is not included.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
InPlaceHoldIdentity
Article • 03/29/2023 • 2 minutes to read
The InPlaceHoldIdentity element specifies the identity of a hold that preserves the
mailbox items.
XML
<InPlaceHoldIdentity></InPlaceHoldIdentity>
string
Attributes
None.
Child elements
None.
Parent elements
SetHoldOnMailboxes | DiscoverySearchConfiguration
Text value
The text value of the InPlaceHoldIdentity element is the mailbox hold identifier.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
SetHoldOnMailboxes operation
The InReplyTo element represents the identifier of the item to which this item is a reply.
XML
<InReplyTo/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
Contact
Represents an Exchange contact item.
DistributionList
Represents a distribution list.
Item
Represents an item in the Exchange store.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Element Description
Message
Represents an Exchange e-mail message.
RemoveItem
Removes an item from the Exchange store.
Task
Represents a task in the Exchange store.
Text value
The text value represents a string that identifies an item.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
InstallApp
Article • 03/29/2023 • 2 minutes to read
XML
<InstallApp>
<Manifest/>
</InstallApp>
InstallAppType
Attributes
None.
Child elements
Element Description
Manifest
Contains the base64-encoded app manifest file.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can Be Empty
See also
EWS XML elements in Exchange
InstallAppResponse
Article • 03/29/2023 • 2 minutes to read
XML
<InstallAppResponse ResponseClass="">
<MessageText></MessageText>
<ResponseCode></ResponseCode>
<DescriptiveLinkKey></DescriptiveLinkKey>
<MessageXml></MessageXml>
</InstallAppResponse>
InstallAppResponseType
Attributes
Attribute Description
ResponseClass
Value Description
Child elements
Element Description
DescriptiveLinkKey
Currently unused and reserved for future use.
Element Description
MessageText
Provides a text description of the status of the response.
MessageXml
Provides additional error response information.
ResponseCode
Provides status information about the request.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Text value
None.
Remarks
The GetAppManifestsResponseMessage element is applicable for clients that target
Exchange Online and versions of Microsoft Exchange Server starting with Exchange
2013.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can Be Empty
See also
EWS XML elements in Exchange
InstanceKey
Article • 03/29/2023 • 2 minutes to read
XML
<InstanceKey></InstanceKey>
base64Binary
Attributes
None.
Child elements
None.
Parent elements
Element Description
Conversation (ConversationType)
Represents a single conversation.
Item
Represents a generic item in the Exchange store.
Text value
The text value of the InstanceKey element is the instance key for an item or
conversation.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
IntendedFreeBusyStatus
Article • 03/29/2023 • 2 minutes to read
The IntendedFreeBusyStatus element represents the intended status for the calendar
item that is associated with the meeting request.
XML
<IntendedFreeBusyStatus/>
LegacyFreeBusyType
Attributes
None.
Child elements
None.
Parent elements
Element Description
MeetingRequest
Represents a meeting request in the Exchange store.
Text value
A text value is required. The following are the possible values for this element:
Free
Tentative
Busy
OOF
NoData
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Intent
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
InternalDomains (SmtpDomainList)
Article • 03/29/2023 • 2 minutes to read
The InternalDomains element identifies the list of internal SMTP domains of the
organization.
XML
<InternalDomains>
<Domain/>
</InternalDomains>
SmtpDomainList
Attributes
None.
Child elements
Element Description
Domain
Identifies a single SMTP domain.
Parent elements
Element Description
ProtectionRulesConfiguration
Contains service configuration information for the
protection rules service.
Text value
None.
Remarks
This element is required.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
InternalId
Article • 03/29/2023 • 2 minutes to read
The InternalId element represents an integer value for the event identification.
XML
<InternalId/>
nonNegativeInteger
Attributes
None.
Child elements
None.
Parent elements
Element Description
RecipientTrackingEvent
Contains information for a single event for a recipient.
Text value
A text value that represents an integer is required if this element is used.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
InternalReply
Article • 03/29/2023 • 2 minutes to read
The InternalReply element contains the out of office (OOF) response sent to other users
in the user's domain or trusted domains.
XML
<InternalReply>
<Message/>
</InternalReply>
ReplyBody
Attributes
Attribute Description
xml:lang Specifies the language used in the InternalReply message. The possible values of this
attribute are defined by IETF RFC 3066.
Child elements
Element Description
Message (Availability)
Contains the OOF response.
Parent elements
Element Description
UserOofSettings
Specifies the OOF settings.
The following is the XPath expression to this element:
/SetUserOofSettingsRequest/UserOofSettings
Element Description
OofSettings
Contains the OOF settings.
The following is the XPath expression to this element:
/GetUserOofSettingsResponse/OofSettings
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Example
The following example of a SetUserOofSettings request sets the OofState to Enabled,
sets the duration of OOF for 10 days, and sets the internal and external OOF messages.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<SetUserOofSettingsRequest
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<Mailbox
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Name>David Alexander</Name>
<Address>[email protected]</Address>
<RoutingType>SMTP</RoutingType>
</Mailbox>
<UserOofSettings
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<OofState>Enabled</OofState>
<ExternalAudience>All</ExternalAudience>
<Duration>
<StartTime>2005-10-05T00:00:00</StartTime>
<EndTime>2005-10-25T00:00:00</EndTime>
</Duration>
<InternalReply>
</InternalReply>
<ExternalReply>
</ExternalReply>
</UserOofSettings>
</SetUserOofSettingsRequest>
</soap:Body>
</soap:Envelope>
Element information
Element Type
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserOofSettings operation
SetUserOofSettings operation
InternetMessageHeader
Article • 03/29/2023 • 2 minutes to read
XML
<InternetMessageHeader HeaderName=""/>
InternetHeaderType
Attributes
Attribute Description
HeaderName
Identifies the header name.
Child elements
None.
Parent elements
Element Description
InternetMessageHeaders Represents the collection of all Internet message headers that are
contained in an item in a mailbox.
Text value
The text value represents the value for the header.
Remarks
The following is the EWS Managed API extended property definition for the
PR_TRANSPORT_MESSAGE_HEADERS property.
C#
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
XML
<InternetMessageHeaders>
<InternetMessageHeader/>
</InternetMessageHeaders>
NonEmptyArrayOfInternetHeadersType
Attributes
None.
Child elements
Element Description
InternetMessageHeader Represents the Internet message header for a given header within the
headers collection.
Parent elements
Element Description
AcceptItem
Represents an Accept reply to a meeting request.
CalendarItem
Represents an Exchange calendar item.
Contact
Represents an Exchange contact item.
Element Description
DeclineItem
Represents a Decline reply to a meeting request.
DistributionList
Represents a distribution list.
Item
Represents an item in the Exchange store.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Message
Represents an Exchange e-mail message.
RemoveItem
Removes an item from the Exchange store.
Task
Represents a task in the Exchange store.
TentativelyAcceptItem
Represents a tentatively accepted reply to a meeting request.
Remarks
The following is the EWS Managed API extended property definition for the
PR_TRANSPORT_MESSAGE_HEADERS property.
C#
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
XML
<InternetMessageId/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
RemoveItem
Removes an item from the Exchange store.
Message
Represents an Exchange e-mail message.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
AcceptItem
Represents an Accept reply to a meeting request.
DeclineItem
Represents a Decline reply to a meeting request.
ReplyToItem
Contains a reply to the creator of an item in the Exchange store.
ReplyAllToItem
Contains a reply to all identified recipients of an item in the Exchange
store.
ForwardItem
Contains an Exchange store item to forward to recipients.
CancelCalendarItem
Represents the response object that is used to cancel a meeting.
PostItem
Represents a post item in the Exchange store. This element was
introduced in Microsoft Exchange Server 2007 Service Pack 1 (SP1).
Text value
The text value represents the Internet message identifier.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Interval
Article • 03/29/2023 • 2 minutes to read
The Interval element defines the interval between two consecutive recurring items.
XML
<Interval/>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
DailyRegeneration
Describes the frequency, in days, in which a task is regenerated.
DailyRecurrence
Describes the frequency, in days, in which a task recurs.
MonthlyRegeneration
Describes the frequency, in months, in which a task is regenerated.
RelativeMonthlyRecurrence
Describes a relative monthly pattern for a recurring task.
WeeklyRecurrence
Describes the frequency, in weeks, in which and the days on which
a task recurs.
WeeklyRegeneration
Describes the frequency, in weeks, in which a task is regenerated.
YearlyRegeneration
Describes the frequency, in years, in which a task is regenerated.
Text value
A text value that represents an integer is required.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
InvalidRecipient
Article • 03/29/2023 • 2 minutes to read
The InvalidRecipient element contains the SMTP address of the invalid recipient and
information about why the recipient is invalid.
XML
<InvalidRecipient>
<SmtpAddress/>
<ResponseCode/>
<MessageText/>
</InvalidRecipient>
InvalidRecipientType
Attributes
None.
Child elements
Element Description
SmtpAddress
Contains the SMTP address of the invalid recipient. This
element is required.
ResponseCode Provides an error code that identifies the specific error that
(InvalidRecipientResponseCodeType) the request encountered. This element is required.
MessageText
Provides a text description of the status of the response.
This element is optional.
Parent elements
Element Description
Element Description
InvalidRecipients
Represents the recipients of a folder sharing request that are invalid.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
-GetSharingMetadata operation
XML
<InvalidRecipient>true | false</InvalidRecipient>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
MailTips
Represents values for various types of mail tips.
Text value
The text value of this element is true if the recipient is invalid. The value is false if the
recipient is not invalid.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
InvalidRecipients
Article • 03/29/2023 • 2 minutes to read
The InvalidRecipients element represents the recipients of a folder sharing request that
are invalid.
XML
<InvalidRecipients>
<InvalidRecipient/>
</InvalidRecipients>
ArrayOfInvalidRecipientsType
Attributes
None.
Child elements
Element Description
InvalidRecipient Contains the SMTP address of the invalid recipient and information about why
the recipient is invalid.
Parent elements
Element Description
GetSharingMetadataResponse
Defines a response to a GetSharingMetadata operation
request.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetSharingMetadata operation
XML
<IsAllDayEvent/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
MeetingRequest
Represents a meeting request in the Exchange store.
Text value
A text value that represents a Boolean value is required if this element is included. A
value of true indicates that the item represents an all-day event. A value of false
indicates that the item spans less than a user's working hours.
Remarks
An all-day event spans the duration of working hours that is defined for a mailbox.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
IsApprovalRequest
Article • 03/29/2023 • 2 minutes to read
XML
<IsApprovalRequest/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Conditions
Represents the conditions that, when fulfilled, will trigger the rule actions for a rule.
Exceptions
Represents all the available rule exception conditions for an Inbox rule.
Text value
A text value of true indicates that the message must be an approval request in order for
the condition or exception to apply. A value of false indicates that the message must
not be an approval request in order for the condition or exception to apply.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
IsArchive
Article • 03/29/2023 • 2 minutes to read
The IsArchive element specifies a Boolean value that indicates whether the mailbox is an
archive mailbox.
XML
<IsArchive>true | false</IsArchive>
Boolean
Attributes
None.
Child elements
None.
Parent elements
FailedMailbox | RetentionPolicyTag
Text value
A text value of true for the IsArchive element indicates that the target mailbox is an
archive mailbox. A value of false indicates that the target mailbox is not an archive
mailbox.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
IsAssignmentEditable
Article • 03/29/2023 • 2 minutes to read
XML
<IsAssignmentEditable/>
integer
Attributes
None.
Child elements
None.
Parent elements
Element Description
Task
Represents a task in the Exchange store.
Text value
This property is read-only. The following table lists the possible values.
Value Description
1 A task request.
5 Not used.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
IsAssociated
Article • 03/29/2023 • 2 minutes to read
The IsAssociated element indicates whether the item is associated with a folder.
XML
<IsAssociated/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
Contact
Represents an Exchange contact item.
DistributionList
Represents a distribution list.
Item
Represents an item in the Exchange store.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Element Description
Message
Represents an Exchange e-mail message.
PostItem
Represents a post item in the Exchange store.
RemoveItem
Removes an item from the Exchange store.
Task
Represents a task in the Exchange store.
Text value
A text value of true indicates that the item is associated with a folder; a value of false
indicates that the item is not associated with a folder.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
IsAutomaticForward
Article • 03/29/2023 • 2 minutes to read
XML
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Conditions
Represents the conditions that, when fulfilled, will trigger the rule actions for a rule.
Exceptions
Represents all the available rule exception conditions for an Inbox rule.
Text value
A text value of true indicates that the message must be an automatic forward in order
for the condition or exception to apply. A value of false indicates that the message must
not be an automatic forward in order for the condition or exception to apply.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
IsAutomaticReply
Article • 03/29/2023 • 2 minutes to read
XML
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Conditions
Represents the conditions that, when fulfilled, will trigger the rule actions for a rule.
Exceptions
Represents all the available rule exception conditions for an Inbox rule.
Text value
A text value of true indicates that the message must be an automatic reply in order for
the condition or exception to apply. A value of false indicates that the message does not
have to be an automatic reply in order for the condition or exception to apply.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
IsCancelled
Article • 03/29/2023 • 2 minutes to read
XML
<IsCancelled/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
MeetingRequest
Represents a meeting request in the Exchange store.
Text value
A text value that represents a Boolean value is required if this element is included. A
value of true indicates that the calendar item has been canceled. A value of false
indicates that a calendar item has not been canceled.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
IsClutter
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
IsComplete
Article • 03/29/2023 • 2 minutes to read
The IsComplete element indicates whether the task has been completed.
XML
<IsComplete/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Task
Represents a task in the Exchange store.
Text value
The text value is a Boolean value that indicates whether the task has been completed.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Creating Tasks
Deleting Tasks
IsContactPhoto
Article • 03/29/2023 • 2 minutes to read
The IsContactPhoto element indicates whether the file attachment is a contact picture.
XML
<IsContactPhoto>true or false</IsContactPhoto>
boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
FileAttachment
Represents a file that is attached to an item in the Exchange store.
Text value
This element can be either true or false. The default value is false.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server that has the Client Access server
role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
IsDebug
Article • 03/29/2023 • 2 minutes to read
XML
<IsDebug>true | false</IsDebug>
Boolean
Attributes
None.
Child elements
None.
Parent elements
GetClientExtensionResponse
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Element Example
Can be empty
IsDelegated
Article • 03/29/2023 • 2 minutes to read
The IsDelegated element indicates whether a meeting was handled by an account that
has delegate access.
XML
<IsDelegated/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Text value
A text value of true indicates that the meeting was handled by an account that has
delegate access.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
IsDeliveryReceiptRequested
Article • 03/29/2023 • 2 minutes to read
XML
<IsDeliveryReceiptRequested/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
RemoveItem
Removes an item from the Exchange store.
Message
Represents an Exchange e-mail message.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
AcceptItem
Represents an Accept reply to a meeting request.
DeclineItem
Represents a Decline reply to a meeting request.
ReplyToItem
Contains a reply to the creator of an item in the Exchange store.
ReplyAllToItem
Contains a reply to all identified recipients of an item in the Exchange
store.
ForwardItem
Contains an Exchange store item to forward to recipients.
CancelCalendarItem
Represents the response object that is used to cancel a meeting.
Text value
A text value of true indicates that a delivery receipt is requested from the recipient of
the item.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
IsDraft
Article • 03/29/2023 • 2 minutes to read
The IsDraft element indicates whether an item has not yet been sent.
XML
<IsDraft/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
Contact
Represents an Exchange contact item.
DistributionList
Represents a distribution list.
Item
Represents an item in the Exchange store.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Element Description
Message
Represents an Exchange e-mail message.
RemoveItem
Removes an item from the Exchange store.
Task
Represents a task in the Exchange store.
Text value
A text value that represents a Boolean value is required. A value of true indicates that a
message has not yet been sent. A value of false indicates that a message has been sent.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
IsEnabled
Article • 03/29/2023 • 2 minutes to read
XML
<IsEnabled/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Rule (RuleType)
Represents a rule in the user's mailbox.
Text value
A text value of true indicates that the rule is enabled and can be executed. A value of
false indicates that the rule cannot be executed.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
IsEncrypted
Article • 03/29/2023 • 2 minutes to read
XML
<IsEncrypted>true | false</IsEncrypted>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Conditions
Represents the conditions that, when fulfilled, will trigger the rule actions for a rule.
Exceptions
Represents all the available rule exception conditions for an Inbox rule.
Text value
A text value of true indicates that the message must be S/MIME encrypted in order for
the condition or exception to apply. A value of false indicates that the message does not
have to be S/MIME in order for the condition or exception to apply.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
IsEqualTo
Article • 03/29/2023 • 2 minutes to read
The IsEqualTo element represents a search expression that compares a property with
either a constant value or another property and evaluates to true if they are equal.
XML
<IsEqualTo>
<FieldURI/>
<FieldURIOrConstant/>
</IsEqualTo>
XML
<IsEqualTo>
<ExtendedFieldURI/>
<FieldURIOrConstant/>
</IsEqualTo>
XML
<IsEqualTo>
<IndexedFieldURI/>
<FieldURIOrConstant/>
</IsEqualTo>
IsEqualToType
Attributes
None.
Child elements
Element Description
FieldURI
Identifies frequently referenced properties by URI.
Element Description
IndexedFieldURI
Identifies individual members of a dictionary.
ExtendedFieldURI
Identifies MAPI properties.
Parent elements
Element Description
Restriction Represents the restriction or query that is used to filter items or folders in
FindItem/FindFolder and search folder operations.
Not
Represents a search expression that negates the Boolean value of the search
expression that it contains.
And
Represents a search expression that allows you to perform a Boolean And operation
between two or more search expressions. The result of the And operation is true if all
of the search expressions contained within the And are true.
Or
Represents a search expression that performs a logical OR on the search expression
that it contains. Or will return true if any of its children return true. Or must have two
or more children.
Remarks
To perform string comparisons, consider using the Contains element, as it provides
options for matching parameters, such as case and white space. Use the Not element in
conjunction with the Contains element to negate the result.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
IsException
Article • 03/29/2023 • 2 minutes to read
The IsException element indicates whether an instance of a recurring calendar item is changed from the master.
GetUserAvailabilityResponse
FreeBusyResponseArray
FreeBusyResponse
FreeBusyView
CalendarEventArray
CalendarEvent
CalendarEventDetails
IsException
XML
<IsException/>
boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
A text value is required if this element is returned in the response. This element is required if the CalendarEventDetails element is used.
Remarks
The schema that describes this element is located in the EWS virtual directory of the computer that is running MicrosoftExchange Server
2007 that has the Client Access server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityResponse
XML
<IsExternalMailbox>true | false</IsExternalMailbox>
Boolean
Attributes
None.
Child elements
None.
Parent elements
SearchableMailbox
Text value
A text value of true for the IsExternalMailbox element indicates that the mailbox is in an
external organization. A value of false indicates that the mailbox is in the organization.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
IsFolderContact
Article • 03/29/2023 • 2 minutes to read
The IsFolderContact element indicates whether a user is a contact for a folder. This
element was introduced in Microsoft Exchange Server 2007 Service Pack 1 (SP1).
XML
<IsFolderContact/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Permission
Defines the access that a user has to a folder. This element was introduced
in Exchange 2007 SP1.
CalendarPermission Defines the access that a user has to a Calendar folder. This element was
introduced in Exchange 2007 SP1.
Text value
A text value of true indicates that the user is a contact for the specified folder. A value of
false indicates that the user is not a contact for the specified folder.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
The IsFolderOwner element indicates whether a user is the owner of a folder. This
element was introduced in Microsoft Exchange Server 2007 Service Pack 1 (SP1).
XML
<IsFolderOwner/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Permission
Defines the access that a user has to a folder. This element was introduced
in Exchange 2007 SP1.
CalendarPermission Defines the access that a user has to a Calendar folder. This element was
introduced in Exchange 2007 SP1.
Text value
A text value of true indicates that the user is the owner of the folder. A value of false
indicates that the user is not the owner of the folder.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
The IsFolderVisible element indicates whether a user can view a folder. This element was
introduced in Microsoft Exchange Server 2007 Service Pack 1 (SP1).
XML
<IsFolderVisible/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Permission
Defines the access that a user has to a folder. This element was introduced
in Exchange 2007 SP1.
CalendarPermission Defines the access that a user has to a Calendar folder. This element was
introduced in Exchange 2007 SP1.
Text value
A text value of true indicates that the user can view the folder. A value of false indicates
that the user cannot view the folder.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
The IsFromMe element indicates whether a user sent an item to him or herself.
XML
<IsFromMe/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
Contact
Represents an Exchange contact item.
DistributionList
Represents a distribution list.
Item
Represents an item in the Exchange store.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Element Description
Message
Represents an Exchange e-mail message.
RemoveItem
Removes an item from the Exchange store.
Task
Represents a task in the Exchange store.
Text value
A text value of true indicates that the item was sent by a user to him or herself. A value
of false indicates that the item was not sent by the user to him or herself.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
IsGreaterThan
Article • 03/29/2023 • 2 minutes to read
XML
<IsGreaterThan>
<FieldURI/>
<FieldURIOrConstant/>
</IsGreaterThan>
XML
<IsGreaterThan>
<IndexedFieldURI/>
<FieldURIOrConstant/>
</IsGreaterThan>
XML
<IsGreaterThan>
<ExtendedFieldURI/>
<FieldURIOrConstant/>
</IsGreaterThan>
IsGreaterThanType
Attributes
None.
Child elements
Element Description
Element Description
FieldURI
Identifies frequently referenced properties by URI.
IndexedFieldURI
Identifies individual members of a dictionary.
ExtendedFieldURI
Identifies MAPI properties.
Parent elements
Element Description
Restriction Represents the restriction or query that is used to filter items or folders in
FindItem/FindFolder and search folder operations.
Not
Represents a search expression that negates the Boolean value of the search
expression that it contains.
And
Represents a search expression that enables you to perform a Boolean And
operation between two or more search expressions. The result of the And operation
is true if all the search expressions contained within the And are true.
Or
Represents a search expression that performs a logical OR on the search expression
it contains. Or will return true if any of its children return true.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
XML
<IsGreaterThanOrEqualTo>
<FieldURI/>
<FieldURIOrConstant/>
</IsGreaterThanOrEqualTo>
XML
<IsGreaterThanOrEqualTo>
<IndexedFieldURI/>
<FieldURIOrConstant/>
</IsGreaterThanOrEqualTo>
XML
<IsGreaterThanOrEqualTo>
<ExtendedFieldURI/>
<FieldURIOrConstant/>
</IsGreaterThanOrEqualTo>
IsGreaterThanOrEqualToType
Attributes
None.
Child elements
Element Description
Element Description
FieldURI
Identifies frequently referenced properties by URI.
IndexedFieldURI
Identifies individual members of a dictionary.
ExtendedFieldURI
Identifies MAPI properties.
Parent elements
Element Description
Restriction Represents the restriction or query that is used to filter items or folders in
FindItem/FindFolder and search folder operations.
Not
Represents a search expression that negates the Boolean value of the search
expression it contains.
And
Represents a search expression that enables you to perform a Boolean And
operation between two or more search expressions. The result of the And operation
is true if all of the search expressions contained within the And are true.
Or
Represents a search expression that performs a logical OR on the search expression
it contains. Or will return true if any of its children return true. Or must have two or
more children.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
The IsHidden element contains a Boolean value that indicates whether the underlying
contact should be hidden or displayed as part of the persona.
XML
<IsHidden>true | false</IsHidden>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
A text value of true for the IsHidden element indicates that the underlying contact
should be hidden or displayed as part of the persona. A value of false indicates that the
underlying contact should not be hidden or displayed as part of the persona.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
IsInError
Article • 03/29/2023 • 2 minutes to read
XML
<IsInError/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Rule (RuleType)
Represents a rule in the user's mailbox.
Text value
A text value of true indicates that the rule is in an error condition. A value of false
indicates that the rule is not in an error condition.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
IsInline
Article • 03/29/2023 • 2 minutes to read
The IsInline element represents whether the attachment appears inline within an item.
XML
<IsInline>true or false</IsInline>
boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
FileAttachment
Represents a file that is attached to an item in the Exchange store.
ItemAttachment
Represents an Exchange item that is attached to another Exchange item.
Text value
This element can be either true or false. The default value is false.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server that has the Client Access server
role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
IsLessThan
Article • 03/29/2023 • 2 minutes to read
The IsLessThan element represents a search expression that compares a property with
either a constant value or another property and returns true if the first property is less
than the second.
XML
<IsLessThan>
<FieldURI/>
<FieldURIOrConstant/>
</IsLessThan>
XML
<IsLessThan>
<IndexedFieldURI/>
<FieldURIOrConstant/>
</IsLessThan>
XML
<IsLessThan>
<ExtendedFieldURI/>
<FieldURIOrConstant/>
</IsLessThan>
IsLessThanType
Attributes
None.
Child elements
Element Description
Element Description
FieldURI
Identifies frequently referenced properties by URI.
IndexedFieldURI
Identifies individual members of a dictionary.
ExtendedFieldURI
Identifies MAPI properties.
Parent elements
Element Description
Restriction Represents the restriction or query that is used to filter items or folders in
FindItem/FindFolder and search folder operations.
Not
Represents a search expression that negates the Boolean value of the search
expression that it contains.
And
Represents a search expression that enables you to perform a Boolean And
operation between two or more search expressions. The result of the And operation
is true if all of the search expressions contained within the And are true.
Or
Represents a search expression that performs a logical OR on the search expression
it contains. Or will return true if any of its children return true. Or must have two or
more children.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
XML
<IsLessThanOrEqualTo>
<FieldURI/>
<FieldURIOrConstant/>
</IsLessThanOrEqualTo>
XML
<IsLessThanOrEqualTo>
<IndexedFieldURI/>
<FieldURIOrConstant/>
</IsLessThanOrEqualTo>
XML
<IsLessThanOrEqualTo>
<ExtendedFieldURI/>
<FieldURIOrConstant/>
</IsLessThanOrEqualTo>
IsLessThanOrEqualToType
Attributes
None.
Child elements
Element Description
Element Description
FieldURI
Identifies frequently referenced properties by URI.
IndexedFieldURI
Identifies individual members of a dictionary.
ExtendedFieldURI
Identifies MAPI properties.
Parent elements
Element Description
Restriction Represents the restriction or query that is used to filter items or folders in
FindItem/FindFolder and search folder operations.
Not
Represents a search expression that negates the Boolean value of the search
expression it contains.
And
Represents a search expression that enables you to perform a Boolean And
operation between two or more search expressions. The result of the And operation
is true if all of the search expressions contained within the And are true.
Or
Represents a search expression that performs a logical OR on the search expression
it contains. Or will return true if any of its children return true. Or must have two or
more children.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
The IsManagedFoldersRoot element indicates whether the managed folder is the root
for all managed folders.
XML
<IsManagedFoldersRoot/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
ManagedFolderInformation
Contains information about a managed folder.
Text value
A text value that represents a Boolean value is required if this element is present. A
value of true indicates that the folder is the root folder of the managed folder; a value of
false indicates that the folder is not the root folder of the managed folder.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
IsMeeting
Article • 03/29/2023 • 2 minutes to read
XML
<IsMeeting/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
MeetingRequest
Represents a meeting request in the Exchange store.
Text value
A text value that represents a Boolean value is required if this element is included. A
value of true indicates that the calendar item is a meeting. A value of false indicates that
the calendar item is an appointment.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
IsMeeting (CalendarEventDetails)
Article • 03/29/2023 • 2 minutes to read
The IsMeeting element indicates whether the calendar event is a meeting or an appointment.
GetUserAvailabilityResponse
FreeBusyResponseArray
FreeBusyResponse
FreeBusyView
CalendarEventArray
CalendarEvent
CalendarEventDetails
IsMeeting (CalendarEventDetails)
XML
<IsMeeting>true or false</IsMeeting>
boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
A text value is required if this element is returned in the response. This element is required if the CalendarEventDetails element is used.
Remarks
The difference between a meeting and an appointment is that a meeting is a calendar item that includes attendees; an appointment is a
calendar item that does not include attendees.
The schema that describes this element is located in the EWS virtual directory of the computer that is running MicrosoftExchange Server
2007 that has the Client Access server role installed.
Element information
Element Example
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityResponse
XML
<IsMeetingRequest>true | false</IsMeetingRequest>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Conditions
Represents the conditions that, when fulfilled, will trigger the rule actions for a rule.
Exceptions
Represents all the available rule exception conditions for an Inbox rule.
Text value
A text value of true indicates that the message must be a meeting request in order for
the condition or exception to apply. A value of false indicates that the message must
not be a meeting request in order for the condition or exception to apply.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
IsMeetingResponse
Article • 03/29/2023 • 2 minutes to read
XML
<IsMeetingResponse/>true | false</IsMeetingResponse>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Conditions
Represents the conditions that, when fulfilled, will trigger the rule actions for a rule.
Exceptions
Represents all the available rule exception conditions for an Inbox rule.
Text value
A text value of true indicates that the message must be a meeting response in order for
the condition or exception to apply. A text value of false indicates that the message
must not be a meeting response in order for the condition or exception to apply.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
IsMember
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
IsMember
(FederatedDirectoryGroupType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
IsMembershipGroup
Article • 03/29/2023 • 2 minutes to read
The IsMembershipGroup element specifies a Boolean value that indicates whether the
entity is a distribution group or a mailbox.
XML
<IsMembershipGroup>true | false</IsMembershipGroup>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
SearchableMailbox
Specifies a mailbox returned from a GetSearchableMailboxes request.
Text value
A text value of true for the IsMembershipGroup element indicates that the entity is a
distribution group or a mailbox. A value of false indicates that the entity is not a
distribution group or a mailbox.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
IsModerated
Article • 03/29/2023 • 2 minutes to read
The IsModerated element indicates whether the recipient's mailbox is being moderated.
XML
<IsModerated>true | false</IsModerated>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
MailTips
Represents values for various types of mail tips.
Text value
The text value for this element is true if the recipient's mailbox is being moderated. The
value is false if the recipient's mailbox is not being moderated.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
IsNDR
Article • 03/29/2023 • 2 minutes to read
The IsNDR element indicates whether incoming messages must be non-delivery reports
(NDRs) in order for the condition or exception to apply.
XML
<IsNDR>true | false</IsNDR>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Conditions
Represents the conditions that, when fulfilled, will trigger the rule actions for a rule.
Exceptions
Represents all the available rule exception conditions for an Inbox rule.
Text value
A text value of true indicates that the message must be an NDR in order for the
condition or exception to apply. A value of false indicates that the message must not be
an NDR in order for the condition or exception to apply.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
IsNotEqualTo
Article • 03/29/2023 • 2 minutes to read
XML
<IsNotEqualTo>
<FieldURI/>
<FieldURIOrConstant/>
</IsNotEqualTo>
XML
<IsNotEqualTo>
<ExtendedFieldURI/>
<FieldURIOrConstant/>
</IsNotEqualTo>
XML
<IsNotEqualTo>
<IndexedFieldURI/>
<FieldURIOrConstant/>
</IsNotEqualTo>
IsNotEqualToType
Attributes
None.
Child elements
Element Description
Element Description
FieldURI
Identifies frequently referenced properties by URI.
IndexedFieldURI
Identifies individual members of a dictionary.
ExtendedFieldURI
Identifies MAPI properties.
Parent elements
Element Description
Restriction Represents the restriction or query that is used to filter items or folders in
FindItem/FindFolder and search folder operations.
Not
Represents a search expression that negates the Boolean value of the search
expression that it contains.
And
Represents a search expression that allows you to perform a Boolean And operation
between two or more search expressions. The result of the And operation is true if all
of the search expressions contained within the And are true.
Or
Represents a search expression that performs a logical OR on the search expression
that it contains. Or will return true if any of its children return true. Or must have two
or more children.
Remarks
To perform string comparisons, consider using the Contains element, as it provides
options for matching parameters such as case and white space. Use the Not element in
conjunction with the Contains element to negate the result.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Name Value
See also
EWS XML elements in Exchange
IsNotSupported
Article • 03/29/2023 • 2 minutes to read
The IsNotSupported element indicates whether the rule cannot be modified by using
the managed code APIs.
XML
<IsNotSupported/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Rule (RuleType)
Represents a rule in the user's mailbox.
Text value
A text value of true indicates that the rule cannot be modified by using the managed
code APIs. A value of false indicates that the rule can be modified by using the managed
code APIs.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
IsOccurrencePresent
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
IsOnlineMeeting
Article • 03/29/2023 • 2 minutes to read
XML
<IsOnlineMeeting/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
MeetingRequest
Represents a meeting in the Exchange store.
CalendarItem
Represents an Exchange calendar item.
Text value
A text value that represents a Boolean value is required if this element is used. A value of
true indicates that the meeting is online. A value of false indicates that the meeting is
not online.
Remarks
The IsOnlineMeeting property is read-only.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange 2007 that has the Client Access server role
installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
IsOrganizer
Article • 03/29/2023 • 2 minutes to read
The IsOrganizer element specifies a Boolean value that indicates whether this person is
the organizer of the meeting.
XML
<IsOrganizer>true | false</IsOrganizer>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
MeetingMessage
Represents a meeting message.
Text value
A text value of true for the IsOrganizer element indicates that the calendar item or
meeting message was created by the user. A value of false indicates that the calendar
item or meeting message was not created bv the user.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
IsOutOfDate
Article • 03/29/2023 • 2 minutes to read
XML
<IsOutOfDate/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Text value
A text value of true indicates that the meeting item is out-of-date.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
IsOwner
Article • 03/29/2023 • 2 minutes to read
The IsOwner element specifies whether the specified email user is the owner.
XML
<IsOwner>true | false</IsOwner>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
RightsManagementLicenseData
Specifies information about the rights management license.
Text value
A text value of true for the IsOwner element indicates that the user is the owner of
rights issued on an item. A value of false indicates that the user is not the owner of
rights issued on an item.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can Be Empty
See also
EWS XML elements in Exchange
IsPartiallyIndexed
Article • 03/29/2023 • 2 minutes to read
XML
<IsPartiallyIndexed>true | false</IsPartiallyIndexed>
Boolean
Attributes
None.
Child elements
None.
Parent elements
NonIndexableItemDetail
Text value
A text value of true for the IsPartiallyIndexed element indicates that the mailbox item is
partially indexed. A value of false indicates that the mailbox item is not partially indexed.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
The IsPermanentFailure element indicates whether a previous attempt to index the item
was unsuccessful.
XML
<IsPermanentFailure>true | false</IsPermanentFailure>
Boolean
Attributes
None.
Child elements
None.
Parent elements
NonIndexableItemDetail
Text value
A text value of true for the IsPermanentFailure element indicates that a previous
attempt to index the mailbox item was unsuccessful. A value of false indicates that a
previous attempt to index the mailbox item was successful.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
XML
<IsPermissionControlled>true | false</IsPermissionControlled>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Conditions
Represents the conditions that, when fulfilled, will trigger the rule actions for a rule.
Exceptions
Represents all the available rule exception conditions for an Inbox rule.
Text value
A text value of true indicates that the message must be RMS protected in order for the
condition or exception to apply. A value of false indicates that the message must not be
RMS protected in order for the condition or exception to apply.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
IsPin
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
IsPinned
(FederatedDirectoryGroupType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
IsPrivate
Article • 03/29/2023 • 2 minutes to read
GetUserAvailabilityResponse
FreeBusyResponseArray
FreeBusyResponse
FreeBusyView
CalendarEventArray
CalendarEvent
CalendarEventDetails
IsPrivate
XML
<IsPrivate>true or false</IsPrivate>
boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
A text value that represents a Boolean value is required.
Remarks
If this element is used, the other elements in the CalendarEventDetails element will not be included in the response.
The schema that describes this element is located in the EWS virtual directory of the computer that is running MicrosoftExchange Server
2007 that has the Client Access server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Name Value
See also
GetUserAvailability operation
GetUserAvailabilityResponse
The IsQuickContact element specifies a Boolean value that indicates whether the
underlying contact is a quick contact.
XML
<IsQuickContact>true | false</IsQuickContact>
boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
A text value of true for the IsQuickContact element indicates that the contact is a quick
contact. A value of false indicates that the contact is not a quick contact.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
IsRead
Article • 03/29/2023 • 2 minutes to read
XML
<IsRead/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
RemoveItem
Removes an item from the Exchange store.
Message
Represents an Exchange e-mail message.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
PostItem
Represents a post item in the Exchange store. This element was introduced
in Microsoft Exchange Server 2007 Service Pack 1 (SP1).
ConversationAction
Contains a single action to be applied to a single conversation.
Text value
A text value of true indicates that the message has been read. A text value of false
indicates that the message has not been read.
Remarks
If IsReadReceiptRequested is true, setting IsRead to true sends a read receipt. The
recipient can suppress read receipts by submitting the SuppressReadReceipt response
object before setting the IsRead property.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
IsReadReceipt
Article • 03/29/2023 • 2 minutes to read
The IsReadReceipt element indicates whether incoming messages must be read receipts
in order for the condition or exception to apply.
XML
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Conditions Represents the conditions that, when fulfilled, will trigger the rule actions for that
rule.
Exceptions Represents all the available rule exception conditions for the Inbox rule.
Text value
A text value of true indicates that the message must be a read receipt in order for the
condition or exception to apply. If the message does not have to be a read receipt for
the condition or exception to apply, the value is false.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
IsReadReceiptRequested
Article • 03/29/2023 • 2 minutes to read
XML
<IsReadReceiptRequested/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
RemoveItem
Removes an item from the Exchange store.
Message
Represents an Exchange e-mail message.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
AcceptItem
Represents an Accept reply to a meeting request.
DeclineItem
Represents a Decline reply to a meeting request.
ReplyToItem
Contains a reply to the creator of an item in the Exchange store.
ReplyAllToItem
Contains a reply to all identified recipients of an item in the Exchange
store.
ForwardItem
Contains an Exchange store item to forward to recipients.
CancelCalendarItem
Represents the response object thatis used to cancel a meeting.
Text value
A text value of true indicates that a read receipt is requested from the recipient of the
item.
Remarks
If IsReadReceiptRequested is true, setting IsRead to true sends a read receipt. The
recipient can suppress read receipts by submitting the SuppressReadReceipt response
object before setting the IsRead property.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
IsRecurring
Article • 03/29/2023 • 2 minutes to read
The IsRecurring element indicates whether a calendar item, meeting request, or task is
part of a recurring item. This element is read-only.
XML
<IsRecurring/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
MeetingRequest
Represents a meeting request in the Exchange store.
Task
Represents a task in the Exchange store.
Text value
A text value that represents a Boolean value is required.
Remarks
The following table shows how the IsRecurring property is set for different calendar
item types for organizers and attendees and for meeting requests and updates.
The IsRecurring property value that is set for recurring master calendar items for the
organizer is incorrect; this value should be set to TRUE.
7 Note
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
TaskType.IsRecurring
CalendarEventDetails.IsRecurring
CalendarItemType.IsRecurring
MeetingRequestMessageType.IsRecurring
CalendarItemType.IsRecurringSpecified
MeetingRequestMessageType.IsRecurringSpecified
TaskType.IsRecurringSpecified
The IsRecurring element indicates whether the calendar event is an instance of a recurring calendar item or a single calendar item.
GetUserAvailabilityResponse
FreeBusyResponseArray
FreeBusyResponse
FreeBusyView
CalendarEventArray
CalendarEvent
CalendarEventDetails
IsRecurring (CalendarEventDetails)
XML
<IsRecurring>true or false</IsRecurring>
boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
A text value is required if this element is returned in the response. This element is required if the CalendarEventDetails element is used.
Remarks
The schema that describes this element is located in the EWS virtual directory of the computer that is running MicrosoftExchange Server
2007 that has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityResponse
The IsReminderSet element indicates whether a reminder has been set for the calendar event.
GetUserAvailabilityResponse
FreeBusyResponseArray
FreeBusyResponse
FreeBusyView
CalendarEventArray
CalendarEvent
CalendarEventDetails
IsReminderSet
XML
<IsReminderSet>true or false</IsReminderSet>
boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
A text value is required if this element is returned in the response. This element is required if the CalendarEventDetails element is used
unless the IsPrivate element is set to true.
Remarks
The schema that describes this element is located in the EWS virtual directory of the computer that is running MicrosoftExchange Server
2007 that has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Element Example
See also
GetUserAvailability operation
GetUserAvailabilityResponse
The IsResend element indicates whether the item had previously been sent.
XML
<IsResend/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
Contact
Represents an Exchange contact item.
DistributionList
Represents a distribution list.
Item
Represents an item in the Exchange store.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Element Description
Message
Represents an Exchange e-mail message.
RemoveItem
Removes an item from the Exchange store.
Task
Represents a task in the Exchange store.
Text value
A text value of true indicates that the item had previously been sent.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
IsResponseRequested
Article • 03/29/2023 • 2 minutes to read
XML
<IsResponseRequested/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
RemoveItem
Removes an item from the Exchange store.
Message
Represents an Exchange e-mail message.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
CalendarItem
Represents an Exchange calendar item.
Text value
A text value of true indicates that a response is requested.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
IsSigned
Article • 03/29/2023 • 2 minutes to read
The IsSigned element indicates whether incoming messages must be signed in order for
the condition or exception to apply.
XML
<IsSigned>true | false</IsSigned>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Conditions Represents the conditions that, when fulfilled, will trigger the rule actions for a rule.
Exceptions Represents the exceptions that represent all the available rule exception conditions
for an Inbox rule.
Text value
A text value of true indicates that the message must be signed in order for the condition
or exception to apply. A text value of false indicates that the message does not have to
be signed for the condition or exception to apply.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
IsSubmitted
Article • 03/29/2023 • 2 minutes to read
The IsSubmitted element indicates whether an item has been submitted to the Outbox
default folder.
XML
<IsSubmitted/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
Contact
Represents an Exchange contact item.
DistributionList
Represents a distribution list.
Item
Represents an item in the Exchange store.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Element Description
Message
Represents an Exchange e-mail message.
RemoveItem
Removes an item from the Exchange store.
Task
Represents a task in the Exchange store.
Text value
A text value of true indicates that the item has been submitted to the Outbox folder.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
IsTeamTask
Article • 03/29/2023 • 2 minutes to read
XML
<IsTeamTask/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Task
Represents a task in the Exchange store.
Text value
The text value represents a Boolean value that indicates whether a task is owned by a
team. This is a read-only property.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Creating Tasks
Deleting Tasks
IsTranscriptionEnabledInMailboxConfig
Article • 03/29/2023 • 2 minutes to read
XML
<IsTranscriptionEnabledInMailboxConfig />
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
IsUndecidedApprovalRequest
Article • 03/29/2023 • 2 minutes to read
XML
Boolean
Attributes
None.
Child elements
None.
Parent elements
ApprovalRequestData
Text value
The text value of the IsUndecidedApprovalRequest element is true if an approval
request message has not been acted on. A value of false indicates that the approval
request has been decided.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
ApprovalRequestData
The IsUnmodified element indicates whether the item has been modified.
XML
<IsUnmodified/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
Contact
Represents an Exchange contact item.
DistributionList
Represents a distribution list.
Item
Represents an item in the Exchange store.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Element Description
Message
Represents an Exchange e-mail message.
RemoveItem
Removes an item from the Exchange store.
Task
Represents a task in the Exchange store.
Text value
A text value of true indicates that the item is unmodified. A text value of false indicates
that the item has been modified.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
IsVisible
Article • 03/29/2023 • 2 minutes to read
The IsVisible element indicates whether the retention policy is visible to users.
XML
Boolean
Attributes
None.
Child elements
None.
Parent elements
RetentionPolicyTag
Text value
A text value of true for the IsVisible element indicates that the retention policy is visible
to a user. A value of false indicates the retention policy is not visible to users.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
IsVoicemail
Article • 03/29/2023 • 2 minutes to read
The IsVoicemail element indicates whether incoming messages must be voice mail
messages in order for the condition or exception to apply.
XML
<IsVoicemail>true | false</IsVoicemail>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Conditions Represents the conditions that, when fulfilled, will trigger the rule actions for a rule.
Exceptions Represents the exceptions that represent all the available rule exception conditions
for an Inbox rule.
Text value
A text value of true indicates that the message must be a voice mail message in order
for the condition or exception to apply. A value of false indicates that the message must
not be a voice mail message in order for the condition or exception to apply.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Item Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
IsWorkTime
Article • 03/29/2023 • 2 minutes to read
The IsWorkTime element represents whether the suggested meeting time occurs during scheduled work hours.
GetUserAvailabilityResponse
SuggestionsResponse
SuggestionDayResultArray
SuggestionDayResult
SuggestionArray
Suggestion
IsWorkTime
XML
<IsWorkTime>true or false</IsWorkTime>
boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
A text value that represents a Boolean value is required.
Remarks
The schema that describes this element is located in the EWS virtual directory of the computer that is running
MicrosoftExchange Server 2007 that has the Client Access server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityResponse
The IsWritable element specifies whether the underlying contact or Active Directory
recipient can be written to.
XML
Boolean
Attributes
None.
Child elements
None.
Parent elements
Attribution (PersonaAttributionType)
Text value
A text value of true for the IsWritable element indicates that the contact or Active
Directory object is available for write access. A value of false indicates that the contact
or Active Directory object is not available for write access.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Item
Article • 03/29/2023 • 4 minutes to read
XML
<Item>
<MimeContent/>
<ItemId/>
<ParentFolderId/>
<ItemClass/>
<Subject/>
<Sensitivity/>
<Body/>
<Attachments/>
<DateTimeReceived/>
<Size/>
<Categories/>
<Importance/>
<InReplyTo/>
<IsSubmitted/>
<IsDraft/>
<IsFromMe/>
<IsResend/>
<IsUnmodified/>
<InternetMessageHeaders/>
<DateTimeSent/>
<DateTimeCreated/>
<ResponseObjects/>
<ReminderDueBy/>
<ReminderIsSet/>
<ReminderMinutesBeforeStart/>
<DisplayCc/>
<DisplayTo/>
<HasAttachments/>
<ExtendedProperty/>
<Culture/>
<EffectiveRights/>
<LastModifiedName/>
<LastModifiedTime/>
<IsAssociated/>
<WebClientReadFormQueryString/>
<WebClientEditFormQueryString/>
<ConversationId/>
<UniqueBody/>
</Item>
ItemType
Attributes and elements
The following sections describe attributes, child elements, and parent elements.
Attributes
None.
Child elements
Element Description
MimeContent
Contains the native Multipurpose Internet Mail Extensions
(MIME) stream of an object that is represented in base64Binary
format.
ItemId
Contains the unique identifier and change key of an item in the
Exchange store. This property is read-only.
ParentFolderId Represents the identifier of the parent folder that contains the
item or folder. This property is read-only.
ItemClass
Represents the message class of an item.
Subject
Represents the subject for Exchange store items and response
objects. The subject is limited to 255 characters.
Sensitivity
Indicates the sensitivity level of an item.
Body
Represents the actual body content of a message.
Attachments
Contains the items or files that are attached to an item in the
Exchange store.
DateTimeReceived
Represents the date and time that an item in a mailbox was
received.
Size
Represents the size in bytes of an item. This property is read-
only.
Categories
Represents a collection of strings that identify to which
categories an item in the mailbox belongs.
Importance
Describes the importance of an item.
InReplyTo
Represents the identifier of the item to which this item is a
reply.
Element Description
IsSubmitted
Indicates whether an item has been submitted to the Outbox
default folder.
IsDraft
Represents whether an item has not yet been sent.
IsFromMe
Indicates whether a user sent an item to itself.
IsResend
Indicates whether the item had previously been sent.
IsUnmodified
Indicates whether the item has been modified.
InternetMessageHeaders
Represents the collection of all Internet message headers that
are contained within an item in a mailbox.
DateTimeSent
Represents the date and time that an item in a mailbox was
sent.
DateTimeCreated
Represents the date and time that a given item in the mailbox
was created.
ResponseObjects
Contains a collection of all the response objects that are
associated with an item in the Exchange store.
ReminderDueBy
Represents the date and time when the event occurs. This is
used by the ReminderMinutesBeforeStart element to
determine when the reminder is displayed.
ReminderIsSet
Indicates whether a reminder has been set for an item in the
Exchange store.
ReminderMinutesBeforeStart
Represents the number of minutes before an event when a
reminder is displayed.
DisplayCc
Represents the display string that is used for the contents of
the Cc box. This is the concatenated string of all Cc recipient
display names.
DisplayTo
Represents the display string that is used for the contents of
the To box. This is the concatenated string of all To recipient
display names.
HasAttachments
Represents a property that is set to true if an item has
attachments at least one visible attachment. This property is
read-only.
ExtendedProperty
Identifies extended properties on folders and items.
Culture
Represents the culture for a given item in a mailbox.
Element Description
EffectiveRights
Contains the client's rights based on the permission settings
for the item or folder. This element is read-only.
LastModifiedName
Contains the display name of the last user to modify an item.
LastModifiedTime
Indicates when an item was last modified.
IsAssociated
Indicates whether the item is associated with a folder.
WebClientEditFormQueryString
Represents a URL to concatenate to the Outlook Web App
endpoint to edit an item in Outlook Web App.
ConversationId
Contains the identifier of an item or conversation.
UniqueBody
Represents an HTML fragment or plain text which represents
the unique body of this conversation.
Parent elements
Element Description
AdjacentMeetings
Describes all calendar items that are adjacent to a meeting
time.
Create (ItemSync)
Identifies a single item to create in the local client store.
ItemAttachment
Represents an Exchange item that is attached to another
Exchange item.
Items
Contains an array of items.
SetItemField
Represents an update to a single property of an item in an
UpdateItem operation.
Update (ItemSync)
Identifies a single item to update in the local client store.
Text value
None.
Remarks
It is important to note that ItemType is the base type for Task, CalendarItem, Contact,
DistributionList, and Message.
Message elements represent e-mail messages and all other items that are not strongly
typed by the Exchange Web Services (EWS) schema. Items such as IPM.Sharing and
IPM.InfoPath are returned as Message elements. Microsoft Exchange Server 2010 does
not return the base Item element in responses.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
UploadItems
Items (NonEmptyArrayOfUploadItemsType)
Item (UploadItemType)
XML
<ParentFolderId/>
<ItemId/>
<Data/>
</Item>
UploadItemType
Attributes
Attribute Description
CreateAction Specifies the action for uploading an item into a mailbox. This attribute is
required.
IsAssociated
Specifies whether the uploaded item is a folder associated item. This attribute is a
Boolean value. A value of true indicates that the item is a folder associated item.
This attribute is optional.
CreateAction Attribute
Value Description
CreateNew
Indicates that a new copy of the original item is uploaded to the mailbox. The
ItemId element must not be present if the CreateNew value is used. The new
item identifier is returned in the response.
Value Description
Update
Specifies that the item indicated by the ItemId element will be updated. An
error is returned if the ItemId element is not present or if the item does not
exist in the folder identified by the ParentFolderId element.
UpdateOrCreate Indicates that an attempt is first made to update the item. If the item does not
exist in the folder specified by the ParentFolderId element, a new item is
created.
Child elements
Element Description
ParentFolderId Represents the identifier of the parent folder where a new item is created or that
contains the item to update.
ItemId
Contains the unique identifier and change key of an item to create or update in
the Exchange store.
Parent elements
Element Description
Items (NonEmptyArrayOfUploadItemsType)
Contains an array of item to upload into a mailbox.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
ExportItems operation
UploadItems operation
ItemAttachment
Article • 03/29/2023 • 2 minutes to read
XML
<ItemAttachment>
<AttachmentId/>
<Name/>
<ContentType/>
<ContentId/>
<ContentLocation/>
<Size/>
<LastModifiedTime/>
<IsInline/>
<Item/>
</ItemAttachment>
XML
<ItemAttachment>
<AttachmentId/>
<Name/>
<ContentType/>
<ContentId/>
<ContentLocation/>
<Size/>
<LastModifiedTime/>
<IsInline/>
<Message/>
</ItemAttachment>
XML
<ItemAttachment>
<AttachmentId/>
<Name/>
<ContentType/>
<ContentId/>
<ContentLocation/>
<Size/>
<LastModifiedTime/>
<IsInline/>
<CalendarItem/>
</ItemAttachment>
XML
<ItemAttachment>
<AttachmentId/>
<Name/>
<ContentType/>
<ContentId/>
<ContentLocation/>
<Size/>
<LastModifiedTime/>
<IsInline/>
<Contact/>
</ItemAttachment>
XML
<ItemAttachment>
<AttachmentId/>
<Name/>
<ContentType/>
<ContentId/>
<ContentLocation/>
<Size/>
<LastModifiedTime/>
<IsInline/>
<Task/>
</ItemAttachment>
XML
<ItemAttachment>
<AttachmentId/>
<Name/>
<ContentType/>
<ContentId/>
<ContentLocation/>
<Size/>
<LastModifiedTime/>
<IsInline/>
<MeetingMessage/>
</ItemAttachment>
XML
<ItemAttachment>
<AttachmentId/>
<Name/>
<ContentType/>
<ContentId/>
<ContentLocation/>
<Size/>
<LastModifiedTime/>
<IsInline/>
<MeetingRequest/>
</ItemAttachment>
XML
<ItemAttachment>
<AttachmentId/>
<Name/>
<ContentType/>
<ContentId/>
<ContentLocation/>
<Size/>
<LastModifiedTime/>
<IsInline/>
<MeetingResponse/>
</ItemAttachment>
XML
<ItemAttachment>
<AttachmentId/>
<Name/>
<ContentType/>
<ContentId/>
<ContentLocation/>
<Size/>
<LastModifiedTime/>
<IsInline/>
<MeetingCancellation/>
</ItemAttachment>
ItemAttachmentType
Attributes
None.
Child elements
Element Description
AttachmentId
Identifies the attachment.
ContentType
Describes the Multipurpose Internet Mail Extensions (MIME) type of the
attachment content.
ContentId
Represents an identifier to the contents of the attachment. ContentId can
be set to any string value. Applications can use ContentId to implement
their own identification mechanisms.
ContentLocation
Contains the Uniform Resource Identifier (URI) that corresponds to the
location of the content of the attachment.
Size
Represents the size in bytes of the file attachment.
LastModifiedTime
Represents when the attachment was last modified.
IsInline
Represents whether the attachment appears inline within an item.
Item
Represents a generic Exchange item attachment.
Message
Represents an Exchange e-mail message attachment.
CalendarItem
Represents an Exchange calendar item attachment.
Contact
Represents an Exchange contact item attachment.
Task
Represents an Exchange task attachment.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Parent elements
Element Description
Attachments Contains the items and/or files that are attached to an item in the Exchange store.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ItemChange
Article • 03/29/2023 • 2 minutes to read
The ItemChange element contains an item identifier and the updates to apply to the
item.
UpdateItem
ItemChanges
ItemChange
XML
<ItemChange>
<ItemId/>
<Updates>...</Updates>
</ItemChange>
XML
<ItemChange>
<OccurrenceItemId>...</OccurrenceItemId>
<Updates>...</Updates>
</ItemChange>
XML
<ItemChange>
<RecurringMasterItemId>...</RecurringMasterItemId>
<Updates>...</Updates>
</ItemChange>
ItemChangeType
Attributes
None.
Child elements
Element Description
ItemId
Contains the unique identifier and change key of an item in the
Exchange store. This element is required if the OccurrenceItemId or
RecurringMasterItemId element is not used.
OccurrenceItemId
Identifies a single occurrence of a recurring item. This element is
required if used. This element is required if the RecurringMasterItemId
or ItemId element is not used.
Updates (Item)
Contains an array that defines append, set, and delete changes to item
properties. This element is required.
Parent elements
Element Description
ItemChanges Contains an array of ItemChange elements that identify items and the updates to
apply to the items.
The following is the XPath expression to this element:
/UpdateItem/ItemChanges
Remarks
Only a single ItemId, OccurrenceItemId, or RecurringMasterItemId element can be used
in an ItemChange element.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
UpdateItem operation
ItemChanges
Article • 03/29/2023 • 2 minutes to read
The ItemChanges element contains an array of ItemChange elements that identify items
and the updates to apply to the items.
UpdateItem
ItemChanges
XML
<ItemChanges>
<ItemChange/>
</ItemChanges>
NonEmptyArrayOfItemChangesType
Attributes
None.
Child elements
Element Description
ItemChange
Contains an item identifier and the updates to apply to the item.
Parent elements
Element Description
UpdateItem
Defines a request to update items in a mailbox.
The following is the XPath expression to this element:
/UpdateItem
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
UpdateItem operation
ItemClass
Article • 03/29/2023 • 2 minutes to read
XML
<ItemClass/>
ItemClassType
Attributes
None.
Child elements
None.
Parent elements
Element Description
AcceptItem
Represents an Accept reply to a meeting request.
CalendarItem
Represents an Exchange calendar item.
Contact
Represents an Exchange contact item.
DeclineItem
Represents a Decline reply to a meeting request.
DistributionList
Represents a distribution list.
GlobalItemClasses
Contains a list of item classes that represents all the item classes of the
conversation items in a mailbox.
Element Description
Item
Represents a generic Exchange item.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Message
Represents an Exchange e-mail message.
RemoveItem
Removes an item from the Exchange store.
Task
Represents a task in the Exchange store.
TentativelyAcceptItem
Represents a Tentative reply to a meeting request.
Text value
A text value that is consistent with the item's type may be required. For example, if you
are creating or updating a message, the IPM.Note or another class that is consistent
with a message is required. An empty value is not allowed. But if you are creating or
updating an item, an empty type is valid.
An error is returned if the ItemClass is set to a value that is inconsistent with the item
type. For example, a message's ItemClass cannot be set to the ItemClass value for a
Task.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Item Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ItemClasses
Article • 03/29/2023 • 2 minutes to read
The ItemClasses element represents the item classes that must be stamped on incoming
messages in order for the condition or exception to apply.
XML
<ItemClasses>
<String/>
</ItemClasses>
ArrayOfStringsType
Attributes
None.
Child elements
Element Description
String
Represents a single item class.
Parent elements
Element Description
Conditions Represents the conditions that, when fulfilled, will trigger the rule actions for a rule.
Exceptions Represents the exceptions that represent all the available rule exception conditions
for an Inbox rule.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ItemClasses (ArrayOfItemClassType)
Article • 03/29/2023 • 2 minutes to read
The ItemClasses element contains a list of item classes that represents all the item
classes of the conversation items in the current folder.
FindConversationResponse
Conversations
Conversation (ConversationType)
ItemClasses (ArrayOfItemClassType)
XML
<ItemClasses>
<String/>
</ItemClasses>
ArrayOfItemClassType
Attributes
None.
Child elements
Element Description
ItemClass
Represents the message class of an item.
Parent elements
Element Description
Conversation (ConversationType)
Represents a single conversation.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
FindConversation operation
ApplyConversationAction operation
Conversations in EWS
ItemCount
Article • 03/29/2023 • 2 minutes to read
The ItemCount element specifies the total number of items in a search result.
XML
<ItemCount></ItemCount>
long
Attributes
None.
Child elements
None.
Parent elements
SearchMailboxesResult | MailboxStat | NonIndexableItemStatistic
Text value
The text value of the ItemCount element identifies the total number of items in a search
result.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
ItemHits
Article • 03/29/2023 • 2 minutes to read
The ItemHits element identifies how many times a keyword was found.
XML
<ItemHits></ItemHits>
integer
Attributes
None.
Child elements
None.
Parent elements
KeywordStat
Text value
The text value of the ItemHits element is the number of times a keyword was found in a
keyword search.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
ItemHoldPeriod
Article • 03/29/2023 • 2 minutes to read
The ItemHoldPeriod element specifies the amount of time to hold content that matches
the mailbox query.
XML
<ItemHoldPeriod/>
string
Attributes
None.
Child elements
None.
Parent elements
SetHoldOnMailboxes
Text value
The text value can be "Unlimited" or the string value of any Timespan value.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
SetHoldOnMailboxes
The ItemId element contains the unique identifier and change key of an item in the
Exchange store.
XML
ItemIdType
Attributes
Attribute Description
Id
Identifies a specific item in the Exchange store. Id is case-sensitive; therefore,
comparisons between Ids must be case-sensitive or binary.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
Contact
Represents an Exchange contact item.
CopiedEvent
Represents an event when an item or folder is copied.
CreatedEvent
Represents an event when an item or folder is created.
Delete (ItemSync)
Identifies a single item to delete in the local client store.
DeletedEvent
Represents an event when an item or folder is deleted.
DistributionList
Represents a distribution list.
ExportItemsResponseMessage
Contains the status and results of a request to export a single
mailbox item.
FirstOccurrence
Represents the first occurrence of a recurring calendar item.
GlobalItemIds
Contains the collection of item identifiers for all conversation
items in a mailbox.
Ignore
Identifies items to skip during synchronization.
Item
Represents a generic Exchange item.
Item (UploadItemType)
Represents a single item to upload into a mailbox.
ItemChange
Contains an item identifier and the updates to apply to the
item.
/UpdateItem/ItemChanges/ItemChange[i]
ItemIds
Contains the unique identities of items, occurrence items, and
recurring master items used to delete, send, get, move, or copy
items in the Exchange store.
/DeleteItem/ItemIds
/SendItem/ItemIds
/GetItem/ItemIds
/MoveItem/ItemIds
/CopyItem//ItemIds
LastOccurrence
Represents the last occurrence of a recurring calendar item.
Mailbox
Identifies a mail-enabled Active Directory directory service
object.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Message
Represents an Exchange e-mail message.
ModifiedEvent
Represents an event that occurs when an item is modified.
MovedEvent
Represents an event that occurs when an item is moved from
one parent folder to another parent folder.
NewMailEvent
Represents an event that is triggered by a new mail item in a
mailbox.
RemoveItem
Removes an item from the Exchange store.
RoomList
Represents an e-mail address that identifies a list of meeting
rooms.
Task
Represents a task in the Exchange store.
UploadItemsResponseMessage
Contains the status and results of a request to upload a single
mailbox item.
UserConfiguration
Defines a single user configuration object.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
ExportItems operation
UploadItems operation
FindConversation operation
EWS XML elements in Exchange
ItemIds
Article • 03/29/2023 • 2 minutes to read
The ItemIds element contains the unique identities of items, occurrence items, and
recurring master items that are used to delete, send, get, move, or copy items in the
Exchange store.
XML
<ItemIds>
<ItemId/>
<OccurrenceItemId/>
<RecurringMasterItemId/>
</ItemIds>
NonEmptyArrayOfBaseItemIdsType
Attributes
None.
Child elements
Element Description
ItemId
Contains the unique identifier and change key of an item in the
Exchange store.
OccurrenceItemId
Identifies a single occurrence of a recurring item.
Parent elements
Element Description
Element Description
DeleteItem
Defines a request to delete items in the Exchange store.
The following is the XPath expression to this element:
/DeleteItem
SendItem
The root element that defines a request to send items in the
Exchange store.
The following is the XPath expression to this element:
/SendItem
GetItem
Defines a request to get items from the Exchange store.
The following is the XPath expression to this element:
/GetItem
MoveItem
Defines a request to move items in the Exchange store.
The following is the XPath expression to this element:
/MoveItem
CopyItem
Defines a request to copy items in the Exchange store.
The following is the XPath expression to this element:
/CopyItem
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
DeleteItem operation
SendItem operation
GetItem operation
MoveItem operation
CopyItem operation
FindConversation operation
ItemIds (NonEmptyArrayOfItemIdsType)
Article • 03/29/2023 • 2 minutes to read
The ItemIds element contains an array of item identifiers that identify the items to
export from a mailbox.
ExportItems
ItemIds (NonEmptyArrayOfItemIdsType)
XML
<ItemIds>
<ItemId/>
</ItemIds>
NonEmptyArrayOfItemIdsType
Attributes
None.
Child elements
Element Description
ItemId
Contains the unique identifier and change key of an item in the Exchange store.
Parent elements
Element Description
ExportItems
Represents a request to export items from a mailbox.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
ExportItems operation
UploadItems operation
Items
Article • 03/29/2023 • 2 minutes to read
XML
<Items>
<Item/>
<Message/>
<CalendarItem/>
<Contact/>
<DistributionList/>
<MeetingMessage/>
<MeetingRequest/>
<MeetingResponse/>
<MeetingCancellation/>
<Task/>
<PostItem/>
</Items>
ArrayOfRealItemsType
Attributes
None.
Child elements
Element Description
Item
Represents an item in the Exchange store.
Message
Represents an Exchange e-mail message.
CalendarItem
Represents an Exchange calendar item.
Contact
Represents an Exchange contact item.
DistributionList
Represents a distribution list.
Element Description
MeetingMessage
Represents a meeting message in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Task
Represents a task in the Exchange store.
PostItem
Represents a post item in the Exchange store.
Parent elements
Element Description
CopyItemResponseMessage
Contains the status and result of a CopyItem operation request.
CreateItemResponseMessage
Contains the status and result of a single CreateItem operation
request.
GetItemResponseMessage
Contains the status and result of a GetItem operation request.
MoveItemResponseMessage
Contains the status and result of a MoveItem operation request.
Remarks
For information about the set of items in a CreateItem operation request, see Items
(NonEmptyArrayOfAllItemsType).
Message elements represent e-mail messages and all other items that are not strongly
typed by the Exchange Web Services (EWS) schema. Items such as IPM.Sharing and
IPM.InfoPath are returned as Message elements. Versions of Exchange starting with
Exchange Server 2010 do not return the base Item element in responses.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Exchange that has the Client Access server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS reference for Exchange
The Items element contains an array of item details for non-indexable items.
XML
<Items>
<NonIndexableItemDetail/>
</Items>
ArrayOfNonIndexableItemDetailsType
Attributes
None.
Child elements
NonIndexableItemDetail
Parent elements
NonIndexableItemDetailsResult
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetNonIndexableItemDetails operation
The Items element specifies a list of items available for preview as the results of a
SearchMailboxes operation.
XML
<Items>
<SearchPreviewItem>
</Items>
ArrayOfSearchPreviewItemsType
Attributes
None.
Child elements
SearchPreviewItem
Parent elements
SearchMailboxesResult
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Items (NonEmptyArrayOfAllItemsType)
Article • 03/29/2023 • 2 minutes to read
XML
<Items>
<Item/>
<Message/>
<CalendarItem/>
<Contact/>
<DistributionList/>
<MeetingMessage/>
<MeetingRequest/>
<MeetingResponse/>
<MeetingCancellation/>
<Task/>
<ReplyToItem/>
<ForwardItem/>
<ReplyAllToItem/>
<AcceptItem/>
<TentativelyAcceptItem/>
<DeclineItem/>
<CancelCalendarItem/>
<RemoveItem/>
<PostReplyItem/>
<SuppressReadReceipt/>
<AcceptSharingInvitation/>
</Items>
NonEmptyArrayOfAllItemsType
Attributes
None.
Child elements
Element Description
Element Description
Item
Represents an item in the Exchange store.
Message
Represents an Exchange email message.
CalendarItem
Represents an Exchange calendar item.
Contact
Represents an Exchange contact item.
DistributionList
Represents a distribution list.
MeetingMessage
Represents a meeting message in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Task
Represents a task in the Exchange store.
ReplyToItem
Contains a reply to the sender of an item in the Exchange store.
ForwardItem
Contains an Exchange store item to forward to recipients.
ReplyAllToItem
Contains a reply to the sender and all identified recipients of an item in
the Exchange store.
AcceptItem
Represents an Accept reply to a meeting request.
TentativelyAcceptItem
Represents a Tentative reply to a meeting request.
DeclineItem
Represents a Decline reply to a meeting request.
CancelCalendarItem
Represents the response object that is used to cancel a meeting.
RemoveItem
Represents a response object that is used to remove a meeting item
when a MeetingCancellation message is received.
PostReplyItem
Contains a reply to a post item.
SuppressReadReceipt
Used to suppress read receipts.
Parent elements
Element Description
Element Description
CreateItem
Defines the request to create an item in the Exchange store.
The following is the XPath expression to this element: /CreateItem
ConversationNode
Identifies a single node in a conversation.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
CreateFolder operation
CreateItem operation
UploadItems
Items (NonEmptyArrayOfUploadItemsType)
XML
<Items>
<Item/>
</Items>
NonEmptyArrayOfUploadItemsType
Attributes
None.
Child elements
Element Description
Item (UploadItemType)
Represents a single item to upload into a mailbox.
Parent elements
Element Description
UploadItems
Represents a request to upload items into a mailbox.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
ExportItems operation
UploadItems operation
ItemShape
Article • 03/29/2023 • 2 minutes to read
XML
<ItemShape>
<BaseShape/>
<IncludeMimeContent/>
<BodyType/>
<FilterHtmlContent/>
<ConvertHtmlCodePageToUTF8/>
<AdditionalProperties/>
</ItemShape>
ItemResponseShapeType
Attributes
None.
Child elements
Element Description
BaseShape
Identifies the basic configuration of properties to return in an
item or folder response.
IncludeMimeContent
Specifies whether the Multipurpose Internet Mail Extensions
(MIME) content of an item is returned in the response.
BodyType
Identifies how the body text is formatted in the response.
FilterHtmlContent
Specifies whether HTML content filtering is enabled.
AdditionalProperties
Identifies additional properties to return in a response.
Parent elements
Element Description
GetItem
Defines a request to retrieve items from a mailbox in the Exchange store.
The following is the XPath expression to this element:
/GetItem
FindItem
Defines a request to find all items that are contained in a folder.
The following is the XPath expression to this element:
/FindItem
SyncFolderItems
Defines a request to synchronize items in an Exchange store folder.
The following is the XPath expression to this element:
/SyncFolderItems
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetItem operation
FindItem operation
SyncFolderItems operation
XML
<ItemVersion />
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
JobTitle
Article • 03/29/2023 • 2 minutes to read
XML
<JobTitle/>
String
Attributes
None.
Child elements
None.
Parent elements
Element Description
Contact
Represents an Exchange contact item.
Text value
A text value is required if this element is used.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Updating Contacts
Deleting Contacts
JoinDate
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
JoinDate
(FederatedDirectoryGroupType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
JoinedBy
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
JoinOnlineMeetingUrl
Article • 03/29/2023 • 2 minutes to read
XML
<JoinOnlineMeetingUrl></JoinOnlineMeetingUrl>
string
Attributes
None.
Child elements
None.
Parent elements
CalendarItem
Text value
The text value of the JoinOnlineMeetingUrl element is the URL to the online meeting.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
JournalFolderPermissionLevel
Article • 03/29/2023 • 2 minutes to read
XML
<JournalFolderPermissionLevel>
</JournalFolderPermissionLevel>
DelegateFolderPermissionLevelType
Attributes
None.
Child elements
None.
Parent elements
Element Description
DelegatePermissions Contains the delegate permission level settings for a user. This element
was introduced in Exchange 2007 SP1.
Text value
The following table lists the text values that represent the permission levels.
None The delegate user has no access permissions to the Journal folder.
Reviewer The delegate user can read items in the Journal folder.
Author The delegate user can read and create items in the Journal folder.
Editor The delegate user can read, create, and modify items in the Journal folder.
Custom The delegate user has custom access permissions to the Journal folder.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
AddDelegate operation
UpdateDelegate operation
Adding Delegates
KeepProperties
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<Keyword></Keyword>
string
Attributes
None.
Child elements
None.
Parent elements
KeywordStat
Text value
The text value of the Keyword element is the name of a single keyword that represents a
single keyword statistic.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Keywords
Article • 03/29/2023 • 2 minutes to read
XML
<KeyWords>
<String/>
</KeyWords>
ArrayOfStringsType
Attributes
None.
Child elements
String
Parent elements
FindMailboxStatisticsByKeywords
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
KeywordStat
Article • 03/29/2023 • 2 minutes to read
XML
<KeywordStat>
<Keyword/>
<ItemHits>
<Size/>
</KeywordStat>
KeywordStatisticsSearchResultType
Attributes
None.
Child elements
Keyword | ItemHits | Size (long)
Parent elements
KeywordStats
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
KeywordStatisticsSearchResult
Article • 03/29/2023 • 2 minutes to read
XML
<KeywordStatisticsSearchResult>
<Keyword/>
<ItemHits/>
<Size/>
</KeywordStatisticsSearchResult>
KeywordStatisticsSearchResultType
Attributes
None.
Child elements
Keyword | ItemHits | Size (long)
Parent elements
MailboxStatisticsSearchResult
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
KeywordStats
Article • 03/29/2023 • 2 minutes to read
XML
<KeywordStats>
<KeywordStat/>
</KeywordStats>
ArrayOfKeywordStatisticsSearchResultsType
Attributes
None.
Child elements
KeywordStat
Parent elements
SearchMailboxesResult
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Language
Article • 03/29/2023 • 2 minutes to read
The Language element contains the language used for the search query.
XML
<Language></Language>
string
Attributes
None.
Child elements
None.
Parent elements
SetHoldOnMailboxes | SearchMailboxes
Text value
The text value of the Language element is the language used in a discovery search.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
Language
(DiscoverySearchConfigurationType)
Article • 03/29/2023 • 2 minutes to read
XML
<Language />
string
Attributes
None.
Child elements
None.
Parent elements
DiscoverySearchConfiguration
Text value
The text value of the Language (DiscoverySearchConfigurationType) element is a
culture or language.
Remarks
This element specifies the format of date ranges specified in the SearchMailboxes
operation or the SetHoldOnMailboxes operation.
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
DiscoverySearchConfiguration
XML
<LargeAudienceCap></LargeAudienceCap>
integer
Attributes
None.
Child elements
None.
Parent elements
MailTipsConfiguration (MailTipsServiceConfiguration)
Text value
The text value of the LargeAudienceCap element is the maximum number of recipients
that can be addressed in an email message.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
LargeAudienceThreshold
Article • 03/29/2023 • 2 minutes to read
XML
<LargeAudienceThreshold/>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
The text value is an integer that represents the audience threshold that indicates that
the message is going to more than one person.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
LastAttemptTime
Article • 03/29/2023 • 2 minutes to read
The LastAttemptTime element contains the time and date at which the last attempt to
index the item was made.
XML
<LastAttemptTime></LastAttemptTime>
dateTime
Attributes
None.
Child elements
None.
Parent elements
NonIndexableItemDetail
Text value
The text value of the LastAttemptTime element represents a time and date at which the
last attempt to index the item was made.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
LastDeliveryTime
Article • 03/29/2023 • 2 minutes to read
The LastDeliveryTime element contains the delivery time of the message that was last
received in this conversation in the current folder.
FindConversationResponse
Conversations
Conversation (ConversationType)
LastDeliveryTime
XML
<LastDeliveryTime/>
xs:dateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
Conversation (ConversationType)
Represents a single conversation.
Text value
The text value of the LastDeliveryTime element is the date and time of the message that
was last received in this conversation in the current folder.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
FindConversation operation
ApplyConversationAction operation
Conversations in EWS
LastModifiedName
Article • 03/29/2023 • 2 minutes to read
The LastModifiedName element contains the display name of the last user to modify an
item. This element is read-only. This element was introduced in Microsoft Exchange
Server 2007 Service Pack 1 (SP1).
XML
<LastModifiedName/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
Contact
Represents an Exchange contact item.
DistributionList
Represents a distribution list.
Item
Represents a generic Exchange item.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
Element Description
MeetingResponse
Represents a meeting response in the Exchange store.
Message
Represents an Exchange e-mail message.
RemoveItem
Removes an item from the Exchange store.
Task
Represents a task in the Exchange store.
PostItem
Represents a post item in the Exchange store. This element was introduced
in Exchange 2007 SP1.
Text value
The text value is a string value that represents the display name of the last user to
modify the item.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
The LastModifiedTime element indicates when an item was last modified. This element
is read-only.
XML
<LastModifiedTime/>
dateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
Contact
Represents an Exchange contact item.
DistributionList
Represents a distribution list.
FileAttachment
Represents a file that is attached to an item in the Exchange store.
Item
Represents a generic Exchange item.
ItemAttachment
Represents an Exchange item that is attached to another Exchange item.
MeetingMessage
Represents a meeting in the Exchange store.
Element Description
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Message
Represents an Exchange e-mail message.
RemoveItem
Removes an item from the Exchange store.
Task
Represents a task in the Exchange store.
PostItem
Represents a post item in the Exchange store. This element was introduced
in Exchange 2007 SP1.
Text value
The text value represents the time at which the last user modified the item.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
XML
<LastName/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
CompleteName
Represents the complete name of a contact.
Text value
The text value is a string that represents the last name of a contact.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
The LastOccurrence element represents the last occurrence of a recurring calendar item.
XML
<LastOccurrence>
<ItemId/>
<Start/>
<End/>
<OriginalStart/>
</LastOccurrence>
OccurrenceInfoType
Attributes
None.
Child elements
Element Description
ItemId
Contains the unique identifier and change key of the last occurrence of a recurring
calendar item.
Start
Represents the start time of the last occurrence of a recurring calendar item.
End Represents the end time of the last occurrence of a recurring calendar item.
OriginalStart Represents the original start time of the last occurrence of a recurring calendar
item.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
Element Description
MeetingRequest
Represents a meeting request in the Exchange store.
Remarks
This element is valid if CalendarItemType has the RecurringMaster value.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
The LastResponseTime element represents the date and time of the latest response
received.
XML
<LastResponseTime/>
DateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
Attendee
Represents attendees and resources for a meeting.
Text value
A text value that represents the date and time of the latest response is required.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange 2007 that has the Client Access server role
installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Latitude
Article • 03/29/2023 • 2 minutes to read
The Latitude element specifies the latitude of the location of the associated postal
address.
XML
<Latitude></Latitude>
double
Attributes
None.
Child elements
None.
Parent elements
Value (PersonaPostalAddressType) | PostalAddress (PersonaPostalAddressType)
Text value
The text value of the Latitude element is the latitude of the associated postal address.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
LegacyDN
Article • 03/29/2023 • 2 minutes to read
XML
<LegacyDN></LegacyDN>
string
Attributes
None.
Child elements
None.
Parent elements
Mailboxes (NonEmptyArrayOfLegacyDNsType)
Text value
The text value of LegacyDN element is the legacy distinguished name of the target
mailbox.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
LegacyDn
(FederatedDirectoryGroupType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
LegacyDn
(NonEmptyArrayOfLegacyDNsType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
LegacyFreeBusyStatus
Article • 03/29/2023 • 2 minutes to read
The LegacyFreeBusyStatus element represents the free/busy status of the calendar item.
XML
<LegacyFreeBusyStatus/>
LegacyFreeBusyType
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
MeetingRequest
Represents a meeting request in the Exchange store.
Text value
A text value is required for this element. The following are the possible text values for
this element:
Free
Tentative
Busy
OOF
WorkingElsewhere
NoData
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
LobbyBypass
Article • 03/29/2023 • 2 minutes to read
The LobbyBypass element specifies the online meeting setting to bypass the virtual
lobby.
XML
LobbyBypassType
Attributes
None.
Child elements
None.
Parent elements
OnlineMeetingSettings
Text value
The text value of the LobbyBypass element can be either Disabled or
EnabledForGatewayParticipants. The Disabled value indicates that the lobby bypass is
disabled so all meeting attendees must access through the virtual lobby. The
EnabledForGatewayParticipants value indicates that the lobby bypass is enabled for
telephone participants.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Location
Article • 03/29/2023 • 2 minutes to read
XML
<Location/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
MeetingRequest
Represents a meeting request in the Exchange store.
Text value
A text value that represents the location of a meeting or appointment is required.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Location (CalendarEventDetails)
Article • 03/29/2023 • 2 minutes to read
The Location element represents the location field of the calendar item.
GetUserAvailabilityResponse
FreeBusyResponseArray
FreeBusyResponse
FreeBusyView
CalendarEventArray
CalendarEvent
CalendarEventDetails
Location (CalendarEventDetails)
XML
<Location/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
A text value is required if this element is returned in the response. This element can contain an empty string. This element is optional if the
CalendarEventDetails element is used.
Remarks
This element maps to a PR_Location MAPI named property.
The schema that describes this element is located in the EWS virtual directory of the computer that is running MicrosoftExchange Server
2007 that has the Client Access server role installed.
Element information
Name Value
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityResponse
XML
<Location/>
string
Attributes
None.
Child elements
None.
Parent elements
Reminder
Text value
The text value of the Location element is the location of the calendar item.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Reminder
XML
<LocationBasedStateDefinition />
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Locations
Article • 03/29/2023 • 2 minutes to read
The Locations element specifies an array of location values and the identifiers of their
source attributions for the associated persona.
XML
<Locations>
<StringAttributedValue/>
<Locations>
ArrayOfStringAttributedValuesType
Attributes
None.
Child elements
StringAttributedValue
Parent elements
Persona
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
LocationSource
Article • 03/29/2023 • 2 minutes to read
The LocationSource element specifies information about the origin of the associated
postal address, for example, a contact or a telephone book.
XML
LocationSourceType
Attributes
None.
Child elements
None.
Parent elements
Value (PersonaPostalAddressType) | PostalAddress (PersonaPostalAddressType)
Text value
The text values for the LocationSource element are listed in the following table:
Value Description
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
LocationUri
Article • 03/29/2023 • 2 minutes to read
The LocationUri element contains a string specifying a Uniform Resource Identifier (URI)
of the associated postal address.
XML
<LocationUri></LocationUri>
string
Attributes
None.
Child elements
None.
Parent elements
Value (PersonaPostalAddressType) | PostalAddress (PersonaPostalAddressType)
Text value
The text value of the LocationUri element is a string that specifies a URI to information
about a postal address.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Longitude
Article • 03/29/2023 • 2 minutes to read
The Longitude element specifies the longitude of the location of the associated postal
address.
XML
<Longitude></Longitude>
double
Attributes
None.
Child elements
None.
Parent elements
Value (PersonaPostalAddressType) | PostalAddress (PersonaPostalAddressType)
Text value
The text value of the Longitude element is the longitudinal coordinates of the postal
address.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Mailbox
Article • 03/29/2023 • 2 minutes to read
XML
<Mailbox>
<Name/>
<EmailAddress/>
<RoutingType/>
<MailboxType/>
<ItemId/>
</Mailbox>
EmailAddressType
Attributes
None.
Child elements
Element Description
Name Defines the name of the mailbox user. This element is optional.
(EmailAddressType)
EmailAddress Defines the Simple Mail Transfer Protocol (SMTP) address of a mailbox
(NonEmptyStringType) user. This element is optional.
RoutingType Defines the routing that is used for the mailbox. The default is SMTP.
(EmailAddress)
This element is optional.
MailboxType
Defines the mailbox type of a mailbox user. This element is optional.
ItemId
Defines the item identifier of a contact or private distribution list for
recipients from a user's contacts folder. This element is optional.
Parent elements
Element Description
ExpandDL
Defines a request to expand a distribution list.
ToRecipients
Contains an array of recipients of an item.
CcRecipients
Represents a collection of recipients that will receive a copy of the
message.
BccRecipients
Represents a collection of recipients to receive a blind carbon copy (Bcc)
of an e-mail.
ReplyTo
Identifies an array of e-mail addresses to which replies should be sent.
Sender
Identifies the sender of an item.
From
Represents the addressee from whom the message was sent.
Organizer
Represents the organizer of a meeting.
/CreateItem/ParentFolderId/DistinguishedFolderId
/CreateFolder/ParentFolderId/DistinguishedFolderId
Resolution
Contains a single resolved entity.
DLExpansion
Contains an array of mailboxes that are contained in a distribution list.
Attendee
Represents attendees and resources for a calendar item.
AddDelegate
Defines a request to add delegates to a mailbox.
GetDelegate
Defines a request to get information about delegates to a mailbox.
RemoveDelegate
Defines a request to remove delegates from a mailbox.
UpdateDelegate
Defines a request to update delegates in a mailbox.
ReceivedBy
Describes the delegate in a delegate access scenario.
Member
Represents a member of a distribution list.
Text value
None.
Remarks
The EmailAddress (NonEmptyStringType) and ItemId elements identify a mailbox or
distribution list.
The ItemId element identifies a mailbox by an item identifier, which is associated with a
particular mailbox.
The ItemId element cannot be used for sending a message to a distribution list or a
contact in a public contacts folder. An error will be thrown if this is used in a CreateItem,
UpdateItem, or SendItem operation when an attempt is made to send a message to a
distribution list or contact in a contacts public folder. Use the ExpandDL operation to get
the SMTP address and then send the message by using the EmailAddress
(NonEmptyStringType) element instead of the ItemId element.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Mailbox (string)
Article • 03/29/2023 • 2 minutes to read
XML
<Mailbox></Mailbox>
string
Attributes
None.
Child elements
None.
Parent elements
NonIndexableItemStatistic | MailboxHoldStatus | FailedMailbox | MailboxSearchScope
Text value
The text value for the Mailbox element is the identifier for a mailbox.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Mailbox (Availability)
Article • 03/29/2023 • 2 minutes to read
XML
<Mailbox>
<Name>...</Name>
<Address>...</Address>
<RoutingType>...</RoutingType>
</Mailbox>
EmailAddressType
Attributes
None.
Child elements
Element Description
Name Represents the display name of the mailbox user. This element is optional in the
(EmailAddress) SetUserOofSettingsRequest. The GetUserOofSettingsRequest will return this
element.
Address Represents the e-mail address of the mailbox user. This element is required.
(string)
RoutingType Represents the routing protocol for the message. This element is optional in the
(EmailAddress) SetUserOofSettingsRequest. The GetUserOofSettingsRequest will return this
element.
Parent elements
Element Description
Element Description
GetUserOofSettingsRequest Used to get a mailbox user's Out of Office (OOF) settings and
messages.
The following is the XPath expression to this element:
/GetUserOofSettingsRequest
Remarks
The e-mail address is used to identify the calendar folder that contains the OOF settings.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserOofSettings operation
SetUserOofSettings operation
Mailbox (PreviewItemMailboxType)
Article • 03/29/2023 • 2 minutes to read
The Mailbox element contains the mailbox identifier and the user's primary Simple Mail
Transfer Protocol (SMTP) address.
XML
<Mailbox>
<MailboxId/>
<PrimarySmtpAddress/>
</Mailbox>
PreviewItemMailboxType
Attributes
None.
Child elements
MailboxId | PrimarySmtpAddress (string)
Parent elements
SearchPreviewItem
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
The MailboxCulture element indicates the culture to use when opening a mailbox. This
element occurs in the SOAP header.
XML
<MailboxCulture/>
MailboxCultureType
Attributes
None.
Child elements
None.
Parent elements
None.
Text value
The text value indicates the language that is used in the Exchange Web Service
operations. The possible values for this element are described by RFC 3066.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Exchange Server with the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
MailboxData
Article • 03/29/2023 • 2 minutes to read
The MailboxData element represents an individual mailbox user and options for the
type of data to be returned about the mailbox user.
GetUserAvailabilityRequest
MailboxDataArray
MailboxData
XML
<MailboxData>
<Email>...</Email>
<AttendeeType>...</AttendeeType>
<ExcludeConflicts>...</ExcludeConflicts>
<MailboxData>
MailboxData
Attributes
None.
Child elements
Element Description
AttendeeType
Represents the type of attendee identified in the Email (EmailAddressType)
element. This is used in requests for meeting suggestions.
ExcludeConflicts
Specifies whether to return suggested times for calendar times that conflict
among the attendees.
Parent elements
Element Description
MailboxDataArray
Contains a list of mailboxes to query for availability information.
The following is the XPath to this element:
/GetUserAvailabilityRequest/MailboxDataArray[i]
Remarks
A client application can define one to many MailboxData elements.
7 Note
The schema that describes this element is located in the EWS virtual directory of
the computer that is running Exchange Server 2007 that has the Client Access
server role installed.
Example
XML
<MailboxDataArray>
<MailboxData
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Email>
<Name></Name>
<Address>[email protected]</Address>
<RoutingType>SMTP</RoutingType>
</Email>
<AttendeeType>Organizer</AttendeeType>
<ExcludeConflicts>false</ExcludeConflicts>
</MailboxData>
</MailboxDataArray>
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityRequest
Getting User Availability
MailboxDataArray
Article • 03/29/2023 • 2 minutes to read
GetUserAvailabilityRequest
MailboxDataArray
MailboxData
XML
<MailboxDataArray>
<MailboxData>...</MailboxData>
</MailboxDataArray>
ArrayOfMailboxData
Attributes
None.
Child elements
Element Description
MailboxData Represents an individual mailbox user and options for the type of data to be
returned about the mailbox user.
Parent elements
Element Description
Element Description
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft® Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetUserAvailability operation
GetUserAvailabilityRequest
Getting User Availability
Mailboxes (ArrayOfStringsType)
Article • 03/29/2023 • 2 minutes to read
XML
<Mailboxes>
<String/>
</Mailboxes>
ArrayOfStringsType
Attributes
None.
Child elements
String
Parent elements
SetHoldOnMailboxes
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
Mailboxes (ArrayOfUserMailboxesType)
Article • 03/29/2023 • 2 minutes to read
XML
<Mailboxes>
<UserMailbox/>
</Mailboxes>
ArrayOfUserMailboxesType
Attributes
None.
Child elements
UserMailbox
Parent elements
FindMailboxStatisticsByKeywords
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
Mailboxes
(NonEmptyArrayOfLegacyDNsType)
Article • 03/29/2023 • 2 minutes to read
XML
<Mailboxes>
<LegacyDN/>
</Mailboxes>
NonEmptyArrayofLegacyDNsType
Attributes
None.
Child elements
LegacyDN
Parent elements
GetNonIndexableItemStatistics
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
MailboxFull
Article • 03/29/2023 • 2 minutes to read
The MailboxFull element indicates whether the mailbox for the recipient is full.
XML
<MailboxFull>true | false</MailboxFull>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
MailTips
Represents values for various types of mail tips.
Text value
This element can be either true or false. A value of true indicates that the mailbox has
reached its capacity; a value of false indicates that it has not reached capacity.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
MailboxHoldResult
Article • 03/29/2023 • 2 minutes to read
XML
<MailboxHoldResult>
<HoldId/>
<Query/>
<MailboxHoldStatuses/>
</MailboxHoldResult>
MailboxHoldResultType
Attributes
None.
Child elements
HoldId | Query | MailboxHoldStatuses
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
MailboxHoldStatus
Article • 03/29/2023 • 2 minutes to read
XML
<MailboxHoldStatus>
<Mailbox/>
<Status/>
<AdditionalInfo/>
</MailboxHoldStatus>
MailboxHoldStatusType
Attributes
None.
Child elements
Mailbox (string) | Status (HoldStatusType) | AdditionalInfo
Parent elements
MailboxHoldStatuses
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
MailboxHoldStatuses
Article • 03/29/2023 • 2 minutes to read
XML
<MailboxHoldStatuses>
<MailboxHoldStatus/>
</MailboxHoldStatuses>
ArrayOfMailboxHoldStatusType
Attributes
None.
Child elements
MailboxHoldStatus
Parent elements
MailboxHoldResult
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
MailboxId
Article • 03/29/2023 • 2 minutes to read
The MailboxId element specifies an identifier for the mailbox that is accessed by
discovery search.
XML
<MailboxId></MailboxId>
string
Attributes
None.
Child elements
None.
Parent elements
MailboxStat | Mailbox (PreviewItemMailboxType)
Text value
The text value of the MailboxId element is the mailbox identifier of a mailbox that is
accessed for discovery search.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
MailboxQuery
Article • 03/29/2023 • 2 minutes to read
The MailboxQuery element specifies a query and the scope of a discovery search.
XML
<MailboxQuery>
<Query/>
<MailboxSearchScopes/>
</MailboxQuery>
MailboxQueryType
Attributes
None.
Child elements
Query | MailboxSearchScopes
Parent elements
SearchQueries
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
MailboxScope
Article • 03/29/2023 • 2 minutes to read
XML
MailboxSearchLocationType
Attributes
None.
Child elements
None.
Parent elements
FindConversation | GetConversationItems | Conversation (ConversationType)
Text value
The text value of the MailboxScope element is the scope for finding or getting items in
a conversation across either primary mailboxes, archive mailboxes, or both primary and
archive mailboxes. A text value of PrimaryOnly indicates a scope that targets the
primary mailbox for a user. A text value of ArchiveOnly indicates a scope that targets
the archive mailbox for a user. A text value of All indicates a scope that targets both the
primary mailbox and archive mailbox.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<MailboxSearchScope>
<Mailbox/>
<SearchScope/>
<MailboxSearchScope>
MailboxSearchScopeType
Attributes
None.
Child elements
Mailbox (string) | SearchScope
Parent elements
MailboxSearchScopes
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
MailboxSearchScopes
Article • 03/29/2023 • 2 minutes to read
XML
<MailboxSearchScopes>
<MailboxSearchScope/>
<MailboxSearchScope>
MailboxSearchScopeType
Attributes
None.
Child elements
MailboxSearchScope
Parent elements
MailboxQuery
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
The MailboxSmtpAddress element represents the SMTP address of the user whose
Inbox rules are to be retrieved or updated; or whose password expiration date is to be
retrieved.
XML
<MailboxSmtpAddress/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
GetInboxRules
Defines a request to get the Inbox rules on a mailbox in the server
store.
UpdateInboxRules
Defines a request to update the Inbox rules in a mailbox in the
server store.
Text value
None.
Remarks
The MailboxSmtpAddress element is an optional element. If the MailboxSmtpAddress
element is omitted, the address of the logged on user is used.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetInboxRules operation
GetPasswordExpirationDate operation
UpdateInboxRules operation
EWS XML elements in Exchange
MailboxStat
Article • 03/29/2023 • 2 minutes to read
The MailboxStat element specifies statistics for a mailbox searched by discovery search.
XML
<MailboxStat>
<MailboxId/>
<DisplayName/>
<ItemCount/>
<Size/>
</MailboxStat>
MailboxStatisticsItemType
Attributes
None.
Child elements
MailboxId | DisplayName (string) | ItemCount | Size (long)
Parent elements
MailboxStats
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
XML
<MailboxStatisticsSearchResult>
<UserMailbox/>
<KeywordStatisticsSearchResult/>
</MailboxStatisticsSearchResult>
MailboxStatisticsSearchResultType
Attributes
None.
Child elements
UserMailbox | KeywordStatisticsSearchResult
Parent elements
FindMailboxStatisticsByKeywordsResponseMessage
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
MailboxStats
Article • 03/29/2023 • 2 minutes to read
XML
<MailboxStats>
<MailboxStat/>
</MailboxStats>
ArrayOfMailboxStatisticsItemsType
Attributes
None.
Child elements
MailboxStat
Parent elements
SearchMailboxesResult
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
MailboxType
Article • 03/29/2023 • 2 minutes to read
The MailboxType element represents the type of mailbox that is represented by the e-
mail address.
XML
MailboxTypeType
Attributes
None.
Child elements
None.
Parent elements
Element Description
Mailbox
Identifies a fully resolved e-mail address.
RoomList
Identifies a list of meeting rooms.
Text value
The following table lists the possible values for the MailboxType element.
Value Description
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
MailboxType (MasterMailboxType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
MailTips
Article • 03/29/2023 • 2 minutes to read
The MailTips element represents values for various types of mail tips.
XML
<MailTips>
<RecipientAddress/>
<PendingMailTips/>
<OutOfOffice/>
<MailboxFull/>
<CustomMailTip/>
<TotalMemberCount/>
<ExternalMemberCount/>
<MaxMessageSize/>
<DeliveryRestricted/>
<IsModerated/>
<InvalidRecipient/>
</MailTips>
MailTips
Attributes
None.
Child elements
Element Description
RecipientAddress
Represents the mailbox of the recipient.
PendingMailTips
Indicates that the mail tips in this element could not be evaluated before
the server's processing timeout expired.
OutOfOffice
Represents the response message and a duration time for sending the
response message.
MailboxFull
Indicates whether the mailbox for the recipient is full.
Element Description
CustomMailTip
Represents a customized mail tip message.
TotalMemberCount
Represents the count of all members in a group.
MaxMessageSize
Represents the maximum message size the recipient can accept.
DeliveryRestricted
Indicates whether delivery restrictions will prevent the sender's message
from reaching the recipient.
IsModerated
Indicates whether the recipient's mailbox is being moderated.
Parent elements
Element Description
MailTipsResponseMessageType
Represents mail tips settings.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<MailTipsConfiguration>
<MailTipsEnabled/>
<MaxRecipientsPerGetMailTipsRequest/>
<MaxMessageSize/>
<LargeAudienceThreshold/>
<ShowExternalRecipientCount/>
<InternalDomains/>
</MailTipsConfiguration>
MailTipsServiceConfiguration
Attributes
None.
Child elements
Element Description
MailTipsEnabled
Indicates whether the mail tips service is available. This
element is required.
MaxMessageSize
Represents the maximum message size a recipient can
accept. This element is required.
Element Description
LargeAudienceThreshold
Represents the large audience threshold for a client. This
element is required.
ShowExternalRecipientCount
Indicates whether consumers of the GetMailTips
operation have to show mail tips that indicate the number
of external recipients to which a message is addressed.
This element is required.
InternalDomains (SmtpDomainList)
Identifies the list of internal SMTP domains of the
organization. This element is required.
Parent elements
Element Description
ServiceConfigurationResponseMessageType
Contains service configuration settings.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
MailTipsEnabled
Article • 03/29/2023 • 2 minutes to read
The MailTipsEnabled element indicates whether the mail tips service is available.
XML
<MailTipsEnabled>true | false</MailTipsEnabled>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
The text value of this element is true if the mail tips service is available. The value is false
if the mail tips service is not available.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
MailTipsRequested
Article • 03/29/2023 • 2 minutes to read
The MailTipsRequested element contains the types of mail tips requested from the
service.
XML
<MailTipsRequested/>
MailTipTypes
Attributes
None.
Child elements
None.
Parent elements
Element Description
GetMailTips
Contains the recipients and types of mail tips to retrieve.
Text value
The following table lists the possible values for the MailTipsRequested element.
Value Description
DeliveryRestriction Indicates whether delivery restrictions will prevent the sender's message
from reaching the recipient.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
MailTipsResponseMessageType
Article • 03/29/2023 • 2 minutes to read
XML
<MailTipsResponseMessageType ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<MailTips/>
</MailTipsResponseMessageType>
MailTipsResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of the response.
- Success
- Warning
- Error
Value Description
Success
Describes a request that is fulfilled.
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and reserved for future use. This element contains a value
of 0.
MessageXml
Provides additional error response information.
MailTips
Represents values for various types of mail tips.
Parent elements
Element Description
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
MakeItemImmutable
Article • 03/29/2023 • 2 minutes to read
XML
<MakeItemImmutable>true | false</MakeItemImmutable>
Boolean
Attributes
None.
Child elements
None.
Parent elements
UpdateItemInRecoverableItems
Text value
A text value of true for the MakeItemImmutable element indicates that the item should
be made read-only. A value of false indicates that the item allows read-write access.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
ManagedByOrganization
Article • 03/29/2023 • 2 minutes to read
XML
<ManagedByOrganization></ManagedByOrganization>
string
Attributes
None.
Child elements
None.
Parent elements
DiscoverySearchConfiguration
Text value
The text value of the ManagedByOrganization element identifies the organization that
manages the discovery search.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
ManagedFolderId
Article • 03/29/2023 • 2 minutes to read
XML
<ManagedFolderId/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
ManagedFolderInformation
Contains information about a managed folder.
Text value
A text value is required for this element.
Remarks
The ManagedFolderId identifier value is the equivalent of the Guid property that is
retrieved by the Get-ManagedFolder Microsoft Windows Powershell command. It is also
the value of the objectGUID attribute for the managed folder in the Active Directory
directory service.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
CreateManagedFolder operation
Deleting Folders
XML
<ManagedFolderInformation>
<CanDelete/>
<CanRenameOrMove/>
<MustDisplayComment/>
<HasQuota/>
<IsManagedFoldersRoot/>
<ManagedFolderId/>
<Comment/>
<StorageQuota/>
<FolderSize/>
<HomePage/>
</ManagedFolderInformation>
ManagedFolderInformationType
Attributes
None.
Child elements
Element Description
CanDelete
Indicates whether a managed folder can be deleted by a customer.
CanRenameOrMove
Indicates whether a given managed folder can be renamed or moved by
the customer.
MustDisplayComment
Indicates whether the managed folder comment must be displayed.
HasQuota
Indicates whether the managed folder has a quota.
Element Description
IsManagedFoldersRoot Indicates whether the managed folder is the root for all managed
folders.
ManagedFolderId
Contains the folder ID of the managed folder.
Comment
Contains the comment that is associated with a managed folder.
StorageQuota
Describes the storage quota for the managed folder.
FolderSize
Describes the total size of all the contents of a managed folder.
HomePage
Specifies the URL that will be the default home page for the managed
folder.
Parent elements
Element Description
Folder
Represents a folder in the Exchange store. Managed custom folders can only be
subfolders of the folder named Managed Folders.
SearchFolder
Not applicable.
TasksFolder
Not applicable.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
CreateManagedFolder operation
XML
<ManagementRole>
<UserRoles/>
<ApplicationRoles/>
</ManagementRole>
ManagementRoleType
Attributes
None.
Child elements
UserRoles | ApplicationRoles
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Manager
Article • 03/29/2023 • 2 minutes to read
XML
<Manager/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Contact
Represents an Exchange contact item.
Text value
A text value is required if this element is used.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Updating Contacts
Deleting Contacts
Managers
Article • 03/29/2023 • 2 minutes to read
The Managers element specifies an array of manager names and the identifiers of their
source attributions for a persona.
XML
<Managers>
<StringAttributedValue/>
</Managers>
ArrayOfStringAttributedValuesType
Attributes
None.
Child elements
StringAttributedValue
Parent elements
Persona
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
ManagerMailbox
Article • 03/29/2023 • 2 minutes to read
The ManagerMailbox element contains SMTP information that identifies the mailbox of
the contact's manager.
XML
<ManagerMailbox>
<Mailbox/>
</ManagerMailbox>
SingleRecipientType
Attributes
None.
Child elements
Element Description
Mailbox
Identifies a mail enabled Active Directory object that identifies the sender.
Parent elements
Contact
Represents a contact item in the Exchange store.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
This element was introduced in Exchange Server 2010 Service Pack 2 (SP2).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
XML
<Manifest></Manifest>
base64Binary
Attributes
None.
Child elements
None.
Parent elements
Manifests | InstallApp | ClientExtension
Text value
The text value of the Manifest element is an ASCII representation of the base64 binary
encoded form of the client app manifest file.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Manifests
Article • 03/29/2023 • 2 minutes to read
The Manifests element contains a collection of base64-encoded app manifests that are
installed for the email account.
XML
<Manifests>
<Manifest/>
</Manifests>
ArrayOfAppManifestsType
Attributes
None.
Child elements
Manifest
Parent elements
GetAppManifestsResponse
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
MarkAllItemsAsRead
Article • 03/29/2023 • 2 minutes to read
The MarkAllItemsAsRead element contains the request to mark all the items in a folder
as read.
XML
<MarkAllItemsAsRead>
<ReadFlag/>
<SuppressReadReceipts/>
<FolderIds/>
</MarkAllItemsAsRead>
MarkAllItemsAsReadType
Attributes
None.
Child elements
ReadFlag | SuppressReadReceipts | FolderIds
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
MarkAllItemsAsReadResponse
Article • 03/29/2023 • 2 minutes to read
XML
<MarkAllItemsAsReadResponse>
<ResponseMessages/>
</MarkAllItemsAsReadResponse>
MarkAllItemsAsReadResponseType
Attributes
None.
Child elements
ResponseMessages
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
MarkAllItemsAsReadResponseMessage
Article • 03/29/2023 • 2 minutes to read
XML
<MarkAllItemsAsReadResponseMessage>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</MarkAllItemsAsReadResponseMessage>
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml
Parent elements
ResponseMessages
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
MarkAsJunk
Article • 03/29/2023 • 2 minutes to read
The MarkAsJunk element specifies the request to move an item to the junk mail folder
and to add the sender to the blocked sender list.
XML
<ItemIds/>
</MarkAsJunk>
MarkAsJunkType
Attributes
Attribute Description
IsJunk A text value of true for the IsJunk attribute indicates that the email sender is added
to the blocked sender list. A value of false indicates that the email sender is removed
from the blocked sender list, if the email sender is already on the list.
MoveItem A text value of true for the MoveItem attribute indicates that the item is moved to
the default junk mail folder. A value of false indicates that the item is not moved to
the default junk mail folder.
Child elements
ItemIds
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
MarkAsJunkResponse
Article • 03/29/2023 • 2 minutes to read
XML
<MarkAsJunkResponse>
<ResponseMessages/>
</MarkAsJunkResponse>
MarkAsJunkResponseType
Attributes
None.
Child elements
ResponseMessages
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
MarkAsJunkResponseMessage
Article • 03/29/2023 • 2 minutes to read
XML
<MarkAsJunkResponseMessage>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<MovedItemId/>
</MarkAsJunkResponseMessage>
MarkAsJunkResponseMessageType
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml | MovedItemId
Parent elements
ResponseMessages
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
MarkAsRead
Article • 03/29/2023 • 2 minutes to read
XML
<MarkAsRead>true | false</MarkAsRead>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Actions
Represents the set of actions that are available to be taken on a message when the
conditions are fulfilled.
Text value
A text value of true indicates that the message must be marked as read. A value of false
indicates that messages must not be marked as read.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
MarkImportance
Article • 03/29/2023 • 2 minutes to read
XML
<MarkImportance/>
ImportanceChoicesType
Attributes
None.
Child elements
None.
Parent elements
Element Description
Actions
Represents the set of actions that are available to be taken on a message when the
conditions are fulfilled.
Text value
The text value for this element is restricted to one of the following string values:
Low
Normal
High
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
Master
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
MaxChangesReturned
Article • 03/29/2023 • 2 minutes to read
SyncFolderItems
MaxChangesReturned
XML
<MaxChangesReturned/>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
SyncFolderItems
Defines a request to synchronize items in an Exchange store folder.
Text value
The text value represents an integer that describes the maximum number of items that
are returned in a single synchronization call. The value must be between 1 and 512,
inclusive.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
SyncFolderItems operation
The MaximumBodySize element specifies the maximum size of the item body to return
in a response.
XML
<MaximumBodySize></MaximumBodySize>
int
Attributes
None.
Child elements
None.
Parent elements
ItemShape
Text value
The text value of the MaximumBodySize element indicates the maximum size of the
Body property returned in the response. This is measured in kilobytes.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
MaximumNonWorkHourResultsByDay
Article • 03/29/2023 • 2 minutes to read
GetUserAvailabilityRequest
SuggestionsViewOptions
MaximumNonWorkHourResultsByDay
XML
<MaximumNonWorkHourResultsByDay>...</MaximumNonWorkHourResultsByDay>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
SuggestionsViewOptions
Contains the options for obtaining meeting suggestion information.
The following is the XPath to this element:
/GetUserAvailabilityRequest/SuggestionViewOptions
Text value
A text value is required. The text value represents an integer.
Remarks
This element is required if the SuggestionsViewOptions element is used.
7 Note
The schema that describes this element is located in the EWS virtual directory of
the computer that is running MicrosoftExchange Server 2007 that has the Client
Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityRequest
SuggestionsViewOptions
MaximumResultsByDay
XML
<MaximumResultsByDay>...</MaximumResultsByDay>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
SuggestionsViewOptions
Contains the options for obtaining meeting suggestion information.
The following is the XPath to this element:
/GetUserAvailabilityRequest/SuggestionViewOptions
Text value
A text value is required. The text value represents an integer.
Remarks
This element is required if the SuggestionsViewOptions element is used.
7 Note
The schema that describes this element is located in the EWS virtual directory of
the computer that is running Microsoft® Exchange Server 2007 that has the Client
Access server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
Getting User Availability
MaximumSize
Article • 03/29/2023 • 2 minutes to read
The MaximumSize element represents the maximum size that a message must be in
order for the condition or exception to apply.
XML
<Maximum/>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
WithinSizeRange Specifies the minimum and maximum sizes that incoming messages must be
in order for the condition or exception to apply.
Text value
The text value is an integer that identifies the maximum size of the message in bytes.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
MinimumSize
The MaxItems element specifies the maximum number of items to return in the request.
XML
<MaxItems/>
int
Attributes
None.
Child elements
None.
Parent elements
GetReminders
Text value
The text value of the MaxItems element is the maximum number of items to return in
the request. This number cannot be less than zero or greater than 200.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetReminders
XML
<MaxItemsToReturn></MaxItemsToReturn>
int
Attributes
None.
Child elements
None.
Parent elements
GetConversationItems
Text value
The text value of the MaxItemsToReturn element is the maximum number of
conversation items to return in a response.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
MaxMessageSize
Article • 03/29/2023 • 2 minutes to read
The MaxMessageSize element represents the maximum message size a recipient can
accept.
XML
<MaxMessageSize/>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
MailTips
Represents values for various types of mail tips.
Text value
The text value is an integer that represents the maximum message size a recipient can
accept. This value can be measured in kilobytes or megabytes.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
MaxRecipientsPerGetMailTipsRequest
Article • 03/29/2023 • 2 minutes to read
XML
<MaxRecipientsPerGetMailTipsRequest/>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
The text value is an integer that represents the maximum number of recipients that can
be passed to the GetMailTips operation.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetMailTips operation
XML
<MeetingCancellation>
<MimeContent/>
<ItemId/>
<ParentFolderId/>
<ItemClass/>
<Subject/>
<Sensitivity/>
<Body/>
<Attachments/>
<DateTimeReceived/>
<Size/>
<Categories/>
<Importance/>
<InReplyTo/>
<IsSubmitted/>
<IsDraft/>
<IsFromMe/>
<IsResend/>
<IsUnmodified/>
<InternetMessageHeaders/>
<DateTimeSent/>
<DateTimeCreated/>
<ResponseObjects/>
<ReminderDueBy/>
<ReminderIsSet/>
<ReminderMinutesBeforeStart/>
<DisplayCc/>
<DisplayTo/>
<HasAttachments/>
<ExtendedProperty/>
<Culture/>
<EffectiveRights/>
<ReceivedBy/>
<ReceivedRepresenting/>
<LastModifiedName/>
<LastModifiedTime/>
<IsAssociated/>
<WebClientReadFormQueryString/>
<WebClientEditFormQueryString/>
<ConversationId/>
<UniqueBody/>
<Sender/>
<ToRecipients/>
<CcRecipients/>
<BccRecipients/>
<IsReadReceiptRequested/>
<IsDeliveryReceiptRequested/>
<ConversationIndex/>
<ConversationTopic/>
<From/>
<InternetMessageId/>
<IsRead/>
<IsResponseRequested/>
<References/>
<ReplyTo/>
<AssociatedCalendarItemId/>
<IsDelegated/>
<IsOutOfDate/>
<HasBeenProcessed/>
<ResponseType/>
</MeetingCancellation>
MeetingCancellationMessageType
Attributes
None.
Child elements
Element Description
MimeContent
Contains the native MIME stream of an object that is
represented in base64Binary format.
ItemId
Contains the unique identifier and change key of an item in the
Exchange store. This property is read-only.
ParentFolderId Represents the identifier of the parent folder that contains the
item or folder. This property is read-only.
ItemClass
Represents the message class of an item.
Subject
Represents the subject for Exchange store items and response
objects. The subject is limited to 255 characters.
Sensitivity
Indicates the sensitivity level of an item.
Element Description
Body
Represents the actual body content of a message.
Attachments
Contains the items or files that are attached to an item in the
Exchange store.
DateTimeReceived
Represents the date and time that an item in a mailbox was
received.
Size
Represents the size in bytes of an item. This property is read-
only.
Categories
Represents a collection of strings that identify to which
categories an item in the mailbox belongs.
Importance
Describes the importance of an item.
InReplyTo
Represents the identifier of the item to which this item is a
reply.
IsSubmitted
Indicates whether an item has been submitted to the Outbox
default folder.
IsDraft
Represents whether an item has not yet been sent.
IsFromMe
Indicates whether a user sent an item to him or herself.
IsResend
Indicates whether the item had previously been sent.
IsUnmodified
Indicates whether the item has been modified.
InternetMessageHeaders
Represents the collection of all Internet message headers that
are contained within an item in a mailbox.
DateTimeSent
Represents the date and time that an item in a mailbox was
sent.
DateTimeCreated
Represents the date and time that a given item in the mailbox
was created.
ResponseObjects
Contains a collection of all the response objects that are
associated with an item in the Exchange store.
ReminderDueBy
Represents the date and time when the event occurs. This is
used by the ReminderMinutesBeforeStart element to
determine when the reminder is displayed.
ReminderIsSet
Indicates whether a reminder has been set for an item in the
Exchange store.
Element Description
ReminderMinutesBeforeStart
Represents the number of minutes before an event that a
reminder is displayed.
DisplayCc
Represents the display string that is used for the contents of
the Cc box. This is the concatenated string of all Cc recipient
display names.
DisplayTo
Represents the display string that is used for the contents of
the To box. This is the concatenated string of all To recipient
display names.
HasAttachments
Represents a property that is set to true if an item has at least
one visible attachment. This property is read-only.
ExtendedProperty
Identifies extended properties on folders and items.
Culture
Represents the culture for a given item in a mailbox.
EffectiveRights
Contains the client's rights based on the permission settings
for the item or folder. This element is read-only.
ReceivedBy
Identifies the delegate in a delegate access scenario.
ReceivedRepresenting
Identifies the principal in a delegate access scenario.
LastModifiedName
Contains the display name of the last user to modify an item.
LastModifiedTime
Indicates when an item was last modified.
IsAssociated
Indicates whether the item is associated with a folder.
WebClientEditFormQueryString
Represents a URL to concatenate to the Outlook Web App
endpoint to edit an item in Outlook Web App.
ConversationId
Contains the identifier of an item or conversation.
UniqueBody
Represents an HTML fragment or plain text which represents
the unique body of this conversation.
Sender
Identifies the sender of an item.
ToRecipients
Contains a set of recipients of a message.
CcRecipients
Represents a collection of recipients that will receive a copy of
the message.
Element Description
BccRecipients
Represents a collection of recipients to receive a blind carbon
copy (Bcc) of an e-mail.
IsReadReceiptRequested
Indicates whether the sender of an item requests a read
receipt.
IsDeliveryReceiptRequested
Indicates whether the sender of an item requests a delivery
receipt.
ConversationIndex
Contains a binary ID that represents the thread to which this
message belongs.
ConversationTopic
Represents the conversation identifier.
From
Represents the addressee from whom the message was sent.
InternetMessageId
Represents the Internet message identifier of an item.
IsRead
Indicates whether a message has been read.
IsResponseRequested
Indicates whether a response to an e-mail message is
requested.
References
Represents the Usenet header that is used to correlate replies
with their original messages.
ReplyTo
Identifies a set of addresses to which replies should be sent.
AssociatedCalendarItemId
Represents the calendar item that is associated with a
MeetingMessage.
IsDelegated
Indicates whether a meeting was handled by an account with
delegate access.
IsOutOfDate
Indicates whether a meeting message is out-of-date.
HasBeenProcessed
Indicates whether a meeting message item has been
processed.
ResponseType
Represents the type of recipient response received for a
meeting.
EffectiveRights
Contains the client's rights based on the permission settings
for the item or folder. This element is read-only. This element
was introduced in Microsoft Exchange Server 2007 Service Pack
1 (SP1).
ReceivedBy
Identifies the delegate in a delegate access scenario. This
element was introduced in Exchange 2007 SP1.
Element Description
ReceivedRepresenting
Identifies the principal in a delegate access scenario. This
element was introduced in Exchange 2007 SP1.
UID
Identifies a calendar item.
RecurrenceId
Used to identify a specific instance of a recurring calendar
item.
DateTimeStamp
Indicates the date and time that an instance of an iCalendar
object was created.
Parent elements
Element Description
AdjacentMeetings
Identifies all calendar items that are adjacent to a meeting
time.
Create (ItemSync)
Identifies a single item to create in the local client store.
Items
Contains an array of items.
ItemAttachment
Represents an Exchange item that is attached to another
Exchange item.
SetItemField
Represents an update to a single property of an item in an
UpdateItem operation.
Update (ItemSync)
Identifies a single item to update in the local client store.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
MeetingDurationInMinutes
Article • 03/29/2023 • 2 minutes to read
GetUserAvailabilityRequest
SuggestionsViewOptions
MeetingDurationInMinutes
XML
<MeetingDurationInMinutes>...</MeetingDurationInMinutes>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
SuggestionsViewOptions
Contains the options for obtaining meeting suggestion information.
The following is the XPath to this element:
/GetUserAvailabilityRequest/SuggestionViewOptions
Text value
A text value is required. The text value represents an integer.
Remarks
This element is required if the SuggestionsViewOptions element is used.
7 Note
The schema that describes this element is located in the EWS virtual directory of
the computer that is running MicrosoftExchange Server 2007 that has the Client
Access server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
XML
<MeetingMessage>
<MimeContent/>
<ItemId/>
<ParentFolderId/>
<ItemClass/>
<Subject/>
<Sensitivity/>
<Body/>
<Attachments/>
<DateTimeReceived/>
<Size/>
<Categories/>
<Importance/>
<InReplyTo/>
<IsSubmitted/>
<IsDraft/>
<IsFromMe/>
<IsResend/>
<IsUnmodified/>
<InternetMessageHeaders/>
<DateTimeSent/>
<DateTimeCreated/>
<ResponseObjects/>
<ReminderDueBy/>
<ReminderIsSet/>
<ReminderMinutesBeforeStart/>
<DisplayCc/>
<DisplayTo/>
<HasAttachments/>
<ExtendedProperty/>
<Culture/>
<Sender/>
<ToRecipients/>
<CcRecipients/>
<BccRecipients/>
<IsReadReceiptRequested/>
<IsDeliveryReceiptRequested/>
<ConversationIndex/>
<ConversationTopic/>
<From/>
<InternetMessageId/>
<IsRead/>
<IsResponseRequested/>
<References/>
<ReplyTo/>
<AssociatedCalendarItemId/>
<IsDelegated/>
<IsOutOfDate/>
<HasBeenProcessed/>
<ResponseType/>
<EffectiveRights/>
<ReceivedBy/>
<ReceivedRepresenting/>
<LastModifiedName/>
<LastModifiedTime/>
<IsAssociated/>
<WebClientReadFormQueryString/>
<WebClientEditFormQueryString/>
<ConversationId/>
<UniqueBody/>
</MeetingMessage>
MeetingMessageType
Attributes
None.
Child elements
Element Description
MimeContent
Contains the native MIME stream of an object that is
represented in base64Binary format.
ItemId
Contains the unique identifier and change key of an item in the
Exchange store. This property is read-only.
ParentFolderId Represents the identifier of the parent folder that contains the
item or folder. This property is read-only.
ItemClass
Represents the message class of an item.
Subject
Represents the subject for Exchange store items and response
objects. The subject is limited to 255 characters.
Sensitivity
Contains the status for an item's sensitivity.
Body
Represents the actual body content of a message.
Element Description
Attachments
Contains the items or files that are attached to an item in the
Exchange store.
DateTimeReceived
Represents the date and time that an item in a mailbox was
received.
Size
Represents the size in bytes of an item. This property is read-
only.
Categories
Represents a collection of strings that identify to which
categories an item in the mailbox belongs.
Importance
Describes the importance of an item.
InReplyTo
Represents the identifier of the item to which this item is a
reply.
IsSubmitted
Indicates whether an item has been submitted to the Outbox
default folder.
IsDraft
Represents whether an item has not yet been sent.
IsFromMe
Indicates whether a user sent an item to him or herself.
IsResend
Indicates whether the item had previously been sent.
IsUnmodified
Indicates whether the item has been modified.
InternetMessageHeaders
Represents the collection of all Internet message headers that
are contained within an item in a mailbox.
DateTimeSent
Represents the date and time that an item in a mailbox was
sent.
DateTimeCreated
Represents the date and time that a given item in the mailbox
was created.
ResponseObjects
Contains a collection of all the response objects that are
associated with an item in the Exchange store.
ReminderDueBy
Represents the date and time when the event occurs. This is
used by the ReminderMinutesBeforeStart element to
determine when the reminder is displayed.
ReminderIsSet
Indicates whether a reminder has been set for an item in the
Exchange store.
ReminderMinutesBeforeStart
Represents the number of minutes before an event when a
reminder is displayed.
Element Description
DisplayCc
Represents the display string that is used for the contents of
the Cc box. This is the concatenated string of all Cc recipient
display names.
DisplayTo
Represents the display string that is used for the contents of
the To box. This is the concatenated string of all To recipient
display names.
HasAttachments
Represents a property that is set to true if an item has at least
one visible attachment. This property is read only.
ExtendedProperty
Identifies extended properties on folders and items.
Culture
Represents the culture for a given item in a mailbox.
Sender
Identifies the sender of an item.
ToRecipients
Contains a set of recipients of a message.
CcRecipients
Represents a collection of recipients that will receive a copy of
the message.
BccRecipients
Represents a collection of recipients to receive a blind carbon
copy (Bcc) of an e-mail.
IsReadReceiptRequested
Indicates whether the sender of an item requests a read
receipt.
IsDeliveryReceiptRequested
Indicates whether the sender of an item requests a delivery
receipt.
ConversationIndex
Contains a binary ID that represents the thread to which this
message belongs.
ConversationTopic
Represents the conversation identifier.
From
Represents the addressee from whom the message was sent.
InternetMessageId
Represents the Internet message identifier of an item.
IsRead
Indicates whether a message has been read.
IsResponseRequested
Indicates whether a response to an e-mail message is
requested.
References
Represents the Usenet header that is used to correlate replies
with their original messages.
ReplyTo
Identifies a set of addresses to which replies should be sent.
Element Description
AssociatedCalendarItemId
Represents the calendar item that is associated with a
MeetingMessage.
IsDelegated
Indicates whether a meeting was handled by an account with
delegate access.
IsOutOfDate
Indicates whether a meeting message is out-of-date.
HasBeenProcessed
Indicates whether a meeting message item has been
processed.
ResponseType
Represents the type of recipient response received for a
meeting.
EffectiveRights
Contains the client's rights based on the permission settings
for the item or folder. This element is read-only. This element
was introduced in Microsoft Exchange Server 2007 Service Pack
1 (SP1).
ReceivedBy
Identifies the delegate in a delegate access scenario.
ReceivedRepresenting
Identifies the principal in a delegate access scenario.
LastModifiedName
Contains the display name of the last user to modify an item.
LastModifiedTime
Indicates when an item was last modified.
IsAssociated
Indicates whether the item is associated with a folder.
WebClientEditFormQueryString
Represents a URL to concatenate to the Outlook Web App
endpoint to edit an item in Outlook Web App.
ConversationId
Contains the identifier of an item or conversation.
UniqueBody
Represents an HTML fragment or plain text which represents
the unique body of this conversation.
UID
Identifies a calendar item.
RecurrenceId
Used to identify a specific instance of a recurring calendar
item.
DateTimeStamp
Indicates the date and time that an instance of an iCalendar
object was created.
Parent elements
Element Description
AdjacentMeetings
Describes all calendar items that are adjacent to a meeting
time.
Create (ItemSync)
Identifies a single item to create in the local client store.
Update (ItemSync)
Identifies a single item to update in the local client store.
Items
Contains an array of items.
SetItemField
Represents an update to a single property of an item in an
UpdateItem operation.
ItemAttachment
Represents an Exchange item that is attached to another
Exchange item.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
MeetingRequest
Article • 03/29/2023 • 8 minutes to read
XML
<MeetingRequest>
<MimeContent/>
<ItemId/>
<ParentFolderId/>
<ItemClass/>
<Subject/>
<Sensitivity/>
<Body/>
<Attachments/>
<DateTimeReceived/>
<Size/>
<Categories/>
<Importance/>
<InReplyTo/>
<IsSubmitted/>
<IsDraft/>
<IsFromMe/>
<IsResend/>
<IsUnmodified/>
<InternetMessageHeaders/>
<DateTimeSent/>
<DateTimeCreated/>
<ResponseObjects/>
<ReminderDueBy/>
<ReminderIsSet/>
<ReminderMinutesBeforeStart/>
<DisplayCc/>
<DisplayTo/>
<HasAttachments/>
<ExtendedProperty/>
<Culture/>
<Sender/>
<ToRecipients/>
<CcRecipients/>
<BccRecipients/>
<IsReadReceiptRequested/>
<IsDeliveryReceiptRequested/>
<ConversationIndex/>
<ConversationTopic/>
<From/>
<InternetMessageId/>
<IsRead/>
<IsResponseRequested/>
<References/>
<ReplyTo/>
<AssociatedCalendarItemId/>
<IsDelegated/>
<IsOutOfDate/>
<HasBeenProcessed/>
<ResponseType/>
<MeetingRequestType/>
<IntendedFreeBusyStatus/>
<Start/>
<End/>
<OriginalStart/>
<IsAllDayEvent/>
<LegacyFreeBusyStatus/>
<Location/>
<When/>
<IsMeeting/>
<IsCancelled/>
<IsRecurring/>
<MeetingRequestWasSent/>
<CalendarItemType/>
<MyResponseType/>
<Organizer/>
<RequiredAttendees/>
<OptionalAttendees/>
<Resources/>
<ConflictingMeetingCount/>
<AdjacentMeetingCount/>
<ConflictingMeetings/>
<AdjacentMeetings/>
<Duration/>
<TimeZone/>
<AppointmentReplyTime/>
<AppointmentSequenceNumber/>
<AppointmentState/>
<Recurrence/>
<FirstOccurrence/>
<LastOccurrence/>
<ModifiedOccurrences/>
<DeletedOccurrences/>
<MeetingTimeZone/>
<StartTimeZone/>
<EndTimeZone/>
<ConferenceType/>
<AllowNewTimeProposal/>
<IsOnlineMeeting/>
<MeetingWorkspaceUrl/>
<NetShowUrl/>
<EffectiveRights/>
<ReceivedBy/>
<ReceivedRepresenting/>
<LastModifiedName/>
<LastModifiedTime/>
<IsAssociated/>
<WebClientReadFormQueryString/>
<WebClientEditFormQueryString/>
<ConversationId/>
<UniqueBody/>
</MeetingRequest>
MeetingRequestMessageType
Attributes
None.
Child elements
Element Description
MimeContent
Contains the native Multipurpose Internet Mail Extensions
(MIME) stream of an object represented in base64Binary
format.
ItemId
Contains the unique identifier and change key of an item in the
Exchange store. This property is read-only.
ParentFolderId Represents the identifier of the parent folder that contains the
item or folder. This property is read-only.
ItemClass
Represents the message class of an item.
Subject
Represents the subject for Exchange store items and response
objects. The subject is limited to 255 characters.
Sensitivity
Indicates the sensitivity level of an item.
Body
Represents the actual body content of a message.
Attachments
Contains the items or files that are attached to an item in the
Exchange store.
DateTimeReceived
Represents the data and time that an item in a mailbox was
received.
Size
Represents the size in bytes of an item. This property is read-
only.
Categories
Represents a collection of strings that identify to which
categories an item in the mailbox belongs.
Element Description
Importance
Describes the importance of an item.
InReplyTo
Represents the identifier of the item to which this item is a
reply.
IsSubmitted
Indicates whether an item has been submitted to the Outbox
default folder.
IsDraft
Indicates whether an item has not yet been sent.
IsFromMe
Indicates whether a user sent an item to itself.
IsResend
Indicates whether the item had previously been sent.
IsUnmodified
Indicates whether the item has been modified.
InternetMessageHeaders
Represents the collection of all Internet message headers
contained within an item in a mailbox.
DateTimeSent
Represents the date and time that an item in a mailbox was
sent.
DateTimeCreated
Represents the date and time that a given item in the mailbox
was created.
ResponseObjects
Contains a collection of all the response objects that are
associated with an item in the Exchange store.
ReminderDueBy
Represents the date and time when the event occurs. This is
used by the ReminderMinutesBeforeStart element to
determine when the reminder is displayed.
ReminderIsSet
Indicates whether a reminder has been set for an item in the
Exchange store.
ReminderMinutesBeforeStart
Represents the number of minutes before an event when a
reminder is displayed.
DisplayCc
Represents the display string that is used for the contents of
the CC line. This is the concatenated string of all CC recipient
display names.
DisplayTo
Represents the display string that is used for the contents of
the To line. This is the concatenated string of all To recipient
display names.
HasAttachments
Represents a property that is set to true if an item has at least
one visible attachment. This property is read only.
ExtendedProperty
Identifies extended properties on folders and items.
Element Description
Culture
Represents the culture for a given item in a mailbox.
Sender
Identifies the sender of an item.
ToRecipients
Contains a set of recipients of a message.
CcRecipients
Represents a collection of recipients that will receive a copy of
the message.
BccRecipients
Represents a collection of recipients to receive a blind carbon
copy (Bcc) of an e-mail.
IsReadReceiptRequested
Indicates whether the sender of an item requests a read
receipt.
IsDeliveryReceiptRequested
Indicates whether the sender of an item requests a delivery
receipt.
ConversationIndex
Contains a binary ID that represents the thread to which this
message belongs.
ConversationTopic
Represents the conversation identifier.
From
Represents the addressee from whom the message was sent.
InternetMessageId
Represents the Internet message identifier of an item.
IsRead
Indicates whether a message has been read.
IsResponseRequested
Indicates whether a response to an e-mail message is
requested.
References
Represents the Usenet header that is used to correlate replies
with their original messages.
ReplyTo
Identifies a set of addresses to which replies should be sent.
AssociatedCalendarItemId
Represents the calendar item that is associated with a
MeetingMessage.
IsDelegated
Indicates whether a meeting was handled by an account with
delegate access.
IsOutOfDate
Indicates whether a meeting message is out of date.
HasBeenProcessed
Indicates whether a meeting message item has been
processed.
ResponseType
Represents the kind of recipient response that is received for a
meeting.
Element Description
MeetingRequestType
Describes the type of the meeting request.
IntendedFreeBusyStatus
Represents the intended status for the calendar item that is
associated with the meeting request.
Start
Represents the start of a calendar item. This element only
applies to a single occurrence of a calendar item.
OriginalStart
Represents the original start time of a calendar item.
IsAllDayEvent
Indicates whether a calendar item or meeting request
represents an all-day event.
LegacyFreeBusyStatus
Represents the free/busy status of the calendar item.
Location
Represents the location of a meeting or appointment.
When
Provides a description of when a meeting occurs.
IsCancelled
Indicates whether an appointment or meeting has been
cancelled.
IsRecurring
Indicates whether a calendar item is part of a recurring item.
This element is read-only.
MeetingRequestWasSent
Indicates whether a meeting request has been sent to
requested attendees.
CalendarItemType
Represents the occurrence type of a calendar item.
MyResponseType
Contains the status of or response to a calendar item.
Organizer
Represents the organizer of a meeting.
RequiredAttendees
Represents attendees that are required to attend a meeting.
OptionalAttendees
Represents attendees that are not required to attend a
meeting.
Resources
Represents a scheduled resource for a meeting.
ConflictingMeetingCount
Represents the number of meetings that conflict with the
meeting request.
Element Description
AdjacentMeetingCount
Represents the total number of calendar items that are
adjacent to a meeting time.
AdjacentMeetings
Describes all calendar items that are adjacent to a meeting
time.
Duration (Items)
Represents the duration of a calendar item.
TimeZone (Item)
Provides a text description of a time zone.
AppointmentReplyTime
Represents the date and time when an attendee replied to a
meeting request.
AppointmentSequenceNumber
Specifies the sequence number of a version of an appointment.
AppointmentState
Specifies the status of the appointment.
Recurrence (RecurrenceType)
Contains the recurrence pattern for calendar items and
meeting requests.
FirstOccurrence
Represents the first occurrence of a recurring calendar item.
This element is valid if CalendarItemType has the
RecurringMaster value.
LastOccurrence
Represents the last occurrence of a recurring calendar item.
This element is valid if CalendarItemType has the
RecurringMaster value.
ModifiedOccurrences
Contains an array of recurring calendar item occurrences that
have been modified so that they are different than the
recurrence master item.
This element is valid if CalendarItemType has the
RecurringMaster value.
DeletedOccurrences
Contains an array of deleted occurrences of a recurring
calendar item.
This element is valid if CalendarItemType has the
RecurringMaster value.
MeetingTimeZone
Represents the time zone of the location where the meeting is
hosted.
StartTimeZone
Represents the start time zone of the calendar item.
EndTimeZone
Represents the end time zone of the calendar item.
ConferenceType
Describes the type of conferencing that is performed with a
calendar item.
Element Description
AllowNewTimeProposal
Represents whether a new meeting time can be proposed for a
meeting.
IsOnlineMeeting
Indicates whether the meeting is online.
MeetingWorkspaceUrl
Contains the URL for the meeting workspace that is linked to
by the calendar item.
NetShowUrl
Specifies the URL for a Microsoft Netshow online meeting.
EffectiveRights
Contains the rights of the client based on the permission
settings for the item or folder. This element is read-only.
ReceivedBy
Identifies the delegate in a delegate access scenario.
ReceivedRepresenting
Identifies the principal in a delegate access scenario.
LastModifiedName
Contains the display name of the last user to modify an item.
LastModifiedTime
Indicates when an item was last modified.
IsAssociated
Indicates whether the item is associated with a folder.
WebClientEditFormQueryString
Represents a URL to concatenate to the Outlook Web App
endpoint to edit an item in Outlook Web App.
ConversationId
Contains the identifier of an item or conversation.
UniqueBody
Represents an HTML fragment or plain text which represents
the unique body of this conversation.
UID
Identifies a calendar item.
RecurrenceId
Used to identify a specific instance of a recurring calendar
item.
DateTimeStamp
Indicates the date and time that an instance of an iCalendar
object was created.
Parent elements
Element Description
Element Description
AdjacentMeetings
Identifies all calendar items that are adjacent to a meeting
time.
Create (ItemSync)
Identifies a single item to create in the local client store.
Items
Contains an array of items.
ItemAttachment
Represents an Exchange item that is attached to another
Exchange item.
SetItemField
Represents an update to a single property of an item in an
UpdateItem operation.
Update (ItemSync)
Identifies a single item to update in the local client store.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
XML
<MeetingRequestType/>
MeetingRequestTypeType
Attributes
None.
Child elements
None.
Parent elements
Element Description
MeetingRequest
Represents a meeting request in the Exchange store.
Text value
A text value is required. The following table lists the possible text values for this element.
Value Description
FullUpdate Identifies the meeting request as a full update to an existing request. A full
update has updated time and informational content.
PrincipalWantsCopy Indicates that the meeting request belongs to a principal who has
forwarded meeting messages to a delegate and has his copies marked as
informational.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
MeetingRequestWasSent
Article • 03/29/2023 • 2 minutes to read
XML
<MeetingRequestWasSent/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
MeetingRequest
Represents a meeting request in the Exchange store.
Text value
A text value that represents a Boolean value is required if this element is included. A
value of true indicates that a meeting request was sent. A value of false indicates that a
meeting request has not been sent.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
MeetingResponse
Article • 03/29/2023 • 5 minutes to read
XML
<MeetingResponse>
<MimeContent/>
<ItemId/>
<ParentFolderId/>
<ItemClass/>
<Subject/>
<Sensitivity/>
<Body/>
<Attachments/>
<DateTimeReceived/>
<Size/>
<Categories/>
<Importance/>
<InReplyTo/>
<IsSubmitted/>
<IsDraft/>
<IsFromMe/>
<IsResend/>
<IsUnmodified/>
<InternetMessageHeaders/>
<DateTimeSent/>
<DateTimeCreated/>
<ResponseObjects/>
<ReminderDueBy/>
<ReminderIsSet/>
<ReminderMinutesBeforeStart/>
<DisplayCc/>
<DisplayTo/>
<HasAttachments/>
<ExtendedProperty/>
<Culture/>
<Sender/>
<ToRecipients/>
<CcRecipients/>
<BccRecipients/>
<IsReadReceiptRequested/>
<IsDeliveryReceiptRequested/>
<ConversationIndex/>
<ConversationTopic/>
<From/>
<InternetMessageId/>
<IsRead/>
<IsResponseRequested/>
<References/>
<ReplyTo/>
<AssociatedCalendarItemId/>
<IsDelegated/>
<IsOutOfDate/>
<HasBeenProcessed/>
<ResponseType/>
<EffectiveRights/>
<ReceivedBy/>
<ReceivedRepresenting/>
<ProposedStart/>
<ProposedEnd/>
</MeetingResponse>
MeetingResponseMessageType
Attributes
None.
Child elements
Element Description
MimeContent
Contains the native MIME stream of an object that is represented
in base64Binary format.
ItemId
Contains the unique identifier and change key of an item in the
Exchange store. This property is read-only.
ParentFolderId Represents the identifier of the parent folder that contains the
item or folder. This property is read-only.
ItemClass
Represents the message class of an item.
Subject
Represents the subject for Exchange store items and response
objects. The subject is limited to 255 characters.
Sensitivity
Indicates the sensitivity level of an item.
Body
Represents the actual body content of a message.
Attachments
Contains the items or files that are attached to an item in the
Exchange store.
Element Description
DateTimeReceived
Represents the data and time that an item in a mailbox was
received.
Size
Represents the size in bytes of an item. This property is read-only.
Categories
Represents a collection of strings that identify to which categories
an item in the mailbox belongs.
Importance
Describes the importance of an item.
InReplyTo
Represents the identifier of the item to which this item is a reply.
IsSubmitted
Indicates whether an item has been submitted to the Outbox
default folder.
IsDraft
Represents whether an item has not yet been sent.
IsFromMe
Indicates whether a user sent an item to him or herself.
IsResend
Indicates whether the item had previously been sent.
IsUnmodified
Indicates whether the item has been modified.
InternetMessageHeaders
Represents the collection of all Internet message headers that are
contained within an item in a mailbox.
DateTimeSent
Represents the date and time that an item in a mailbox was sent.
DateTimeCreated
Represents the date and time that a given item in the mailbox was
created.
ResponseObjects
Contains a collection of all the response objects that are
associated with an item in the Exchange store.
ReminderDueBy
Represents the date and time when the event occurs. This is used
by the ReminderMinutesBeforeStart element to determine when
the reminder is displayed.
ReminderIsSet
Indicates whether a reminder has been set for an item in the
Exchange store.
DisplayCc
Represents the display string that is used for the contents of the
Cc box. This is the concatenated string of all Cc recipient display
names.
Element Description
DisplayTo
Represents the display string that is used for the contents of the
To box. This is the concatenated string of all To recipient display
names.
HasAttachments
Represents a property that is set to true if an item has at least one
visible attachment. This property is read-only.
ExtendedProperty
Identifies extended properties on folders and items.
Culture
Represents the culture for a given item in a mailbox.
Sender
Identifies the sender of an item.
ToRecipients
Contains a set of recipients of a message.
CcRecipients
Represents a collection of recipients that will receive a copy of the
message.
BccRecipients
Represents a collection of recipients to receive a blind carbon copy
(Bcc) of an e-mail.
IsReadReceiptRequested
Indicates whether the sender of an item requests a read receipt.
IsDeliveryReceiptRequested
Indicates whether the sender of an item requests a delivery
receipt.
ConversationIndex
Contains a binary ID that represents the thread to which this
message belongs.
ConversationTopic
Represents the conversation identifier.
From
Represents the addressee from whom the message was sent.
InternetMessageId
Represents the Internet message identifier of an item.
IsRead
Indicates whether a message has been read.
IsResponseRequested
Indicates whether a response to an e-mail message is requested.
References
Represents the Usenet header that is used to correlate replies with
their original messages.
ReplyTo
Identifies a set of addresses to which replies should be sent.
AssociatedCalendarItemId
Represents the calendar item that is associated with a
MeetingMessage.
IsDelegated
Indicates whether a meeting was handled by an account with
delegate access.
IsOutOfDate
Indicates whether a meeting message is out-of-date.
Element Description
HasBeenProcessed
Indicates whether a meeting message item has been processed.
ResponseType
Represents the type of recipient response that is received for a
meeting.
EffectiveRights
Contains the client's rights based on the permission settings for
the item or folder. This element is read-only. This element was
introduced in Microsoft Exchange Server 2007 Service Pack 1
(SP1).
ReceivedBy
Identifies the delegate in a delegate access scenario. This element
was introduced in Exchange 2007 SP1.
ReceivedRepresenting
Identifies the principal in a delegate access scenario. This element
was introduced in Exchange 2007 SP1.
ProposedStart
Specifies the proposed start time of a meeting. This element was
introduced in Microsoft Exchange Server 2013.
ProposedEnd
Specifies the proposed end time of a meeting. This element was
introduced in Microsoft Exchange Server 2013.
UID
Identifies a calendar item.
RecurrenceId
Used to identify a specific instance of a recurring calendar item.
DateTimeStamp
Indicates the date and time that an instance of an iCalendar object
was created.
Parent elements
Element Description
AdjacentMeetings
Identifies all calendar items that are adjacent to a meeting
time.
Create (ItemSync)
Identifies a single item to create in the local client store.
Items
Contains an array of items.
ItemAttachment
Represents an Exchange item that is attached to another
Exchange item.
SetItemField
Represents an update to a single property of an item in an
UpdateItem operation.
Update (ItemSync)
Identifies a single item to update in the local client store.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
MeetingString
Article • 03/29/2023 • 2 minutes to read
The MeetingString element specifies the name of the meeting as the result of entity
extraction.
XML
<MeetingString></MeetingString>
string
Attributes
None.
Child elements
None.
Parent elements
MeetingSuggestion
Text value
The text value for the MeetingString element is the name of the meeting.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
MeetingSuggestion
Article • 03/29/2023 • 2 minutes to read
XML
<MeetingSuggestion>
<Attendees/>
<Location/>
<Subject/>
<MeetingString/>
<StartTime/>
<EndTime/>
</MeetingSuggestion>
MeetingSuggestionType
Attributes
None.
Child elements
Attendees | Location | Subject | MeetingString | StartTime | EndTime
Parent elements
MeetingSuggestions
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
MeetingSuggestions
Article • 03/29/2023 • 2 minutes to read
XML
<MeetingSuggestions>
<MeetingSuggestion/>
</MeetingSuggestions>
ArrayOfMeetingSuggestionsType
Attributes
None.
Child elements
MeetingSuggestion
Parent elements
EntityExtractionResult
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
MeetingTime
Article • 03/29/2023 • 2 minutes to read
GetUserAvailabilityResponse
SuggestionsResponse
SuggestionDayResultArray
SuggestionDayResult
SuggestionArray
Suggestion
MeetingTime
XML
<MeetingTime>...</MeetingTime
dateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
A text value that represents a dateTime value is required.
Remarks
The MeetingTime element is a required child element of the Suggestion element.
The schema that describes this element is located in the EWS virtual directory of the computer that is running
MicrosoftExchange Server 2007 that has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityResponse
The MeetingTimeZone element represents the time zone of the location where the
meeting is hosted.
XML
<MeetingTimeZone>
<BaseOffset/>
<Standard/>
<Daylight/>
</MeetingTimeZone>
TimeZoneType
Attributes
Attribute Description
TimeZoneName
Describes the name of the time zone.
Child elements
Element Description
BaseOffset Represents the hourly offset from UTC for the current time zone.
Standard
Represents the date and time when the time changes from daylight saving time to
standard time.
Daylight
Represents the date and time when the time changes from standard time to daylight
saving time.
Parent elements
Element Description
Element Description
CalendarItem
Represents an Exchange calendar item.
MeetingRequest
Represents a meeting request in the Exchange store.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
MeetingWorkspaceUrl
Article • 03/29/2023 • 2 minutes to read
The MeetingWorkspaceUrl element contains the URL for the meeting workspace that is
included in the calendar item. A meeting workspace is a shared Web site for planning
the meeting and tracking the results.
XML
<MeetingWorkspaceUrl/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
MeetingRequest
Represents a meeting in the Exchange store.
CalendarItem
Represents an Exchange calendar item.
Text value
A text value that represents a URL is required if this element is used.
Remarks
The MeetingWorkspaceUrl property is read-writable for the organizer's calendar item. It
is read-only for meeting requests and for attendees' calendar items.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Member
Article • 03/29/2023 • 2 minutes to read
XML
<Member Key="">
<Mailbox/>
<Status/>
</Member>
MemberType
Attributes
Attribute Description
Key Provides a unique identifier for the distribution list member. This attribute is optional.
Child elements
Element Description
Mailbox
Represents the e-mail address of the distribution list member. This
element is optional.
Status Provides information about the status of a distribution list member. This
(MemberStatusType)
element is optional.
Parent elements
Element Description
Members (MemberListType)
Contains a list of distribution list members.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Members
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Members (MemberListType)
Article • 03/29/2023 • 2 minutes to read
The Members element provides the list of members for a distribution list.
XML
<Members>
<Member/>
</Members>
MemberListType
Attributes
None.
Child elements
Element Description
Member Provides an identifier for a fully resolved e-mail address, and the status of that address
on the server. This element is optional.
Parent elements
Element Description
DistributionList
Represents a distribution list.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
MemberCorrelationKey
Article • 03/29/2023 • 2 minutes to read
The MemberCorrelationKey element specifies the identifiers of the contacts that are
part of the instant messaging (IM) group.
XML
<MemberCorrelationKey>
<ItemId/>
</MemberCorrelationKey>
NonEmptyArrayOfItemIdsType
Attributes
None.
Child elements
ItemId
Parent elements
ImGroup
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
MergedFreeBusy
Article • 03/29/2023 • 2 minutes to read
GetUserAvailabilityResponse
FreeBusyResponseArray
FreeBusyResponse
FreeBusyView
MergedFreeBusy
XML
<MergedFreeBusy>...</MergedFreeBusy>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
DetailedMerged
FreeBusyMerged
MergedOnly
Remarks
The stream of data provided by this element is defined by the
MergedFreeBusyIntervalInMinutes and TimeWindow elements. The TimeWindow
element defines the time span queried for availability. The
MergedFreeBusyIntervalInMinutes element defines how the time from the TimeWindow
element is broken into intervals returned in the MergedFreeBusy element. Each number
in the MergedFreeBusy stream represents a single interval defined by the
MergedFreeBusyIntervalInMinutes element. The following table lists the possible values
for an individual interval.
Digit Availability
0 Free
1 Tentative
2 Busy
4 No data
For example, a request for free/busy data includes a TimeWindow element that
represents four hours and a MergedFreeBusyIntervalInMinutes element that represents
60 minutes. If the requested user's calendar is OOF for the first 60 minutes, busy for the
following 90 minutes, and unscheduled for the final 90 minutes in the time window, the
MergedFreeBusy stream will be 3220. If an interval contains more than one availability
classification, the highest number is used to classify that interval.
The level of detail provided by this element depends on the permissions granted to the
requestor.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityResponse
GetUserAvailabilityRequest
FreeBusyViewOptions
MergedFreeBusyIntervalInMinutes
XML
<MergedFreeBusyIntervalInMinutes>...</MergedFreeBusyIntervalInMinutes>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
FreeBusyViewOptions
Specifies the type of free/busy information returned in the response.
The following is the XPath to this element:
/GetUserAvailabilityRequest/FreeBusyViewOptions
Text value
A text value is required. The text value represents time in minutes. The default value is
30 minutes. Five minutes is the minimum interval and one day (1440 minutes) is the
maximum interval for this element.
Remarks
This value is used only if the RequestedView element is equal to MergedOnly,
FreeBusyMerged, or DetailedMerge. This is an integer data type. The stream that
contains the intervals defined by this element is returned in the MergedFreeBusy
element.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserOofSettings operation
XML
<Message>
<MimeContent/>
<ItemId/>
<ParentFolderId/>
<ItemClass/>
<Subject/>
<Sensitivity/>
<Body/>
<Attachments/>
<DateTimeReceived/>
<Size/>
<Categories/>
<Importance/>
<InReplyTo/>
<IsSubmitted/>
<IsDraft/>
<IsFromMe/>
<IsResend/>
<IsUnmodified/>
<InternetMessageHeaders/>
<DateTimeSent/>
<DateTimeCreated/>
<ResponseObjects/>
<ReminderDueBy/>
<ReminderIsSet/>
<ReminderMinutesBeforeStart/>
<DisplayCc/>
<DisplayTo/>
<HasAttachments/>
<ExtendedProperty/>
<Culture/>
<Sender/>
<ToRecipients/>
<CcRecipients/>
<BccRecipients/>
<IsReadReceiptRequested/>
<IsDeliveryReceiptRequested/>
<ConversationIndex/>
<ConversationTopic/>
<From/>
<InternetMessageId/>
<IsRead/>
<IsResponseRequested/>
<References/>
<ReplyTo/>
<EffectiveRights/>
<ReceivedBy/>
<ReceivedRepresenting/>
<LastModifiedName/>
<LastModifiedTime/>
<IsAssociated/>
<WebClientReadFormQueryString/>
<WebClientEditFormQueryString/>
<ConversationId/>
<UniqueBody/>
<ReminderMessageData/>
</Message>
MessageType
Attributes
None.
Child elements
Element Description
MimeContent
Contains the native Multipurpose Internet Mail Extensions
(MIME) stream of an object that is represented in base64Binary
format.
ItemId
Contains the unique identifier and change key of an item in the
Exchange store. This property is read-only.
ParentFolderId Represents the identifier of the parent folder that contains the
item or folder. This property is read-only.
ItemClass
Represents the message class of an item.
Subject
Represents the subject for Exchange store items and response
objects. The subject is limited to 255 characters.
Sensitivity
Indicates the sensitivity level of an item.
Body
Represents the actual body content of a message.
Element Description
Attachments
Contains the items or files that are attached to an item in the
Exchange store.
DateTimeReceived
Represents the date and time that an item in a mailbox was
received.
Size
Represents the size in bytes of an item. This property is read-
only.
Categories
Represents a collection of strings that identify to which
categories an item in the mailbox belongs.
Importance
Describes the importance of an item.
InReplyTo
Represents the identifier of the item to which this item is a
reply.
IsSubmitted
Indicates whether an item has been submitted to the Outbox
default folder.
IsDraft
Represents whether an item has not yet been sent.
IsFromMe
Indicates whether a user sent an item to him or herself.
IsResend
Indicates whether the item had previously been sent.
IsUnmodified
Indicates whether the item has been modified.
InternetMessageHeaders
Represents the collection of all Internet message headers that
are contained within an item in a mailbox.
DateTimeSent
Represents the date and time that an item in a mailbox was
sent.
DateTimeCreated
Represents the date and time that a given item in the mailbox
was created.
ResponseObjects
Contains a collection of all the response objects that are
associated with an item in the Exchange store.
ReminderDueBy
Represents the date and time when the event occurs. This is
used by the ReminderMinutesBeforeStart element to
determine when the reminder is displayed.
ReminderIsSet
Indicates whether a reminder has been set for an item in the
Exchange store.
ReminderMinutesBeforeStart
Represents the number of minutes before an event when a
reminder is displayed.
Element Description
DisplayCc
Represents the display string that is used for the contents of
the CC line. This is the concatenated string of all CC recipient
display names.
DisplayTo
Represents the display string that is used for the contents of
the To box. This is the concatenated string of all To recipient
display names.
HasAttachments
Represents a property that is set to true if an item has at least
one visible attachment. This property is read-only.
ExtendedProperty
Identifies extended properties on folders and items.
Culture
Represents the culture for a given item in a mailbox.
Sender
Identifies the sender of an item.
ToRecipients
Contains a set of recipients of a message.
CcRecipients
Represents a collection of recipients that will receive a copy of
the message.
BccRecipients
Represents a collection of recipients to receive a blind carbon
copy (Bcc) of an e-mail message.
IsReadReceiptRequested
Indicates whether the sender of an item requests a read
receipt.
IsDeliveryReceiptRequested
Indicates whether the sender of an item requests a delivery
receipt.
ConversationIndex
Contains a binary ID that represents the thread to which this
message belongs.
ConversationTopic
Represents the conversation identifier.
From
Represents the addressee from whom the message was sent.
InternetMessageId
Represents the Internet message identifier of an item.
IsRead
Indicates whether a message has been read.
IsResponseRequested
Indicates whether a response to an e-mail message is
requested.
References
Represents the Usenet header that is used to correlate replies
with their original messages.
ReplyTo
Identifies a set of addresses to which replies should be sent.
Element Description
EffectiveRights
Contains the client's rights based on the permission settings
for the item or folder. This element is read-only.
ReceivedBy
Identifies the delegate in a delegate access scenario.
ReceivedRepresenting
Identifies the principal in a delegate access scenario.
LastModifiedName
Contains the display name of the last user to modify an item.
LastModifiedTime
Indicates when an item was last modified.
IsAssociated
Indicates whether the item is associated with a folder.
WebClientEditFormQueryString
Represents a URL to concatenate to the Outlook Web App
endpoint to edit an item in Outlook Web App.
ConversationId
Contains the identifier of an item or conversation.
UniqueBody
Represents an HTML fragment or plain text which represents
the unique body of this conversation.
ReminderMessageData
Contains the data for a reminder message.
Parent elements
Element Description
AdjacentMeetings
Describes all calendar items that are adjacent to a meeting
time.
Create (ItemSync)
Identifies a single item to create in the local client store.
ItemAttachment
Represents an Exchange item that is attached to another
Exchange item.
Items
Contains an array of items.
SetItemField
Represents an update to a single property of an item in an
UpdateItem operation.
Update (ItemSync)
Identifies a single item to update in the local client store.
Text value
None.
Remarks
Another Message element, Message (Availability) is used by the Availability operations
to return OOF messages.
Message elements represent e-mail messages and all other items that are not strongly
typed by the Exchange Web Services (EWS) schema. Items such as IPM.Sharing and
IPM.InfoPath are returned as Message elements. Exchange 2010 does not return the
base Item element in responses.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Message (Availability)
Article • 03/29/2023 • 2 minutes to read
XML
<Message/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
InternalReply
Contains the OOF message sent to other users in the sender's domain.
/SetUserOofSettingsRequest/UserOofSettings/InternalReply
/GetUserOofSettingsResponse/OofSettings/InternalReply
ExternalReply Contains the OOF message that is sent to addresses outside the sender's domain.
/SetUserOofSettingsRequest/UserOofSettings/ExternalReply
/GetUserOofSettingsResponse/OofSettings/ExternalReply
Element Description
ReplyBody
Contains an OOF message and the language used for the message.
Text value
A text value is required to set the OOF message.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Example
The following example of a SetUserOofSettings operation request sets the OofState to
Enabled, sets the duration of OOF to 10 days, and sets the internal and external OOF
messages.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<SetUserOofSettingsRequest
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<Mailbox
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Name>David Alexander</Name>
<Address>[email protected]</Address>
<RoutingType>SMTP</RoutingType>
</Mailbox>
<UserOofSettings
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<OofState>Enabled</OofState>
<ExternalAudience>All</ExternalAudience>
<Duration>
<StartTime>2005-10-05T00:00:00</StartTime>
<EndTime>2005-10-25T00:00:00</EndTime>
</Duration>
<InternalReply>
</InternalReply>
<ExternalReply>
</ExternalReply>
</UserOofSettings>
</SetUserOofSettingsRequest>
</soap:Body>
</soap:Envelope>
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
SetUserOofSettings operation
EWS XML elements in Exchange
MessageClassifications
Article • 03/29/2023 • 2 minutes to read
XML
<MessageClassifications>
<String/>
</MessageClassifications>
ArrayOfStringsType
Attributes
None
Child elements
Element Description
String
Represents a message classification.
Parent elements
Element Description
Conditions Represents the conditions that, when fulfilled, will trigger the rule actions for a rule.
Exceptions Represents the exceptions that represent all the available rule exception conditions
for an Inbox rule.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
MessageCount
Article • 03/29/2023 • 2 minutes to read
The MessageCount element contains the total number of conversation items in the
current folder.
FindConversationResponse
Conversations
Conversation (ConversationType)
MessageCount
XML
<MessageCount/>
xs:int
Attributes
None.
Child elements
None.
Parent elements
Element Description
Conversation (ConversationType)
Represents a single conversation.
Text value
The text value of the MessageCount element is the total number of conversation items
in a folder.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
FindConversation operation
ApplyConversationAction operation
Conversations in EWS
MessageId
Article • 03/29/2023 • 2 minutes to read
XML
<MessageId/>
NonEmptyStringType
Attributes
None.
Child elements
None.
Parent elements
Element Description
FindMessageTrackingReport
Specifies criteria for the types of messages to find.
Text value
A text value that represents a string is required if this element is used.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
MessageText
Article • 03/29/2023 • 2 minutes to read
The MessageText element provides a text description of the status of the response.
XML
<MessageText/>
string
Attributes
None
Child elements
None.
Parent elements
Element Description
ResponseMessage
Provides descriptive information about the response status.
The following are some of the possible XPath expressions to this element:
/GetUserAvailabilityResponse/FreeBusyResponseArray/FreeBusyResponse/ResponseMessage
/GetUserAvailabilityResponse/SuggestionsResponse/ResponseMessage
/SetUserOofSettingsResponse/ResponseMessage
/GetUserOofSettingsResponse/ResponseMessage
DeleteItemResponseMessage
Contains the status and result of a single DeleteItem request.
SendItemResponseMessage
Contains the status and result of a single SendItem request.
DeleteFolderResponseMessage
Contains the status and result of a single DeleteFolder request.
DeleteAttachmentResponseMessage
Contains the status and result of a single DeleteAttachment request.
UnsubscribeResponseMessage
Contains the status and result of a single Unsubscribe request.
CreateFolderResponseMessage
Contains the status and result of a single CreateFolder request.
GetFolderResponseMessage
Contains the status and result of a single GetFolder request.
UpdateFolderResponseMessage
Contains the status and result of a single UpdateFolder request.
MoveFolderResponseMessage
Contains the status and result of a single MoveFolder request.
Element Description
CopyFolderResponseMessage
Contains the status and result of a single CopyFolder request.
CreateManagedFolderResponseMessage
Contains the status and result of a single CreateManagedFolder request.
FindFolderResponseMessage
Contains the status and result of a single FindFolder request.
CreateItemResponseMessage
Contains the status and result of a single CreateItem request.
GetItemResponseMessage
Contains the status and result of a single GetItem request.
UpdateItemResponseMessage
Contains the status and result of a single UpdateItem request.
MoveItemResponseMessage
Contains the status and result of a single MoveItem request.
CopyItemResponseMessage
Contains the status and result of a single CopyItem request.
CreateAttachmentResponseMessage
Contains the status and result of a single CreateAttachment request.
GetAttachmentResponseMessage
Contains the status and result of a single GetAttachment request.
FindItemResponseMessage
Contains the status and result of a single FindItem request.
ResolveNamesResponseMessage
Contains the status and result of a ResolveNames request.
ExpandDLResponseMessage
Contains the status and result of a single ExpandDL request.
SubscribeResponseMessage
Contains the status and result of a single Subscribe request.
GetEventsResponseMessage
Contains the status and result of a single GetEvents request.
SendNotificationResponseMessage
Contains the status and result of a single SendNotification request.
SyncFolderHierarchyResponseMessage
Contains the status and result of a SyncFolderHierarchy request.
SyncFolderItemsResponseMessage
Contains the status and result of a SyncFolderItems request.
ConvertIdResponseMessage
Contains the status and result of a ConvertId request.
AddDelegateResponse
Contains the status and result of an AddDelegate request.
GetServerTimeZonesResponseMessage
Contains the status and result of a GetServerTimeZones request.
GetSharingFolderResponseMessage
Contains the status and result of a GetSharingFolder request.
GetSharingFolderResponse
Defines a response to a GetSharingFolder request.
GetSharingMetadataResponseMessage
Contains the status and result of a GetSharingMetadata request.
GetSharingMetadataResponse
Defines a response to a GetSharingMetadata request.
RefreshSharingFolderResponseMessage
Contains the status and result of a RefreshSharingFolder request.
RefreshSharingFolderResponse
Defines a response to a RefreshSharingFolder request.
InvalidRecipient
Represents an invalid recipient for a GetSharingMetadata request.
FindConversationResponse
Contains the status and results of a FindConversation response.
EmptyFolderResponseMessage
Contains the status and result of a single EmptyFolder request.
UpdateInboxRulesResponse
Contains a response to an UpdateInboxRules request.
GetInboxRulesResponse
Contains a response to a GetInboxRules request.
GetServiceConfigurationResponse
Contains a response to a GetServiceConfiguration request.
Element Description
Remarks
This element is not required and is not included in all responses. This element is included when error messages
are returned.
The schema that describes this element is located in the IIS virtual directory that hosts Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
MessageTrackingReport
Article • 03/29/2023 • 2 minutes to read
XML
<MessageTrackingReport>
<Sender/>
<PurportedSender/>
<Subject/>
<SubmitTime/>
<OriginalRecipients/>
<RecipientTrackingEvents/>
<Properties/>
</MessageTrackingReport>
MessageTrackingReportType
Attributes
None.
Child elements
Element Description
Sender (EmailAddressType)
Contains contact information for the sender of the e-mail
message.
PurportedSender
Contains contact information for the alleged sender of an e-
mail message.
Subject
Contains the subject of the e-mail message.
SubmitTime
Contains the time of day that the e-mail message was
submitted.
OriginalRecipients
Contains a list of the recipients of the e-mail message.
Element Description
RecipientTrackingEvents
Contains a list of one or more tracking events for the
recipients.
Parent elements
Element Description
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
FindMessageTrackingReport operation
GetMessageTrackingReport operation
EWS XML elements in Exchange
The MessageTrackingReportId element represents the message by its message ID, the
organization where the message was found, the server on which the message was
submitted, and an internal ID that uniquely identifies the message.
XML
<MessageTrackingReportId/>
NonEmptyStringType
Attributes
None.
Child elements
None.
Parent elements
Element Description
GetMessageTrackingReport
Contains the request for the GetMessageTrackingReport
operation to retrieve the full message tracking report for the
specified ID.
Text value
A text value that represents a string is required if this element is used.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetMessageTrackingReport operation
XML
<MessageTrackingSearchResult>
<Subject/>
<Sender/>
<PurportedSender/>
<Recipients/>
<SubmittedTime/>
<MessageTrackingReportId/>
<PreviousHopServer/>
<FirstHopServer/>
<Properties/>
</MessageTrackingSearchResult>
FindMessageTrackingSearchResultType
Attributes
None.
Child elements
Element Description
Subject
Contains the e-mail message subject.
Sender (EmailAddressType)
Contains the e-mail message sender's address.
PurportedSender
Contains contact information for the alleged sender of an e-
mail message.
Element Description
SubmittedTime
Contains the time that the message was submitted.
MessageTrackingReportId
Contains an internal ID that identifies the message in the
transport database.
PreviousHopServer
Contains the name of the server in the forest that previously
accepted the message.
FirstHopServer
Contains the name of the server in the forest that first
accepted the message.
Parent elements
Element Description
MessageTrackingSearchResults
Contains a list of messages that match the search criteria.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
XML
<MessageTrackingSearchResults>
<MessageTrackingSearchResult/>
</MessageTrackingSearchResults>
ArrayOfFindMessageTrackingSearchResultType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
MessageTypes
Article • 03/29/2023 • 2 minutes to read
XML
<MessageTypes>
<SearchItemKind/>
</MessageTypes>
ArrayOfSearchItemKindsType
Attributes
None.
Child elements
SearchItemKind
Parent elements
FindMailboxStatisticsByKeywords
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
MessageXml
Article • 03/29/2023 • 3 minutes to read
ResponseMessage
MessageXml
XML
<MessageXml/>
xs:any
Attributes
None.
Child elements
None.
Parent elements
Element Description
ResponseMessage
Provides descriptive information about the response status.
The following are some of the possible XPath expressions to this element:
/GetUserAvailabilityResponse/FreeBusyResponseArray/FreeBusyResponse/ResponseMessage
/GetUserAvailabilityResponse/SuggestionsResponse/ResponseMessage
/SetUserOofSettingsResponse/ResponseMessage
/GetUserOofSettingsResponse/ResponseMessage
DeleteItemResponseMessage
Contains the status and result of a single DeleteItem request.
SendItemResponseMessage
Contains the status and result of a single SendItem request.
DeleteFolderResponseMessage
Contains the status and result of a single DeleteFolder request.
DeleteAttachmentResponseMessage
Contains the status and result of a single DeleteAttachment request.
UnsubscribeResponseMessage
Contains the status and result of a single Unsubscribe request.
CreateFolderResponseMessage
Contains the status and result of a single CreateFolder request.
GetFolderResponseMessage
Contains the status and result of a single GetFolder request.
Element Description
UpdateFolderResponseMessage
Contains the status and result of a single UpdateFolder request.
MoveFolderResponseMessage
Contains the status and result of a single MoveFolder request.
CopyFolderResponseMessage
Contains the status and result of a single CopyFolder request.
CreateManagedFolderResponseMessage
Contains the status and result of a single CreateManagedFolder request.
FindFolderResponseMessage
Contains the status and result of a single FindFolder request.
CreateItemResponseMessage
Contains the status and result of a single CreateItem request.
GetItemResponseMessage
Contains the status and result of a single GetItem request.
UpdateItemResponseMessage
Contains the status and result of a single UpdateItem request.
MoveItemResponseMessage
Contains the status and result of a single MoveItem request.
CopyItemResponseMessage
Contains the status and result of a single CopyItem request.
CreateAttachmentResponseMessage
Contains the status and result of a single CreateAttachment request.
GetAttachmentResponseMessage
Contains the status and result of a single GetAttachment request.
FindItemResponseMessage
Contains the status and result of a single FindItem request.
ResolveNamesResponseMessage
Contains the status and result of a ResolveNames request.
ExpandDLResponseMessage
Contains the status and result of a single ExpandDL request.
SubscribeResponseMessage
Contains the status and result of a single Subscribe request.
GetEventsResponseMessage
Contains the status and result of a single GetEvents request.
SendNotificationResponseMessage
Contains the status and result of a single SendNotification request.
SyncFolderHierarchyResponseMessage
Contains the status and result of a SyncFolderHierarchy request.
SyncFolderItemsResponseMessage
Contains the status and result of a SyncFolderItems request.
ConvertIdResponseMessage
Contains the status and result of a ConvertId request.
AddDelegateResponse
Contains the status and result of an AddDelegate request.
GetServerTimeZonesResponseMessage
Contains the status and result of a GetServerTimeZones request.
GetSharingFolderResponseMessage
Contains the status and result of a GetSharingFolder request.
GetSharingFolderResponse
Defines a response to a GetSharingFolder request.
GetSharingMetadataResponseMessage
Contains the status and result of a GetSharingMetadata request.
GetSharingMetadataResponse
Defines a response to a GetSharingMetadata request.
RefreshSharingFolderResponseMessage
Contains the status and result of a RefreshSharingFolder request.
RefreshSharingFolderResponse
Defines a response to a RefreshSharingFolder request.
FindConversationResponse
Contains the status and results of a FindConversation response.
EmptyFolderResponseMessage
Contains the status and result of an EmptyFolder request.
UpdateInboxRulesResponse
Contains a status and result of an UpdateInboxRules request.
UploadItemsResponseMessage
Contains a status and result of an UploadItemsResponse request.
Element Description
GetInboxRulesResponse
Contains a response to a GetInboxRules request.
GetServiceConfigurationResponse
Contains a response to a GetServiceConfiguration request.
Remarks
This element is not required and is not included in all responses. It is included for error messages. In requests that
involve folders or items, the MessageXML element will contain one or more elements that contain the URIs to the
properties that caused the error. An example of this is the FieldURI element.
The MessageXML element is of type xs:any, which means that any well-formed XML is valid content for the this
element.
The schema that describes this element is located in the IIS virtual directory that hosts Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
Metadata
Article • 03/29/2023 • 2 minutes to read
XML
<Metadata>
<EndNodeUrl/>
<AppStatus/>
<ActionUrl/>
</Metadata>
Attributes
None.
Child elements
EndNodeUrl | AppStatus | ActionUrl
Parent elements
App
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
App
XML
<MiddleName/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
CompleteName
Represents the complete name of a contact.
Contact
Represents an Exchange contact item.
Text value
A string that represents the middle name of a contact.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
The MiddleNames element specifies an array of middle name values and the identifiers
of their source attributions for the associated persona.
XML
<MiddleNames>
<StringAttributedValue/>
</MiddleNames>
ArrayOfStringAttributedValuesType
Attributes
None.
Child elements
StringAttributedValue
Parent elements
Persona
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Mileage
Article • 03/29/2023 • 2 minutes to read
XML
<Mileage/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Contact
Represents a contact item in the Exchange store.
Task
Represents a task in the Exchange store.
Text value
A text value is required if this element is used.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
MimeContent
Article • 03/29/2023 • 2 minutes to read
The MimeContent element contains the ASCII MIME stream of an object that is
represented in base64Binary format and supports [RFC2045] .
XML
MimeContentType
Attributes
Attribute Description
CharacterSet
If set, the value for this attribute is ignored by the server.
Child elements
None.
Parent elements
CalendarItem | Contact | DistributionList | Item | MeetingCancellation | MeetingMessage
| MeetingRequest | MeetingResponse | Message | RemoveItem | Task
Text value
A text value that represents a base64Binary MIME stream is required if this element is
used.
Remarks
The message content goes through the following three levels of encoding before it is
stored in the MimeContent value:
1. Message text — This is the body encoding, such as iso-2022-jp for Japanese
characters.
2. MIME stream — This is the ASCII encoding of the message text for the
MimeContent element, or the UTF8 encoding of the message text for the
MimeContentUTF8 element.
3. XML document — This is always the base64-encoded ASCII stream of the MIME
stream, where characters such as '<', which are meaningful to XML, are hidden
from XML parsers.
The MimeContent element might contain the same data that other properties that are
returned with an item contain.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
MimeContentUTF8
Article • 03/29/2023 • 2 minutes to read
The MimeContentUTF8 element contains the UTF-8 MIME stream of an object that is
represented in base64Binary format and supports email address internationalization and
[RFC6530] .
XML
MimeContentType
Attributes
Attribute Description
CharacterSet
If set, the value for this attribute is ignored by the server.
Child elements
None.
Parent elements
CalendarItem | Contact | DistributionList | Item | MeetingCancellation | MeetingMessage
| MeetingRequest | MeetingResponse | Message | RemoveItem | Task
Text value
A text value that represents a base64binary MIME stream is required if this element is
used.
Remarks
The message content goes through the following three levels of encoding before it is
stored in the MimeContentUTF8 value:
1. Message text — This is the body encoding, such as iso-2022-jp for Japanese
characters.
2. MIME stream — This is the UTF8 encoding of the message text for the
MimeContentUTF8 element, or the ASCII encoding of the message text for the
MimeContent element.
3. XML document — This is always the base64-encoded ASCII stream of the MIME
stream, where characters such as '<', which are meaningful to XML, are hidden
from XML parsers.
The MimeContentUTF8 element might contain the same data that other properties that
are returned with an item contain.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Version differences
This element is available in versions of Exchange starting with build 15.00.0986.00.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
MinimumSize
Article • 03/29/2023 • 2 minutes to read
The MinimumSize element represents the minimum size that a message must be in
order for the condition or exception to apply.
XML
<MinimumSize/>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
WithinSizeRange Specifies the minimum and maximum sizes that incoming messages must be
in order for the condition or exception to apply.
Text value
The text value is an integer that identifies the minimum size of the message in bytes.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
MaximumSize
GetUserAvailabilityRequest
SuggestionsViewOptions
MinimumSuggestionQuality
XML
<MinimumSuggestionQuality>...</MinimumSuggestionQuality>
SuggestionQuality
Attributes
None.
Child elements
None.
Parent elements
Element Description
SuggestionsViewOptions
Contains the options for obtaining meeting suggestion information.
The following is the XPath to this element:
/GetUserAvailabilityRequest/SuggestionViewOptions
Text value
A text value is required. The following table lists the possible values for this element:
Value Description
Excellent
0% of the attendees have a conflict with the suggested meeting time.
Good
The percentage that is considered good is set by using the GoodThreshold element.
Fair
The percentage that is considered fair is set by using the GoodThreshold element.
Poor
50% or more of the attendees have a conflict with the suggested meeting time.
Remarks
This element is required if the SuggestionsViewOptions element is used.
7 Note
The schema that describes this element is located in the EWS virtual directory of
the computer that is running MicrosoftExchange Server 2007 that has the Client
Access server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
The MobilePhones element specifies an array of mobile phone numbers and the
identifiers of their source attributions for the associated persona.
XML
<MobilePhones>
<PhoneNumberAttributedValue/>
</MobilePhones>
ArrayOfPhoneNumberAttributedValuesType
Attributes
None.
Child elements
PhoneNumberAttributedValue
Parent elements
Persona
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
MobilePhones2
Article • 03/29/2023 • 2 minutes to read
XML
<MobilePhones2>
<PhoneNumberAttributedValue/>
</MobilePhones2>
ArrayOfPhoneNumberAttributedValuesType
Attributes
None.
Child elements
PhoneNumberAttributedValue
Parent elements
Persona
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
ModifiedEvent
Article • 03/29/2023 • 2 minutes to read
XML
<ModifiedEvent>
<Watermark/>
<TimeStamp/>
<FolderId/>
<ParentFolderId/>
<UnreadCount/>
</ModifiedEvent>
XML
<ModifiedEvent>
<Watermark/>
<TimeStamp/>
<ItemId/>
<ParentFolderId/>
<UnreadCount/>
</ModifiedEvent>
ModifiedEventType
Attributes
None.
Child elements
Element Description
Watermark
Represents an event bookmark in the mailbox events table.
TimeStamp
Represents the timestamp of a modified item or folder mailbox event.
FolderId
Represents the identifier of the modified folder.
Element Description
ItemId
Represents the identifier of the modified item.
ParentFolderId Represents the identifier of the parent folder of the modified item or folder.
UnreadCount
Represents the count of unread items within a given folder.
Parent elements
Element Description
Notification Contains information about the subscription and the events that have occurred
since the last notification.
Remarks
Two modified events are generated for each modification of an item in a folder. One
event is relevant to the item that changed. The other event is relevant to the parent
folder of the item. This is the same folder that the subscription was created against. The
event that is associated with the folder is used to communicate a potential change to
the UnreadCount property on the folder.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Subscribe operation
GetEvents operation
Unsubscribe operation
ModifiedOccurrences
Article • 03/29/2023 • 2 minutes to read
XML
<ModifiedOccurrences>
<Occurrence/>
</ModifiedOccurrences>
NonEmptyArrayOfOccurrenceInfoType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
MeetingRequest
Represents a meeting request in the Exchange store.
Remarks
This element is valid if CalendarItemType has the RecurringMaster value.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Modify
Article • 03/29/2023 • 2 minutes to read
The Modify element indicates whether a client can modify a folder or item. This element
was introduced in Microsoft Exchange Server 2007 Service Pack 1 (SP1).
XML
<Modify>true or false</Modify>
boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
EffectiveRights Contains the rights of the client based on the permission settings for the item or
folder. This element was introduced in Exchange 2007 SP1.
Text value
A text value of true indicates that a client can modify an item or folder.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
XML
boolean
Attributes
None.
Child elements
None.
Parent elements
RightsManagementLicenseData
Text value
A text value of true for the ModifyRecipientsAllowed element indicates that the item
recipient list is modifiable for an item with rights management enabled on it. A value of
false indicates that the recipient list is not modifiable.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Month
Article • 03/29/2023 • 2 minutes to read
The Month element represents the transition month of the year to and from standard time and daylight saving time.
XML
<Month>...</Month>
Short
Attributes
None.
Child elements
None.
Parent elements
Element Description
StandardTime Represents an offset from the time relative to Coordinated Universal Time (UTC) represented by the Bias (UTC) element.
This element also contains information about the transition to standard time from daylight saving time in regions where
daylight saving time is observed.
/GetUserAvailabilityResponse/FreeBusyResponseArray/FreeBusyResponse/FreeBusyView/WorkingHours/TimeZone/StandardTime
/GetUserAvailabilityRequest/TimeZone/StandardTime
DaylightTime
Represents an offset from the time relative to UTC represented by the Bias (UTC) element in regions where daylight saving
time is observed. This element also contains information about when the transition to daylight saving time from standard
time occurs.
/GetUserAvailabilityResponse/FreeBusyResponseArray/FreeBusyResponse/FreeBusyView/WorkingHours/TimeZone/DaylightTime
/GetUserAvailabilityRequest/TimeZone/DaylightTime
Text value
A text value is required. The value represents the ordinal rank of the month by occurrence and must be a number
between 1 and 12. This is a short integer data type.
Remarks
A StandardTime element that contains a DayOrder element that has a value of 5, a Month element that has a value of
10, and a DayOfWeek (TimeZone) element that has a value of Sunday means that the transition from standard time to
daylight saving time occurs on the fifth Sunday of the tenth month.
Element information
Item Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
Getting User Availability
Month (Time Zone Transition)
Article • 03/29/2023 • 2 minutes to read
The Month element represents the month in which the time zone transition occurs.
XML
<Month/>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
RecurringDateTransition Represents a time zone transition that occurs on a specific date each
year.
RecurringDayTransition
Represents a time zone transition that occurs on the same day each
year.
Text value
The text value is an integer that represents the month in which the time zone transition
occurs.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server that has the Client Access server
role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Month (Item Recurrence)
Article • 03/29/2023 • 2 minutes to read
The Month element describes the month when a yearly recurring item occurs.
XML
<Month/>
MonthNamesType
Attributes
None.
Child elements
None.
Parent elements
Element Description
AbsoluteYearlyRecurrence
Represents a yearly recurrence pattern.
RelativeYearlyRecurrence
Describes a relative yearly recurrence pattern.
Text value
A text value is required. The following are the possible text values for this element:
January
February
March
April
May
June
July
August
September
October
November
December
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
MonthlyRegeneration
Article • 03/29/2023 • 2 minutes to read
XML
<MonthlyRegeneration>
<Interval/>
</MonthlyRegeneration>
MonthlyRegeneratingPatternType
Attributes
None.
Child elements
Element Description
Interval
Defines the interval, in months, between two consecutive recurring items.
Parent elements
Element Description
Recurrence (TaskRecurrenceType)
Contains recurrence information for recurring tasks.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
MoreEvents
Article • 03/29/2023 • 2 minutes to read
The MoreEvents element indicates whether there are more events in the queue to be
delivered to the client.
XML
<MoreEvents/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Notification Contains information about the subscription and the events that have occurred
since the last notification.
Text value
The text value represents a Boolean value. A value of true indicates that more events are
in the queue. A value of false indicates that no more events are in the queue. This
property is read-only.
Remarks
In the case of Pull notifications, a true value in this element indicates to the client that
another GetEvents request should be issued to get the remaining events. Assuming that
the client specifications require minimum latency for event notifications, GetEvents
requests should continue in a continuous succession until a false MoreEvents value is
returned.
In the case of Push notifications, a true value for MoreEvents indicates to the client that
another notification request will be sent to the client to deliver the remaining events.
Similar to Pull notifications, these follow-up requests will continue in continuous
succession until the event queue on the Client Access server is empty.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Subscribe operation
GetEvents operation
Unsubscribe operation
MovedEvent
Article • 03/29/2023 • 2 minutes to read
The MovedEvent element represents an event in which an item or folder is moved from
one parent folder to another parent folder.
XML
<MovedEvent>
<Watermark/>
<TimeStamp/>
<ItemId/>
<ParentFolderId/>
<OldItemId/>
<OldParentFolderId/>
</MovedEvent>
XML
<MovedEvent>
<Watermark/>
<TimeStamp/>
<FolderId/>
<ParentFolderId/>
<OldFolderId/>
<OldParentFolderId/>
</MovedEvent>
MovedCopiedEventType
Attributes
None.
Child elements
Element Description
Watermark
Represents an events bookmark in the mailbox events table.
Element Description
TimeStamp
Represents the timestamp of a move item/folder mailbox event.
FolderId
Represents the identifier of the moved folder.
ItemId
Represents the identifier of the moved item.
ParentFolderId Represents the identifier of the folder that contains the moved item or folder.
OldFolderId
Contains the folder identifier of the original folder before it was moved or
copied.
OldItemId
Contains the unique identifier of the original item before it was moved.
OldParentFolderId Contains the identifier of the original parent folder of an item or folder that
was moved.
Parent elements
Element Description
Notification Contains information about the subscription and the events that have occurred
since the last notification.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Subscribe operation
GetEvents operation
Unsubscribe operation
MovedItemId
Article • 03/29/2023 • 2 minutes to read
The MovedItemId element specifies the identifier of the item that was moved by the
MarkAsJunk operation.
XML
ItemIdType
Attributes
Attribute Description
Id The value of the Id attribute is the item identifier of the item that is moved by the
MarkAsJunk operation. The item identifier will remain the same after the move.
ChangeKey The value of the ChangeKey attribute is the change key of the moved item. The
change key changes after the item is moved by the MarkAsJunk operation.
Child elements
None.
Parent elements
MarkAsJunkResponseMessage
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
MoveFolder
Article • 03/29/2023 • 2 minutes to read
The MoveFolder element defines a request to move a folder in the Exchange store.
XML
<MoveFolder>
<ToFolderId/>
<FolderIds/>
</MoveFolder>
MoveFolderType
Attributes
None.
Child elements
Element Description
FolderIds
Contains an array of folders to move to the folder identified by the ToFolderId
element.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
MoveFolder operation
MoveFolderResponse
Article • 03/29/2023 • 2 minutes to read
XML
<MoveFolderResponse>
<ResponseMessages/>
</MoveFolderResponse>
MoveFolderResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
MoveFolderResponse
ResponseMessages
MoveFolderResponseMessage
XML
<MoveFolderResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<Folders/>
</MoveFolderResponseMessage>
FolderInfoResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of a MoveFolder operation response.
- Success
- Warning
- Error
ResponseClass Attribute
Value Description
Value Description
Success
Describes a request that is fulfilled.
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
A text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and is reserved for future use. It contains a value of 0.
MessageXml
Provides additional error response information.
Folders
Contains an array of moved folders.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
MoveFolder
MoveFolder operation
MoveItem
Article • 03/29/2023 • 2 minutes to read
The MoveItem element defines a request to move an item in the Exchange store.
XML
<MoveItem>
<ToFolderId/>
<ItemIds/>
<ReturnNewItemIds/>
</MoveItem>
MoveItemType
Attributes
None.
Child elements
Element Description
ToFolderId
Represents the destination folder for a moved item.
ItemIds
Contains an array of identified items to move to the folder represented by
the ToFolderId element.
ReturnNewItemIds Indicates whether the item identifiers of new items are returned in the
response.
Parent elements
None.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
MoveItem operation
XML
<MoveItemResponse>
<ResponseMessages/>
</MoveItemResponse>
MoveItemResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<MoveItemResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<Items/>
</MoveItemResponseMessage>
ItemInfoResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of a MoveItem operation response.
- Success
- Warning
- Error
ResponseClass Attribute
Value Description
Success
Describes a request that is fulfilled.
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
A text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and is reserved for future use. It contains a value of 0.
MessageXml
Provides additional error response information.
Items
Contains an array of moved items.
Parent elements
Element Description
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Exchange Server with the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
MoveItem operation
MoveItem
MoveToFolder
Article • 03/29/2023 • 2 minutes to read
The MoveToFolder element specifies the identifier of the folder to which email items
can be moved.
XML
<MoveToFolder>
<FolderId></FolderId>
<DistinguishedFolderId></DistinguisedFolderId>
</MoveToFolder>
TargetFolderIdType
Attributes
None.
Child elements
Element Description
FolderId
Contains the identifier of a destination folder for a copied or moved item
or folder.
Parent elements
Element Description
Actions
Represents the set of actions that are available to be taken on a message when the
conditions are fulfilled..
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
CopyToFolder
XML
<MSExchangeCertificate/>
ArrayOfBinaryType
Attributes
None.
Child elements
Base64Binary
Contains a Base64-encoded value.
Parent elements
Contact
Represents a contact item in the Exchange store.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
This element was introduced in Exchange Server 2010 Service Pack 2 (SP2).
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
XML
<MustDisplayComment/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
ManagedFolderInformation
Contains information about a managed folder.
Text value
The text value represents a Boolean value. A value of true indicates that the comment
must be displayed; a value of false indicates that the comment does not have to be
displayed.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
CreateManagedFolder operation
XML
<MyResponseType/>
ResponseTypeType
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
MeetingRequest
Represents a meeting request in the Exchange store.
Text value
A text value is required. The following are the possible text values for this element:
Unknown
Organizer
Tentative
Accept
Decline
NoResponseReceived
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Name (AttachmentType)
Article • 03/29/2023 • 2 minutes to read
XML
<Name/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
FileAttachment
Represents a file that is attached to an item in the Exchange store.
ItemAttachment
Represents an Exchange item that is attached to another Exchange item.
Text value
The text value is a string value that represents the name of the attachment.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Name (EmailAddressType)
Article • 03/29/2023 • 2 minutes to read
XML
<Name/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Mailbox
Identifies a fully resolved e-mail address.
RoomList
Identifies a list of meeting rooms.
Text value
A text value that represents a string is required if this element is used.
Remarks
This element is optional. The Name element exists in the AttachmentType,
EmailAddressType, and EmailAddress types. The Name element in the EmailAddress
type is described in the Name (EmailAddress) element topic.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Name (EmailAddress)
Article • 03/29/2023 • 2 minutes to read
The Name element represents the display name of the mailbox user.
XML
<Name/>
String
Attributes
None.
Child elements
None.
Parent elements
Element Description
/GetUserAvailabilityRequest/MailboxDataArray/MailboxData[i]/Email
Mailbox (Availability)
Represents the mailbox user for a SetUserOofSettings or
GetUserOofSettings request.
/GetUserOofSettingsRequest/Mailbox
/SetUserOofSettingsRequest/Mailbox
Text value
A text value is required if this element is used.
Remarks
This element can occur at most one time in the Email (EmailAddressType) element. This
element is not required.
7 Note
The schema that describes this element is located in the EWS virtual directory of
the computer that is running MicrosoftExchange Server 2007 that has the Client
Access server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityRequest
Getting User Availability
Name (ExtendedAttributeType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Name (Message Tracking)
Article • 03/29/2023 • 2 minutes to read
The Name element represents the property name for a message tracking report.
XML
<Name/>
String
Attributes
None.
Child elements
None.
Parent elements
Element Description
TrackingPropertyType Represents a name and value pair of strings that is used to create
properties for message tracking reports.
Text value
A text value is required if this element is used.
Remarks
This element can occur at most one time in the TrackingPropertyType element.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Name (string)
Article • 03/29/2023 • 2 minutes to read
XML
<Name></Name>
string
Attributes
None.
Child elements
None.
Parent elements
Refiner
Text value
The text value of the Name element is the name of the search refiner.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
NetShowUrl
Article • 03/29/2023 • 2 minutes to read
The NetShowUrl element specifies the URL for a Microsoft NetShow online meeting.
XML
<NetShowUrl/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
MeetingRequest
Represents a meeting in the Exchange store.
CalendarItem
Represents an Exchange calendar item.
Text value
A text value that represents a URL is required if this element is used.
Remarks
This NetShowUrl property is read-writable for the organizer's calendar item. It is read-
only for meeting requests and for attendees.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
NewBodyContent
Article • 03/29/2023 • 2 minutes to read
XML
<NewBodyContent BodyType=""/>
BodyType
Attributes
Attribute Description
BodyType
Represents the actual body content of a message.
BodyType Attribute
Value Description
HTML
Converts all bodies to HTML.
Text
Converts all bodies to plain text.
Child elements
None.
Parent elements
Element Description
ReplyToItem
Contains a reply to the sender of an item in the Exchange store.
Element Description
ReplyAllToItem
Contains a reply to the sender and all identified recipients of an item in the
Exchange store.
ForwardItem
Contains an Exchange store item to forward to recipients.
PostReplyItem
Contains a reply to a post item. This element was introduced in Microsoft
Exchange Server 2007 Service Pack 1 (SP1).
Text value
The text value represents the new body content of a message.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
Exchange server that has the Client Access server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
NewDisplayName
Article • 03/29/2023 • 2 minutes to read
XML
<NewDisplayName></NewDisplayName>
NonEmptyStringType
Attributes
None.
Child elements
None.
Parent elements
SetImGroup
Text value
The text value of the NewDisplayName element is the updated display name of an
instant messaging group.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
NewMailEvent
Article • 03/29/2023 • 2 minutes to read
The NewMailEvent element represents an event that is triggered by a new mail item in a
mailbox.
XML
<NewMailEvent>
<Watermark/>
<TimeStamp/>
<ItemId/>
<ParentFolderId/>
</NewMailEvent>
BaseObjectChangedEventType
Attributes
None.
Child elements
Element Description
Watermark
Represents an event bookmark in the mailbox events table.
TimeStamp
Represents the timestamp of the arrival of a new mail item in a mailbox.
ItemId
Represents the identifier of a new mail item.
ParentFolderId Represents the identifier of the parent folder of the new mail item.
Parent elements
Element Description
Element Description
Notification Contains information about the subscription and the events that have occurred
since the last notification.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Subscribe operation
GetEvents operation
Unsubscribe operation
NewReminderTime
Article • 03/29/2023 • 2 minutes to read
XML
<NewReminderTime/>
string
Attributes
None.
Child elements
None.
Parent elements
ReminderItemAction
Text value
The text value of the NewReminderTime element is a new time for the reminder. The
NewReminderTime element is used when the ActionType element is set to Snooze, in
order to delay the reminder. The value of the NewReminderTime must be greater than
the ReminderTime returned by the GetReminders operation.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
ReminderItemAction
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
NextPredictedAction (ItemType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Nickname
Article • 03/29/2023 • 2 minutes to read
XML
<Nickname/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
CompleteName
Represents the complete name of a contact.
Contact
Represents an Exchange contact item.
Text value
The Nickname element takes a string value.
Remarks
This element is optional.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Creating Contacts (Exchange Web Services)
Nicknames
Article • 03/29/2023 • 2 minutes to read
The Nicknames element specifies an array of nickname values and the identifiers of their
source attributions for the associated persona.
XML
<Nicknames>
<StringAttributedValue/>
</Nicknames>
ArrayOfStringAttributedValuesType
Attributes
None.
Child elements
StringAttributedValue
Parent elements
Persona
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
NoEndRecurrence
Article • 03/29/2023 • 2 minutes to read
The NoEndRecurrence element describes the start date of an item recurrence pattern
that does not have a defined end date.
XML
<NoEndRecurrence>
<StartDate/>
</NoEndRecurrence>
NoEndRecurrenceRangeType
Attributes
None.
Child elements
Element Description
StartDate (Recurrence)
Represents the start date of a recurring task or calendar item.
Parent elements
Element Description
Recurrence (RecurrenceType)
Contains the recurrence pattern for calendar items and meeting
requests.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
NonIndexableItemDetail
Article • 03/29/2023 • 2 minutes to read
XML
<NonIndexableItemDetail>
<ItemId/>
<ErrorCode/>
<ErrorDescription/>
<IsPartiallyIndexed/>
<IsPermanentFailure/>
<SortValue/>
<AttemptCount/>
<LastAttemptTime/>
<AdditionalInfo/>
</NonIndexableItemDetail>
NonIndexableItemDetailType
Attributes
None.
Child elements
ItemId | ErrorCode (ItemIndexErrorType) | ErrorDescription | IsPartiallyIndexed |
IsPermanentFailure | SortValue | AttemptCount | LastAttemptTime | AdditionalInfo
Parent elements
Items (ArrayOfNonIndexableItemDetailsType)
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
NonIndexableItemDetailsResult
Article • 03/29/2023 • 2 minutes to read
XML
<NonIndexableItemDetailsResult>
<Items/>
<FailedMailboxes/>
</NonIndexableItemDetailsResult>
NonIndexableItemDetailResultType
Attributes
None.
Child elements
Items (ArrayOfNonIndexableItemDetailsType) , FailedMailboxes
Parent elements
GetNonIndexableItemDetailsResponse , GetNonIndexableItemDetailsResponseMessage
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetNonIndexableItemDetails operation
The NonIndexableItemStatistic element contains a single statistic for an item that could
not be indexed
XML
<NonIndexableItemStatistic>
<Mailbox/>
<ItemCount/>
<ErrorMessage/>
</NonIndexableItemStatistic>
NonIndexableItemStatisticType
Attributes
None.
Child elements
Mailbox (string) | ItemCount | ErrorMessage
Parent elements
NonIndexableItemStatistics
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<NonIndexableItemStatistics>
<NonIndexableItemStatistic/>
</NonIndexableItemStatistics>
ArrayOfNonIndexableItemStatisticsType
Attributes
None.
Child elements
NonIndexableItemStatistic
Parent elements
GetNonIndexableItemStatisticsResponse ,
GetNonIndexableItemStatisticsResponseMessage
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetNonIndexableItemStatistics operation
XML
BodyType
Attributes
Attribute Description
BodyType Indicates the body type. The value of Text for the BodyType attribute indicates that
the body is in plain text form. The value of HTML for the BodyType attribute
indicates that the body is in HTML form. The BodyType attribute is required.
IsTruncated Indicates that the body contents have been truncated. A text value of false for the
IsTruncated attribute indicates that the body contents have not been truncated. The
normalized body will be truncated if the normalized body length is longer than the
value set in the MaximumBodySize element.
Child elements
None.
Parent elements
Item | Message | MeetingMessage | MeetingRequest | MeetingResponse |
MeetingCancellation | Task | PostItem | CalendarItem | Contact | DistributionList
Text value
The text value of the NormalizedBody element is the normalized body of the item.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
NormalizedBodyType
Article • 03/29/2023 • 2 minutes to read
XML
BodyTypeResponseType
Attributes
None.
Child elements
None.
Parent elements
ItemShape
Text value
The text value of the NormalizedBodyType element indicates format the normalized
body is returned in. The following table lists the possible values for this element.
Value Description
Best The response will return the richest available content of body text. This is useful if it is
unknown whether the content is text or HTML.
The returned body will be text if the stored body is plain text. Otherwise, the response
will return HTML if the stored body is in either HTML or RTF format.
This is the default value.
Value Description
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
ItemShape
The Not element represents a search expression that negates the Boolean value of the
search expression that it contains.
XML
<Not>
<SearchExpression/>
</Not>
NotType
Attributes
None.
Child elements
Element Description
- Exists
- Excludes
- IsEqualTo
- IsNotEqualTo
- IsGreaterThan
- IsGreaterThanOrEqualTo
- IsLessThan
- IsLessThanOrEqualTo
- Contains
- Not
- And
- Or
Parent elements
Element Description
Restriction Represents the restriction or query that is used to filter items or folders in
FindItem/FindFolder and search folder operations.
Not
Represents a search expression that negates the Boolean value of the search
expression that it contains.
And
Represents a search expression that allows you to perform a Boolean AND operation
between two or more search expressions. The result of the AND operation is true if
all the search expressions contained within the And element are true.
Or
Represents a search expression that performs a logical OR operation on the search
expression that it contains. Or will return true if any of its children return true. Or
must have two or more children.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Notes (Contact)
Article • 03/29/2023 • 2 minutes to read
XML
<Notes/>
string
Attributes
None.
Child elements
None.
Parent elements
Contact
Represents a contact item in the Exchange store.
Text value
The text value is a string that represents supplementary contact information.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
This element was introduced in Exchange Server 2010 Service Pack 2 (SP2).
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
XML
<NotesFolderPermissionLevel>
</NotesFolderPermissionLevel>
DelegateFolderPermissionLevelType
Attributes
None.
Child elements
None.
Parent elements
Element Description
DelegatePermissions Contains the delegate permission level settings for a user. This element
was introduced in Exchange 2007 SP1.
Text value
The following table lists the text values that represent the permission levels.
None The delegate user has no access permissions to the Notes folder.
Reviewer The delegate user can read items in the Notes folder.
Author The delegate user can read and create items in the Notes folder.
Editor The delegate user can read, create, and modify items in the Notes folder.
Custom The delegate user has custom access permissions to the Notes folder.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
AddDelegate operation
UpdateDelegate operation
Adding Delegates
Notification
Article • 03/29/2023 • 2 minutes to read
The Notification element contains information about the subscription and the events
that have occurred since the last notification.
XML
<Notification>
<SubscriptionId/>
<PreviousWatermark/>
<MoreEvents/>
<CopiedEvent/>
</Notification>
XML
<Notification>
<SubscriptionId/>
<PreviousWatermark/>
<MoreEvents/>
<CreatedEvent/>
</Notification>
XML
<Notification>
<SubscriptionId/>
<PreviousWatermark/>
<MoreEvents/>
<DeletedEvent/>
</Notification>
XML
<Notification>
<SubscriptionId/>
<PreviousWatermark/>
<MoreEvents/>
<ModifiedEvent/>
</Notification>
XML
<Notification>
<SubscriptionId/>
<PreviousWatermark/>
<MoreEvents/>
<MovedEvent/>
</Notification>
XML
<Notification>
<SubscriptionId/>
<PreviousWatermark/>
<MoreEvents/>
<NewMailEvent/>
</Notification>
XML
<Notification>
<SubscriptionId/>
<PreviousWatermark/>
<MoreEvents/>
<StatusEvent/>
</Notification>
XML
<Notification>
<SubscriptionId/>
<PreviousWatermark/>
<MoreEvents/>
<FreeBusyChangedEvent/>
</Notification>
NotificationType
Attributes
None.
Child elements
Element Description
PreviousWatermark
Represents the watermark of the latest event that was successfully
communicated to the client for the subscription.
MoreEvents
Indicates whether there are more events in the queue to be delivered to
the client.
CopiedEvent
Represents an event in which an item or folder is copied.
CreatedEvent
Represents an event in which an item or folder is created.
DeletedEvent
Represents an event in which an item or folder is deleted.
ModifiedEvent
Represents an event in which an item or folder is modified.
MovedEvent
Represents an event in which an item or folder is moved from one
parent folder to another parent folder.
NewMailEvent
Represents an event that is triggered by a new mail item in a mailbox.
StatusEvent
Represents a notification that no new activity has occurred in the
mailbox.
Parent elements
Element Description
GetEventsResponseMessage
Contains the status and result of a single GetEvents request.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Subscribe operation
GetEvents operation
GetStreamingEvents operation
Unsubscribe operation
Notifications
Article • 03/29/2023 • 2 minutes to read
The Notifications element contains an array of information about the subscription and
the events that have occurred since the last notification.
XML
<Notifications>
<Notification/>
</Notifications>
NonEmptyArrayOfNotificationsType
Attributes
None.
Child elements
Element Description
Notification Contains information about the subscription and the events that have occurred
since the last notification.
Parent elements
Element Description
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Name Value
Can be False
Empty
See also
GetFolder operation
DeleteFolder operation
MoveFolder operation
CopyFolder operation
Subscribe operation
NotSentToMe
Article • 03/29/2023 • 2 minutes to read
The NotSentToMe element indicates whether the owner of the mailbox must not be in
the ToRecipients property of the incoming messages in order for the condition or
exception to apply.
XML
<NotSentToMe>true | false</NotSentToMe>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Conditions Represents the conditions that, when fulfilled, will trigger the rule actions for a rule.
Exceptions Represents the exceptions that represent all the available rule exception conditions
for an Inbox rule.
Text value
A text value of true indicates that the owner of the mailbox must not be in the
ToRecipients property of the incoming messages in order for the condition or exception
to apply. A value of false indicates that the owner of the mailbox must be in the
ToRecipients property of the incoming message in order for the condition or exception
to apply.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
Number
Article • 03/29/2023 • 2 minutes to read
XML
<Number></Number>
string
Attributes
None.
Child elements
None.
Parent elements
Value (PersonaPhoneNumberType) | PhoneNumber
Text value
The text value of the Number element is a phone number represented in string format.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
NumberedRecurrence
Article • 03/29/2023 • 2 minutes to read
The NumberedRecurrence element describes the start date and the number of
occurrences of a recurring item.
XML
<NumberedRecurrence>
<StartDate/>
<NumberOfOccurrences/>
</NumberedRecurrence>
NumberedRecurrenceRangeType
Attributes
None.
Child elements
Element Description
StartDate (Recurrence)
Represents the start date of a recurring task or calendar item.
NumberOfOccurrences
Contains the number of occurrences of a recurring item.
Parent elements
Element Description
Recurrence (RecurrenceType)
Contains the recurrence pattern for calendar items and meeting
requests.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
NumberOfMembers
Article • 03/29/2023 • 2 minutes to read
The NumberOfMembers element represents the number of users, resources, and rooms in a distribution list.
GetUserAvailabilityResponse
SuggestionsResponse
SuggestionDayResultArray
SuggestionDayResult
SuggestionArray
Suggestion
AttendeeConflictDataArray
GroupAttendeeConflictData
NumberOfMembers
XML
<NumberOfMembers>...</NumberOfMembers>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
GroupAttendeeConflictData Contains aggregate conflict information about the number of users available, the number of users who have conflicts, and the number o
distribution list for a suggested meeting time.
The following is the XPath expression to this element:
/GetUserAvailabilityResponse/SuggestionsResponse/SuggestionDayResultArray/SuggestionDayResult[i]/SuggestionArray/Suggestion[i]/A
Remarks
The maximum value of the NumberOfMembers element is 100.
The schema that describes this element is located in the EWS virtual directory of the computer that is running MicrosoftExchange Server
2007 that has the Client Access server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityResponse
The NumberOfMembersAvailable element represents the number of distribution list members who are available for a suggested meeting
time. This element represents members for whom the status is Free.
GetUserAvailabilityResponse
SuggestionsResponse
SuggestionDayResultArray
SuggestionDayResult
SuggestionArray
Suggestion
AttendeeConflictDataArray
GroupAttendeeConflictData
NumberOfMembersAvailable
XML
<NumberOfMembersAvailable>...</NumberOfMembersAvailable>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
GroupAttendeeConflictData Contains aggregate conflict information about the number of users who are available, the number of users who have conflicts, and the n
in a distribution list for a suggested meeting time.
The following is the XPath expression to this element:
/GetUserAvailabilityResponse/SuggestionsResponse/SuggestionDayResultArray/SuggestionDayResult[i]/SuggestionArray/Suggestion[i]/A
Remarks
The schema that describes this element is located in the EWS virtual directory of the computer that is running MicrosoftExchange Server
2007 that has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityResponse
The NumberOfMembersWithConflict element represents the number of distribution list members who have a conflict with a suggested
meeting time. This element represents members who have a status of Busy, OOF, or Tentative.
GetUserAvailabilityResponse
SuggestionsResponse
SuggestionDayResultArray
SuggestionDayResult
SuggestionArray
Suggestion
AttendeeConflictDataArray
GroupAttendeeConflictData
NumberOfMembersWithConflict
XML
<NumberOfMembersWithConflict>...</NumberOfMembersWithConflict>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
GroupAttendeeConflictData Contains aggregate conflict information about the number of users who are available, the number of users who have conflicts, and the n
in a distribution list for a suggested meeting time.
The following is the XPath expression to this element:
/GetUserAvailabilityResponse/SuggestionsResponse/SuggestionDayResultArray/SuggestionDayResult[i]/SuggestionArray/Suggestion[i]/A
Remarks
The schema that describes this element is located in the EWS virtual directory of the computer that is running MicrosoftExchange Server
2007 that has the Client Access server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityResponse
The NumberOfMembersWithNoData element represents the number of distribution list members who do not have published free/busy
data to compare to a suggested meeting time. This element represents members of a distribution list that is too large or members who
have No Data status.
GetUserAvailabilityResponse
SuggestionsResponse
SuggestionDayResultArray
SuggestionDayResult
SuggestionArray
Suggestion
AttendeeConflictDataArray
GroupAttendeeConflictData
NumberOfMembersWithNoData
XML
<NumberOfMembersWithNoData>...</NumberOfMembersWithNoData>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
GroupAttendeeConflictData Contains aggregate conflict information about the number of users who are available, the number of users who have conflicts, and the n
information in a distribution list for a suggested meeting time.
The following is the XPath expression to this element:
/GetUserAvailabilityResponse/SuggestionsResponse/SuggestionDayResultArray/SuggestionDayResult[i]/SuggestionArray/Suggestion[i]/A
Remarks
A contact in a group who does not have a mailbox is an example of a distribution list member who does not have calendar data. A contact
may also have No Data status for the following reasons:
The schema that describes this element is located in the EWS virtual directory of the computer that is running MicrosoftExchange Server
2007 that has the Client Access server role installed.
Element information
Item value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityResponse
Getting User Availability
NumberOfOccurrences
Article • 03/29/2023 • 2 minutes to read
XML
<NumberOfOccurrences/>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
NumberedRecurrence Describes the start date and the number of occurrences of a recurring
item.
Text value
The text value is an integer that represents the number of occurrences of a recurring
item. The value must be an integer in the range of 1 to 999.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Occurrence
Article • 03/29/2023 • 2 minutes to read
XML
<Occurrence>
<ItemId/>
<Start/>
<End/>
<OriginalStart/>
</Occurrence>
OccurrenceInfoType
Attributes
None.
Child elements
Element Description
ItemId
Contains the unique identifier and change key of a modified occurrence of a
recurring calendar item.
Start
Represents the start time of a modified occurrence of a recurring calendar item.
End Represents the end time of a modified occurrence of a recurring calendar item.
OriginalStart Represents the original start time of a modified occurrence of a recurring calendar
item.
Parent elements
Element Description
Element Description
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Occurrence (Time Zone Transition)
Article • 03/29/2023 • 2 minutes to read
The Occurrence element represents the occurrence of the day of the week in the month
that the time zone transition occurs.
XML
<Occurrence/>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
RecurringDayTransition Represents a time zone transition that occurs on the same day each
year.
Text value
The text value is an integer that represents the occurrence of the day of the week in the
month that the time zone transition occurs. The following table lists the possible values.
Value Description
1 The first occurrence of the specified day of the week from the beginning of the month.
Value Description
2 The second occurrence of the specified day of the week from the beginning of the month.
3 The third occurrence of the specified day of the week from the beginning of the month.
4 The fourth occurrence of the specified day of the week from the beginning of the month.
-1 The first occurrence of the specified day of the week from the end of the month.
-2 The second occurrence of the specified day of the week from the end of the month.
-3 The third occurrence of the specified day of the week from the end of the month.
-4 The fourth occurrence of the specified day of the week from the end of the month.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server that has the Client Access server
role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
OccurrenceDate
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
OccurrenceItemId
Article • 03/29/2023 • 2 minutes to read
XML
OccurrenceItemIdType
Attributes
Attribute Description
RecurringMasterId Identifies the recurring master of a recurring item. This attribute is required.
ChangeKey
Identifies a specific version of the recurring master or an item occurrence. If
either the recurring master or any of its occurrences change, the ChangeKey
changes. The ChangeKey is the same for the recurring master and all
occurrences.
InstanceIndex
Identifies the index of the item occurrence. This attribute is required. This
value represents an integer.
Child elements
None.
Parent elements
Element Description
GlobalItemIds Contains the collection of item identifiers for all conversation items in a mailbox.
Element Description
ItemIds
Contains the unique identities of items, occurrence items, and recurring master
items that are used to delete, send, get, move, or copy items in the Exchange
store.
/DeleteItem/ItemIds
/SendItem/ItemIds
/GetItem/ItemIds
NOTE: MoveItem operation and CopyItem operation only work with single
calendar items and recurring master items. Item occurrences are invalid with
these operations.
ItemChange
Contains an item identifier and the updates to apply to the item.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Example
The following example identifies the fourth occurrence of a recurring item that has the
identity 34vswe4.
XML
Element information
Name Value
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
RecurringMasterItemId
FindConversation operation
EWS XML elements in Exchange
OfficeLocation
Article • 03/29/2023 • 2 minutes to read
XML
<OfficeLocation/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Contact
Represents an Exchange contact item.
Text value
A text value is required if this element is used.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Updating Contacts
Deleting Contacts
OfficeLocations
Article • 03/29/2023 • 2 minutes to read
The OfficeLocations element specifies an array of office locations and the identifiers of
their source attributions for the associated persona.
XML
<OfficeLocations>
<StringAttributedValue/>
<OfficeLocations>
ArrayOfStringAttributedValuesType
Attributes
None.
Child elements
StringAttributedValue
Parent elements
Persona
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Offset
Article • 03/29/2023 • 2 minutes to read
The Offset element describes the offset from the BaseOffset. Together with the
BaseOffset element, the Offset element identifies whether the time is standard or
daylight saving time.
XML
<Offset/>
duration
Attributes
None.
Child elements
None.
Parent elements
Element Description
Daylight
Represents the date and time when the time changes from daylight saving time to
standard time.
Standard Represents the date and time when the time changes from daylight saving time to
standard time.
Text value
The text value represents the offset from Coordinated Universal Time (UTC).
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
OldFolderId
Article • 03/29/2023 • 2 minutes to read
The OldFolderId element contains the original identifier of a folder that was moved or
copied.
XML
FolderIdType
Attributes
Attribute Description
Id
Contains a string that identifies a folder in the Exchange store. This attribute is
required.
ChangeKey Contains a string that identifies a version of a folder that is identified by the Id
attribute. This attribute is optional. Use this attribute to make sure that the correct
version of a folder is used.
Child elements
None.
Parent elements
Element Description
MovedEvent Represents an event in which an item or folder is moved from one parent folder to
another parent folder.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Subscribe operation
GetEvents operation
Unsubscribe operation
The OldItemId element contains the unique identifier of the item that was copied or
moved.
XML
ItemIdType
Attributes
Attribute Description
Id
Contains a string that identifies an item in the Exchange store. This attribute is
required.
ChangeKey Contains a string that identifies a version of an item that is identified by the Id
attribute. This attribute is optional. Use this attribute to make sure that the correct
version of an item is used.
Child elements
None.
Parent elements
Element Description
MovedEvent Represents an event in which an item or folder is moved from one parent folder to
another parent folder.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Subscribe operation
GetEvents operation
Unsubscribe operation
The OldParentFolderId element contains the identifier of the parent folder of an item or
folder that was copied or moved.
XML
FolderIdType
Attributes
Attribute Description
Id
Contains a string that identifies a folder in the Exchange store. This attribute is
required.
ChangeKey Contains a string that identifies a version of a folder that is identified by the Id
attribute. This attribute is optional. Use this attribute to make sure that the correct
version of a folder is used.
Child elements
None.
Parent elements
Element Description
MovedEvent Represents an event in which an item or folder is moved from one parent folder to
another parent folder.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Subscribe operation
GetEvents operation
Unsubscribe operation
XML
<OnlineMeetingSettings>
<LobbyBypass/>
<AccessLevel/>
<Presenters/>
</OnlineMeetingSettings>
OnlineMeetingSettingsType
Attributes
None.
Child elements
LobbyBypass | AccessLevel | Presenters
Parent elements
CalendarItem
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
OofSettings
Article • 03/29/2023 • 2 minutes to read
GetUserOofSettingsResponse
OofSettings
XML
<OofSettings>
<OofState>...</OofState>
<ExternalAudience>...</ExternalAudience>
<Duration>...</Duration>
<InternalReply>...</InternalReply>
<ExternalReply>...</ExternalReply>
</OofSettings>
UserOofSettings
Attributes
None.
Child elements
Element Description
OofState
Contains the user's OOF state.
ExternalAudience Contains a value that determines to whom external OOF messages are sent.
Duration Contains the duration for which the OOF status is enabled if the OofState
(UserOofSettings) element is set to Scheduled. If the OofState element is set to Enabled or
Disabled, the value of this element is ignored.
InternalReply
Contains the OOF response sent to other users in the user's domain or
trusted domain.
Element Description
ExternalReply
Contains the OOF response sent to addresses outside the recipient's domain
or trusted domains.
Parent elements
Element Description
GetUserOofSettingsResponse
Contains the response results and the OOF settings for a user.
The following is the XPath expression to this element:
/GetUserOofSettingsResponse
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetUserOofSettings operation
SetUserOofSettings operation
OofState
Article • 03/29/2023 • 2 minutes to read
The OofState element is used to get or set the user's Out of Office (OOF) state.
XML
OofState
Attributes
None.
Child elements
None.
Parent elements
Element Description
UserOofSettings
Specifies the OOF settings.
The following is the XPath expression to this element:
/SetUserOofSettingsRequest/UserOofSettings
OofSettings
Contains the OOF settings.
The following is the XPath expression to this element:
/GetUserOofSettingsResponse/OofSettings
Text value
A text value is required for the OofState element. The following list contains the possible
values for this element:
Disabled
Enabled
Scheduled
A value of Scheduled indicates that the OOF status is set to Enabled during a time
period identified by the Duration (UserOofSettings) element.
Remarks
This element is required in both the SetUsersOofSettingRequest message and the
GetUserOofSettingResponse message.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Example
The following example of a SetUserOofSettings request enables the OofState.
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<SetUserOofSettingsRequest
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<Mailbox
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Name>David Alexander</Name>
<Address>[email protected]</Address>
<RoutingType>SMTP</RoutingType>
</Mailbox>
<UserOofSettings
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<OofState>Enabled</OofState>
<ExternalAudience>All</ExternalAudience>
<Duration>
<StartTime>2005-10-05T00:00:00</StartTime>
<EndTime>2005-10-25T00:00:00</EndTime>
</Duration>
<InternalReply>
</InternalReply>
<ExternalReply>
</ExternalReply>
</UserOofSettings>
</SetUserOofSettingsRequest>
</soap:Body>
</soap:Envelope>
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserOofSettings operation
SetUserOofSettings operation
OpenAsAdminOrSystemService
Article • 03/29/2023 • 2 minutes to read
The OpenAsAdminOrSystemService element is for internal use only. This element is not
used by clients.
XML
<OpenAsAdminOrSystemService LogonType="">
<ConnectingSID/>
</OpenAsAdminOrSystemService>
OpenAsAdminOrSystemServiceType
Attributes
Attribute Description
Child elements
Element Description
Parent elements
None.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Operations
Article • 03/29/2023 • 2 minutes to read
The Operations element contains an array of rule operations that can be performed on
an Inbox.
UpdateInboxRules
XML
<Operations>
<CreateRuleOperation/>
<SetRuleOperation/>
<DeleteRuleOperation/>
</Operations>
ArrayOfRuleOperationsType
Attributes
None.
Child elements
Element Description
CreateRuleOperation
Represents an operation to create a new Inbox rule.
SetRuleOperation
Represents an operation to update an Inbox rule.
DeleteRuleOperation
Represents an operation to delete an Inbox rule.
Parent elements
Element Description
UpdateInboxRules
Defines a request to update the Inbox rules in a mailbox in the server store.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
UpdateInboxRules operation
The OperationIndex element specifies the index of the operation in the request that
caused the rule operation error.
XML
<OperationIndex/>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
RuleOperationError
Represents a rule operation error.
Text value
None
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
OptedInto
Article • 03/29/2023 • 2 minutes to read
The OptedInto element specifies a Boolean value that indicates whether the user opted
in to the retention policy.
XML
<OptedInto>true | false</OptedInto>
Boolean
Attributes
None.
Child elements
None.
Parent elements
RetentionPolicyTag
Text value
A text value of true for the OptedInto element indicates that the user opted in to the
retention policy. A value of false indicates that the user did not opt into the retention
policy.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
OptionalAttendees
Article • 03/29/2023 • 2 minutes to read
The OptionalAttendees element represents attendees who are not required to attend a
meeting.
XML
<OptionalAttendees>
<Attendee/>
</OptionalAttendees>
NonEmptyArrayOfAttendeesType
Attributes
None.
Child elements
Element Description
Attendee
Represents attendees and resources for a meeting.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
MeetingRequest
Represents a meeting request in the Exchange store.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Or
Article • 03/29/2023 • 2 minutes to read
The Or element represents a search expression that performs a logical OR on the search
expression that it contains. Or will return true if any of its children return true. Or must
have two or more children.
XML
<Or>
<SearchExpression/>
<SearchExpression/>
</Or>
OrType
Attributes
None.
Child elements
Element Description
Element Description
- Exists
- Excludes
- IsEqualTo
- IsNotEqualTo
- IsGreaterThan
- IsGreaterThanOrEqualTo
- IsLessThan
- IsLessThanOrEqualTo
- Contains
- Not
- And
- Or
Parent elements
Element Description
Restriction Represents the restriction or query that is used to filter items or folders in
FindItem/FindFolder and search folder operations.
Not
Represents a search expression that negates the Boolean value of the search
expression that it contains.
And
Represents a search expression that allows you to perform a Boolean AND operation
between two or more search expressions. The result of the AND operation is true if
all the search expressions contained within the And element are true.
Or
Represents a search expression that performs a logical OR operation on the search
expression that it contains. Or will return true if any of its children return true. Or
must have two or more children.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
OrganizationMainPhones
Article • 03/29/2023 • 2 minutes to read
XML
<OrganizationMainPhones>
<PhoneNumberAttributedValue/>
</OrganizationMainPhones>
ArrayOfPhoneNumberAttributedValuesType
Attributes
None.
Child elements
PhoneNumberAttributedValue
Parent elements
Persona
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Organizer
Article • 03/29/2023 • 2 minutes to read
XML
<Organizer>
<Mailbox/>
</Organizer>
SingleRecipientType
Attributes
None.
Child elements
Element Description
Mailbox
Identifies a mail-enabled Active Directory directory service object.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
MeetingRequest
Represents a meeting request in the Exchange store.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
OrganizerLocation
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
OriginalDisplayName
Article • 03/29/2023 • 2 minutes to read
The OriginalDisplayName element contains the original display name associated with
an email address.
XML
<OriginalDisplayName></OriginalDisplayName>
string
Attributes
None.
Child elements
None.
Parent elements
SendingAs | Mailbox | EmailAddress (EmailAddressType) | RoomList | ActingAs | Sender
(EmailAddressType) | PurportedSender | Recipient | FederatedDeliveryMailbox |
RecipientFilter | Address (EmailAddressType) | Id (EmailAddressType) | Value
(EmailAddressType)
Text value
The text value of the OriginalDisplayName element is the original display name
associated with an email address.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
OriginalPhoneString
Article • 03/29/2023 • 2 minutes to read
The OriginalPhoneString element specifies the original phone number for a contact or
persona.
XML
<OriginalPhoneString></OriginalPhoneString>
string
Attributes
None.
Child elements
None.
Parent elements
Phone | Phone (PhoneEntityType)
Text value
The text value of the OriginalPhoneString element is the original phone number for a
contact or persona.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
OriginalRecipients
Article • 03/29/2023 • 2 minutes to read
The OriginalRecipients element represents a list of e-mail addresses of the first message
recipients.
XML
<OriginalRecipients>
<Address/>
</OriginalRecipients>
ArrayOfEmailAddressesType
Attributes
None.
Child elements
Element Description
Address (EmailAddressType)
Contains a fully resolved e-mail address.
Parent elements
Element Description
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetMessageTrackingReport operation
The OriginalStart element represents the original start time of a calendar item.
XML
<OriginalStart/>
DateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents a calendar item in the Exchange store.
FirstOccurrence
Represents the first occurrence of a recurring calendar item.
LastOccurrence
Represents the last occurrence of a recurring calendar item.
MeetingRequest
Represents a meeting request in the Exchange store.
Text value
A text value that represents a date and time is required if this element is used.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
OtherAddresses
Article • 03/29/2023 • 2 minutes to read
The OtherAddresses element specifies an array of address values and the identifiers of
their source attributions for the associated persona.
XML
<OtherAddresses>
<PostalAddressAttributedValue/>
</OtherAddresses>
ArrayOfPostalAddressAttributedValuesType
Attributes
None.
Child elements
PostalAddressAttributedValue
Parent elements
Persona
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
OtherFaxes
Article • 03/29/2023 • 2 minutes to read
The OtherFaxes element specifies an array of fax phone number values and the
identifiers of their source attributions for the associated persona.
XML
<OtherFaxes>
<PhoneNumberAttributedValue/>
</OtherFaxes>
ArrayOfPhoneNumberAttributedValuesType
Attributes
None.
Child elements
PhoneNumberAttributedValue
Parent elements
Persona
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
OtherPhones2
Article • 03/29/2023 • 2 minutes to read
The OtherPhones2 element specifies an array of phone values and the identifiers of
their source attributions for the associated persona.
XML
<OtherPhones2>
<PhoneNumberAttributedValue/>
</OtherPhones2>
ArrayOfPhoneNumberAttributedValuesType
Attributes
None.
Child elements
PhoneNumberAttributedValue
Parent elements
Persona
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
OtherTelephones
Article • 03/29/2023 • 2 minutes to read
The OtherTelephones element specifies an array of telephone values and the identifiers
of their source attributions for the associated persona.
XML
<OtherTelephones>
<PhoneNumberAttributedValue/>
</OtherTelephones>
ArrayOfPhoneNumberAttributedValuesType
Attributes
None.
Child elements
PhoneNumberAttributedValue
Parent elements
Persona
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
OutlookRuleBlobExists
Article • 03/29/2023 • 2 minutes to read
GetInboxRulesResponse
OutlookRuleBlobExists
XML
<OutlookRuleBlobExists>true | false</OutlookRuleBlobExists>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
GetInboxRulesResponse
Represents a response to a GetInboxRules operation request.
Text value
A text value of true indicates that an Outlook rule blob exists. A text value of false
indicates that an Outlook rule blob does not exist.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
OutOfOffice
Article • 03/29/2023 • 2 minutes to read
The OutOfOffice element represents the response message and a duration time for
sending the response message.
XML
<OutOfOffice>
<ReplyBody/>
<Duration/>
</OutOfOffice>
XML
<OutOfOffice>
<ReplyBody/>
</OutOfOffice>
OutOfOfficeMailTip
Attributes
None.
Child elements
Element Description
ReplyBody
Contains an Out of Office (OOF) message and the language used for the
message.
Duration Contains the duration that the OOF status is enabled if the OofState
(UserOofSettings)
element is set to Scheduled.
Parent elements
Element Description
MailTips
Represents values for various types of mail tips.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
OwaLink
Article • 03/29/2023 • 2 minutes to read
The OwaLink element specifies the link to preview an item in Microsoft Outlook Web
App.
XML
<OwaLink></OwaLink>
string
Attributes
None.
Child elements
None.
Parent elements
SearchPreviewItem
Text value
The text value of the OwaLink element is the URL to view the item in Outlook Web App.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Owner
Article • 03/29/2023 • 2 minutes to read
XML
<Owner/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Task
Represents a task in the Exchange store.
Remarks
This is a read-only property.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Creating Tasks
Deleting Tasks
Owners
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
PageDirection
Article • 03/29/2023 • 2 minutes to read
The PageDirection element contains the direction for pagination in the search result.
The value is Previous or Next.
XML
SearchPageDirectionType
Attributes
None.
Child elements
None.
Parent elements
SearchMailboxes | GetNonIndexableItemDetails
Text value
The text value of the PageDirection element is the direction for pagination the search
results.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
PageItemCount
Article • 03/29/2023 • 2 minutes to read
The PageItemCount element specifies the number of pages returned in a search result
pagination.
XML
<PageItemCount></PageItemCount>
integer
Attributes
None.
Child elements
None.
Parent elements
SearchMailboxesResult
Text value
The text value of the PageItemCount element is the number of pages returned in a
search result pagination.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
PageItemReference
Article • 03/29/2023 • 2 minutes to read
XML
<PageItemReference></PageItemReference>
string
Attributes
None.
Child elements
None.
Parent elements
GetNonIndexableItemDetails
Text value
The text value of the PageItemReference element is the reference for a page item.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
PageItemSize
Article • 03/29/2023 • 2 minutes to read
The PageItemSize element specifies the number of items to return in a search result
pagination.
XML
<PageItemSize></PageItemSize>
long
Attributes
None.
Child elements
None.
Parent elements
SearchMailboxesResult
Text value
The text value of the PageItemSize element is the number of items returned in a search
result pagination.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Pagers
Article • 03/29/2023 • 2 minutes to read
The Pagers element specifies an array of pager phone numbers and the identifiers of
their source attributions for the associated persona.
XML
<Pagers>
<PhoneNumberAttributedValue/>
</Pagers>
ArrayOfPhoneNumberAttributedValuesType
Attributes
None.
Child elements
PhoneNumberAttributedValue
Parent elements
Persona
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
PageSize
Article • 03/29/2023 • 2 minutes to read
The PageSize element contains the number of items to be returned in a single page for
a search result.
XML
<PageSize></PageSize>
int
Attributes
None.
Child elements
None.
Parent elements
SearchMailboxes | GetNonIndexableItemDetails
Text value
The text value of the PageSize element is the number of items returned in a single page
of a search result set.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
ParentFolderId
Article • 03/29/2023 • 2 minutes to read
The ParentFolderId element represents the identifier of the parent folder that contains
the item or folder.
XML
FolderIdType
Attributes
Attribute Description
Id
Contains a string that identifies a folder in the Exchange store. This attribute is
required.
ChangeKey Contains a string that identifies a version of a folder that is identified by the Id
attribute. This attribute is optional. Use this attribute to make sure that the correct
version of a folder is used.
Child elements
None.
Parent elements
Element Description
CalendarFolder
Represents a calendar folder in a mailbox.
CalendarItem
Represents a calendar item in a mailbox.
Contact
Represents a contact item in a mailbox.
ContactsFolder
Represents a contacts folder in a mailbox.
Element Description
CopiedEvent
Represents an event in which an item or folder is copied.
CreatedEvent
Represents an event in which an item or folder is created.
DeletedEvent
Represents an event in which an item or folder is deleted.
DistributionList
Represents a private distribution list in a mailbox.
Folder
Represents a folder in a mailbox.
Item
Represents a generic Exchange item.
MeetingMessage
Represents a meeting message in a mailbox.
MeetingRequest
Represents a meeting request in a mailbox.
MeetingResponse
Represents a meeting response in a mailbox.
Message
Represents an e-mail message in a mailbox.
ModifiedEvent
Represents an event in which an item or folder is modified.
MovedEvent
Represents an event in which an item or folder is moved from one parent
folder to another parent folder.
NewMailEvent
Represents an event that is triggered by a new mail item in a mailbox.
AcceptItem
Represents an Accept reply to a meeting request.
DeclineItem
Represents a Decline reply to a meeting request.
RemoveItem
Removes an item from the Exchange store.
Task
Represents a task item in a mailbox.
ReplyToItem
Contains a reply to the creator of an item in the Exchange store.
ReplyAllToItem
Contains a reply to all identified recipients of an item in the Exchange
store.
ForwardItem
Contains an Exchange store item to forward to recipients.
CancelCalendarItem
Represents the response object that is used to cancel a meeting.
Element Description
TasksFolder
Represents a task folder in a mailbox.
SearchFolder
Represents a search folder in a mailbox.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ParentFolderId (TargetFolderIdType)
Article • 03/29/2023 • 2 minutes to read
The ParentFolderId element identifies the folder in which a new folder is created or the
folder to search for the FindConversation operation.
XML
<ParentFolderId>
<DistinguishedFolderId/>
</ParentFolderId>
XML
<ParentFolderId>
<FolderId/>
</ParentFolderId>
TargetFolderIdType
Attributes
None.
Child elements
Element Description
FolderId
Contains the required identifier and the optional change key of a folder
in which a new folder is created or the folder that is searched for the
FindConversation operation. Using this element excludes the use of the
DistinguishedFolderId element.
DistinguishedFolderId Identifies default Microsoft Exchange Server 2007 folders. Using this
element excludes the use of the FolderId element.
Parent elements
Element Description
CreateFolder
Defines a request to create a folder in the Exchange database.
The following is the XPath expression to this element: /CreateFolder
FindConversation
Defines a request to find conversations in a mailbox.
Text value
None.
Remarks
The two child elements are used to define the folder that will contain the new folder.
You must select either the FolderId or the DistinguishedFolderId element to identify the
parent folder of the new folder. You cannot use both elements at the same time. This
element is required to create folders.
The ParentFolderId element describes the location of existing items and folders.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
CreateFolder operation
FindConversation operation
Creating Folders (Exchange Web Services)
ParentFolderIds
Article • 03/29/2023 • 2 minutes to read
The ParentFolderIds element identifies folders for the FindItem and FindFolder
operations to search.
XML
<ParentFolderIds>
<DistinguishedFolderId/>
<ParentFolderIds>
XML
<ParentFolderIds>
<FolderId/>
<ParentFolderIds>
NonEmptyArrayOfBaseFolderIdsType
Attributes
None.
Child elements
Element Description
FolderId
Contains the identifier and change key of a folder. The ParentFolderIds
element must use either this element or the DistinguishedFolderId
element.
DistinguishedFolderId Identifies Microsoft Exchange Server 2007 folders that can be referenced
by name. The ParentFolderIds element must use either this element or
the FolderId element.
Parent elements
Element Description
FindFolder
Defines a request to identify folders in a mailbox.
FindItem
Defines a request to find items in a mailbox.
ResolveNames
Defines a request to resolve ambiguous names.
Remarks
The ParentFolderIds element must use either the FolderId or the DistinguishedFolderId
element. An unlimited number of folders can be defined for the search.
Example
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<soap:Body>
<FindFolder Traversal="Shallow"
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<FolderShape>
<t:BaseShape>Default</t:BaseShape>
</FolderShape>
<ParentFolderIds>
<t:DistinguishedFolderId Id="inbox"/>
</ParentFolderIds>
</FindFolder>
</soap:Body>
</soap:Envelope>
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
ParentId
Article • 03/29/2023 • 2 minutes to read
The ParentId element specifies the identifier of the parent item in a search preview.
XML
ItemIdType
Attributes
Attribute Description
Id The text value of the Id attribute is the identifier of the parent item.
ChangeKey The text value of the ChangeKey attribute is the change key of the parent item.
Child elements
None.
Parent elements
SearchPreviewItem
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
XML
<ParentInternetMessageId></ParentInternetMessageId>
string
Attributes
None.
Child elements
None.
Parent elements
ConversationNode
Text value
The text value of the ParentInternetMessageId element is the Internet message
identifier of the parent message in the conversation.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
ParentItemId
Article • 03/29/2023 • 2 minutes to read
The ParentItemId element identifies the parent item that links to an associated
attachment.
CreateAttachment
ParentItemId
XML
ItemIdType
Attributes
Attribute Description
Id
Identifies a single item in the Exchange store to associate with an attachment. This
value is a string. This attribute is required.
Child elements
None.
Parent elements
Element Description
Element Description
CreateAttachment
Defines a request to create an attachment to an item in a mailbox.
The following is the XPath expression to this element:
/CreateAttachment
Remarks
This element is required in the CreateAttachment operation. This element is basically the
same as the ItemId element.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
CreateAttachment operation
PasswordExpirationDate
Article • 03/29/2023 • 2 minutes to read
XML
<PasswordExpirationDate
string
Attributes
None.
Child elements
None.
Parent elements
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
This element was introduced in Exchange Server 2010 Service Pack 2 (SP2).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetPasswordExpirationDate operation
The Path element is the base schema type for all property identifiers. This type is
abstract and will never occur directly within instance documents.
XML
<Path/>
BasePathToElementType
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
The following elements are used to substitute for the Path element:
FieldURI
IndexedFieldURI
ExceptionFieldURI
ExtendedFieldURI
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
PendingMailTips
Article • 03/29/2023 • 2 minutes to read
The PendingMailTips element indicates that the mail tips in this element could not be
evaluated before the server's processing timeout expired.
XML
MailTipTypes
Attributes
None.
Child elements
None.
Parent elements
Element Description
MailTips
Represents values for various types of mail tips.
Text value
The following table lists the possible values for the PendingMailTips element.
Value Description
DeliveryRestriction Indicates whether delivery restrictions will prevent the sender's message
from reaching the recipient.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
People
Article • 03/29/2023 • 2 minutes to read
The People element specifies an array of persona data returned as the result of a
FindPeople request.
XML
<People>
<Persona/>
</People>
ArrayOfPeopleType
Attributes
None.
Child elements
Persona
Parent elements
FindPeopleResponse
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
PeopleUrl
(FederatedDirectoryGroupType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
PercentComplete
Article • 03/29/2023 • 2 minutes to read
XML
<PercentComplete/>
double
Attributes
None.
Child elements
None.
Parent elements
Element Description
Task
Represents a task in the Exchange store.
Text value
A text value that represents an integer between 0 and 100 is required.
Remarks
Setting PercentComplete to 100 has the same effect as setting the CompleteDate
element or setting the Status element to Completed. In a request that sets at least two
of these properties, the last processed property will determine the value that is set for
these elements. For example, if PercentComplete is 100, CompleteDate is January 1,
2007, and Status is NotStarted, and the properties are streamed in this order, the effect
will be to set the Status of the task to NotStarted, the CompleteDate to null, and the
PercentComplete to 0.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Creating Tasks
Deleting Tasks
PerformReminderAction
Article • 03/29/2023 • 2 minutes to read
XML
<PerformReminderAction>
<ReminderItemActions></ReminderItemActions>
</PerformReminderAction>
PerformReminderActionType
Attributes
None.
Child elements
ReminderItemActions
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
PerformReminderActionResponse
Article • 03/29/2023 • 2 minutes to read
XML
<PerformReminderActionResponse>
<UpdatedItemIds></UpdatedItemIds>
</PerformReminderActionResponse>
PerformReminderActionResponseMessageType
Attributes
None.
Child elements
UpdatedItemIds
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
Period
Article • 03/29/2023 • 2 minutes to read
The Period element defines the name, time offset, and unique identifier for a specific
stage of the time zone.
XML
PeriodType
Attributes
Attribute Description
Bias An xs:duration value that represents the time offset from Coordinated Universal Time
(UTC) for the period.
Name A string value that represents the descriptive name of the period.
Child elements
None.
Parent elements
Element Description
Periods
Represents an array of periods that define the time offset at different stages of the
time zone.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Periods
Article • 03/29/2023 • 2 minutes to read
The Periods element represents an array of periods that define the time offset at
different stages of the time zone.
XML
<Periods>
<Period/>
</Periods>
NonEmptyArrayOfPeriodsType
Attributes
None.
Child elements
Element Description
Period
Defines the name, time offset, and unique identifier for a specific stage of the time
zone.
Parent elements
Element Description
StartTimeZone
Defines the time zone for the start time of a CalendarItem or
MeetingRequest.
EndTimeZone
Defines the time zone for the end time of a CalendarItem or
MeetingRequest.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
PermanentDelete
Article • 03/29/2023 • 2 minutes to read
XML
<PermanentDelete>true | false</PermanentDelete>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Actions
Represents the set of actions that are available to be taken on a message when the
conditions are fulfilled.
Text value
A text value of true indicates that the message must be marked to be permanently
deleted. A value of false indicates that the message must not be marked to be
permanently deleted.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
Permission
Article • 03/29/2023 • 2 minutes to read
The Permission element defines the access that a user has to a folder.
XML
<Permission>
<CanCreateItems/>
<CanCreateSubfolders/>
<IsFolderOwner/>
<IsFolderVisible/>
<IsFolderContact/>
<EditItems/>
<DeleteItems/>
<PermissionLevel/>
<ReadItems/>
<UserId/>
</Permission>
PermissionType
Attributes
None.
Child elements
Element Description
CanCreateItems
Indicates whether a user has permission to create items in a folder. This
element was introduced in Exchange 2007 SP1.
DeleteItems
Indicates whether a user has permission to delete items in a folder. This
element was introduced in Exchange 2007 SP1.
EditItems
Indicates whether a user has permission to edit items in a folder. This
element was introduced in Exchange 2007 SP1.
Element Description
IsFolderContact
Indicates whether a user is a contact for a folder. This element was
introduced in Exchange 2007 SP1.
IsFolderOwner
Indicates whether a user is the owner of a folder. This element was
introduced in Exchange 2007 SP1.
IsFolderVisible
Indicates whether a user can view a folder. This element was introduced in
Exchange 2007 SP1.
PermissionLevel
Represents the combination of permissions that a user has on a folder.
This element was introduced in Exchange 2007 SP1.
ReadItems Indicates whether a user has permission to read items within a folder. This
(PermissionType)
element was introduced in Exchange 2007 SP1.
UserId
Identifies a delegate user or a user who has folder access permissions.
This element was introduced in Exchange 2007 SP1.
Parent elements
Element Description
Permissions Contains all the configured permissions for a folder. This element was introduced in
Exchange 2007 SP1.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
This element was introduced in Exchange Server 2007 Service Pack 1 (SP1).
Version differences
For applications that target Exchange Online, Exchange Online as part of Office 365, or
an on-premises version of Exchange starting with Exchange 2013, folder permissions are
not returned when the BaseShape element has a value of AllProperties in the GetFolder
operation request. To retrieve folder permissions, add the PermissionSet
(PermissionSetType) element to the AdditionalProperties element in the GetFolder
request.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
The PermissionLevel element represents the permission level that a user has on a folder.
This element was introduced in Microsoft Exchange Server 2007 Service Pack 1 (SP1).
XML
PermissionLevelType
Attributes
None.
Child elements
None.
Parent elements
Element Description
Permission Defines the access that a user has to a folder. This element was introduced in
Exchange 2007 SP1.
Text value
The following table lists the possible values for the PermissionLevel element.
Value Description
Value Description
Owner Indicates that the user can create, read, edit, and delete all items in the
folder, and create subfolders. The user is both folder owner and folder
contact.
PublishingEditor Indicates that the user can create, read, edit, and delete all items in the
folder, and create subfolders.
Editor Indicates that the user can create, read, edit, and delete all items in the
folder.
PublishingAuthor Indicates that the user can create and read all items in the folder, edit and
delete only items that the user creates, and create subfolders.
Author Indicates that the user can create and read all items in the folder, and edit
and delete only items that the user creates.
NoneditingAuthor Indicates that the user can create and read all items in the folder, and delete
only items that the user creates.
Reviewer Indicates that the user can read all items in the folder.
Contributor Indicates that the user can create items in the folder. The contents of the
folder do not appear.
Custom Indicates that the user has custom access permissions on the folder.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
XML
<Permissions>
<Permission/>
</Permissions>
PermissionType
Attributes
None.
Child elements
Element Description
Permission Defines the access that a delegate has to a folder. This element was introduced in
Exchange 2007 SP1.
Parent elements
Element Description
PermissionSet Contains all the permissions that are configured for a folder. This element
(PermissionSetType)
was introduced in Exchange 2007 SP1.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
This element was introduced in Exchange Server 2007 Service Pack 1 (SP1).
Version differences
For applications that target Exchange Online, Exchange Online as part of Office 365, or
an on-premises version of Exchange starting with Exchange 2013, folder permissions are
not returned when the BaseShape element has a value of AllProperties in the GetFolder
operation request. To retrieve folder permissions, add the PermissionSet
(PermissionSetType) element to the AdditionalProperties element in the GetFolder
request.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
The PermissionSet element contains all the permissions that are configured for a folder.
XML
<PermissionSet>
<Permissions/>
<UnknownEntries/>
</PermissionSet>
PermissionSetType
Attributes
None.
Child elements
Element Description
Permissions
Contains the collection of permissions for a folder. This element was
introduced in Exchange 2007 SP1.
UnknownEntries Contains an array of unknown entries that cannot be resolved against the
Active Directory directory service. This element was introduced in Exchange
2007 SP1.
Parent elements
Element Description
Folder
Defines a folder to create, get, find, synchronize, or update.
SearchFolder
Represents a search folder that is contained in a mailbox.
ContactsFolder
Represents a contacts folder that is contained in a mailbox.
Element Description
TasksFolder
Represents a tasks folder that is contained in a mailbox.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
This element was introduced in Exchange Server 2007 Service Pack 1 (SP1).
Version differences
For applications that target Exchange Online, Exchange Online as part of Office 365, or
an on-premises version of Exchange starting with Exchange 2013, folder permissions are
not returned when the BaseShape element has a value of AllProperties in the GetFolder
operation request. To retrieve folder permissions, add the PermissionSet
(PermissionSetType) element to the AdditionalProperties element in the GetFolder
request.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
The PermissionSet element contains all the permissions that are configured for a
calendar folder.
XML
<PermissionSet>
<CalendarPermissions/>
<UnknownEntries/>
</PermissionSet>
CalendarPermissonSetType
Attributes
None.
Child elements
Element Description
CalendarPermissions Contains an array of calendar permissions for a folder. This element was
introduced in Exchange 2007 SP1.
UnknownEntries
Contains an array of unknown entries that cannot be resolved against the
Active Directory directory service. This element was introduced in
Exchange 2007 SP1.
Parent elements
Element Description
CalendarFolder
Represents a folder that primarily contains calendar items.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
This element was introduced in Exchange Server 2007 Service Pack 1 (SP1).
Version differences
For applications that target Exchange Online, Exchange Online as part of Office 365, or
an on-premises version of Exchange starting with Exchange 2013, folder permissions are
not returned when the BaseShape element has a value of AllProperties in the GetFolder
operation request. To retrieve folder permissions, add the PermissionSet
(PermissionSetType) element to the AdditionalProperties element in the GetFolder
request.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
The Persona element specifies a set of persona data returned by a GetPersona request.
XML
<Persona>
<PersonaId/>
<PersonaType/>
<PersonaObjectStatus/>
<CreationTime/>
<Bodies/>
<DisplayNameFirstLastSortKey/>
<DisplayNameLastFirstSortKey/>
<CompanyNameSortKey/>
<HomeCitySortKey/>
<WorkCitySortKey/>
<DisplayNameFirstLastHeader/>
<DisplayNameLastFirstHeader/>
<FileAsHeader/>
<DisplayName/>
<DisplayNameFirstLast/>
<DisplayNameLastFirst/>
<FileAs/>
<FileAsId/>
<DisplayNamePrefix/>
<GivenName/>
<MiddleName/>
<Surname/>
<Generation/>
<Nickname/>
<YomiCompanyName/>
<YomiFirstName/>
<YomiLastName/>
<Title/>
<Department/>
<CompanyName/>
<Location/>
<EmailAddress/>
<EmailAddresses/>
<PhoneNumber/>
<ImAddress/>
<HomeCity/>
<WorkCity/>
<RelevanceScore/>
<FolderIds/>
<Attributions/>
<DisplayNames/>
<FileAses/>
<FileAsIds/>
<DisplayNamePrefixes/>
<GivenNames/>
<MiddleNames/>
<Surnames/>
<Generations/>
<Nicknames/>
<Initials/>
<YomiCompanyNames/>
<YomiFirstNames/>
<YomiLastNames/>
<BusinessPhoneNumbers/>
<BusinessPhoneNumbers2/>
<HomePhones/>
<HomePhones2/>
<MobilePhones/>
<MobilePhones2/>
<AssistantPhoneNumbers/>
<CallbackPhones/>
<CarPhones/>
<HomeFaxes/>
<OrganizationMainPhones/>
<OtherFaxes/>
<OtherTelephones/>
<OtherPhones2/>
<Pagers/>
<RadioPhones/>
<TelexNumbers/>
<TTYTDDPhoneNumbers/>
<WorkFaxes/>
<Emails1/>
<Emails2/>
<Emails3/>
<BusinessHomePages/>
<PersonalHomePages/>
<OfficeLocations/>
<ImAddresses/>
<ImAddresses2/>
<ImAddresses3/>
<BusinessAddresses/>
<HomeAddresses/>
<OtherAddresses/>
<Titles/>
<Departments/>
<CompanyNames/>
<Managers/>
<AssistantNames/>
<Professions/>
<SpouseNames/>
<Children/>
<Schools/>
<Hobbies/>
<WeddingAnniversaries/>
<Birthdays/>
<Locations/>
<ExtendedProperties/>
</Persona>
PersonaType
Attributes
None.
Child elements
PersonaId | PersonaType | PersonaObjectStatus | CreationTime | Bodies |
DisplayNameFirstLastSortKey | DisplayNameLastFirstSortKey | CompanyNameSortKey |
HomeCitySortKey | WorkCitySortKey | DisplayNameFirstLastHeader |
DisplayNameLastFirstHeader | FileAsHeader | DisplayName (string) |
DisplayNameFirstLast | DisplayNameLastFirst | FileAs | FileAsId | DisplayNamePrefix |
GivenName | MiddleName | Surname | Generation | Nickname | YomiCompanyName |
YomiFirstName | YomiLastName | Title | Department | CompanyName | Location |
EmailAddress (EmailAddressType) | EmailAddresses (ArrayOfEmailAddressesType) |
PhoneNumber | ImAddress (String) | HomeCity | WorkCity | RelevanceScore | FolderIds
(ArrayOfFolderIdType) | Attributions (ArrayOfPersonaAttributionsType) | DisplayNames |
FileAses | FileAsIds | DisplayNamePrefixes | GivenNames | MiddleNames | Surnames |
Generations | Nicknames | Initials (ArrayOfStringAttributedValuesType) |
YomiCompanyNames | YomiFirstNames | YomiLastNames | BusinessPhoneNumbers |
BusinessPhoneNumbers2 | HomePhones | HomePhones2 | MobilePhones |
MobilePhones2 | AssistantPhoneNumbers | CallbackPhones | CarPhones | HomeFaxes |
OrganizationMainPhones | OtherFaxes | OtherTelephones | OtherPhones2 | Pagers |
RadioPhones | TelexNumbers | TTYTDDPhoneNumbers | WorkFaxes | Emails1 | Emails2 |
Emails3 | BusinessHomePages | PersonalHomePages | OfficeLocations | ImAddresses
(ArrayOfStringAttributedValuesType) | ImAddresses2 | ImAddresses3 | BusinessAddresses
| HomeAddresses | OtherAddresses | Titles | Departments | CompanyNames | Managers |
AssistantNames | Professions | SpouseNames | Children
(ArrayOfStringArrayAttributedValuesType) | Schools | Hobbies | WeddingAnniversaries |
Birthdays | Locations | ExtendedProperties
(ArrayOfExtendedPropertyAttributedValueType)
Parent elements
AddNewImContactToGroupResponse | AddNewTelUriContactToGroupResponse |
GetPersonaResponseMessage | People | Personas
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
The PersonaId element specifies the persona identifier for the associated persona.
XML
ItemIdType
Attributes
Attribute Description
ChangeKey The text value of the ChangeKey attribute is the change key of the persona.
Child elements
None.
Parent elements
GetPersona | Persona
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
PersonalHomePages
Article • 03/29/2023 • 2 minutes to read
The PersonalHomePages element specifies an array of home pages and the identifiers
of their source attributions for the associated persona.
XML
<PersonalHomePages>
<StringAttributedValue/>
</PersonalHomePages>
ArrayOfStringAttributedValuesType
Attributes
None.
Child elements
StringAttributedValue
Parent elements
Persona
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
PersonaObjectStatus
Article • 03/29/2023 • 2 minutes to read
XML
<PersonaObjectStatus></PersonaObjectStatus>
string
Attributes
None.
Child elements
None.
Parent elements
Persona
Text value
The text value of the PersonaObjectStatus element indicates whether the persona is
complete or partial.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Personas
Article • 03/29/2023 • 2 minutes to read
The Personas element specifies an array of personas returned from the GetImItems and
GetImItemList operations.
XML
<Personas>
<Persona/>
</Personas>
ArrayOfPeopleType
Attributes
None.
Child elements
Persona
Parent elements
ImItemList
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
PersonaShape
Article • 03/29/2023 • 2 minutes to read
The PersonaShape element specifies the set of persona properties to be returned from a
FindPeople request.
XML
<PersonaShape>
<BaseShape/>
<AdditionalProperties/>
</PersonaShape>
PersonaResponseShapeType
Attributes
None.
Child elements
BaseShape | AdditionalProperties
Parent elements
FindPeople
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
The PersonaType element specifies the type of the persona, for example, a person or a
distribution list.
XML
<PersonaType></PersonaType>
string
Attributes
None.
Child elements
None.
Parent elements
Persona
Text value
The text value of the PersonaType element is the type of persona.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
PersonName
Article • 03/29/2023 • 2 minutes to read
The PersonName element specifies the name of an individual found by means of entity
extraction.
XML
<PersonName></PersonName>
string
Attributes
None.
Child elements
None.
Parent elements
Contact (ContactType)
Text value
The text value of the PersonName element is the name of a person found as a result of
entity extraction.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Phone
Article • 03/29/2023 • 2 minutes to read
The Phone element specifies a single phone number that results from a contact entity
extraction.
XML
<Phone>
<OriginalPhoneString/>
<PhoneString/>
<Type/>
</Phone>
PhoneType
Attributes
None.
Child elements
OriginalPhoneString | PhoneString | Type (string)
Parent elements
PhoneNumbers (ArrayOfPhonesType)
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Phone (PhoneEntityType)
Article • 03/29/2023 • 2 minutes to read
The Phone element specifies a single phone number that results from a phone number
entity extraction.
XML
<Phone>
<Position/>
<OriginalPhoneString/>
<PhoneString/>
<Type/>
</Phone>
PhoneEntityType
Attributes
None.
Child elements
Position | OriginalPhoneString | PhoneString | Type (string)
Parent elements
PhoneNumbers (ArrayOfPhoneEntitiesType)
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
PhoneCallId
Article • 03/29/2023 • 2 minutes to read
The PhoneCallId element specifies the identifier of a phone call. This element is
required.
XML
PhoneCallIdType
Attributes
Attribute Description
Child elements
None.
Parent elements
Element Description
DisconnectPhoneCall
Represents a request to disconnect a call.
GetPhoneCallInformation
Represents a request to get telephone call
information.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
PhoneCallInformation
Article • 03/29/2023 • 2 minutes to read
The PhoneCallInformation element specifies the state information for a phone call.
XML
<PhoneCallInformation>
<PhoneCallState/>
<ConnectionFailureCause/>
<SIPResponseText/>
<SIPResponseCode/>
</PhoneCallInformation>
PhoneCallInformationType
Attributes
None.
Child elements
Element Description
PhoneCallState
Specifies the state for a phone call. This element is required.
ConnectionFailureCause
Specifies the cause of a connection failure. This element is required.
SIPResponseText
Specifies the SIP response text. This element is optional.
SIPResponseCode
Specifies the SIP response code. This element is optional.
Parent elements
Element Description
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
PhoneCallState
Article • 03/29/2023 • 2 minutes to read
The PhoneCallState element specifies the current state for a phone call.
XML
PhoneCallStateType
Attributes
None.
Child elements
None.
Parent elements
Element Description
PhoneCallInformation
Specifies the state information for a phone call.
Text value
The following table lists the possible values for the PhoneCallState element.
Value Description
Remarks
The schema that describes this element is located in the /ews/ directory of the computer
that is running Microsoft Exchange Server 2010 that has the Client Access server role
installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
PhoneNumber
Article • 03/29/2023 • 2 minutes to read
The PhoneNumber element specifies the default phone number of the associated
persona.
XML
<PhoneNumber>
<Number/>
<Type/>
</PhoneNumber>
PersonaPhoneNumberType
Attributes
None.
Child elements
Number | Type (string)
Parent elements
Persona
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
PhoneNumberAttributedValue
Article • 03/29/2023 • 2 minutes to read
XML
<PhoneNumberAttributedValue>
<Value/>
<Attributions/>
</PhoneNumberAttributedValue>
PhoneNumberAttributedValueType
Attributes
None.
Child elements
Value (PersonaPhoneNumberType) | Attributions (ArrayOfValueAttributionsType)
Parent elements
BusinessPhoneNumbers | BusinessPhoneNumbers2 | HomePhones | HomePhones2 |
MobilePhones | MobilePhones2 | AssistantPhoneNumbers | CallbackPhones | CarPhones
| HomeFaxes | OrganizationMainPhones | OtherFaxes | OtherTelephones | OtherPhones2
| Pagers | RadioPhones | TelexNumbers | TTYTDDPhoneNumbers | WorkFaxes
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
PhoneNumbers
Article • 03/29/2023 • 2 minutes to read
XML
<PhoneNumbers>
<Entry/>
</PhoneNumbers>
PhoneNumberDictionaryType
Attributes
None.
Child elements
Element Description
Entry (PhoneNumber)
Represents a telephone number for a contact.
Parent elements
Element Description
Contact
Represents an Exchange contact item.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Updating Contacts
Deleting Contacts
PhoneNumbers
(ArrayOfPhoneEntitiesType)
Article • 03/29/2023 • 2 minutes to read
XML
<PhoneNumbers>
<Phone/>
</PhoneNumbers>
ArrayOfPhoneEntitiesType
Attributes
None.
Child elements
Phone (PhoneEntityType)
Parent elements
EntityExtractionResult
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
PhoneNumbers (ArrayOfPhonesType)
Article • 03/29/2023 • 2 minutes to read
XML
<PhoneNumbers>
<Phone/>
</PhoneNumbers>
ArrayOfPhonesType
Attributes
None.
Child elements
Phone
Parent elements
Contact (ContactType)
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
PhoneString
Article • 03/29/2023 • 2 minutes to read
The PhoneString element specifies the phone number for an extracted contact.
XML
<PhoneString></PhoneString>
string
Attributes
None.
Child elements
None.
Parent elements
Phone | Phone (PhoneEntityType)
Text value
The text value of the PhoneSting element is the phone number of an extracted contact.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
PhoneticFirstName
Article • 03/29/2023 • 2 minutes to read
XML
<PhoneticFirstName/>
string
Attributes
None.
Child elements
None.
Parent elements
Contact
Represents a contact item in the Exchange store.
Text value
The text value is a string that represents the first name of a contact, spelled phonetically.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
This element was introduced in Exchange Server 2010 Service Pack 2 (SP2).
Element information
Code Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
The PhoneticFullName element contains the full name of a contact, including the first
and last name, spelled phonetically.
XML
<PhoneticFullName/>
string
Attributes
None.
Child elements
None.
Parent elements
Contact
Represents a contact item in the Exchange store.
Text value
The text value is a string that represents the full name of a contact, including the first
and last name, spelled phonetically.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
This element was introduced in Exchange Server 2010 Service Pack 2 (SP2).
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
XML
<PhoneticLastName/>
string
Attributes
None.
Child elements
None.
Parent elements
Contact
Represents a contact in the Exchange store.
Text value
The text value is a string that represents the last name of a contact, spelled phonetically.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
This element was introduced in Exchange Server 2010 Service Pack 2 (SP2).
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
The Photo element contains a value that encodes the photo of a contact.
XML
<Photo/>
string
Attributes
None.
Child elements
None.
Parent elements
Contact
Represents an Exchange contact item.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
This element was introduced in Exchange Server 2010 Service Pack 2 (SP2).
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Creating Contacts (Exchange Web Services)
Photo (MasterMailboxType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
PhotoUrl
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
PhotoUrl
(FederatedDirectoryGroupType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
PhysicalAddresses
Article • 03/29/2023 • 2 minutes to read
XML
<PhysicalAddresses>
<Entry/>
</PhysicalAddresses>
PhysicalAddressDictionaryType
Attributes
None.
Child elements
Element Description
Entry (PhysicalAddress)
Describes a single physical address for a contact item.
Parent elements
Element Description
Contact
Represents an Exchange contact item.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Updating Contacts
Deleting Contacts
PictureData
Article • 03/29/2023 • 2 minutes to read
XML
<PictureData></PictureData>
base64Binary
Attributes
None.
Child elements
None.
Parent elements
GetUserPhotoResponse
Text value
The text value of the PictureData element is the base64-encoded stream of picture data.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
PlayOnPhone (Exchange Web Services)
Article • 03/29/2023 • 2 minutes to read
XML
PlayOnPhoneType
Attributes
None.
Child elements
Element Description
ItemId
Represents the identifier of an item to play on a phone. This element is
required.
DialString (Exchange Represents the dial string of the phone number that is called to play an
Web Services)
item by phone. This element is required.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
PlayOnPhoneDialString (Exchange Web
Services)
Article • 03/29/2023 • 2 minutes to read
XML
<PlayOnPhoneDialString/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
The text value for this element is the Play-on-Phone dial string.
Remarks
This element is required.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
PlayOnPhoneEnabled
Article • 03/29/2023 • 2 minutes to read
XML
<PlayOnPhoneEnabled>true | false</PlayOnPhoneEnabled>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
The PlayOnPhoneEnabled element has a value of true if play-on-phone is enabled for
the account; otherwise, the value is false.
Remarks
This element is required.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
PlayOnPhoneResponse (Exchange Web
Services)
Article • 03/29/2023 • 2 minutes to read
XML
<PlayOnPhoneResponse ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<PhoneCallId/>
</PlayOnPhoneResponse>
PlayOnPhoneResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of the response.
- Success
- Warning
- Error
Value Description
Success
Describes a request that is fulfilled.
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
element topics.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and reserved for future use. This element contains a value
of 0.
MessageXml
Provides additional error response information.
PhoneCallId
Specifies the telephone call identifier.
Parent elements
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
PolicyNudgeRulesConfiguration
Article • 03/29/2023 • 2 minutes to read
XML
<PolicyNudgeRulesConfiguration></PolicyNudgeRulesConfiguration>
PolicyNudgeRulesServiceConfiguration
Attributes
None.
Child elements
None.
Parent elements
ServiceConfigurationResponseMessageType
Remarks
The PolicyNudgeRulesConfiguration element contents are not defined the Exchange
Web Services schema.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
PolicyTag
Article • 03/29/2023 • 2 minutes to read
XML
RetentionTagType
Attributes
Attribute Description
IsExplicit Indicates whether a policy tag was explicitly set on an item or folder.
A text value of true for the IsExplicit attribute indicates that the policy tag was
explicitly set on the item or folder. A text value of false indicates that the policy tag
was implicitly set on the item or folder based on the parent folder policy tag.
Child elements
None.
Parent elements
SearchPreviewItem | Item | Contact | Message | DistributionList | CalendarItem | PostItem
| Task
Text value
The text value of the PolicyTag element is the policy tag identifier. The policy tag
identifier is a GUID.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
PolicyTipsEnabled
Article • 03/29/2023 • 2 minutes to read
XML
Boolean
Attributes
None.
Child elements
None.
Parent elements
MailTipsConfiguration (MailTipsServiceConfiguration)
Text value
A text value of true for the PolicyTipsEnabled element indicates that policy tips are
enabled for a mailbox. A value of false indicates that policy tips are not enabled for a
mailbox.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
PortalText
(EncryptionConfigurationResponseType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
PortalText
(SetEncryptionConfigurationType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Position
Article • 03/29/2023 • 2 minutes to read
The Position element specifies the position of an entity extracted from a message.
XML
EmailPositionType
Attributes
None.
Child elements
None.
Parent elements
UrlEntity | AddressEntity | EmailAddressEntity | MeetingSuggestion | Contact
(ContactType) | Phone (PhoneEntityType) | TaskSuggestion
Text value
The text value of the Position element is the location where an extracted entity
originated in the source message. The text values for the Position element are:
LatestReply - the extracted entity originates from the latest reply to the message.
Other - the extracted entity originates from an undefined part of the message.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
PostalAddress
(PersonaPostalAddressType)
Article • 03/29/2023 • 2 minutes to read
XML
<PostalAddress>
<Street/>
<City/>
<State/>
<Country/>
<PostalCode/>
<PostOfficeBox/>
<Type/>
<Latitude/>
<Longitude/>
<Accuracy/>
<Altitude/>
<AltitudeAccuracy/>
<FormattedAddress/>
<LocationUri/>
<LocationSource/>
</PostalAddress>
PersonaPostalAddressType
Attributes
None.
Child elements
Street | City | State | Country | PostalCode | PostOfficeBox | Type (string) | Latitude |
Longitude | Accuracy | Altitude | AltitudeAccuracy | FormattedAddress | LocationUri |
LocationSource
Parent elements
EnhancedLocation
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
PostalAddressAttributedValue
Article • 03/29/2023 • 2 minutes to read
XML
<PostalAddressAttributedValue>
<Value/>
<Attributions/>
</PostalAddressAttributedValue>
PostalAddressAttributedValueType
Attributes
None.
Child elements
Value (PersonaPostalAddressType) | Attributions (ArrayOfValueAttributionsType)
Parent elements
BusinessAddresses | HomeAddresses | OtherAddresses
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
PostalAddressIndex
Article • 03/29/2023 • 2 minutes to read
The PostalAddressIndex element represents the display types for physical addresses.
XML
<PostalAddressIndex/>
PhysicalAddressIndexType
Attributes
None.
Child elements
None.
Parent elements
Element Description
Contact
Represents an Exchange contact item.
Text value
A text value is required. The following are the possible text values for this element:
None
Business
Home
Other
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
PostalAddressIndex
Updating Contacts
Deleting Contacts
PostalCode
Article • 03/29/2023 • 2 minutes to read
The PostalCode element represents the postal code for a contact item.
XML
<PostalCode/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Entry (PhysicalAddress)
Describes a single physical address for a contact item.
Text value
The text value is a string value that represents the postal code of a contact.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
PostedTime
Article • 03/29/2023 • 2 minutes to read
The PostedTime element represents the time at which a PostItem was posted. This
element is read-only. This element was introduced in Microsoft Exchange Server 2007
Service Pack 1 (SP1).
XML
<PostedTime/>
dateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
PostItem Represents a PostItem in the Exchange store. This element was introduced in Exchange
2007 SP1.
Text value
The text value is a dateTime that represents when a PostItem was posted. This property
is read-only.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
PostItem
Article • 03/29/2023 • 4 minutes to read
XML
<PostItem>
<MimeContent/>
<ItemId/>
<ParentFolderId/>
<ItemClass/>
<Subject/>
<Sensitivity/>
<Body/>
<Attachments/>
<DateTimeReceived/>
<Size/>
<Categories/>
<Importance/>
<InReplyTo/>
<IsSubmitted/>
<IsDraft/>
<IsFromMe/>
<IsResend/>
<IsUnmodified/>
<InternetMessageHeaders/>
<DateTimeSent/>
<DateTimeCreated/>
<ResponseObjects/>
<ReminderDueBy/>
<ReminderIsSet/>
<ReminderMinutesBeforeStart/>
<DisplayCc/>
<DisplayTo/>
<HasAttachments/>
<ExtendedProperty/>
<Culture/>
<EffectiveRights/>
<LastModifiedName/>
<LastModifiedTime/>
<IsAssociated/>
<WebClientReadFormQueryString/>
<WebClientEditFormQueryString/>
<ConversationId/>
<UniqueBody/>
<ConversationIndex/>
<ConversationTopic/>
<From/>
<InternetMessageId/>
<IsRead/>
<PostedTime/>
<References/>
<Sender/>
</PostItem>
PostItemType
Attributes
None.
Child elements
Element Description
MimeContent
Contains the native Multipurpose Internet Mail Extensions
(MIME) stream of an object that is represented in base64Binary
format.
ItemId
Contains the unique identifier and change key of an item in the
Exchange store. This property is read-only.
ParentFolderId Represents the identifier of the parent folder that contains the
item or folder. This property is read-only.
ItemClass
Represents the message class of an item.
Subject
Represents the subject for Exchange store items and response
objects. The subject is limited to 255 characters.
Sensitivity
Indicates the sensitivity level of an item.
Body
Represents the actual body content of a message.
Attachments
Contains the items or files that are attached to an item in the
Exchange store.
DateTimeReceived
Represents the date and time that an item in a mailbox was
received.
Size
Represents the size in bytes of an item. This property is read-
only.
Element Description
Categories
Represents a collection of strings that identify the categories to
which an item in the mailbox belongs.
Importance
Describes the importance of an item.
InReplyTo
Represents the identifier of the item to which this item is a
reply.
IsSubmitted
Indicates whether an item has been submitted to the Outbox
default folder.
IsDraft
Represents whether an item has not yet been sent.
IsFromMe
Indicates whether a user sent an item to him or herself.
IsResend
Indicates whether the item had previously been sent.
IsUnmodified
Indicates whether the item has been modified.
InternetMessageHeaders
Represents the collection of all Internet message headers that
are contained in an item in a mailbox.
DateTimeSent
Represents the date and time that an item in a mailbox was
sent.
DateTimeCreated
Represents the date and time that a given item in the mailbox
was created.
ResponseObjects
Contains a collection of all the response objects that are
associated with an item in the Exchange store.
ReminderDueBy
Represents the date and time when the event occurs. This is
used by the ReminderMinutesBeforeStart element to
determine when the reminder is displayed.
ReminderIsSet
Indicates whether a reminder has been set for an item in the
Exchange store.
ReminderMinutesBeforeStart
Represents the number of minutes before an event when a
reminder is displayed.
DisplayCc
Represents the display string that is used for the contents of
the Cc box. This is the concatenated string of all Cc recipient
display names.
DisplayTo
Represents the display string that is used for the contents of
the To box. This is the concatenated string of all To recipient
display names.
Element Description
HasAttachments
Represents a property that is set to true if an item has at least
one attachment. This property is read-only.
ExtendedProperty
Identifies extended properties on folders and items.
Culture
Represents the culture for a given item in a mailbox.
EffectiveRights
Contains the client's rights based on the permission settings
for the item or folder. This element is read-only.
LastModifiedName
Contains the display name of the last user to modify an item.
LastModifiedTime
Indicates when an item was last modified.
IsAssociated
Indicates whether the item is associated with a folder.
WebClientEditFormQueryString
Represents a URL to concatenate to the Outlook Web App
endpoint to edit an item in Outlook Web App.
ConversationId
Contains the identifier of an item or conversation.
UniqueBody
Represents an HTML fragment or plain text which represents
the unique body of this conversation.
ConversationIndex
Contains a binary ID that represents the thread to which this
message belongs.
ConversationTopic
Represents the conversation identifier.
From
Represents the address from which the post item was sent. The
From element can only be set at creation time.
InternetMessageId
Represents the Internet message identifier of an item.
IsRead
Indicates whether a message has been read.
PostedTime
Represents the time that a PostItem was posted.
References
Represents the Usenet header that is used to associate replies
with the original messages.
Sender
Identifies the sender of an item.
Parent elements
Element Description
SetItemField
Represents an update to a single property of an item in an UpdateItem
operation.
ItemAttachment
Represents an Exchange item that is attached to another Exchange item.
Create (ItemSync)
Identifies a single item to create in the local client store.
Update (ItemSync)
Identifies a single item to update in the local client store.
ReadFlagChange
Returned in SyncFolderItems responses when an item has been read. This
property is read-only. This element was introduced in Exchange 2007 SP1.
Items
Contains an array of items.
AdjacentMeetings
Describes all calendar items that are adjacent to a meeting time.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
PostOfficeBox
Article • 03/29/2023 • 2 minutes to read
The PostOfficeBox element specifies the "post office box" portion of a postal address.
XML
<PostOfficeBox></PostOfficeBox>
string
Attributes
None.
Child elements
None.
Parent elements
PostalAddress (PersonaPostalAddressType) | Value (PersonaPostalAddressType)
Text value
The text value of the PostOfficeBox element is a post office box identifier.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
PostReplyItem
Article • 03/29/2023 • 4 minutes to read
The PostReplyItem element contains a reply to a post item. This element was introduced
in Microsoft Exchange Server 2007 Service Pack 1 (SP1).
XML
<PostReplyItem>
<MimeContent/>
<ItemId/>
<ParentFolderId/>
<ItemClass/>
<Subject/>
<Sensitivity/>
<Body/>
<Attachments/>
<DateTimeReceived/>
<Size/>
<Categories/>
<Importance/>
<InReplyTo/>
<IsSubmitted/>
<IsDraft/>
<IsFromMe/>
<IsResend/>
<IsUnmodified/>
<InternetMessageHeaders/>
<DateTimeSent/>
<DateTimeCreated/>
<ResponseObjects/>
<ReminderDueBy/>
<ReminderIsSet/>
<ReminderMinutesBeforeStart/>
<DisplayCc/>
<DisplayTo/>
<HasAttachments/>
<ExtendedProperty/>
<Culture/>
<Sender/>
<ToRecipients/>
<CcRecipients/>
<BccRecipients/>
<IsReadReceiptRequested/>
<IsDeliveryReceiptRequested/>
<ConversationIndex/>
<ConversationTopic/>
<From/>
<InternetMessageId/>
<IsRead/>
<IsResponseRequested/>
<References/>
<ReplyTo/>
<EffectiveRights/>
<ReceivedBy/>
<ReceivedRepresenting/>
<NewBodyContent/>
</PostReplyItem>
PostReplyItemType
Attributes
None.
Child elements
Element Description
MimeContent
Contains the native Multipurpose Internet Mail Extensions (MIME)
stream of an object that is represented in base64Binary format.
ItemId
Contains the unique identifier and change key of an item in the
Exchange store. This property is read-only.
ParentFolderId Represents the identifier of the parent folder that contains the
item or folder. This property is read-only.
ItemClass
Represents the message class of an item.
Subject
Represents the subject for Exchange store items and response
objects. The subject is limited to 255 characters.
Sensitivity
Indicates the sensitivity level of an item.
Body
Represents the actual body content of a message.
Attachments
Contains the items or files that are attached to an item in the
Exchange store.
DateTimeReceived
Represents the date and time that an item in a mailbox was
received.
Size
Represents the size in bytes of an item. This property is read-only.
Element Description
Categories
Represents a collection of strings that identify categories to which
an item in the mailbox belongs.
Importance
Describes the importance of an item.
InReplyTo
Represents the identifier of the item to which this item is a reply.
IsSubmitted
Indicates whether an item has been submitted to the Outbox
default folder.
IsDraft
Represents whether an item has not yet been sent.
IsFromMe
Indicates whether a user sent an item to him or herself.
IsResend
Indicates whether the item had previously been sent.
IsUnmodified
Indicates whether the item has been modified.
InternetMessageHeaders
Represents the collection of all Internet message headers that are
contained in an item in a mailbox.
DateTimeSent
Represents the date and time that an item in a mailbox was sent.
DateTimeCreated
Represents the date and time that a given item in the mailbox was
created.
ResponseObjects
Contains a collection of all the response objects that are
associated with an item in the Exchange store.
ReminderDueBy
Represents the date and time when the event occurs. This is used
by the ReminderMinutesBeforeStart element to determine when
the reminder is displayed.
ReminderIsSet
Indicates whether a reminder has been set for an item in the
Exchange store.
DisplayCc
Represents the display string that is used for the contents of the
Cc line. This is the concatenated string of all Cc recipient display
names.
DisplayTo
Represents the display string that is used for the contents of the
To box. This is the concatenated string of all To recipient display
names.
HasAttachments
Represents a property that is set to true if an item has an
attachment. This property is read-only.
Element Description
ExtendedProperty
Identifies extended properties on folders and items.
Culture
Represents the culture for a given item in a mailbox.
Sender
Identifies the sender of an item.
ToRecipients
Contains a set of recipients of a message.
CcRecipients
Represents a collection of recipients that will receive a copy of the
message.
BccRecipients
Represents a collection of recipients to receive a blind carbon copy
(Bcc) of an e-mail.
IsReadReceiptRequested
Indicates whether the sender of an item requests a read receipt.
IsDeliveryReceiptRequested
Indicates whether the sender of an item requests a delivery
receipt.
ConversationIndex
Contains a binary ID that represents the thread to which this
message belongs.
ConversationTopic
Represents the conversation identifier.
From
Represents the address from which the message was sent.
InternetMessageId
Represents the Internet message identifier of an item.
IsRead
Indicates whether a message has been read.
IsResponseRequested
Indicates whether a response to an e-mail message is requested.
References
Represents the Usenet header that is used to associate replies with
their original messages.
ReplyTo
Identifies a set of addresses to which replies should be sent.
EffectiveRights
Contains the client's rights based on the permission settings for
the item or folder. This element is read-only. This element was
introduced in Exchange 2007 SP1.
ReceivedBy
Identifies the delegate in a delegate access scenario. This element
was introduced in Exchange 2007 SP1.
ReceivedRepresenting
Identifies the principal in a delegate access scenario. This element
was introduced in Exchange 2007 SP1.
NewBodyContent
Represents the new body content of a post item.
Parent elements
Element Description
AdjacentMeetings
Describes all items that are adjacent to a meeting time.
ResponseObjects
Contains a collection of all the response objects that are
associated with an item in the Exchange store.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
PredictedAction
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
PredictedActionReason
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
PredictedActionReasons
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Presenters
Article • 03/29/2023 • 2 minutes to read
XML
PresentersType
Attributes
None.
Child elements
None.
Parent elements
OnlineMeetingSettings
Text value
The text value of Presenters element is the type of users that can be a presenter for an
online meeting. The text values for the Presenters element are described in the
following table.
Value Description
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Preview
Article • 03/29/2023 • 2 minutes to read
The Preview element specifies the first 256 characters of an item for display.
XML
<Preview></Preview>
string
Attributes
None.
Child elements
None.
Parent elements
Conversation (ConversationType) | SearchPreviewItem | Item | Contact | Message |
DistributionList | CalendarItem | PostItem | Task
Text value
The text value of the Preview element is the first 256 characters of the item.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
PreviewItemResponseShape
Article • 03/29/2023 • 2 minutes to read
XML
<PreviewItemResponseShape>
<BaseShape/>
<AdditionalProperties/>
</PreviewItemResponseShape>
PreviewItemResponseShapeType
Attributes
None.
Child elements
BaseShape (PreviewItemBaseShapeType) | AdditionalProperties
Parent elements
SearchMailboxes
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
PreviousHopServer
Article • 03/29/2023 • 2 minutes to read
The PreviousHopServer element represents the previous server name that accepted the
message.
XML
<PreviousHopServer/>
NonEmptyStringType
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
A text value that represents a string is required if this element is used.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
PreviousWatermark
Article • 03/29/2023 • 2 minutes to read
The PreviousWatermark element represents the watermark of the latest event that was
successfully communicated to the client for the subscription.
XML
<PreviousWatermark/>
WatermarkType
Attributes
None.
Child elements
None.
Parent elements
Element Description
Notification Contains information about the subscription and the events that have occurred
since the last notification.
Text value
A text value is required. The text value represents the latest watermark. The text value
cannot be an empty string.
Remarks
The PreviousWatermark property is useful to the client in determining the last
successful notification. For example, if a subscription has three events with watermarks
1, 2, and 3, and the next notification is sent with a PreviousWatermark value of 3, the
client can compare this value to the Watermark value of the last notification received.
This enables the client to ensure the continuity of events.
For push clients, the PreviousWatermark is compared to the local, client-side last known
watermark. If the values are different, the client has missed an event notification and
should reestablish a subscription by using the latest local watermark. For example, if a
push client receives three events for a subscription with watermarks 1, 2, and 3, and the
next notification comes with a PreviousWatermark value of 5, the client has missed at
least one notification and should create a new subscription, passing a 3 as the
watermark.
In the case of a pull client, the value of PreviousWatermark will be the same as the
Watermark included by the client in the GetEvents call.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Subscribe operation
GetEvents operation
Unsubscribe operation
PrimarySmtpAddress
Article • 03/29/2023 • 2 minutes to read
The PrimarySmtpAddress element represents the primary Simple Mail Transfer Protocol
(SMTP) address of an account to be used for server-to-server authorization or delegate
access.
XML
<PrimarySmtpAddress/>
PrimarySmtpAddressType
Attributes
None.
Child elements
None.
Parent elements
Element Description
ConnectingSID
Represents an account to impersonate when you are using the
ExchangeImpersonation SOAP header.
The following is the XPath expression to this element:
/ExchangeImpersonation/ConnectingSID
SerializedSecurityContext Used in the SOAP header for token serialization in server- to-server
authentication.
UserId
Identifies a delegate user or a user who has folder access permissions.
Text value
A text value that represents an SMTP address is required.
Remarks
Exchange Web Services requires that mailboxes be identified by the primary SMTP
address of the mailbox. Proxy or alternative addresses are not accepted.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
The PrimarySmtpAddress element specifies the primary Simple Mail Transfer Protocol
(SMTP) address of the mailbox.
XML
<PrimarySmtpAddress></PrimarySmtpAddress>
string
Attributes
None.
Child elements
None.
Parent elements
UserId (string) | Mailbox (PreviewItemMailboxType) | SearchableMailbox
Text value
The text value of the PrimarySmtpAddress element is the primary SMTP address of the
mailbox.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
PrincipalName
Article • 03/29/2023 • 2 minutes to read
The PrincipalName element represents the user principal name (UPN) of the account to
be used for Exchange impersonation.
XML
<PrincipalName/>
PrincipalNameType
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
The text value represents the UPN of a user. This value exists on the user object in the
Active Directory directory service. This contains the user logon name and a domain
name that identifies the domain in which the user account is located, in the following
format: [email protected] .
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
XML
Boolean
Attributes
None.
Child elements
None.
Parent elements
RightsManagementLicenseData
Text value
A text value of true for the PrintAllowed element indicates that printing the contents is
allowed for a rights managed item. A value of false indicates that printing is not allowed.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Priority
Article • 03/29/2023 • 2 minutes to read
XML
<Priority/>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
Rule (RuleType)
Represents a rule in the user's mailbox.
Text value
The text value for the Priority element is an integer that indicates the execution order in
which a rule should be run.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
ProcessRightAway
Article • 03/29/2023 • 2 minutes to read
The ProcessRightAway element indicates whether the response is sent as soon as the
action starts processing on the server or whether the response is sent after the action
has completed. This element must be present for the response to be sent asynchronous
to the requested action.
ApplyConversationAction
ConversationActions
ConversationAction
ProcessRightAway
XML
<ProcessRightAway/>
xs:boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
ConversationAction
Contains a single action to be applied to a single conversation.
Text value
A text value of true indicates that the response is sent as soon as the action starts
processing on the server. A text value of false indicates that the response is sent after
the action has completed.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
ApplyConversationAction operation
XML
<Profession/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Contact
Represents an Exchange contact item.
Text value
A text value that represents a profession is required.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Updating Contacts
Deleting Contacts
Professions
Article • 03/29/2023 • 2 minutes to read
The Professions element specifies an array of Profession values and the identifiers of
their source attributions for the associated persona.
XML
<Professions>
<StringAttributedValue/>
</Professions>
ArrayOfStringAttributedValuesType
Attributes
None.
Child elements
StringAttributedValue
Parent elements
Persona
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
ProgrammaticAccessAllowed
Article • 03/29/2023 • 2 minutes to read
XML
Boolean
Attributes
None.
Child elements
None.
Parent elements
RightsManagementLicenseData
Text value
A text value of true for the ProgrammaticAccessAllowed element indicates that the
data is programmatically accessible. A value of false indicates that the data is not
programmatically accessible.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Properties
(ArrayOfTrackingPropertiesType)
Article • 03/29/2023 • 2 minutes to read
FindMessageTrackingReport
Properties (ArrayOfTrackingPropertiesType)
XML
<Properties>
<TrackingPropertyType/>
</Properties>
ArrayOfTrackingPropertiesType
Attributes
None.
Child elements
Element Description
TrackingPropertyType Represents a name and value pair of strings that is used to create
properties for message tracking reports.
Parent elements
Element Description
FindMessageTrackingReport
Specifies criteria for the types of messages to find.
GetMessageTrackingReport
Contains the request for the GetMessageTrackingReport
operation to retrieve the full message tracking report for
the specified ID.
GetMessageTrackingReportResponse
Contains the result of a single GetMessageTrackingReport
operation request.
RecipientTrackingEvent
Contains information for a single event for a recipient.
MessageTrackingReport
Contains a single message that is returned in a
GetMessageTrackingReport operation.
MessageTrackingSearchResult
Contains a single message result for a
FindMessageTrackingReportResponse element.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
FindMessageTrackingReport operation
GetMessageTrackingReport operation
EWS XML elements in Exchange
ProposedEnd
Article • 03/29/2023 • 2 minutes to read
XML
<ProposedEnd></ProposedEnd>
dateTime
Attributes
None.
Child elements
None.
Parent elements
MeetingResponse
Text value
The text value of the ProposedEnd element is the proposed end time sent by an
attendee to the meeting organizer.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
XML
<ProposedEnd/>
dateTime
Attributes
None.
Child elements
None.
Parent elements
Attendee
Text value
The text value of the ProposedEnd (AttendeeType) element is the proposed end date
and time for a meeting.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Attendee
XML
<ProposedEnd />
dateTime
Attributes
None.
Child elements
None.
Parent elements
AcceptItem | TentativelyAcceptItem | DeclineItem
Text value
The text value of the ProposedEnd (MeetingRegistrationResponseObjectType) element
is the proposed end date and time of the meeting.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
AcceptItem
DeclineItem
TentativelyAcceptItem
XML
<ProposedStart></ProposedStart>
dateTime
Attributes
None.
Child elements
None.
Parent elements
MeetingResponse
Text value
The text value of the ProposedStart element is the proposed start time sent by an
attendee to the meeting organizer.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
XML
<ProposedStart/>
dateTime
Attributes
None.
Child elements
None.
Parent elements
Attendee
Text value
The text value of the ProposedStart (AttendeeType) element is a proposed start date
and time for a meeting.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Attendee
XML
<ProposedStart />
dateTime
Attributes
None.
Child elements
None.
Parent elements
AcceptItem | TentativelyAcceptItem | DeclineItem
Text value
The text value of the ProposedStart (MeetingRegistrationResponseObjectType)
element is the proposed start date and time of the meeting.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
AcceptItem
DeclineItem
TentativelyAcceptItem
The ProposeNewTime element specifies a response object that indicates that the
meeting attendee can propose a new meeting time.
XML
<ProposeNewTime ObjectName=""></ProposeNewTime>
ProposeNewTimeType
Attributes
Attribute Description
Child elements
None.
Parent elements
ResponseObjects
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
ResponseObjects
XML
<ProtectionRulesConfiguration RefreshInterval="">
<Rules/>
<InternalDomains/>
</ProtectionRulesConfiguration>
ProtectionRulesServiceConfiguration
Attributes
Attribute Description
RefreshInterval Specifies how often, in whole hours, the client should request protection rules
from the server. This attribute is required and its value must be an integer that
is equal to or greater than 1.
Child elements
Element Description
InternalDomains Identifies the list of internal SMTP domains of the organization. This
(SmtpDomainList)
element is required.
Parent elements
Element Description
ServiceConfigurationResponseMessageType
Contains service configuration settings.
Text value
None.
Remarks
The protection rules service configuration is comprised of a list of rules, internal
domains, and a refresh interval.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
ProxyPartnerToken
Article • 03/29/2023 • 2 minutes to read
The ProxyPartnerToken element is used by HTTP proxy of the computer that is running
Microsoft Exchange Server 2010 that has the Client Access server role installed. This
element is not used by Exchange Web Services (EWS) operations.
XML
<ProxyPartnerToken/>
ProxySecurityContextType
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
This element was introduced in Exchange Server 2010 Service Pack 2 (SP2).
Element information
Name Value
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ProxySecurityContext
Article • 03/29/2023 • 2 minutes to read
XML
<ProxySecurityContext/>
ProxySecurityContextType
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ProxySuggesterSid
Article • 03/29/2023 • 2 minutes to read
The ProxySuggesterSid element is used by HTTP proxy of the computer that is running
Microsoft Exchange Server 2007 that has the Client Access server role installed and is
not used by Exchange Web Services operations. This element was introduced in
Exchange Server 2007 Service Pack 1 (SP1).
XML
<ProxySuggesterSid/>
ProxySecurityContextType
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
PullSubscriptionRequest
Article • 03/29/2023 • 2 minutes to read
Subscribe
PullSubscriptionRequest
XML
<PullSubscriptionRequest SubscribeToAllFolders="">
<FolderIds/>
<EventTypes/>
<Watermark/>
<Timeout/>
</PullSubscriptionRequest>
PullSubscriptionRequestType
Attributes
Attribute Description
Child elements
Element Description
FolderIds
Contains an array of folder identifiers that are used to identify folders to monitor for
event notifications.
EventTypes Contains a collection of event notifications that are used to create a subscription.
Element Description
Watermark Represents an event bookmark in the mailbox events table. This is used to create a
subscription that starts at an event that is represented by the watermark. If the
watermark from a Subscribe request is not found, an error response will be returned
to the client. This error may occur if the watermark is older than 30 days or if the
watermark was never present in the mailbox.
Timeout
Represents the duration, in minutes, that the subscription can remain idle without a
GetEvents request from the client.
Parent elements
Element Description
Subscribe
Contains the properties that are used to create subscriptions.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
PushSubscriptionRequest
Subscribe operation
GetEvents operation
Unsubscribe operation
The PurportedSender element contains contact information for the alleged sender of an
e-mail message.
XML
<PurportedSender>
<Name/>
<EmailAddress/>
<RoutingType/>
<MailboxType/>
<ItemId/>
</PurportedSender>
EmailAddressType
Attributes
None.
Child elements
Element Description
Name Represents the name of the mailbox user. This element is optional.
(EmailAddressType)
EmailAddress Defines the Simple Mail Transfer Protocol (SMTP) address of a mailbox
(NonEmptyStringType) user. This element is optional.
RoutingType Represents the routing protocol for the recipient. The default value is
(EmailAddress)
SMTP. This element is optional.
MailboxType
Represents the type of mailbox that is represented by the e-mail
address.. This element is optional.
ItemId
Defines the item identifier of a contact or private distribution list for
recipients from a user's contacts folder. This element is optional.
Parent elements
Element Description
FindMessageTrackingReport
Specifies criteria for the types of messages to find.
MessageTrackingReport
Contains a single message that is returned in a
GetMessageTrackingReport operation.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetMessageTrackingReport operation
Subscribe
PushSubscriptionRequest
XML
<PushSubscriptionRequest SubscribeToAllFolders="">
<FolderIds/>
<EventTypes/>
<Watermark/>
<StatusFrequency/>
<URL/>
</PushSubscriptionRequest>
PushSubscriptionRequestType
Attributes
Attribute Description
Child elements
Element Description
FolderIds
Contains an array of folder identifiers that are used to identify folders to
monitor for event notifications.
EventTypes
Contains a collection of event notifications that are used to create a
subscription.
Element Description
Watermark
Represents an event bookmark in the mailbox events table. This is used to
create a subscription starting at an event represented by the watermark. If the
watermark from a Subscribe request is not found, an error response will be
returned to the client. This may occur if the watermark is older than 30 days or
if the watermark was never present in the mailbox.
Url Represents the location of the client Web service for push notifications.
Parent elements
Element Description
Subscribe
Contains the properties used to create subscriptions.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
Subscribe operation
GetEvents operation
Unsubscribe operation
Query
Article • 03/29/2023 • 2 minutes to read
The Query element contains the search query for the hold.
XML
<Query></Query>
string
Attributes
None.
Child elements
None.
Parent elements
SetHoldOnMailboxes | MailboxHoldResult | MailboxQuery
Text value
The text value of the Query element is the search query string for a discovery search.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
QueryString (QueryStringType)
Article • 03/29/2023 • 4 minutes to read
The QueryString element contains a mailbox query string based on Advanced Query
Syntax (AQS).
XML
<QueryString/>
QueryStringType
Attributes
Attribute Description
Child elements
None.
Parent elements
Element Description
FindItem
Defines a request to find items in a mailbox.
The following is the XPath expression to this element: /FindItem.
Text value
The QueryString element text value represents a mailbox query that is made by using a
subset of Advanced Query Syntax (AQS) . See the remarks section for information
about the supported syntax options for query strings.
Remarks
In Exchange Server 2010, this element is an XML schema string type. In versions of
Exchange starting with Exchange Server 2013, including Exchange Online, the type for
this element is QueryStringType. This change does not break any existing clients
because it adds three new optional attributes.
The QueryString element excludes the use of EWS restrictions. AQS in EWS supports
three types of restrictions: word phase restriction, date range restriction, and message
type restriction. The following tables list the supported search properties for each
restriction type.
bcc Bcc:Dean Search for items with Dean on the Bcc line.
Participants Participants:Dean Search for items with Dean in the To, Cc, or Bcc fields.
Attachment Attachment:report Search for items with report in the attachment file name
or file body.
(property is not Product Search for items that contain both product and
specified) Development development in all word phase properties.
Word phase restriction match is always case insensitive. Word phase restriction supports
two match types: prefix match or exact match. Prefix match is the default match
behavior. If you want exact match, use double quotes. For example, subject:"product"
matches 'product' but not 'production' in the subject. Multiple words in double quotes
restrict both word phases and their order. For example "win product" matches only 'win
product', not 'win95 product' or 'product of win'. You can use an asterisk (*) to define a
prefix match with order restricted. For example, "win product"* matches 'win95 product',
'windows production line' but not 'windows new product' or 'product of win'. You can
search all messages sent from or to a domain. For example, from:"@hotmail.com"
returns all messages sent from hotmail.com.
The two dots (..) is a range operator. It can be used to define a range with a start and an
end date. To specify a date, you can use relative dates. The following relative dates are
supported:
Multiword relative dates: This week, next month, last week, past month, or coming
year
January, February, March, April, May, June, July, August, September, October,
November, December
meetings
tasks
notes
docs
journals
contacts
im
AND is always the default connector. For example, subject:project AND body:proposal is
the same as subject:project body:proposal. Logical connectors are case sensitive. For
example, body:(project Or proposal) searches messages with 'project', 'or', and
'proposal' in the body instead of 'project' or 'proposal'. The plus symbol (+) is equivalent
to AND. The hyphen symbol (-) is equivalent to NOT. For example, body:(project -
proposal) searches messages with 'project' but without 'proposal' in the body.
The query string can also contain nonindexed properties for search. If the query string
contains nonindexed properties, the search might perform an Exchange search on the
indexed properties and a store search on the nonindexed properties.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Example
The following example shows a request to search for messages in the Inbox with
Autodiscover in the subject.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:FindItem Traversal="Shallow">
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
</t:AdditionalProperties>
</m:ItemShape>
<m:ParentFolderIds>
</m:ParentFolderIds>
<m:QueryString>subject:Autodiscover</m:QueryString>
</m:FindItem>
</soap:Body>
</soap:Envelope>
XML
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="14"
MinorVersion="0"
MajorBuildNumber="639"
MinorBuildNumber="20"
Version="Exchange2010"
xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns="https://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:FindItemResponse
xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:FindItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:RootFolder IndexedPagingOffset="1"
TotalItemsInView="5"
IncludesLastItemInRange="false">
<t:Items>
<t:Message>
</t:Message>
</t:Items>
</m:RootFolder>
</m:FindItemResponseMessage>
</m:ResponseMessages>
</m:FindItemResponse>
</s:Body>
</s:Envelope>
Element information
Code Name
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
FindItem operation
FindConversation operation
The QueryString element specifies a set of values to be returned that match the query
string in a FindPeople operation request. A search with no QueryString specified returns
all items from the specified folder.
XML
<QueryString/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
The QueryString text value represents a mailbox query made by using a subset of
Advanced Query Syntax (AQS) . For information about the syntax for this element, see
QueryString (QueryStringType).
Remarks
This element was introduced in Exchange Server 2013.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
FindPeople operation
The RadioPhones element specifies an array of radio phone numbers and the identifiers
of their source attributions for the associated persona.
XML
<RadioPhones>
<PhoneNumberAttributedValue/>
</RadioPhones>
ArrayOfPhoneNumberAttributedValuesType
Attributes
None.
Child elements
PhoneNumberAttributedValue
Parent elements
Persona
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Range
Article • 03/29/2023 • 2 minutes to read
The Range element specifies a range of calendar item occurrences for a repeating
calendar item.
XML
OccurrencesRangeType
Attributes
Attribute Description
Start
The text value of the Start attribute is the start date of the recurring
item range. This is a dateTime value.
End
The text value of the End attribute is the end date of the recurring
item range. This is a dateTime value.
Count
The text value of the Count attribute is the number of occurrences
of the recurring item. This is an integer value.
Child elements
None.
Parent elements
Ranges
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Ranges
Article • 03/29/2023 • 2 minutes to read
XML
<Ranges>
<Range/>
</Ranges>
ArrayOfOccurrenceRangesType
Attributes
None.
Child elements
Range
Parent elements
RecurringMasterItemIdRanges
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
XML
<RawMastTableXml></RawMastTableXml>
string
Attributes
None.
Child elements
None.
Parent elements
GetClientExtensionResponse
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Name Value
Can be empty
Read
Article • 03/29/2023 • 2 minutes to read
The Read element indicates whether a client can read a folder or item. This element was
introduced in Microsoft Exchange Server 2007 Service Pack 1 (SP1).
XML
<Read>true or false</Read>
boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
EffectiveRights Contains the rights of the client based on the permission settings for the item or
folder. This element was introduced in Exchange 2007 SP1.
Text value
A text value of true indicates that a client can read an item of folder.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
The ReadFlag element indicates the read state to set on items in a folder.
XML
<ReadFlag>true | false</ReadFlag>
Boolean
Attributes
None.
Child elements
None.
Parent elements
MarkAllItemsAsRead
Text value
A text value of true for the ReadFlag element indicates that the items in the folder will
be marked as read. A value of false indicates that the items in the folder will be marked
as unread.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
ReadFlagChange
Article • 03/29/2023 • 2 minutes to read
XML
<ReadFlagChange>
<ItemId/>
<IsRead/>
</ReadFlagChange>
SyncFolderItemsReadFlagType
Attributes
None.
Child elements
Element Description
ItemId
Identifies the item for which the read-flag has been changed.
IsRead
Indicates whether the read-flag has been set to true.
Parent elements
Element Description
Changes Contains a sequence array of change types that represent the types of differences
(Items)
between the items on the client and the items on the Exchange server.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ReadItems (CalendarPermissionType)
Article • 03/29/2023 • 2 minutes to read
The ReadItems element indicates whether a user has permission to read items within a
Calendar folder. This element was introduced in Microsoft Exchange Server 2007 Service
Pack 1 (SP1).
XML
CalendarPermissionReadAccessType
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarPermission Defines the access that a user has to a Calendar folder. This element was
introduced in Exchange 2007 SP1.
Text value
The following table lists the possible values for the ReadItems element.
Value Description
Value Description
None Indicates that the user does not have permission to view items in
the calendar.
TimeOnly Indicates that the user has permission to view only free/busy time
in the calendar.
TimeAndSubjectAndLocation Indicates that the user has permission to view free/busy time in
the calendar and the subject and location of appointments.
FullDetails Indicates that the user has permission to view all items in the
calendar, including free/busy time and subject, location, and
details of appointments.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
The ReadItems element indicates whether a user has permission to read items within a
folder. This element was introduced in Microsoft Exchange Server 2007 Service Pack 1
(SP1).
XML
<ReadItems>None or FullDetails</ReadItems>
PermissionReadAccessType
Attributes
None.
Child elements
None.
Parent elements
Element Description
Permission Defines the access that a user has to a folder. This element was introduced in
Exchange 2007 SP1.
Text value
The following table lists the possible values for the ReadItems element.
Value Description
Value Description
None Indicates that the user does not have permission to read items in the folder.
FullDetails Indicates that the user has permission to read all items in the folder.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
XML
<ReceiveCopiesOfMeetingMessages>true or
false</ReceiveCopiesOfMeetingMessages>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
DelegateUser Identifies a single delegate to add or update in a mailbox. This element was
introduced in Exchange 2007 SP1.
Text value
A text value of true indicates that a delegate receives a copy of meeting messages. A
text value of false indicates that a delegate does not receive a copy of meeting
messages.
Remarks
When ReceiveCopiesOfMeetingMessages is set to false, the delegate can still send
message on behalf of the principal, but will not receive any meeting-related messages.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
AddDelegate operation
UpdateDelegate operation
Adding Delegates
ReceivedBy
Article • 03/29/2023 • 2 minutes to read
XML
<ReceivedBy>
<Mailbox/>
</ReceivedBy>
SingleRecipientType
Attributes
None.
Child elements
Element Description
Mailbox
Identifies a mail-enabled Active Directory directory service object.
Parent elements
Element Description
Message
Represents an Exchange e-mail message.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
AcceptItem
Represents an Accept reply to a meeting request.
Element Description
DeclineItem
Represents a Decline reply to a meeting request.
ReplyToItem
Contains a reply to the creator of an item in the Exchange store.
ReplyAllToItem
Contains a reply to all identified recipients of an item in the Exchange
store.
ForwardItem
Contains an Exchange store item to forward to recipients.
CancelCalendarItem
Represents the response object that is used to cancel a meeting.
Remarks
The ReceivedRepresenting element is used together with the From and ReceivedBy
elements in delegate access scenarios. The following table lists the entities that these
elements represent in a delegate access scenario.
From
ThirdParty
ReceivedBy
Delegate
ReceivedRepresenting
Principal
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ReceivedRepresenting
Article • 03/29/2023 • 2 minutes to read
XML
<ReceivedRepresenting>
<Mailbox/>
</ReceivedRepresenting>
SingleRecipientType
Attributes
None.
Child elements
Element Description
Mailbox
Identifies a mail-enabled Active Directory directory service object.
Parent elements
Element Description
Message
Represents an Exchange e-mail message.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
AcceptItem
Represents an Accept reply to a meeting request.
Element Description
DeclineItem
Represents a Decline reply to a meeting request.
ReplyToItem
Contains a reply to the creator of an item in the Exchange store.
ReplyAllToItem
Contains a reply to all identified recipients of an item in the Exchange
store.
ForwardItem
Contains an Exchange store item to forward to recipients.
CancelCalendarItem
Represents the response object that is used to cancel a meeting.
Remarks
The ReceivedRepresenting element is used together with the From and ReceivedBy
elements in delegate access scenarios. The following table lists the entities that these
elements represent in a delegate access scenario.
From
ThirdParty
ReceivedBy
Delegate
ReceivedRepresenting
Principal
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ReceivedTime
Article • 03/29/2023 • 2 minutes to read
The ReceivedTime element specifies the time at which an item was received.
XML
<ReceivedTime></ReceivedTime>
dateTime
Attributes
None.
Child elements
None.
Parent elements
SearchPreviewItem
Text value
The text value of the ReceivedTime element is the date and time that an item was
received.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Recipient
Article • 03/29/2023 • 2 minutes to read
The Recipient element represents the recipient for whom the event occurred.
XML
<Recipient>
<Name/>
<EmailAddress/>
<RoutingType/>
<MailboxType/>
<ItemId/>
</Recipient>
EmailAddressType
Attributes
None.
Child elements
Element Description
Name Represents the name of the mailbox user. This element is optional.
(EmailAddressType)
EmailAddress Defines the primary Simple Mail Transfer Protocol (SMTP) address of a
(NonEmptyStringType) mailbox user. This element is optional.
RoutingType Defines the routing that is used for the mailbox. The default value is
(EmailAddress)
SMTP. This element is optional.
MailboxType
Represents the type of mailbox that is represented by the e-mail address.
This element is optional.
ItemId
Defines the item identifier of a contact or private distribution list for
recipients from a user's Contacts folder. This element is optional.
Parent elements
Element Description
RecipientTrackingEvent
Contains information for a single event for a recipient.
FindMessageTrackingReport
Specifies criteria for the types of messages to find.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
RecipientAddress
Article • 03/29/2023 • 2 minutes to read
XML
<RecipientAddress>
<Name/>
<EmailAddress/>
<RoutingType/>
<MailboxType/>
<ItemId/>
</RecipientAddress>
EmailAddressType
Attributes
None.
Child elements
Element Description
Name Represents the name of the mailbox user. This element is optional.
(EmailAddressType)
EmailAddress Defines the Simple Mail Transfer Protocol (SMTP) address of a mailbox
(NonEmptyStringType) user. This element is optional.
RoutingType Represents the routing protocol for the recipient. The default is SMTP.
(EmailAddress)
This element is optional.
MailboxType
Represents the type of mailbox that is represented by the e-mail address.
ItemId
Defines the item identifier of a contact or private distribution list for
recipients from a user's contacts folder. This element is optional.
Parent elements
Element Description
MailTips
Represents values for various types of mail tips.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
RecipientFilter
Article • 03/29/2023 • 2 minutes to read
The RecipientFilter element represents a recipient address to use with the specified
message tracking report.
XML
<RecipientFilter>
<Name/>
<EmailAddress/>
<RoutingType/>
<MailboxType/>
<ItemId/>
</RecipientFilter>
EmailAddressType
Attributes
None.
Child elements
Element Description
Name Represents the name of the mailbox user. This element is optional.
(EmailAddressType)
EmailAddress Defines the primary Simple Mail Transfer Protocol (SMTP) address of a
(NonEmptyStringType) mailbox user. This element is optional.
RoutingType Represents the routing protocol for this recipient. The default value is
(EmailAddress)
SMTP. This element is optional.
MailboxType
Represents the type of mailbox that is represented by the e-mail address.
This element is optional.
ItemId
Defines the item identifier of a contact or private distribution list for
recipients from a user's Contacts folder. This element is optional.
Parent elements
Element Description
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetMessageTrackingReport operation
The RecipientIs element specifies that any recipient of the e-mail message matches any
of the specified recipients in the child Value (ProtectionRuleValueType) elements.
XML
<RecipientIs> <Value/></RecipientIs>
ProtectionRuleRecipientIsType
Attributes
None.
Child elements
Element Description
Value (ProtectionRuleValueType)
Identifies a recipient.
Parent elements
Element Description
Condition
Identifies the condition that must be satisfied for the action part of the
rule to be executed.
And Indicates that all child elements must match to evaluate to true.
(ProtectionRuleAndType)
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Recipients (ArrayOfRecipientsType)
Article • 03/29/2023 • 2 minutes to read
The Recipients element represents a collection of recipients that receive a copy of the
message.
XML
<Recipients>
<Mailbox/>
</Recipients>
ArrayOfRecipientsType
Attributes
None.
Child elements
Element Description
Mailbox
Identifies a mail-enabled Active Directory object.
Parent elements
Element Description
GetMailTips
Contains the recipients and types of mail tips to retrieve.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Recipients (ArrayOfSmtpAddressType)
Article • 03/29/2023 • 2 minutes to read
XML
<Recipients> <SmtpAddress/></Recipients>
ArrayOfSmtpAddressType
Attributes
None.
Child elements
Element Description
SmtpAddress Represents the Simple Mail Transfer Protocol (SMTP) recipient address of a
calendar or contact sharing request.
Parent elements
Element Description
GetSharingMetadata Defines a request to get an opaque authentication token that identifies the
sharing invitation.
Remarks
The schema that describes this element is located in the IIS Virtual directory that hosts
Exchange Web Services of the computer that is running Microsoft Exchange Server that
has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetSharingMetadata operation
XML
<RecipientTrackingEvent>
<Date/>
<Recipient/>
<DeliveryStatus/>
<EventDescription/>
<EventData/>
<Server/>
<InternalId/>
<BccRecipient/>
<HiddenRecipient/>
<UniquePathId/>
<RootAddress/>
<Properties/>
</RecipientTrackingEvent>
RecipientTrackingEventType
Attributes
None.
Child elements
Element Description
Date (MessageTracking)
This element is required.
Recipient
This element is required.
DeliveryStatus
This element is required.
EventDescription
This element is required.
Element Description
EventData
This element is optional.
Server (MessageTracking)
This element is required.
InternalId
This element is required.
BccRecipient
This element is optional.
HiddenRecipient
This element is optional.
UniquePathId
This element is optional.
RootAddress
This element is optional.
Properties (ArrayOfTrackingPropertiesType)
This element is optional.
Parent elements
Element Description
RecipientTrackingEvents
Contains a list of one or more tracking events for a recipient.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
XML
<RecipientTrackingEvents>
<RecipientTrackingEvent/>
</RecipientTrackingEvents>
ArrayOfRecipientTrackingEventType
Attributes
None.
Child elements
Element Description
RecipientTrackingEvent
Contains details for a specific event in the tracking report.
Parent elements
Element Description
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetMessageTrackingReport operation
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
RecognitionResult
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Recurrence (RecurrenceType)
Article • 03/29/2023 • 2 minutes to read
The Recurrence element contains the recurrence pattern for calendar items and meeting
requests.
XML
<Recurrence>
<RelativeYearlyRecurrence/>
<NoEndRecurrence/>
</Recurrence>
XML
<Recurrence>
<AbsoluteMonthlyRecurrence/>
<NoEndRecurrence/>
</Recurrence>
XML
<Recurrence>
<RelativeMonthlyRecurrence/>
<NumberedRecurrence/>
</Recurrence>
XML
<Recurrence>
<RelativeYearlyRecurrence/>
<EndDateRecurrence/>
</Recurrence>
XML
<Recurrence>
<RelativeYearlyRecurrence/>
<NumberedRecurrence/>
</Recurrence>
XML
<Recurrence>
<WeeklyRecurrence/>
<EndDateRecurrence/>
</Recurrence>
XML
<Recurrence>
<DailyRecurrence/>
<NoEndRecurrence/>
</Recurrence>
XML
<Recurrence>
<AbsoluteYearlyRecurrence/>
<NoEndRecurrence/>
</Recurrence>
XML
<Recurrence>
<DailyRecurrence/>
<EndDateRecurrence/>
</Recurrence>
XML
<Recurrence>
<AbsoluteYearlyRecurrence/>
<NumberedRecurrence/>
</Recurrence>
XML
<Recurrence>
<DailyRecurrence/>
<NumberedRecurrence/>
</Recurrence>
XML
<Recurrence>
<AbsoluteMonthlyRecurrence/>
<EndDateRecurrence/>
</Recurrence>
XML
<Recurrence>
<AbsoluteMonthlyRecurrence/>
<NumberedRecurrence/>
</Recurrence>
XML
<Recurrence>
<RelativeMonthlyRecurrence/>
<NoEndRecurrence/>
</Recurrence>
XML
<Recurrence>
<WeeklyRecurrence/>
<NoEndRecurrence/>
</Recurrence>
XML
<Recurrence>
<WeeklyRecurrence/>
<NumberedRecurrence/>
</Recurrence>
XML
<Recurrence>
<AbsoluteYearlyRecurrence/>
<EndDateRecurrence/>
</Recurrence>
XML
<Recurrence>
<RelativeMonthlyRecurrence/>
<EndDateRecurrence/>
</Recurrence>
RecurrenceType
Attributes and elements
The following sections describe attributes, child elements, and parent elements.
Attributes
None.
Child elements
Element Description
RelativeYearlyRecurrence
Describes a relative yearly recurrence pattern.
AbsoluteYearlyRecurrence
Represents a yearly recurrence pattern.
RelativeMonthlyRecurrence
Describes a relative monthly recurrence pattern for a recurring
calendar item.
WeeklyRecurrence
Describes the frequency, in weeks, and the days that a calendar
item or task recurs.
DailyRecurrence
Describes the frequency, in days, in which a calendar item or task
recurs.
NoEndRecurrence
Describes a recurrence pattern that does not have a defined end
date.
The use of this element excludes the use of the EndDateRecurrence
and NumberedRecurrence elements.
EndDateRecurrence
Describes the start date and the end date of an item recurrence
pattern.
The use of this element excludes the use of the NoEndRecurrence
and NumberedRecurrence elements.
NumberedRecurrence
Describes the start date and the number of occurrences of a
recurring item.
The use of this element excludes the use of the NoEndRecurrence
and EndDateRecurrence elements.
Parent elements
Element Description
Element Description
CalendarItem
Represents an Exchange calendar item.
MeetingRequest
Represents a meeting request in the Exchange store
Remarks
This element is valid if CalendarItemType has the RecurringMaster value.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Recurrence (TaskRecurrenceType)
Article • 03/29/2023 • 2 minutes to read
XML
<Recurrence>
<RelativeYearlyRecurrence/>
<NoEndRecurrence/>
</Recurrence>
XML
<Recurrence>
<WeeklyRecurrence/>
<NoEndRecurrence/>
</Recurrence>
XML
<Recurrence>
<RelativeMonthlyRecurrence/>
<NumberedRecurrence/>
</Recurrence>
XML
<Recurrence>
<AbsoluteMonthlyRecurrence/>
<EndDateRecurrence/>
</Recurrence>
XML
<Recurrence>
<MonthlyRegeneration/>
<NumberedRecurrence/>
</Recurrence>
XML
<Recurrence>
<DailyRegeneration/>
<EndDateRecurrence/>
</Recurrence>
XML
<Recurrence>
<DailyRegeneration/>
<NumberedRecurrence/>
</Recurrence>
XML
<Recurrence>
<DailyRegeneration/>
<NoEndRecurrence/>
</Recurrence>
XML
<Recurrence>
<MonthlyRegeneration/>
<NoEndRecurrence/>
</Recurrence>
XML
<Recurrence>
<YearlyRegeneration/>
<NoEndRecurrence/>
</Recurrence>
XML
<Recurrence>
<YearlyRegeneration/>
<EndDateRecurrence/>
</Recurrence>
XML
<Recurrence>
<AbsoluteMonthlyRecurrence/>
<NumberedRecurrence/>
</Recurrence>
XML
<Recurrence>
<WeeklyRegeneration/>
<NumberedRecurrence/>
</Recurrence>
XML
<Recurrence>
<RelativeMonthlyRecurrence/>
<EndDateRecurrence/>
</Recurrence>
XML
<Recurrence>
<RelativeYearlyRecurrence/>
<NumberedRecurrence/>
</Recurrence>
XML
<Recurrence>
<WeeklyRegeneration/>
<NoEndRecurrence/>
</Recurrence>
XML
<Recurrence>
<AbsoluteYearlyRecurrence/>
<NumberedRecurrence/>
</Recurrence>
XML
<Recurrence>
<RelativeMonthlyRecurrence/>
<NoEndRecurrence/>
</Recurrence>
XML
<Recurrence>
<YearlyRegeneration/>
<NumberedRecurrence/>
</Recurrence>
XML
<Recurrence>
<WeeklyRecurrence/>
<EndDateRecurrence/>
</Recurrence>
XML
<Recurrence>
<RelativeYearlyRecurrence/>
<EndDateRecurrence/>
</Recurrence>
XML
<Recurrence>
<MonthlyRegeneration/>
<EndDateRecurrence/>
</Recurrence>
XML
<Recurrence>
<AbsoluteYearlyRecurrence/>
<NoEndRecurrence/>
</Recurrence>
XML
<Recurrence>
<AbsoluteMonthlyRecurrence/>
<NoEndRecurrence/>
</Recurrence>
XML
<Recurrence>
<DailyRecurrence/>
<EndDateRecurrence/>
</Recurrence>
XML
<Recurrence>
<WeeklyRegeneration/>
<EndDateRecurrence/>
</Recurrence>
XML
<Recurrence>
<AbsoluteYearlyRecurrence/>
<EndDateRecurrence/>
</Recurrence>
XML
<Recurrence>
<DailyRecurrence/>
<NoEndRecurrence/>
</Recurrence>
XML
<Recurrence>
<DailyRecurrence/>
<NumberedRecurrence/>
</Recurrence>
XML
<Recurrence>
<WeeklyRecurrence/>
<NumberedRecurrence/>
</Recurrence>
TaskRecurrenceType
Attributes
None.
Child elements
Element Description
RelativeYearlyRecurrence
Describes a relative yearly recurrence pattern for a recurring task.
AbsoluteYearlyRecurrence
Represents a yearly recurrence pattern for a recurring task.
RelativeMonthlyRecurrence
Describes a relative monthly recurrence pattern for a recurring
task.
WeeklyRecurrence
Describes the frequency, in weeks, and the days on which a task
recurs.
DailyRecurrence
Describes the frequency, in days, in which a task recurs.
DailyRegeneration
Describes how many days after the completion of the current task
the next occurrence will be due.
WeeklyRegeneration
Describes how many weeks after the completion of the current
task the next occurrence will be due.
MonthlyRegeneration
Describes how many months after the completion of the current
task the next occurrence will be due.
YearlyRegeneration
Describes how many years after the completion of the current task
the next occurrence will be due.
NoEndRecurrence
Describes a recurrence pattern that does not have a defined end
date.
The use of this element excludes the use of the EndDateRecurrence
and NumberedRecurrence elements.
EndDateRecurrence
Describes the start date and the end date of an item recurrence
pattern.
The use of this element excludes the use of the NoEndRecurrence
and NumberedRecurrence elements.
EndDateRecurrence cannot be used together with a regeneration
pattern.
NumberedRecurrence
Describes the start date and the number of occurrences of a
recurring item.
The use of this element excludes the use of the NoEndRecurrence
and EndDateRecurrence elements.
Parent elements
Element Description
Task
Represents a task in the Exchange store.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
RecurrenceId
Article • 03/29/2023 • 2 minutes to read
XML
<RecurrenceId/>
dateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
MeetingMessage
Represents a meeting message.
MeetingRequest
Represents a meeting request.
MeetingResponse
Represents a meeting response.
Text value
The text value represents a date/time value that identifies a calendar occurrence.
Remarks
This property is used with the UID property to identify a specific instance of a recurring
calendar item.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
RecurringDateTransition
Article • 03/29/2023 • 2 minutes to read
XML
<RecurringDateTransition>
<To/>
<TimeOffset/>
<Month/>
<Day/>
</RecurringDateTransition>
RecurringDateTransitionType
Attributes
None.
Child elements
Element Description
To
Specifies the Period or TransitionsGroup that is the target of the time
zone transition.
TimeOffset
Represents the duration offset from Coordinated Universal Time (UTC) for
the time zone transition.
Month (Time Zone Represents the month in which the time zone transition occurs.
Transition)
Day
Represents the day of the month on which the time zone transition
occurs.
Parent elements
Element Description
Transitions
Represents a collection of time zone transitions.
TransitionsGroup
Represents a collection of time zone transitions.
Remarks
An example of a time zone transition that could be represented by the
RecurringDateTransition element is a transition that occurs on March 15 each year.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server that has the Client Access server
role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
RecurringDayTransition
Article • 03/29/2023 • 2 minutes to read
XML
<RecurringDayTransition>
<To/>
<TimeOffset/>
<Month/>
<DayOfWeek/>
<Occurrence/>
</RecurringDayTransition>
RecurringDayTransitionType
Attributes
None.
Child elements
Element Description
To
Specifies the Period or TransitionsGroup that is the target of the time
zone transition.
TimeOffset
Represents the duration offset from Coordinated Universal Time (UTC)
for the time zone transition.
Month (Time Zone Represents the month in which the time zone transition occurs.
Transition)
DayOfWeek (TimeZone) Represents the day of the week on which the time zone transition
occurs.
Occurrence (Time Zone Represents the occurrence of the day of the week in the month that
Transition)
the time zone transition occurs.
Parent elements
Element Description
Transitions
Represents a collection of time zone transitions.
TransitionsGroup
Represents a collection of time zone transitions.
Remarks
An example of a time zone transition that could be represented by the
RecurringDayTransition element is a transition that occurs on the second Tuesday of
February each year.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server that has the Client Access server
role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
RecurringMasterItemId
Article • 03/29/2023 • 2 minutes to read
XML
RecurringMasterItemIdType
Attributes
Attribute Description
OccurrenceId Identifies a single occurrence of a recurring master item. This attribute is required.
ChangeKey
Identifies a specific version of a single occurrence of a recurring master item.
Additionally, the recurring master item is also identified because it and the single
occurrence will contain the same change key. This attribute is optional.
Child elements
None.
Parent elements
Element Description
GlobalItemIds Contains the collection of item identifiers for all conversation items in a mailbox.
ItemChange
Contains an item identifier and the updates to apply to the item.
/UpdateItem/ItemChanges/ItemChange[i]
Element Description
ItemIds
Contains the unique identities of items, occurrence items, and recurring master
items that are used to delete, send, get, move, or copy items in the Exchange
store.
/DeleteItem/ItemIds
/SendItem/ItemIds
/GetItem/ItemIds
/MoveItem/ItemIds
/CopyItem//ItemIds
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Example
The following example identifies the recurring master item by identifying one of its
occurrences with the identifier 56lkjh6.
XML
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
OccurrenceItemId
FindConversation operation
RecurringMasterItemId (ItemIdType)
Article • 03/29/2023 • 2 minutes to read
XML
ItemIdType
Attributes
Attribute Description
Child elements
None.
Parent elements
Reminder
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Reminder
XML
<Ranges/>
</RecurringMasterItemIdRanges>
RecurringMasterItemIdRangesType
Attributes
Attribute Description
Id
The text value of the Id attribute is a recurring master item's unique identifier. This
is a string value.
ChangeKey The text value of the ChangeKey attribute is the recurring master item's change key.
This is a string value.
Child elements
Ranges
Parent elements
ItemIds | GlobalItemIds | DraftItemIds | ContactIds | GroupIds
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
ReferenceAttachment
Article • 03/29/2023 • 2 minutes to read
XML
<Ranges/>
</RecurringMasterItemIdRanges>
ReferenceAttachmen
Attributes
Attribute Description
Id
The text value of the Id attribute is a recurring master item's unique identifier. This
is a string value.
ChangeKey The text value of the ChangeKey attribute is the recurring master item's change key.
This is a string value.
Child elements
Ranges
Parent elements
ItemIds | GlobalItemIds | DraftItemIds| ContactIds | GroupIds
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
ReferenceAttachmentType complexType
(EWS)
Article • 03/29/2023 • 2 minutes to read
Type information
Element Description
Namespace
https://schemas.microsoft.com/exchange/services/2006/types
Schema file
types.xsd
Extension base
t:AttachmentType
Definition
XML
<xs:complexType name="ReferenceAttachmentType">
<xs:complexContent>
<xs:extension base="t:AttachmentType">
<xs:sequence>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
Child elements
AttachLongPathName
xs:string
Attributes
None.
RedirectToRecipients
Article • 03/29/2023 • 2 minutes to read
The RedirectToRecipients element indicates the e-mail addresses to which messages are
to be redirected.
XML
<RedirectToRecipients>
<Address/>
</RedirectToRecipients>
ArrayOfEmailAddressesType
Attributes
None.
Child elements
Element Description
Address (EmailAddressType)
Represents a fully resolved e-mail address.
Parent elements
Element Description
Actions
Represents the set of actions that are available to be taken on a message when the
conditions are fulfilled.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
ReferenceId
Article • 03/29/2023 • 2 minutes to read
The ReferenceId element specifies the reference identifier for the mailbox.
XML
<ReferenceId></ReferenceId>
string
Attributes
None.
Child elements
None.
Parent elements
SearchableMailbox
Text value
The text value of the ReferenceId element is the reference identifier of a mailbox.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
ReferenceItemId
Article • 03/29/2023 • 2 minutes to read
The ReferenceItemId element identifies the item to which the response object refers.
XML
ItemIdType
Attributes
Attribute Description
Id
Identifies a specific item in the Exchange store.
ChangeKey
Identifies a specific version of an item.
Child elements
None.
Parent elements
Element Description
AcceptItem
Represents an Accept reply to a meeting request.
CancelCalendarItem
Represents the response object that is used to cancel a meeting.
DeclineItem
Represents a Decline reply to a meeting request.
ForwardItem
Contains an Exchange store item to forward to recipients.
RemoveItem
Removes an item from the Exchange store.
Element Description
ReplyAllToItem
Contains a reply to all identified recipients of an item in the Exchange
store.
ReplyToItem
Contains a reply to the creator of an item in the Exchange store.
SuppressReadReceipt
Used to respond to read receipt requests.
TentativelyAcceptItem
Represents a Tentative reply to a meeting request.
Remarks
The schema that describes this element is located in the IIS Virtual directory that hosts
Exchange Web Services of the computer that is running Microsoft Exchange Server that
has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
References
Article • 03/29/2023 • 2 minutes to read
The References element represents the Usenet header that is used to associate replies
with the original messages.
XML
<References/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
RemoveItem
Removes an item from the Exchange store.
Message
Represents an Exchange e-mail message.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
AcceptItem
Represents an Accept reply to a meeting request.
DeclineItem
Represents a Decline reply to a meeting request.
ReplyToItem
Contains a reply to the creator of an item in the Exchange store.
ReplyAllToItem
Contains a reply to all identified recipients of an item in the Exchange
store.
ForwardItem
Contains an Exchange store item to forward to recipients.
CancelCalendarItem
Represents the response object that is used to cancel a meeting.
PostItem
Represents a post item in the Exchange store. This element was
introduced in Microsoft Exchange Server 2007 Service Pack 1 (SP1).
Text value
The text value represents a Usenet header.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Refiner
Article • 03/29/2023 • 2 minutes to read
XML
<Refiner>
<Name/>
<Value/>
<Count/>
<Token/>
</Refiner>
SearchRefinerItemType
Attributes
None.
Child elements
Name (string) | Value | Count | Token (String)
Parent elements
Refiners
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Refiners
Article • 03/29/2023 • 2 minutes to read
XML
<Refiners>
<Refiner/>
</Refiners>
ArrayOfSearchRefinerItemsType
Attributes
None.
Child elements
Refiner
Parent elements
SearchMailboxesResult
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
RefreshSharingFolder
Article • 03/29/2023 • 2 minutes to read
XML
<RefreshSharingFolder> <SharingFolderId/></RefreshSharingFolder>
RefreshSharingFolderType
Attributes
None.
Child elements
Element Description
SharingFolderId
Represents the identifier of the local folder in a sharing relationship.
Parent elements
None.
Remarks
The schema that describes this element is located in the IIS Virtual directory that hosts
Exchange Web Services of the computer that is running Microsoft Exchange Server that
has the Client Access server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
RefreshSharingFolderResponse
Article • 03/29/2023 • 2 minutes to read
XML
<RefreshSharingFolderResponse ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</RefreshSharingFolderResponse>
RefreshSharingFolderResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of the response.
- Success
- Warning
- Error
-
Value Description
Success
Describes a request that is fulfilled.
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and reserved for future use. This element contains a value
of 0.
MessageXml
Provides additional error response information.
Parent elements
None.
Remarks
The schema that describes this element is located in the IIS Virtual directory that hosts
Exchange Web Services of the computer that is running Microsoft Exchange Server that
has the Client Access server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
RefreshSharingFolder operation
EWS XML elements in Exchange
RefreshSharingFolderResponseMessage
Article • 03/29/2023 • 2 minutes to read
XML
<RefreshSharingFolderResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</RefreshSharingFolderResponseMessage>
RefreshSharingFolderResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of the response.
- Success
- Warning
- Error
Value Description
Success
Describes a request that is fulfilled.
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and reserved for future use. This element contains a value
of 0.
MessageXml
Provides additional error response information.
Parent elements
Element Description
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
The schema that describes this element is located in the IIS Virtual directory that hosts
Exchange Web Services of the computer that is running Microsoft Exchange Server that
has the Client Access server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
RefreshSharingFolder operation
EWS XML elements in Exchange
RelativeFolderPath
Article • 03/29/2023 • 2 minutes to read
The RelativeFolderPath element contains an array of folders that indicate the relative
folder path of the folder path to be created.
XML
<RelativeFolderPath>
<Folder/>
<CalendarFolder/>
<ContactsFolder/>
<SearchFolder/>
<TasksFolder/>
</RelativeFolderPath>
NonEmptyArrayOfFoldersType
Attributes
None.
Child elements
Folder | CalendarFolder | ContactsFolder | SearchFolder | TasksFolder
Parent elements
CreateFolderPath
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
RelativeMonthlyRecurrence
Article • 03/29/2023 • 2 minutes to read
XML
<RelativeMonthlyRecurrence>
<Interval/>
<DaysOfWeek/>
<DayOfWeekIndex/>
</RelativeMonthlyRecurrence>
RelativeMonthlyRecurrencePatternType
Attributes
None.
Child elements
Element Description
Interval
Defines the interval between two consecutive monthly recurring pattern
items. The range for this value is 1 to 99.
DaysOfWeek Describes which days of the week are in the relative monthly recurrence
(DayOfWeekType)
pattern.
DayOfWeekIndex
Describes which week is used in a relative monthly recurrence pattern.
Parent elements
Element Description
Recurrence (RecurrenceType)
Contains the recurrence pattern for calendar items and meeting
requests.
Element Description
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
RelativeYearlyRecurrence
Article • 03/29/2023 • 2 minutes to read
XML
<RelativeYearlyRecurrence>
<DaysOfWeek/>
<DayOfWeekIndex/>
<Month/>
</RelativeYearlyRecurrence>
RelativeYearlyRecurrencePatternType
Attributes
None.
Child elements
Element Description
DaysOfWeek Describes the days of the week that are used in item recurrence
(DayOfWeekType)
patterns.
DayOfWeekIndex
Describes which week in a month is used in a relative yearly
recurrence pattern.
Parent elements
Element Description
Element Description
Recurrence Contains the recurrence pattern for calendar items and meeting
(RecurrenceType)
requests.
Standard
Represents the date and time when the time changes from daylight
saving time to standard time.
Daylight
Represents the date and time when the time changes from standard
time to daylight saving time.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
RelevanceScore
Article • 03/29/2023 • 2 minutes to read
The RelevanceScore element specifies an integer that represents how relevant the
associated persona is to the client.
XML
<RelevanceScore></RelevanceScore>
integer
Attributes
None.
Child elements
None.
Parent elements
Persona
Text value
The text value of the RelevanceScore element is the determination of how relevant a
persona is to the client. This element is read-only.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Reminder
Article • 03/29/2023 • 2 minutes to read
XML
<Reminder>
<Subject></Subject>
<Location></Location>
<ReminderTime></ReminderTime>
<StartDate></StartDate>
<EndDate></EndDate>
<ItemId></ItemId>
<RecurringMasterItemId></RecurringMasterItemId>
<ReminderGroup></ReminderGroup>
<UID></UID>
</Reminder>
ReminderType
Attributes
None.
Child elements
Subject | Location | ReminderTime | StartDate | EndDate (ReminderType) | ItemId |
RecurringMasterItemId (ItemIdType) | ReminderGroup | UID
Parent elements
Reminders
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Reminders
The ReminderDueBy element represents the date and time when the event occurs. This
is used by the ReminderMinutesBeforeStart element to determine when the reminder is
displayed.
XML
<ReminderDueBy/>
DateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
Contact
Represents an Exchange contact item.
DistributionList
Represents a distribution list.
Item
Represents an item in the Exchange store.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
Element Description
MeetingResponse
Represents a meeting response in the Exchange store.
Message
Represents an Exchange e-mail message.
RemoveItem
Removes an item from the Exchange store.
Task
Represents a task in the Exchange store.
Text value
The text value represents the date and time when a reminder is due.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ReminderGroup
Article • 03/29/2023 • 2 minutes to read
The ReminderGroup element specifies whether the reminder is for a calendar item or a
task.
XML
ReminderGroupType
Attributes
None.
Child elements
None.
Parent elements
Reminder
Text value
The text value of the ReminderGroup element is the group type of the reminder. The
text value of Calendar specifies that the reminder is for a calendar item. The text value
of Task specifies that the reminder is for a task item.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Reminder
The ReminderIsSet element indicates whether a reminder has been set for an item in
the Exchange store.
XML
<ReminderIsSet/>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
Contact
Represents an Exchange contact item.
DistributionList
Represents a distribution list.
Item
Represents an item in the Exchange store.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Element Description
Message
Represents an Exchange e-mail message.
RemoveItem
Removes an item from the Exchange store.
Task
Represents a task in the Exchange store.
Text value
A text value of true indicates that a reminder has been set.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
XML
<ReminderItemAction>
<ActionType></ActionType>
<ItemId></ItemId>
<NewReminderTime></NewReminderTime>
</ReminderItemAction>
ReminderItemActionType
Attributes
None.
Child elements
ActionType (ReminderActionType) | ItemId | NewReminderTime
Parent elements
ReminderItemActions
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
ReminderItemActions
XML
<ReminderItemActions>
<ReminderItemAction></ReminderItemAction>
</ReminderItemActions>
NonEmptyArrayOfReminderItemActionType
Attributes
None.
Child elements
ReminderItemAction
Parent elements
PerformReminderAction
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
PerformReminderAction
XML
<ReminderMessageData>
<ReminderText></ReminderText>
<Location></Location>
<StartTime></StartTime>
<EndTime></EndTime>
<AssociatedCalendarItemId></AssociatedCalendarItemId>
</ReminderMessageData>
ReminderMessageDataType
Attributes
None.
Child elements
ReminderText | Location | StartTime (ReminderMessageDataType) | EndTime
(ReminderMessageDataType) | AssociatedCalendarItemId
Parent elements
Message
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Versions of Exchange starting with build number 15.00.0913.09 can include the
AssociatedCalendarItemId element as a child element of the ReminderMessageData
element.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Message
XML
<ReminderMinutesBeforeStart/>
ReminderMinutesBeforeStartType
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
Contact
Represents an Exchange contact item.
DistributionList
Represents a distribution list.
Item
Represents an item in the Exchange store.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Element Description
Message
Represents an Exchange e-mail message.
RemoveItem
Removes an item from the Exchange store.
Task
Represents a task in the Exchange store.
Text value
The text value represents, in minutes, the time before an event occurs when a reminder
is displayed.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ReminderNextTime
Article • 03/29/2023 • 2 minutes to read
The ReminderNextTime element specifies the date and time for the next reminder.
XML
<ReminderNextTime></ReminderNextTime>
dateTime
Attributes
None.
Child elements
None.
Parent elements
SearchPreviewItem | Item | Contact | Message | DistributionList | CalendarItem | PostItem
| Task
Text value
The text value for the ReminderNextTime element is the date and time of the next
scheduled reminder.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Reminders
Article • 03/29/2023 • 2 minutes to read
XML
<Reminders>
<Reminder></Reminder>
</Reminders>
ArrayOfRemindersType
Attributes
None.
Child elements
Reminder
Parent elements
GetRemindersResponse
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetRemindersResponse
XML
<ReminderText/>
string
Attributes
None.
Child elements
None.
Parent elements
ReminderMessageData
Text value
The text value of the ReminderText element is the text of a reminder message.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
ReminderMessageData
The ReminderTime element specifies the time for the reminder to occur.
XML
<ReminderTime/>
dateTime
Attributes
None.
Child elements
None.
Parent elements
Reminder
Text value
The text value of the ReminderTime element is the time for the reminder to occur.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Reminder
XML
string
Attributes
None.
Child elements
None.
Parent elements
GetReminders
Text value
The text value of the ReminderType element is the type of reminders to return, either
All, Current, or Old. All is the recommended value for this element. For more
information about the relationship between the ReminderType element and the
BeginTime and EndTime elements, see GetReminders operation.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetReminders
XML
<RemoveContactFromImList>
<ContactId/>
</RemoveContactFromImList>
RemoveContactFromImListType
Attributes
None.
Child elements
ContactId
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
RemoveContactFromImListResponse
Article • 03/29/2023 • 2 minutes to read
XML
<RemoveContactFromImListResponse>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</RemoveContactFromImListResponse>
RemoveContactFromImListResponseMessageType
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<RemoveDelegate>
<Mailbox/>
<UserIds/>
</RemoveDelegate>
RemoveDelegateType
Attributes
None.
Child elements
Element Description
UserIds
Contains an array of delegate users to remove from a principal's mailbox. This element
was introduced in Exchange 2007 SP1.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
RemoveDelegate operation
XML
<RemoveDelegateResponse>
<ResponseMessages/>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</RemoveDelegateResponse>
RemoveDelegateResponseMessageType
Attributes
None.
Child elements
Element Description
MessageText
Provides a text description of the status of the
response.
ResponseCode
Provides an error code that identifies the specific
error that the request encountered.
DescriptiveLinkKey
Currently unused and is reserved for future use. It
contains a value of 0.
MessageXml
Provides additional error response information.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
RemoveDelegate operation
XML
<RemoveDistributionGroupFromImList>
<GroupId/>
</RemoveDistributionGroupFromImList>
RemoveDistributionGroupFromImListType
Attributes
None.
Child elements
GroupId
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<RemoveDistributionGroupFromImListResponse>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</RemoveDistributionGroupFromImListResponse>
RemoveDistributionGroupFromImListResponseMessageType
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<RemoveImContactFromGroup>
<ContactId/>
<GroupId/>
</RemoveImContactFromGroup>
RemoveImContactFromGroupType
Attributes
None.
Child elements
ContactId | GroupId
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
RemoveImContactFromGroupResponse
Article • 03/29/2023 • 2 minutes to read
XML
<RemoveImContactFromGroupResponse>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</RemoveImContactFromGroupResponse>
RemoveImContactFromGroupResponseMessageType
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<RemoveImGroup>
<GroupId/>
</RemoveImGroup>
RemoveImGroupType
Attributes
None.
Child elements
GroupId
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
RemoveImGroupResponse
Article • 03/29/2023 • 2 minutes to read
XML
<RemoveImGroupResponse>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</RemoveImGroupResponse>
RemoveImGroupResponseMessageType
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<RemoveItem ObjectName="">
<ReferenceItemId/>
</RemoveItem>
RemoveItemType
Attributes
Attribute Description
ObjectName
Represents the name of the RemoveItem reply object class as an English string.
Child elements
Element Description
ReferenceItemId
Identifies the item to which the RemoveItem response object refers.
Parent elements
Element Description
ResponseObjects
Contains a collection of all the response objects that are
associated with an item in the Exchange store.
Remarks
RemoveItem is valid only for a MeetingCancellation. Otherwise, an error is thrown.
7 Note
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
RemoveOutlookRuleBlob
Article • 03/29/2023 • 2 minutes to read
UpdateInboxRules
RemoveOutlookRuleBlob
XML
<RemoveOutlookRuleBlob>true | false</RemoveOutlookRuleBlob>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
UpdateInboxRules
Defines a request to update the Inbox rules in a mailbox in the server store.
Text value
A text value of true indicates that the Outlook rule blob should be removed. A text value
of false indicates that the Outlook rule blob should not be removed.
Remarks
Set this element to true to allow for an Inbox rule update.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
UpdateInboxRules operation
The ReplyAllAllowed element specifies whether a reply all is allowed for rights managed
data.
XML
Boolean
Attributes
None.
Child elements
None.
Parent elements
RightsManagementLicenseData
Text value
A text value of true for the ReplyAllAllowed element indicates that a reply all is allowed
for the rights managed data. A value of false indicates that a reply all is not allowed.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
ReplyAllowed
Article • 03/29/2023 • 2 minutes to read
The ReplyAllowed element specifies whether a reply is allowed for rights managed data.
XML
Boolean
Attributes
None.
Child elements
None.
Parent elements
RightsManagementLicenseData
Text value
A text value of true for the ReplyAllowed element indicates that replies are allowed for
the rights managed data. A value of false indicates that replies are not allowed.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
ReplyAllToItem
Article • 03/29/2023 • 2 minutes to read
The ReplyToAllItem element contains a reply to the sender and all identified recipients of an item in the
Exchange store.
XML
<ReplyAllToItem>
<Subject/>
<Body/>
<ToRecipients/>
<CcRecipients/>
<BccRecipients/>
<IsReadReceiptRequested/>
<IsDeliveryReceiptRequested/>
<From/>
<ReferenceItemId/>
<NewBodyContent/>
<ReceivedBy/>
<ReceivedRepresenting/>
</ReplyAllToItem>
ReplyAllToItemType
Attributes
None.
Child elements
Element Description
Subject
Represents the subject property of Exchange store items.
Body
Represents the actual body content of a message.
ToRecipients
Contains a set of recipients of an item. These are the primary recipients of an item.
CcRecipients
Represents a collection of recipients that will receive a copy of the message.
BccRecipients
Represents a collection of recipients to receive a blind carbon copy (Bcc) of an e-mail message.
IsReadReceiptRequested
Indicates whether the sender of an item requests a read receipt.
From
Represents the address from which the message was sent.
ReferenceItemId
Identifies the item to which the response object refers.
NewBodyContent
Represents the new body content of a message.
Element Description
ReceivedBy
Identifies the delegate in a delegate access scenario. This element was introduced in Microsoft
Exchange Server 2007 Service Pack 1 (SP1).
ReceivedRepresenting
Identifies the principal in a delegate access scenario. This element was introduced in Exchange
2007 SP1.
Parent elements
Element Description
AdjacentMeetings
Describes all items that are adjacent to a meeting time.
/CalendarItem/AdjacentMeetings
/MeetingRequest/AdjacentMeetings
/SetItemField/CalendarItem/AdjacentMeetings
/AppendToItemField/CalendarItem/AdjacentMeetings
/AcceptItem/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/DeclineItem/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/TentativelyAcceptItem/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/SetItemField/CalendarItem/AdjacentMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/AppendToItemField/CalendarItem/AdjacentMeetings
/CreateAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/GetAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/CalendarItem/ConflictingMeetings
/MeetingRequest/ConflictingMeetings
/SetItemField/CalendarItem/ConflictingMeetings
/AppendToItemField/CalendarItem/ConflictingMeetings
/AcceptItem/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/DeclineItem/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/TentativelyAcceptItem/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/SetItemField/CalendarItem/ConflictingMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/AppendToItemField/CalendarItem/ConflictingMeetings
/CreateAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/GetAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
ResponseObjects
Contains a collection of all the response objects that are associated with an item in the Exchange
store.
Items Contains an array of items to create in the folder identified by the ParentFolderId
(NonEmptyArrayOfAllItemsType) (TargetFolderIdType) element.
Remarks
The From element should be set to the e-mail address of the principal if an item is a reply by a delegate. If the
delegate does not set the From property, the item will appear to have been sent directly from the delegate's
mailbox.
The schema that describes this element is located in the EWS virtual directory of the computer that is running
Microsoft Exchange Server 2007 that has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ReplyBody
Article • 03/29/2023 • 2 minutes to read
The ReplyBody element contains an Out of Office (OOF) message and the language
used for the message.
XML
<ReplyBody xml:lang="">
<Message/>
</ReplyBody>
ReplyBody
Attributes
Attribute Description
xml:lang Specifies the language used in the ReplyBody contents. This attribute is optional. The
possible values of this attribute are defined by IETF RFC 3066.
Child elements
Element Description
Message (Availability)
Contains the out of office (OOF) response.
Parent elements
Element Description
OutOfOffice Defines the OOF response message and a duration time for sending the response
message for a mailbox.
Text value
None.
Remarks
This element is required.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ReplyTo
Article • 03/29/2023 • 2 minutes to read
The ReplyTo element identifies an array of addresses to which replies should be sent.
XML
<ReplyTo>
<Mailbox/>
</ReplyTo>
ArrayOfRecipientsType
Attributes
None.
Child elements
Element Description
Mailbox Identifies a mail-enabled Active Directory directory service object to which a reply is
sent.
Parent elements
Element Description
RemoveItem
Removes an item from the Exchange store.
Message
Represents an Exchange e-mail message.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
AcceptItem
Represents an Accept reply to a meeting request.
DeclineItem
Represents a Decline reply to a meeting request.
ReplyToItem
Contains a reply to the creator of an item in the Exchange store.
ReplyAllToItem
Contains a reply to all identified recipients of an item in the Exchange
store.
ForwardItem
Contains an Exchange store item to forward to recipients.
CancelCalendarItem
Represents the response object that is used to cancel a meeting.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ReplyToItem
Article • 03/29/2023 • 2 minutes to read
The ReplyToItem element contains a reply to the sender of an item in the Exchange store.
XML
<ReplyToItem>
<Subject/>
<Body/>
<ToRecipients/>
<CcRecipients/>
<BccRecipients/>
<IsReadReceiptRequested/>
<IsDeliveryReceiptRequested/>
<From/>
<ReferenceItemId/>
<NewBodyContent/>
<ReceivedBy/>
<ReceivedRepresenting/>
</ReplyToItem>
ReplyToItemType
Attributes
None.
Child elements
Element Description
Subject
Represents the subject property of Exchange store items.
Body
Represents the actual body content of a message.
ToRecipients
Contains an array of recipients of an item. These are the primary recipients of an item.
CcRecipients
Represents a collection of recipients that will receive a copy of the message.
BccRecipients
Represents a collection of recipients to receive a blind carbon copy (Bcc) of an e-mail message.
IsReadReceiptRequested
Indicates whether the sender of an item requests a read receipt.
From
Represents the address from which the message was sent.
ReferenceItemId
Identifies the item to which the response object refers.
NewBodyContent
Represents the new body content of a message.
ReceivedBy
Identifies the delegate in a delegate access scenario. This element was introduced in Microsoft
Exchange Server 2007 Service Pack 1 (SP1).
Element Description
ReceivedRepresenting
Identifies the principal in a delegate access scenario. This element was introduced in Exchange
2007 SP1.
Parent elements
Element Description
AdjacentMeetings
Describes all items that are adjacent to a meeting time.
/CalendarItem/AdjacentMeetings
/MeetingRequest/AdjacentMeetings
/SetItemField/CalendarItem/AdjacentMeetings
/AppendToItemField/CalendarItem/AdjacentMeetings
/AcceptItem/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/DeclineItem/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/TentativelyAcceptItem/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/SetItemField/CalendarItem/AdjacentMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/AppendToItemField/CalendarItem/AdjacentMeetings
/CreateAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/GetAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/CalendarItem/ConflictingMeetings
/MeetingRequest/ConflictingMeetings
/SetItemField/CalendarItem/ConflictingMeetings
/AppendToItemField/CalendarItem/ConflictingMeetings
/AcceptItem/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/DeclineItem/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/TentativelyAcceptItem/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/SetItemField/CalendarItem/ConflictingMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/AppendToItemField/CalendarItem/ConflictingMeetings
/CreateAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/GetAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
ResponseObjects
Contains a collection of all the response objects that are associated with an item in the Exchange
store.
Items Contains an array of items to create in the folder that is identified by the ParentFolderId
(NonEmptyArrayOfAllItemsType) (TargetFolderIdType) element.
Remarks
The From element should be set to the e-mail address of the principal if an item is a reply by a delegate. If the
delegate does not set the From property, the item will appear to have been sent directly from the delegate's
mailbox.
The schema that describes this element is located in the EWS virtual directory of the computer that is running
Microsoft Exchange Server 2007 that has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ReportTemplate
Article • 03/29/2023 • 2 minutes to read
XML
<ReportTemplate>Summary or RecipientPath</ReportTemplate>
MessageTrackingReportTemplateType
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
The following table lists the possible values for the ReportTemplate element.
Value Description
Summary Specifies that the report will display all the recipients of the message and the
delivery status of the message to each recipient.
Value Description
RecipientPath Specifies that for a single recipient, the report will display a full history of the
events that occurred.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
RequestedConfiguration
Article • 03/29/2023 • 2 minutes to read
XML
<RequestedConfiguration>
<ConfigurationName/>
</RequestedConfiguration>
ArrayOfServiceConfigurationType
Attributes
None.
Child elements
Element Description
ConfigurationName
Specifies the requested service configurations by name.
Parent elements
Element Description
GetServiceConfiguration
Defines a GetServiceConfiguration request.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
RequestedExtensionIds
Article • 03/29/2023 • 2 minutes to read
XML
<RequestedExtensionIds>
<String/>
</RequestedExtensionIds>
ArrayOfStringsType
Attributes
None.
Child elements
String
Parent elements
GetClientExtension
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
RequestedView
Article • 03/29/2023 • 2 minutes to read
The RequestedView element defines the type of calendar information that a client
requests.
GetUserAvailabilityRequest
FreeBusyViewOptions
RequestedView
XML
FreeBusyViewType
Attributes
None.
Child elements
None.
Parent elements
Element Description
FreeBusyViewOptions
Specifies the type of free/busy information returned in the response.
The following is the XPath to this element:
/GetUserAvailabilityRequest/FreeBusyViewOptions
Text value
A text value is required. The following table lists the possible values for this element.
Value Description
None This value is not valid for requests. This value is valid for responses.
FreeBusy Represents the legacy status information: free, busy, tentative, and OOF. This
also includes the start/end times of the appointments. This view is richer than
the legacy free/busy view because individual meeting start and end times are
provided instead of an aggregated free/busy stream.
FreeBusyMerged Represents all the properties in FreeBusy with a stream of merged free/busy
information.
Detailed Represents the legacy status information: free, busy, tentative, and OOF; the
start/end times of the appointments; and various properties of the
appointment such as subject, location, and importance. This requested view
will return the maximum amount of information for which the requesting user
is privileged. If merged free/busy information only is available, as with
requesting information for users in a Microsoft Exchange Server 2003 forest,
MergedOnly will be returned. Otherwise, FreeBusy or Detailed will be
returned.
DetailedMerged Represents all the properties in Detailed with a stream of merged free/busy
information. If merged free/busy information only is available, MergedOnly
will be returned. Otherwise, FreeBusyMerged or DetailedMerged will be
returned.
Remarks
The value set by this element is returned with the FreeBusyViewType element in the
response.
The following table shows what is returned for the different view types and the
corresponding MAPI property. Each view type builds upon the former view type.
MergedOnly
MergedFreeBusyStream
FreeBusy
Classical status PropTag (0x80860003)
Free/Busy View Type Properties MAPI Calendar Property
FreeBusy
Working hours
FreeBusy
Start time PR_START_DATE
FreeBusy
End time PR_END_DATE
FreeBusyMerged
Classical status PropTag (0x80860003)
FreeBusyMerged
Working hours
FreeBusyMerged
Start time PR_START_DATE
FreeBusyMerged
End time PR_END_DATE
FreeBusyMerged
MergedFreeBusyStream
Detailed
Classical status PropTag (0x80860003)
Detailed
Working hours
Detailed
Start time PR_START_DATE
Detailed
End time PR_END_DATE
Detailed
Subject PR_SUBJECT
Detailed
Location PR_LOCATION
Detailed
Entry-Id(unless private)
Detailed
Private Flag
Detailed
IsMeeting
Detailed
IsRecurring
Detailed
IsException
Detailed
IsReminderSet
DetailedMerged
Classical status PropTag (0x80860003)
DetailedMerged
Working hours
DetailedMerged
Start time PR_START_DATE
DetailedMerged
End time PR_END_DATE
DetailedMerged
Subject PR_SUBJECT
DetailedMerged
Location PR_LOCATION
Free/Busy View Type Properties MAPI Calendar Property
DetailedMerged
Entry-Id(unless private)
DetailedMerged
Private Flag
DetailedMerged
MergedFreeBusyStream
DetailedMerged
IsMeeting
DetailedMerged
IsRecurring
DetailedMerged
IsException
DetailedMerged
IsReminderSet
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
XML
<RequestServerVersion Version=""/>
ExchangeVersionType
Attributes
Attribute Description
Version Describes the version to target for the request. This attribute is required when the
target server version is a version of Exchange starting with Exchange Server 2010.
Value Description
Exchange2007 Target the schema files for the initial release version of Exchange 2007.
Exchange2007_SP1 Target the schema files for Exchange 2007 Service Pack 1 (SP1), Exchange
2007 Service Pack 2 (SP2), and Exchange 2007 Service Pack 3 (SP3).
Exchange2010_SP1 Target the schema files for Exchange 2010 Service Pack 1 (SP1).
Exchange2010_SP2 Target the schema files for Exchange 2010 Service Pack 2 (SP2) and
Exchange 2010 Service Pack 3 (SP3).
Exchange2013_SP1 Target the schema files for Exchange 2013 Service Pack 1 (SP1).
Child elements
None.
Parent elements
The RequestServerVersion element is located in the SOAP header.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Versioning Requests
RequestType
Article • 03/29/2023 • 2 minutes to read
XML
<RequestType>CrossSite or CrossForest</RequestType>
AvailabilityProxyRequestType
Attributes
None.
Child elements
None.
Parent elements
This element does not have a parent in the schema. This element is used in the SOAP
header. For more information about how this element is used, see the WSDL file.
Text value
A text value is required for this element. The following are the possible values:
CrossSite
CrossForest
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
RequiredAttendees
Article • 03/29/2023 • 2 minutes to read
XML
<RequiredAttendees>
<Attendee/>
</RequiredAttendees>
NonEmptyArrayOfAttendeesType
Attributes
None.
Child elements
Element Description
Attendee
Represents attendees and resources for a meeting.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
MeetingRequest
Represents a meeting request in the Exchange store.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Resolution
Article • 03/29/2023 • 2 minutes to read
ResolveNamesResponse
ResponseMessages
ResolveNamesResponseMessage
ResolutionSet
Resolution
XML
<Resolution>
<Mailbox/>
<Contact/>
</Resolution>
ResolutionType
Attributes
None.
Child elements
Element Description
Mailbox
Identifies a mail-enabled Active Directory directory service object.
Contact
Represents an Exchange contact item.
Parent elements
Element Description
ResolutionSet
Contains an array of resolutions for an ambiguous name.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
ResolveNames
ResolveNamesResponse
ResolveNames operation
ResolutionSet
Article • 03/29/2023 • 2 minutes to read
ResolveNamesResponse
ResponseMessages
ResolveNamesResponseMessage
ResolutionSet
XML
<Resolution/>
</ResolutionSet>
ArrayOfResolutionType
Attributes
Attribute Description
IndexedPagingOffset
Represents the next index that should be used for the next request
when you are using an indexed page view.
NumeratorOffset
Represents the new numerator value to use for the next request
when you are using fraction page views.
AbsoluteDenominator
Represents the next denominator to use for the next request when
you are using fraction page views.
IncludesLastItemInRange This attribute will be true if the current results contain the last item in
the query, so that additional paging is not needed.
TotalItemsInView
Represents the total number of items in the view.
Child elements
Element Description
Resolution
Contains a single resolved entity.
Parent elements
Element Description
ResolveNamesResponseMessage
Contains the status and result of a ResolveNames request.
Remarks
A ResolutionSet element can contain a maximum of 100 resolved entities.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
ResolveNames
ResolveNamesResponse
ResolveNames operation
XML
<ParentFolderIds/>
<UnresolvedEntry/>
</ResolveNames>
ResolveNamesType
Attributes
Attribute Description
ReturnFullContactData Describes whether the full contact details for public contacts for a
resolved name are returned in the response. This attribute is required
for public contacts. This value does not affect private contacts and
private distribution lists, for which ItemId is always returned.
SearchScope
Identifies the order and scope for a ResolveNames search.
ContactDataShape Identifies the property set returned for contacts. This attribute was
introduced in Exchange Server 2010 Service Pack 2 (SP2).
Value Description
False Full contact details for public contacts are not returned.
ActiveDirectoryContacts Active Directory is searched first, and then the contact folders that are
specified in the ParentFolderIds property are searched.
Contacts Only the contact folders that are identified by the ParentFolderIds
property are searched.
ContactsActiveDirectory Contact folders that are identified by the ParentFolderIds property are
searched first and then Active Directory is searched.
Value Description
Default The Default set of contact item properties is returned. For more information, see
Response shapes in EWS .
AllProperties The AllProperties set of contact item properties are returned. For more
information, see Response shapes in EWS .
Child elements
Element Description
ParentFolderIds
Contains an array of contact folder identifiers that would be searched if the
SearchScope attribute is set to ActiveDirectoryContacts, Contacts, or
ContactsActiveDirectory. The ParentFolderIds array can only contain a single
contact folder identifier. If the ParentFolderIds element is not present, the
default Contacts folder is searched.
The folder identifier can be used for delegate access.
Active Directory searches are performed by using access control lists (ACLs).
Some users might not have the rights to see some Active Directory objects.
This element is optional.
Parent elements
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
ResolveNames operation
ResolveNamesType
ResolveNamesSearchScopeType
XML
<ResolveNamesResponse>
<ResponseMessages/>
</ResolveNamesResponse>
ResolveNamesResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
ResolveNames
ResolveNamesResponseMessage
ResolveNames operation
ResolveNamesResponseMessage
Article • 03/29/2023 • 2 minutes to read
ResolveNamesResponse
ResponseMessages
ResolveNamesResponseMessage
XML
<ResolveNamesResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<ResolutionSet/>
</ResolveNamesResponseMessage>
ResolveNamesResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of a ResolveNames operation response.
- Success
- Warning
- Error
ResponseClass Attribute
Value Description
Value Description
Success
Describes a request that is fulfilled. This occurs when the requested name is
unambiguous and the response contains a single recipient.
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides error information about the request.
DescriptiveLinkKey
Currently unused and is reserved for future use. It contains a value of 0.
MessageXml
Provides additional error response information.
ResolutionSet
Contains an array of resolutions for an ambiguous name.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
ResolveNames
ResolveNamesResponse
ResolveNames operation
Resources
Article • 03/29/2023 • 2 minutes to read
XML
<Resources>
<Attendee/>
</Resources>
NonEmptyArrayOfAttendeesType
Attributes
None.
Child elements
Element Description
Attendee
Represents attendees and resources for a meeting.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
MeetingRequest
Represents a meeting request in the Exchange store.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ResponseCode
Article • 03/29/2023 • 62 minutes to read
ResponseMessage
ResponseCode
XML
<ResponseCode/>
ResponseCodeType
Attributes
None.
Child elements
None.
Parent elements
Element Description
/GetUserAvailabilityResponse/FreeBusyResponseArray/FreeBusyResponse/ResponseMessage
/GetUserAvailabilityResponse/SuggestionsResponse/ResponseMessage
/SetUserOofSettingsResponse/ResponseMessage
/GetUserOofSettingsResponse/ResponseMessage
Text value
A text value is required if this element is used. The following table describes the values
that are returned with this element.
Value Description
- ErrorAccessDenied
- ErrorAccountDisabled
- ErrorADUnavailable
- ErrorADOperation
- ErrorConnectionFailed
- ErrorMailboxStoreUnavailable
- ErrorMailboxMoveInProgress
- ErrorPasswordChangeRequired
- ErrorPasswordExpired
- ErrorQuotaExceeded
- ErrorInsufficientResources
- SendToAllAndSaveCopy
- SendToChangedAndSaveCopy
- SendOnlyToAll
- SendOnlyToChanged
- Item
- Message
- CalendarItem
- Task
- Contact
- Item
- Message
- CalendarItem
- Task
- Contact
- Body
- ReplyTo
- GetItem operation
- GetFolder operation
- UpdateItem operation
- UpdateFolder operation
- IsReadReceiptRequested
- IsDeliveryReceiptRequested
- CancelCalendarItem, AcceptItem,
DeclineItem, or TentativelyAcceptItem
response objects.
ErrorRecurrenceEndDateTooBig This error occurs when the end date for the
recurrence is after 9/1/4500.
Remarks
This element is not required and is not included in all responses.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
ResponseCode
(InvalidRecipientResponseCodeType)
Article • 03/29/2023 • 2 minutes to read
The ResponseCode element provides information about why the recipient is invalid.
XML
<ResponseCode>OtherError or RecipientOrganizationNotFederated or
CannotObtainTokenFromSTS or SystemPolicyBlocksSharingWithThisRecipient or
RecipientOrganizationFederatedWithUnknownTokenIssuer</ResponseCode>
InvalidRecipientResponseCodeType
Attributes
None.
Child elements
None.
Parent elements
Element Description
InvalidRecipient Contains the SMTP address of the invalid recipient and information about why
the recipient is invalid.
Text value
The following table lists the possible values for the ResponseCode element.
Code Description
Code Description
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetSharingMetadata operation
XML
<ResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</ResponseMessage>
ResponseMessageType
Attributes
Attribute Description
ResponseClass
Represents the status of the response.
- Success
- Warning
- Error
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and is reserved for future use. It contains a value of 0.
MessageXml
Provides additional error response information.
Parent elements
Element Description
Element Description
FreeBusyResponse
Contains the free/busy information for a single mailbox user.
/GetUserAvailabilityResponse/FreeBusyResponseArray[i]/FreeBusyResponse
SuggestionsResponse
Contains response information and suggestion data for requested meeting
suggestions.
/GetUserAvailabilityResponse/SuggestionsResponse
GetUserOofSettingsResponse Contains the response results and the OOF settings for a user.
/GetUserOofSettingsResponse
/SetUserOofSettingsResponse
Remarks
The ResponseMessageType type is common to all Exchange Web Services responses.
The ResponseMessageType type is extended by the following complex types:
ApplyConversationActionResponseMessageType
AttachmentInfoResponseMessageType
DeleteAttachmentResponseMessageType
DeleteItemResponseMessageType
ExpandDLResponseMessageType
FindFolderResponseMessageType
FindItemResponseMessageType
FolderInfoResponseMessageType
GetEventsResponseMessageType
ItemInfoResponseMessageType
ResolveNamesResponseMessageType
SubscribeResponseMessageType
SendNotificationResponseMessageType
SyncFolderHierarchyResponseMessageType
SyncFolderItemsResponseMessageType
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Version differences
The ApplyConversationActionResponseMessage and DeleteItemResponseMessageType
types were introduced in Exchange build 15.00.0986.00.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetUserAvailability operation
SetUserOofSettings operation
GetUserOofSettings operation
Getting User Availability
ResponseMessages
Article • 03/29/2023 • 5 minutes to read
The ResponseMessages element contains the response messages for an Exchange Web
Services request.
XML
<ResponseMessages>
<CreateItemResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<DeleteItemResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<GetItemResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<UpdateItemResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<SendItemResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<DeleteFolderResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<EmptyFolderResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<CreateFolderResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<GetFolderResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<FindFolderResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<UpdateFolderResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<MoveFolderResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<CopyFolderResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<CreateAttachmentResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<DeleteAttachmentResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<GetAttachmentResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<UploadItemsResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<ExportItemsResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<FindItemResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<MoveItemResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<CopyItemResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<ResolveNamesResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<ExpandDLResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<GetServerTimeZonesResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<GetEventsResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<GetStreamingEventsResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<SubscribeResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<UnsubscribeResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<SendNotificationResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<SyncFolderHierarchyResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<SyncFolderItemsResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<CreateManagedFolderResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<ConvertIdResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<GetSharingMetadataResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<RefreshSharingFolderResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<GetSharingFolderResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<CreateUserConfigurationResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<DeleteUserConfigurationResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<GetUserConfigurationResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<UpdateUserConfigurationResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<GetRoomListsResponse/>
</ResponseMessages>
XML
<ResponseMessages>
<GetRoomsResponse/>
</ResponseMessages>
XML
<ResponseMessages>
<GetRemindersResponse/>
</ResponseMessages
XML
<ResponseMessages>
<PerformReminderActionResponse/>
</ResponseMessages>
XML
<ResponseMessages>
<ApplyConversationActionResponseMessage/>
</ResponseMessages>
XML
<ResponseMessages>
<GetPasswordExpirationDateResponse />
</ResponseMessages>
ArrayOfResponseMessagesType
Attributes
None.
Child elements
Element Description
CopyFolderResponseMessage
Contains the status and result of a single
CopyFolder request.
CopyItemResponseMessage
Contains the status and result of a single CopyItem
request.
CreateAttachmentResponseMessage
Contains the status and result of a single
CreateAttachment request.
CreateFolderResponseMessage
Contains the status and result of a single
CreateFolder request.
CreateItemResponseMessage
Contains the status and result of a single
CreateItem request.
CreateManagedFolderResponseMessage
Contains the status and result of a single
CreateManagedFolder request.
Element Description
DeleteAttachmentResponseMessage
Contains the status and result of a single
DeleteAttachment request.
DeleteFolderResponseMessage
Contains the status and result of a single
DeleteFolder request.
DeleteItemResponseMessage
Contains the status and result of a single
DeleteItem request.
EmptyFolderResponseMessage
Contains the status and result of a single
EmptyFolder request.
ExpandDLResponseMessage
Contains the status and result of a single ExpandDL
request.
FindFolderResponseMessage
Contains the status and result of a single
FindFolder request.
FindItemResponseMessage
Contains the status and result of a single FindItem
request.
GetAttachmentResponseMessage
Contains the status and result of a single
GetAttachment request.
UploadItemsResponseMessage
Contains the status and results of a single
UploadItems request.
ExportItemsResponseMessage
Contains the status and results of a single
ExportItems request.
GetEventsResponseMessage
Contains the status and result of a single GetEvents
request.
GetStreamingEventsResponseMessage
Contains the status and result of a single
GetStreamingEvents request.
GetFolderResponseMessage
Contains the status and result of a single GetFolder
request.
GetItemResponseMessage
Contains the status and result of a single GetItem
request.
MoveFolderResponseMessage
Contains the status and result of a single
MoveFolder request.
MoveItemResponseMessage
Contains the status and result of a single MoveItem
request.
ResolveNamesResponseMessage
Contains the status and result of a ResolveNames
request.
Element Description
SendItemResponseMessage
Contains the status and result of a single SendItem
request.
SendNotificationResponseMessage
Contains the status and result of a single
SendNotification request.
SubscribeResponseMessage
Contains the status and result of a single Subscribe
request.
SyncFolderHierarchyResponseMessage
Contains the status and result of a
SyncFolderHierarchy request.
SyncFolderItemsResponseMessage
Contains the status and result of a SyncFolderItems
request.
UnsubscribeResponseMessage
Contains the status and result of a single
Unsubscribe request.
UpdateFolderResponseMessage
Contains the status and result of a single
UpdateFolder request.
UpdateItemResponseMessage
Contains the status and result of a single
UpdateItem request.
ConvertIdResponseMessage
Contains the status and result of a ConvertId
request.
GetSharingMetadataResponseMessage
Contains the status and results of a
GetSharingMetadata request.
RefreshSharingFolderResponseMessage
Contains the status and results of a
RefreshSharingFolder request.
GetSharingFolderResponseMessage
Contains the status and results of a
GetSharingFolder request.
CreateUserConfigurationResponseMessage
Contains the status and results of a
CreateUserConfiguration request.
DeleteUserConfigurationResponseMessage
Contains the status and results of a
DeleteUserConfiguration request.
GetUserConfigurationResponseMessage
Contains the status and results of a
GetUserConfiguration request.
GetRoomListsResponse
Contains the status and results of a GetRoomLists
request.
Element Description
GetRoomsResponse
Contains the status and results of a GetRooms
request.
GetRemindersResponse
Contains the status and results of a GetReminders
request.
PerformReminderActionResponse
Contains the status and results of a
PerformReminderAction request.
GetServerTimeZonesResponseMessage
Contains the status and result of a single
GetServerTimeZones request.
Parent elements
Element Description
CopyFolderResponse
Defines a response to a CopyFolder request.
CopyItemResponse
Defines a response to a CopyItem request.
CreateAttachmentResponse
Defines a response to a CreateAttachment request.
CreateFolderResponse
Defines a response to a CreateFolder request.
CreateItemResponse
Defines a response to a CreateItem request.
CreateManagedFolderResponse
Defines a response to a CreateManagedFolder request.
DeleteAttachmentResponse
Defines a response to a DeleteAttachment request.
DeleteFolderResponse
Defines a response to a DeleteFolder request.
DeleteItemResponse
Defines a response to a DeleteItem request.
EmptyFolderResponse
Defines a response to an EmptyFolder request.
ExpandDLResponse
Defines a response to an ExpandDL request.
FindFolderResponse
Defines a response to a FindFolder request.
FindItemResponse
Defines a response to a FindItem request.
GetAttachmentResponse
Defines a response to a GetAttachment request.
Element Description
GetEventsResponse
Defines a response to a GetEvents request.
GetStreamingEventsResponse
Defines a response to a GetStreamingEvents request.
GetFolderResponse
Defines a response to a GetFolder request.
GetItemResponse
Defines a response to a GetItem request.
MoveFolderResponse
Defines a response to a MoveFolder request.
MoveItemResponse
Defines a response to a MoveItem request.
ResolveNamesResponse
Defines a response to a ResolveNames request.
SendItemResponse
Defines a response to a SendItem request.
SendNotificationResult
Defines a response to a SendNotification request.
SubscribeResponse
Defines a response to a Subscribe request.
SyncFolderHierarchyResponse
Defines a response to a SyncFolderHierarchy request.
SyncFolderItemsResponse
Defines a response to a SyncFolderItems request.
UnsubscribeResponse
Defines a response to an Unsubscribe request.
UpdateFolderResponse
Defines a response to an UpdateFolder request.
UpdateItemResponse
Defines a response to an UpdateItem request.
ConvertIdResponse
Contains a response to a ConvertId request.
GetServerTimeZonesResponse
Defines a response to a GetServerTimeZones request.
CreateUserConfigurationResponse
Defines a response to a CreateUserConfiuration request.
DeleteUserConfigurationResponse
Defines a response to a DeleteUserConfiguration request.
GetUserConfigurationResponse
Defines a response to a GetUserConfiguration request.
UpdateUserConfigurationResponse
Defines a response to an UpdateUserConfiguration
request.
ApplyConversationActionResponse
Defines a response to an ApplyConversationAction
operation request.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
ExportItems operation
UploadItems operation
EWS XML elements in Exchange
ResponseMessages
(ArrayOfDelegateUserResponseMessage
Type)
Article • 03/29/2023 • 2 minutes to read
The ResponseMessages element contains the response messages for an Exchange Web
Services delegate management request.
<ResponseMessages>
<DelegateUserResponseMessageType/>
</ResponseMessages>
ArrayOfDelegateUserResponseMessageType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
AddDelegateResponse
Contains the status and result of an AddDelegate operation request.
GetDelegateResponse
Contains the status and result of a GetDelegate operation request.
Element Description
UpdateDelegateResponse
Contains the status and result of an UpdateDelegate operation
request.
Remarks
This element is used in the AddDelegate operation, the GetDelegate operation, the
UpdateDelegate operation, and the RemoveDelegate operation. The delegate
management operation responses are structured differently than other responses. The
delegate management response messages are strongly typed.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Exchange Server with the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
AddDelegate operation
GetDelegate operation
UpdateDelegate operation
RemoveDelegate operation
XML
<ResponseMessages>
<MailTipsResponseMessageType/>
</ResponseMessages>
ArrayOfMailTipsResponseMessageType
Attributes
None.
Child elements
Element Description
MailTipsResponseMessageType
Represents mail tips settings.
Parent elements
Element Description
GetMailTipsResponse
Represents the response message for the GetMailTips operation.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetMailTips operation
XML
<ResponseMessages>
<ServiceConfigurationResponseMessageType/>
</ResponseMessages>
ArrayOfServiceConfigurationResponseMessageType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
GetServiceConfigurationResponse
Defines a response to a GetServiceConfiguration request.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
ResponseObjects
Article • 03/29/2023 • 2 minutes to read
The ResponseObjects element contains a collection of all the response objects that are
associated with an item in the Exchange store.
XML
<ResponseObjects>
<AcceptItem/>
<TentativelyAcceptItem/>
<DeclineItem/>
<ProposeNewTime>
<ReplyToItem/>
<ForwardItem/>
<ReplyAllToItem/>
<CancelCalendarItem/>
<RemoveItem/>
<PostReplyItem/>
<SuppressReadReceipt/>
<AcceptSharingInvitation/>
</ResponseObjects>
NonEmptyArrayOfResponseObjectsType
Attributes
None.
Child elements
Element Description
AcceptItem
Represents an Accept reply to a meeting request.
TentativelyAcceptItem
Represents a Tentative reply to a meeting request.
DeclineItem
Represents a Decline reply to a meeting request.
Element Description
ProposeNewTime
Indicates that the meeting attendee can propose a new meeting time.
This element was introduced in Microsoft Exchange Server 2013 Service
Pack 1 (SP1).
ReplyToItem
Contains a reply to the creator of an item in the Exchange store.
ForwardItem
Contains an Exchange store item to forward to recipients.
ReplyAllToItem
Contains a reply to all identified recipients of an item in the Exchange
store.
CancelCalendarItem
Represents the response object used to cancel a meeting.
RemoveItem
Removes an item from the Exchange store.
PostReplyItem
Contains a reply to a post item. This element was introduced in
Microsoft Exchange Server 2007 Service Pack 1 (SP1).
SuppressReadReceipt
Used to suppress read receipt requests.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
Contact
Represents an Exchange contact item.
DistributionList
Represents a distribution list.
Item
Represents an item in the Exchange store.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Message
Represents an Exchange e-mail message.
RemoveItem
Removes an item from the Exchange store.
Task
Represents a task in the Exchange store.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ResponseType
Article • 03/29/2023 • 2 minutes to read
The ResponseType element represents the type of recipient response that is received for
a meeting.
XML
<ResponseType/>
ResponseTypeType
Attributes
None.
Child elements
None.
Parent elements
Element Description
Attendee
Represents attendees and resources for a meeting.
MeetingMessage
Represents a meeting message in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Text value
A text value is required. The following are the possible text values for this element:
Unknown
Organizer
Tentative
Accept
Decline
NoResponseReceived
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
RestrictedGroupIdentifier
Article • 03/29/2023 • 2 minutes to read
The RestrictGroupIdentifier element represents the group security identifier (SID) and
attributes for a restricted group within a user token.
XML
<RestrictedGroupIdentifier Attributes="">
<SecurityIdentifier/>
</RestrictedGroupIdentifier>
SidAndAttributesType
Attributes
Attribute Description
Child elements
Element Description
Parent elements
Element Description
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
RestrictedGroupSids
Article • 03/29/2023 • 2 minutes to read
XML
<RestrictedGroupSids>
<RestrictedGroupIdentifier/>
</RestrictedGroupSids>
NonEmptyArrayOfRestrictedGroupIdentifiersType
Attributes
None.
Child elements
Element Description
RestrictedGroupIdentifier Represents the group security identifier (SID) and attributes for a
restricted group.
Parent elements
Element Description
SerializedSecurityContext Used in the SOAP header for token serialization in server- to-server
authentication. Token serialization is not supported.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Restriction
Article • 03/29/2023 • 2 minutes to read
The Restriction element represents the restriction or query that is used to filter items or
folders in FindItem/FindFolder and search folder operations.
XML
<Restriction>
<SearchExpression/>
</Restriction>
RestrictionType
Attributes
None.
Child elements
Element Description
And
Represents a search expression that enables you to perform a Boolean
AND operation between two or more search expressions.
Contains
Represents a search expression that determines whether a given
property contains the supplied constant string value.
Excludes
Performs a bitwise mask of the properties.
Exists
Represents a search expression that returns true if the supplied
property exists on an item.
IsEqualTo
Represents a search expression that compares a property with either a
constant value or another property and evaluates to true if they are
equal.
IsGreaterThan
Represents a search expression that compares a property with either a
constant value or another property and returns true if the first property
is greater than the value or property.
Element Description
IsLessThan
Represents a search expression that compares a property with either a
constant value or another property and returns true if the first property
is less than the value or property.
IsLessThanOrEqualTo
Represents a search expression that compares a property with either a
constant value or another property and returns true if the first property
is less than or equal to the value or property.
IsNotEqualTo
Represents a search expression that compares a property with either a
constant value or another property and returns true if the values are
not the same.
Not
Represents a search expression that negates the Boolean value of the
search expression it contains.
Or
Represents a search expression that performs a logical OR operation
on the search expression it contains. The Or element will return true if
any of its children return true.
SearchExpression
Represents the substituted element within a restriction. This element is
not used in an XML instance document.
Parent elements
Element Description
FindFolder
Defines a request to identify folders in a mailbox.
FindItem
Defines a request to find items in a mailbox.
SearchParameters
Represents the parameters that define a search folder.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
ResultType
Article • 03/29/2023 • 2 minutes to read
The ResultType element contains the type of search to perform. The type of search can
be statistics only or preview only.
XML
<ResultType>StatisticsOnly | PreviewOnly</ResultType>
SearchResultType
Attributes
None.
Child elements
None.
Parent elements
SearchMailboxesResult | SearchMailboxes
Text value
The text value of the ResultType element is the type of result that is returned for a
discovery search. A text value of StatisticsOnly will return the search statistics. A text
value of PreviewOnly will return item preview information.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
The RetentionAction element specifies the action performed on items with the retention
tag.
XML
RetentionActionType
Attributes
None.
Child elements
None.
Parent elements
RetentionPolicyTag
Text value
The text value of the RetentionAction element is the action performed on items. The
following list contains the text values for the RetentionAction element.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
RetentionDate
Article • 03/29/2023 • 2 minutes to read
The RetentionDate element specifies the last date that an item must be retained.
XML
<RetentionDate></RetentionDate>
dateTime
Attributes
None.
Child elements
None.
Parent elements
SearchPreviewItem | Item | Contact | Message | DistributionList | CalendarItem | PostItem
| Task
Text value
The text value of the RetentionDate element represents the date when an item should
no longer be retained.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
RetentionId
Article • 03/29/2023 • 2 minutes to read
XML
<RetentionId></RetentionId>
GuidType
Attributes
None.
Child elements
None.
Parent elements
RetentionPolicyTag
Text value
The text value of the RetentionId element is the retention tag identifier in GUID form.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
The RetentionPeriod element specifies the number of days that the retention policy is in
effect.
XML
<RetentionPeriod></RetentionPeriod>
integer
Attributes
None.
Child elements
None.
Parent elements
RetentionPolicyTag
Text value
The text value of the RetentionPeriod element is the number of days that the retention
policy is in effect for an item.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
RetentionPolicyTag
Article • 03/29/2023 • 2 minutes to read
The RetentionPolicyTag element specifies the retention policy for a mailbox item.
XML
<RetentionPolicyTag>
<DisplayName/>
<RetentionId/>
<RetentionPeriod/>
<Type/>
<RetentionAction/>
<Description/>
<IsVisible/>
<OptedInto/>
<IsArchive/>
</RetentionPolicyTag>
RetentionPolicyTagType
Attributes
None.
Child elements
DisplayName (string) | RetentionId | RetentionPeriod | Type (ElcFolderType) |
RetentionAction | Description | IsVisible | OptedInto | IsArchive
Parent elements
RetentionPolicyTags
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
RetentionPolicyTagId
Article • 03/29/2023 • 2 minutes to read
The RetentionPolicyTagId element specifies the identifier of the retention policy tag.
XML
<RetentionPolicyTagId></RetentionPolicyTagId>
string
Attributes
None.
Child elements
None.
Parent elements
ConversationAction
Text value
The text value of the RetentionPolicyTagId element is the policy tag identifier applied to
items in a conversation.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
RetentionPolicyTags
Article • 03/29/2023 • 2 minutes to read
XML
<RetentionPolicyTags>
<RetentionPolicyTag/>
</RetentionPolicyTags>
ArrayOfRetentionPolicyTagsType
Attributes
None.
Child elements
RetentionPolicyTag
Parent elements
GetUserRetentionPolicyTagsResponse
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
The RetentionPolicyType element specifies the retention policy type applied to items in
a conversation.
XML
RetentionType
Attributes
None.
Child elements
None.
Parent elements
ConversationAction
Text value
The text value of the RetentionPolicyType element is the retention type applied to items
in a conversation. The text value of Delete indicates that the items in the conversation
are deleted when the retention hold expires. The text value of Archive indicates that the
items in the conversation are moved to the archive mailbox when the retention hold
expires.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
ReturnNewItemIds
Article • 03/29/2023 • 2 minutes to read
The ReturnNewItemIds element indicates whether the item identifiers of new items are
returned in the response.
XML
<ReturnNewItemIds/>
xs:boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
CopyItem
Defines a request to copy an item in a mailbox in the Exchange store.
MoveItem
Defines a request to move an item in the Exchange store.
Text value
A text value of true for the ReturnNewItemIds element indicates that the new item
identifiers are returned in the response. A value of false indicates that the new item
identifiers are not returned in the response.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
The ReturnQueueEvents element indicates that the person who is running the task is in
a privileged role.
XML
<ReturnQueueEvents>true | false</ReturnQueueEvents>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
A text value that represents a Boolean value is required. A value of true indicates that
the person who is running the task is in a privileged role; a value of false indicates that
the person who is running the task is not in a privileged role.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetMessageTrackingReport operation
XML
<RightsManagedMessageDecryptionStatus>
</RightsManagedMessageDecryptionStatus>
integer
Attributes
None.
Child elements
None.
Parent elements
RightsManagementLicenseData
Text value
The text value of the RightsManagedMessageDecryptionStatus element is the
decryption status of a rights protected item.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
RightsManagementLicenseData
Article • 03/29/2023 • 2 minutes to read
XML
<RightsManagementLicenseData>
<RightsManagedMessageDecryptionStatus/>
<RmsTemplateId/>
<TemplateName/>
<TemplateDescription/>
<EditAllowed/>
<ReplyAllowed/>
<ReplyAllAllowed/>
<ForwardAllowed/>
<ModifyRecipientsAllowed/>
<ExtractAllowed/>
<PrintAllowed/>
<ExportAllowed/>
<ProgrammaticAccessAllowed/>
<IsOwner/>
<ContentOwner/>
<ContentExpiryDate/>
</RightsManagementLicenseData>
RightsManagementLicenseDataType
Attributes
None.
Child elements
RightsManagedMessageDecryptionStatus | RMSTemplateId | TemplateName |
TemplateDescription | EditAllowed | ReplyAllowed | ReplyAllAllowed | ForwardAllowed |
ModifyRecipientsAllowed | ExtractAllowed | PrintAllowed | ExportAllowed |
ProgrammaticAccessAllowed | IsOwner | ContentOwner | ContentExpiryDate
Parent elements
Item | Message | MeetingMessage | MeetingRequest | MeetingResponse |
MeetingCancellation | Task | PostItem | CalendarItem | Contact | DistributionList
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
RMSTemplateId
Article • 03/29/2023 • 2 minutes to read
XML
<RMSTemplateId></RMSTemplateId>
string
Attributes
None.
Child elements
None.
Parent elements
RightsManagementLicenseData
Text value
The text value of the RMSTemplateId element is the identifier of the Rights
Management template.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Role
Article • 03/29/2023 • 2 minutes to read
XML
<Role></Role>
string
Attributes
None.
Child elements
None.
Parent elements
UserRoles | ApplicationRoles
Text value
The text value of the Role element is the name of the role.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Room
Article • 03/29/2023 • 2 minutes to read
Rooms
Room
XML
<Room>
<Id/>
</Room>
RoomType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
Rooms
Defines a list of meeting rooms associated with a common feature, such as being
located in the same building.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetRooms operation
The RoomList element represents an e-mail address that identifies a list of meeting
rooms.
GetRooms
RoomList
XML
<RoomList>
<Name/>
<EmailAddress/>
<RoutingType/>
<MailboxType/>
<ItemId/>
</RoomList>
EmailAddressType
Attributes
None.
Child elements
Element Description
Name Defines the display name of the room list. This element is optional.
(EmailAddressType)
EmailAddress Defines the Simple Mail Transfer Protocol (SMTP) address of a room list.
(NonEmptyStringType) This element is optional.
RoutingType Defines the routing that is used for the mailbox. The default is SMTP.
(EmailAddress)
This element is optional.
MailboxType
Defines the mailbox type of a mailbox user. This element is optional.
Element Description
ItemId
Defines the item identifier of a contact or private distribution list for
recipients from a user's Contacts folder. This element is optional.
Parent elements
Element Description
GetRooms
The root element in a request to get a list of rooms within a particular room list.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetRooms operation
The RoomLists element is a list of one or more addresses that represent a list of
meeting rooms.
GetRoomListsResponse
RoomLists
XML
<RoomLists> <Address/></RoomLists>
ArrayOfEmailAddressesType
Attributes
None.
Child elements
Element Description
Address Defines the e-mail address and display name that represents the room list.
(EmailAddressType)
This element is optional.
Parent elements
Element Description
GetRoomListsResponse
Contains the status and result of a GetRoomLists operation request.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Exchange Server with the Client Access server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetRoomLists operation
The Rooms element is a list of one or more elements that represent meeting rooms.
GetRoomsResponse
Rooms
XML
<Rooms> <Room/></Rooms>
ArrayOfRoomsType
Attributes
None.
Child elements
Element Description
Room
Defines an e-mail address and display name that represents a meeting room.
Parent elements
Element Description
GetRoomsResponse
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server that has the Client Access server
role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetRooms operation
The RootAddress element represents the first address that starts the event for a
RecipientTrackingEvent event.
XML
<RootAddress/>
NonEmptyStringType
Attributes
None.
Child elements
None.
Parent elements
Element Description
RecipientTrackingEvent
Contains information for a single event for a recipient.
Text value
The text value is the address that starts the tracking event.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetMessageTrackingReport operation
The RootFolder element contains the results of a search of a single root folder during a
FindItem operation.
XML
<Items/>
<Groups/>
</RootFolder>
FindItemParentType
Attributes
Attribute Description
IndexedPagingOffset
Represents the next index that should be used for the next request
when using an indexed paging view.
NumeratorOffset
Represents the new numerator value to use for the next request
when using fraction page views.
AbsoluteDenominator
Represents the next denominator to use for the next request when
doing fractional paging.
IncludesLastItemInRange Indicates whether the current results contain the last item in the
query, such that further paging is not needed.
TotalItemsInView
Represents the total number of items that pass the restriction. In a
grouped FindItem operation, the TotalItemsInView attribute returns
the total number of items in the view plus the total number of
groups.
Child elements
Element Description
Items
Contains an array of items found that have the search criteria identified in the FindItem
operation request.
Groups
Contains a collection of groups found that have the search and aggregation criteria
identified in the FindItem operation request.
Parent elements
Element Description
FindItemResponseMessage
Contains the status and result of a FindItem operation request.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Exchange Server with the Client Access server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
FindItem operation
IndexedPagingOffset
NumeratorOffset
AbsoluteDenominator
IncludesLastItemInRange
TotalItemsInView
Finding Items
RootFolder
(FindFolderResponseMessage)
Article • 03/29/2023 • 2 minutes to read
The RootFolder element contains the results of a search of a single root folder during a
FindFolder operation.
XML
<Folders/>
</RootFolder>
FindFolderParentType
Attributes
Attribute Description
IndexedPagingOffset Represents the next index that should be used for the next request
when using an indexed paging view.
NumeratorOffset Represents the new numerator value to use for the next request when
using fractional page views.
AbsoluteDenominator Represents the next denominator to use for the next request when
doing fractional paging.
IncludesLastItemInRange Indicates whether the current results contain the last folder in the
query, such that further paging is not needed.
TotalItemsInView Represents the total number of folders that pass the restriction.
Child elements
Element Description
Element Description
Folders
Contains an array of folders found by using the FindFolder operation.
Parent elements
Element Description
FindFolderResponseMessage
Contains the status and result of a FindFolder operation request.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
FindFolder operation
Finding Folders
RootItemId
Article • 03/29/2023 • 2 minutes to read
DeleteAttachmentResponse
ResponseMessages
DeleteAttachmentResponseMessage
RootItemId
XML
RootItemIdType
Attributes
Attribute Description
RootItemId
Identifies the root item of a deleted attachment.
RootItemChangeKey
Identifies the new change key of the root item of a deleted attachment.
Child elements
None.
Parent elements
Element Description
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
DeleteAttachment
DeleteAttachment operation
The RoutingType element defines the address type for the mailbox.
XML
<RoutingType/>
NonEmptyStringType
Attributes
None.
Child elements
None.
Parent elements
Element Description
ActingAs
Identifies who the caller is sending as.
Mailbox
Identifies a fully resolved e-mail address.
RoomList
Identifies a list of meeting rooms.
Text value
The text value represents a routing type. SMTP is the typical text value for this element.
Remarks
This element is optional in the Mailbox element. Another RoutingType (EmailAddress)
element is used for Availability operations.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
RoutingType (EmailAddress)
Article • 03/29/2023 • 2 minutes to read
The RoutingType element represents the routing protocol for the recipient.
XML
<RoutingType/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Email Specifies the e-mail address of the MailboxData object. This element is used
(EmailAddressType) in the GetUserAvailability operation.
/GetUserAvailabilityRequest/MailboxDataArray/MailboxData[i]/Email
/GetUserOofSettingsRequest/Mailbox
/SetUserOofSettingsRequest/Mailbox
Text value
A text value is optional. The following are the possible values:
SMTP
EX
Remarks
This element can occur at most one time in the Email (EmailAddressType) element. This
element is not required. This element exists for the inclusion of future protocols.
Another RoutingType element is used for accessing items in a user's mailbox.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityRequest
Getting User Availability
Rule
Article • 03/29/2023 • 2 minutes to read
XML
<Condition/>
<Action/>
</Rule>
ProtectionRuleType
Attributes
Attribute Description
Name
Identifies the name of the rule. A required attribute of type string with a
minimum length of 1.
UserOverridable Specifies whether the rule is mandatory. If the rule is mandatory, this attribute
value must be false. A required attribute of type Boolean.
Priority
Specifies the rule priority. A required attribute of type int with a minimum
value of 1.
Child elements
Element Description
Condition
Identifies the condition that must be satisfied for the action part of
the rule to be executed.
Action Identifies what action must be executed if the condition part of the
(ProtectionRuleActionType) rule matches.
Parent elements
Element Description
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Rule (RuleType)
Article • 03/29/2023 • 2 minutes to read
The Rule element contains a single rule and represents a rule in a user's mailbox.
XML
<Rule>
<RuleId>
<DisplayName>
<Priority>
<IsEnabled>
<IsNotSupported>
<IsInError>
<Conditions>
<Exceptions>
<Actions>
</Rule>
RuleType
Attributes
None.
Child elements
Element Description
RuleId
Specifies the rule identifier.
Priority
Indicates the order in which a rule is to be run.
IsEnabled
Indicates whether the rule is enabled.
IsNotSupported Indicates whether the rule cannot be modified with the managed code APIs.
IsInError
Indicates whether the rule is in an error condition.
Element Description
Conditions
Identifies the conditions that, when fulfilled, will trigger the rule actions for a
rule.
Exceptions
Identifies the exceptions that represent all the available rule exception
conditions for the inbox rule.
Actions
Represents the actions to be taken on a message when the conditions are
fulfilled.
Parent elements
Element Description
CreateRuleOperation
Represents an operation to create a new rule.
InboxRules
Represents an array of rules in the user's mailbox.
SetRuleOperation
Represents an operation to update an existing rule.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
UpdateInboxRules
SetRuleOperation
CreateRuleOperation
XML
<RuleId/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Rule (RuleType)
Represents a rule in the user's mailbox.
DeleteRuleOperation
Represents the operation to delete an existing Inbox rule.
Text value
The text value is a string value that represents the rule.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
RuleOperationError
Article • 03/29/2023 • 2 minutes to read
XML
<RuleOperationError>
<OperationIndex/>
<ValidationErrors/>
</RuleOperationError>
RuleOperationErrorType
Attributes
None.
Child elements
Element Description
OperationIndex Indicates the index of the operation in the request that caused the rule
operation error.
ValidationErrors Represents an array of rule validation errors on each rule field that has an error.
Parent elements
Element Description
RuleOperationErrors Represents an array of rule validation errors on each rule field that has an
error.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
RuleOperationErrors
Article • 03/29/2023 • 2 minutes to read
UpdateInboxRulesResponse
RuleOperationErrors
XML
<RuleOperationErrors>
<RuleOperationError>
</RuleOperationErrors>
ArrayOfRuleOperationErrorsType
Attributes
None.
Child elements
Element Description
RuleOperationError
Represents a rule operation error.
Parent elements
Element Description
UpdateInboxRulesResponse
Defines a response to an UpdateInboxRules request.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
UpdateInboxRules
XML
<Rules> <Rule/></Rules>
ArrayOfProtectionRulesType
Attributes
None.
Child elements
Element Description
Rule
Contains a single protection rule. This element can occur zero or more times. This
element occurs zero times when no protection rules are defined by the organization. It
occurs one or more times if at least one rule is defined by the organization.
Parent elements
Element Description
ProtectionRulesConfiguration
Contains service configuration for the protection rules service.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
SavedItemFolderId
Article • 03/29/2023 • 2 minutes to read
The SavedItemFolderId element identifies the target folder for operations that update,
send, and create items in a mailbox.
XML
<SavedItemFolderId>
<FolderId/>
</SavedItemFolderId>
XML
<SavedItemFolderId>
<DistinguishedFolderId/>
</SavedItemFolderId>
TargetFolderIdType
Attributes
None.
Child elements
Element Description
FolderId
Contains the identifier and change key of a target folder for operations
that update, send, and create items in the Exchange store.
DistinguishedFolderId Identifies a target folder by a named identifier for operations that update,
send, and create items in the Exchange store.
Parent elements
Element Description
Element Description
CreateItem
Defines a request to create an item in the Exchange store.
The following is the XPath expression to this element:
/CreateItem
UpdateItem
Defines a request to update an item in the Exchange store.
The following is the XPath expression to this element:
/UpdateItem
SendItem
Defines a request to send an item in the Exchange store.
The following is the XPath expression to this element:
/SendItem
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<SchemaVersionSupported />
string
Attributes
None.
Child elements
None.
Parent elements
GetAppManifests
Text value
The text value of the SchemaVersionSupported element contains the version of the
manifest schema supported by the client. This value indicates which app manifests
should be returned to the client in the response.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetAppManifests
The Schools element specifies an array of school names and the identifiers of their
source attributions for the associated persona.
XML
<Schools>
<StringAttributedValue/>
</Schools>
ArrayOfStringAttributedValuesType
Attributes
None.
Child elements
StringAttributedValue
Parent elements
Persona
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Scope (ClientAccessTokenRequestType)
Article • 03/29/2023 • 2 minutes to read
XML
<Scope/>
string
Attributes
None.
Child elements
None.
Parent elements
TokenRequest
Text value
The text value of the Scope (ClientAccessTokenRequestType) element is a token scope.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
TokenRequest
XML
<Scope></Scope>
string
Attributes
None.
Child elements
None.
Parent elements
Term
Text value
The text value of the Scope element is the scope of a highlighted term.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Scope (NonEmptyStringType)
Article • 03/29/2023 • 2 minutes to read
The Scope element specifies the scope of the message tracking report.
XML
NonEmptyStringType
Attributes
None.
Child elements
None.
Parent elements
FindMessageTrackingReport | GetMessageTrackingReport
Text value
The following table lists the possible values for the Scope element.
Value Description
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
SearchableMailbox
Article • 03/29/2023 • 2 minutes to read
XML
<SearchableMailbox>
<Guid/>
<PrimarySmtpAddress/>
<IsExternalMailbox/>
<ExternalEmailAddress/>
<DisplayName/>
<IsMembershipGroup/>
<ReferenceId/>
</SearchableMailbox>
SearchableMailboxType
Attributes
None.
Child elements
Guid | PrimarySmtpAddress (string) | IsExternalMailbox | ExternalEmailAddress |
DisplayName (string) | IsMembershipGroup | ReferenceId
Parent elements
SearchableMailboxes
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
SearchableMailboxes
Article • 03/29/2023 • 2 minutes to read
XML
<SearchableMailboxes>
<SearchableMailbox/>
</SearchableMailboxes>
ArrayOfSearchableMailboxesType
Attributes
None.
Child elements
SearchableMailbox
Parent elements
GetSearchableMailboxesResponse
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
SearchArchiveOnly
Article • 03/29/2023 • 2 minutes to read
The SearchArchiveOnly element indicates whether only the archive mailbox is searched
for non-indexable items.
XML
<SearchArchiveOnly>true | false</SearchArchiveOnly>
Boolean
Attributes
None.
Child elements
None.
Parent elements
GetNonIndexableItemStatistics │ GetNonIndexableItemDetails
Text value
A text value of true for the SearchArchiveOnly element indicates that non-indexable
item search is only performed on the archive mailbox. A text value of false indicates that
the search is performed against the primary mailbox and archive mailbox.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
SearchDumpster
Article • 03/29/2023 • 2 minutes to read
XML
Attributes
None.
Child elements
None.
Parent elements
FindMailboxStatisticsByKeywords
Text value
A text value of true for the SearchDumpster element indicates that the mailbox statistics
search includes the Exchange Dumpster. A value of false indicates that the Exchange
Dumpster is not searched.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
SearchExpression
Article • 03/29/2023 • 2 minutes to read
XML
<SearchExpression/>
SearchExpressionType
Attributes
None.
Child elements
None.
Parent elements
Element Description
Restriction Represents the restriction or query that is used to filter items or folders in
FindItem/FindFolder and search folder operations.
Not
Represents a search expression that negates the Boolean value of the search
expression that it contains.
And
Represents a search expression that allows you to perform a Boolean AND operation
between two or more search expressions. The result of the AND operation is true if
all the search expressions contained within the And element are true.
Or
Represents a search expression that performs a logical OR operation on the search
expression that it contains. Or will return true if any of its children return true. Or
must have two or more children.
Remarks
Any filter element that is part of the SearchExpression substitution group can appear in
place of the SearchExpression element.
7 Note
Exists
Excludes
IsEqualTo
IsNotEqualTo
IsGreaterThan
IsGreaterThanOrEqualTo
IsLessThan
IsLessThanOrEqualTo
Contains
Not
And
Or
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Element Example
See also
EWS XML elements in Exchange
SearchFilter
Article • 03/29/2023 • 2 minutes to read
The SearchFilter element contains the query string to filter the mailboxes to be returned
from a GetSearchableMailboxes request.
XML
<SearchFilter></SearchFilter>
string
Attributes
None.
Child elements
None.
Parent elements
GetSearchableMailboxes
Text value
The text value of the SearchFilter element is a query string to filter mailboxes for
discovery search.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
SearchFolder
Article • 03/29/2023 • 2 minutes to read
XML
<SearchFolder>
<FolderId/>
<ParentFolderId/>
<FolderClass/>
<DisplayName/>
<TotalCount/>
<ChildFolderCount/>
<ExtendedProperty/>
<ManagedFolderInformation/>
<UnreadCount/>
<SearchParameters/>
<PermissionSet/>
<EffectiveRights/>
</SearchFolder>
SearchFolderType
Attributes
None.
Child elements
Element Description
FolderId
Contains the identifier and change key of a folder.
ParentFolderId Represents the identifier of the parent folder that contains the
folder.
FolderClass
Represents the folder class for a given folder.
DisplayName (string)
Contains the display name of a folder.
Element Description
TotalCount
Represents the total count of items within a given folder.
ChildFolderCount
Represents the number of child folders contained within a folder.
This property is read-only.
ExtendedProperty
Identifies extended properties on folders.
UnreadCount
Represents the count of unread items within a given folder.
SearchParameters
Contains the parameters that define a search folder.
PermissionSet Contains all the configured permissions for a folder. This element
(PermissionSetType)
was introduced in Microsoft Exchange Server 2007 Service Pack 1
(SP1).
EffectiveRights
Contains the client's rights based on the permission settings for the
item or folder. This element is read-only. This element was
introduced in Exchange 2007 SP1.
Parent elements
Element Description
Create (FolderSync)
Identifies a single folder to create in the local client store.
SetFolderField
Represents an update to a single property on a folder in an UpdateFolder
operation.
Update (FolderSync)
Identifies a single folder to update in the local client store.
Folders
Contains an array of folders used in folder operations.
Remarks
SearchFolder is used for both regular search folders and MicrosoftOfficeOutlook and
Outlook Web Access visible search folders. For a search folder to be visible to Outlook
and Outlook Web Access, the folder must be created under the SearchFolders
distinguished folder.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
SearchId
Article • 03/29/2023 • 2 minutes to read
XML
<SearchId></SearchId>
string
Attributes
None.
Child elements
None.
Parent elements
GetDiscoverySearchConfiguration | DiscoverySearchConfiguration
Text value
The text value of the SearchId element is the discovery search identifier.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
SearchItemKind
Article • 03/29/2023 • 2 minutes to read
The SearchItemKind element indicates the type of items that are searched for a
FindMailboxStatisticsByKeyword operation.
XML
SearchItemKindType
Attributes
None.
Child elements
None.
Parent elements
MessageTypes
Text value
The text value of the SearchItemKind element is the type of item that is searched for
keywords. The following list contains the text values that can be used in the
SearchItemKind element.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
SearchMailboxes
Article • 03/29/2023 • 2 minutes to read
XML
<SearchMailboxes>
<SearchQueries/>
<ResultType/>
<PreviewItemResponseShape/>
<SortBy/>
<Language/>
<Deduplication/>
<PageSize/>
<PageItemReference/>
<PageDirection/>
</SearchMailboxes>
SearchMailboxesType
Attributes
None.
Child elements
SearchQueries | ResultType | PreviewItemResponseShape | SortBy | Language |
Deduplication | PageSize | PageItemReference | PageDirection
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<SearchMailboxesResponse>
<ResponseMessages/>
</SearchMailboxesResponse>
SearchMailboxesResponseType
Attributes
None.
Child elements
ResponseMessages
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<SearchMailboxesResponseMessage>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<SearchMailboxesResult/>
</SearchMailboxesResponseMessage>
SearchMailboxesResponseMessageType
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml |
SearchMailboxesResult
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
SearchMailboxesResult
Article • 03/29/2023 • 2 minutes to read
XML
<SearchMailboxesResult>
<SearchQueries/>
<ResultType/>
<ItemCount/>
<Size/>
<PageItemCount/>
<PageItemSize/>
<KeywordStats/>
<Items/>
<FailedMailboxes/>
<Refiners/>
<MailboxStats/>
</SearchMailboxesResult>
SearchMailboxesResultType
Attributes
None.
Child elements
SearchQueries | ResultType | ItemCount | Size (long) | PageItemCount | PageItemSize |
KeywordStats | Items (ArrayOfSearchPreviewItemsType) | FailedMailboxes | Refiners |
MailboxStats
Parent elements
SearchMailboxesResponseMessage
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
The SearchParameters element represents the parameters that define a search folder.
XML
<SearchParameters Traversal="">
<Restriction/>
<BaseFolderIds/>
</SearchParameters>
SearchParametersType
Attributes
Attribute Description
Traversal Describes how a search folder traverses the folder hierarchy. The options are for either
a Deep or a Shallow search.
Child elements
Element Description
Restriction
Represents the restriction or query that is used to filter items or folders in
FindItem/FindFolder and search folder operations.
BaseFolderIds Represents the collection of folders that will be mined to determine the contents
of a search folder.
Parent elements
Element Description
SearchFolder
Represents a search folder that is contained in a mailbox.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
SearchPreviewItem
Article • 03/29/2023 • 2 minutes to read
The SearchPreviewItem element specifies the item preview for a discovery search.
XML
<SearchPreviewItem>
<Id/>
<Mailbox/>
<ParentId/>
<ItemClass/>
<UniqueHash/>
<SortValue/>
<OwaLink/>
<Sender/>
<ToRecipients/>
<CcRecipients/>
<BccRecipients/>
<CreatedTime/>
<ReceivedTime/>
<SentTime/>
<Subject/>
<Size/>
<Preview/>
<Importance/>
<Read/>
<HasAttachment/>
<ExtendedProperties/>
</SearchPreviewItem>
SearchPreviewItemType
Attributes
None.
Child elements
ID (ItemIdType) | Mailbox (PreviewItemMailboxType) | ParentId | ItemClass | UniqueHash
| SortValue | OwaLink | Sender (string) | ToRecipients (ArrayOfSmtpAddressType) |
CcRecipients | BccRecipients | CreatedTime | ReceivedTime | SentTime | Subject | Size
(long) | Preview | Importance | Read | HasAttachment | ExtendedProperties
(NonEmptyArrayOfExtendedPropertyType)
Parent elements
Items (ArrayOfSearchPreviewItemsType)
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
SearchQueries
Article • 03/29/2023 • 2 minutes to read
The SearchQueries element contains a list of mailboxes and associated queries for
discovery search.
XML
<SearchQueries>
<MailboxQuery/>
</SearchQueries>
Attributes
None.
Child elements
MailboxQuery
Parent elements
SearchMailboxes | SearchMailboxesResult
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
SearchQuery
Article • 03/29/2023 • 2 minutes to read
XML
<SearchQuery></SearchQuery>
string
Attributes
None.
Child elements
None.
Parent elements
DiscoverySearchConfiguration
Text value
The text value of the SearchQuery element is a search query string.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
SearchScope
Article • 03/29/2023 • 2 minutes to read
XML
MailboxSearchLocationType
Attributes
None.
Child elements
None.
Parent elements
MailboxSearchScope
Text value
The text value of the SearchScope element indicates the mailbox type that is searched
for a discovery search. A text value of PrimaryOnly indicates that the primary mailbox is
searched. A text value of ArchiveOnly indicates that the archive mailbox is searched. A
text value of All indicates that both the primary and archive mailboxes are searched.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
SecurityIdentifier
Article • 03/29/2023 • 2 minutes to read
XML
<SecurityIdentifier/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
GroupIdentifier
Represents a single security identifier and attribute for an Active
Directory object group of which the account is a member.
The following is the XPath expression to this element:
/SerializedSecurityContext/GroupSids/GroupIdentifier[i]
RestrictedGroupIdentifier Represents the group security identifier and attributes for a restricted
group within a user token.
Remarks
This element is used in the Simple Object Access Protocol (SOAP) header.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
SeekToConditionPageItemView
Article • 03/29/2023 • 2 minutes to read
XML
<Condition/>
</SeekToConditionPageItemView>
SeekToConditionPageViewType
Attributes
Attribute Description
BasePoint The text value of the BasePoint attribute is the base point from where the
search will start. A text value of Beginning indicates that the search will
start at the beginning of the result set. A text value of End indicates that
the search will start at the end of the result set.
Child elements
Condition (RestrictionType)
Parent elements
FindConversation | FindItem
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<Sender>
<Mailbox/>
</Sender>
SingleRecipientType
Attributes
None.
Child elements
Element Description
Mailbox
Identifies a mail enabled Active Directory object that identifies the sender.
Parent elements
Element Description
RemoveItem
Removes an item from the Exchange store.
Message
Represents an Exchange e-mail message.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
AcceptItem
Represents an accept reply to a meeting request.
DeclineItem
Represents a decline reply to a meeting request.
ReplyToItem
Contains a reply to the creator of an item in the Exchange store.
ReplyAllToItem
Contains a reply to all identified recipients of an item in the Exchange
store.
ForwardItem
Contains an Exchange store item to forward to recipients.
CancelCalendarItem
Represents the response object used to cancel a meeting.
PostItem
Represents a post item in the Exchange store. This element was
introduced in Microsoft Exchange Server 2007 Service Pack 1 (SP1).
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Sender (EmailAddressType)
Article • 03/29/2023 • 2 minutes to read
The Sender element represents the e-mail address for the sender of the message.
XML
<Sender>
<Name/>
<EmailAddress/>
<RoutingType/>
<MailboxType/>
<ItemId/>
</Sender>
EmailAddressType
Attributes
None.
Child elements
Element Description
Name Represents the name of the mailbox user. This element is optional.
(EmailAddressType)
EmailAddress Defines the primary Simple Mail Transfer Protocol (SMTP) address of a
(NonEmptyStringType) mailbox user. This element is optional.
RoutingType Represents the routing protocol for the recipient. The default value is
(EmailAddress)
SMTP. This element is optional.
MailboxType
Represents the type of mailbox that is represented by the e-mail address.
This element is optional.
ItemId
Defines the item identifier of a contact or private distribution list for
recipients from a user's Contacts folder. This element is optional.
Parent elements
Element Description
FindMessageTrackingReport
Specifies criteria for the types of messages to find.
MessageTrackingReport
Contains a single message that is returned in a
GetMessageTrackingReport operation.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetMessageTrackingReport operation
The Sender element specifies the e-mail address of the person who sent an item.
XML
<Sender></Sender>
string
Attributes
None.
Child elements
None.
Parent elements
SearchPreviewItem
Text value
The text value of the Sender element is the sender of an e-mail that is found by
performing a discovery search.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
SenderDepartments
Article • 03/29/2023 • 2 minutes to read
The SenderDepartments element specifies that the department of the sender matches
any of the specified departments in the child Value (ProtectionRuleValueType) elements.
XML
<SenderDepartments>
<Value/>
</SenderDepartments>
ProtectionRuleSenderDepartmentsType
Attributes
None.
Child elements
Element Description
Value (ProtectionRuleValueType)
Identifies a single sender department.
Parent elements
Element Description
Condition
Identifies the condition that must be satisfied for the action part of the
rule to be executed.
And Specifies that all child elements must match to evaluate to true.
(ProtectionRuleAndType) Specifies that there must be more than one protection rule child
condition.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Senders
Article • 03/29/2023 • 2 minutes to read
The Senders element specifies an array of Simple Mail Transfer Protocol (SMTP)
addresses.
XML
<Senders>
<SmtpAddress/>
</Senders>
ArrayOfSmtpAddressType
Attributes
None.
Child elements
SmtpAddress
Parent elements
FindMailboxStatisticsByKeywords
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
SenderSmtpAddress
Article • 03/29/2023 • 2 minutes to read
XML
<SenderSmtpAddress/>
NonEmptyStringType
Attributes
None.
Child elements
None.
Parent elements
Element Description
GetSharingMetadata Defines a request to get an opaque authentication token that identifies the
sharing invitation.
Text value
A text value that represents an SMTP address is required.
Remarks
The schema that describes this element is located in the IIS Virtual directory that hosts
Exchange Web Services of the computer that is running Microsoft Exchange Server that
has the Client Access server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetSharingMetadata operation
The SendingAs element represents an e-mail address that a user is trying to send as.
XML
<SendingAs>
<Name/>
<EmailAddress/>
<RoutingType/>
<MailboxType/>
<ItemId/>
</SendingAs>
EmailAddressType
Attributes
None.
Child elements
Element Description
Name Represents the name of the mailbox user. This element is optional.
(EmailAddressType)
EmailAddress Defines the primary Simple Mail Transfer Protocol (SMTP) address of a
(NonEmptyStringType) mailbox user. This element is optional.
RoutingType Defines the address type for the mailbox. The default is SMTP. This
(EmailAddress)
element is optional.
MailboxType
Represents the type of mailbox that is represented by an e-mail user.
This element is optional.
ItemId
Defines the item identifier of a contact or private distribution list for
recipients from a user's Contacts folder. This element is optional.
Parent elements
Element Description
GetMailTips
Contains the recipients and types of mail tips to retrieve.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
SendItem
Article • 03/29/2023 • 2 minutes to read
The SendItem element is the root element in a request to send an item in the Exchange
store.
XML
<SendItem SaveItemToFolder="">
<ItemIds/>
<SavedItemFolderId/>
</SendItem>
SendItemType
Attributes
Attribute Description
SaveItemToFolder Identifies whether a copy of the sent item is saved. The save action depends
on the value of SaveItemToFolder and whether a SavedItemFolderId element
is present in the request. This element is required.
SaveItemToFolder Attribute
Value Description
true
If the SavedItemFolderId element is not present, the item is saved in the Sent Items folder.
If the SavedItemFolderId element is present, the item is saved in the folder that is
specified by the SavedItemFolderId element.
false
If the SavedItemFolderId element is not present, the item is not saved. If the
SavedItemFolderId element is present, an error response will be returned with a
ResponseCode element that contains the ErrorInvalidSendItemSaveSettings value.
Child elements
Element Description
ItemIds
Contains the unique identities of items, occurrence items, and recurring
master items that are used to delete, send, get, move, or copy items in the
Exchange store.
SavedItemFolderId Identifies the target folder for operations that update, send, and create items
in the Exchange store.
Parent elements
None.
Remarks
If an item in the Sent Items folder is sent, the sent item is deleted and a copy of it is put
in the Sent Items folder.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
SendItem operation
SendItemResponse
Article • 03/29/2023 • 2 minutes to read
XML
<SendItemResponse>
<ResponseMessages/>
</SendItemResponse>
SendItemResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Item Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
SendItem operation
SendItem
EWS XML elements in Exchange
SendItemResponseMessage
Article • 03/29/2023 • 2 minutes to read
XML
<SendItemResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</SendItemResponseMessage>
ResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of a SendItem operation response.
- Success
- Warning
- Error
Value Description
Success
Describes a request that is fulfilled.
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and is reserved for future use. It contains a value of 0.
MessageXml
Provides additional error response information.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Exchange Server with the Client Access server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
SendItem operation
EWS XML elements in Exchange
SendNotification
Article • 03/29/2023 • 2 minutes to read
The SendNotification element contains the push notifications that are sent by the
computer that is running Microsoft Exchange Server 2007 to the client application.
XML
<SendNotification>
<ResponseMessages/>
</SendNotification>
SendNotificationResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the push notifications that are sent by the Client Access server.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
XML
<SendNotificationResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<Notification/>
</SendNotificationResponseMessage>
SendNotificationResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of a SendNotification operation response.
- Success
- Warning
- Error
ResponseClass Attribute
Value Description
Success
Describes a request that is fulfilled.
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey Currently unused and is reserved for future use. It contains a value of 0.
MessageXml
Provides additional error response information.
Notification
Contains information about the subscription and the events that have
occurred since the last notification.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
SendNotification
Subscribe operation
Unsubscribe operation
SendNotificationResult
Article • 03/29/2023 • 2 minutes to read
XML
<SendNotificationResult>
<SubscriptionStatus/>
</SendNotificationResult>
SendNotificationResultType
Attributes
None.
Child elements
Element Description
SubscriptionStatus
Describes the status of a push subscription.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
SendPrompt
Article • 03/29/2023 • 2 minutes to read
The SendPrompt element specifies the type of action allowed for a voting option.
XML
SendPromptType
Attributes
None.
Child elements
None.
Parent elements
VotingOptionData
Text value
The text value of the SendPrompt element is a voting option action. The following table
lists the possible values for this element.
Value Description
None No action.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
VotingOptionData
XML
<Sensitivity/>
SensitivityChoicesType
Attributes
None.
Child elements
None.
Parent elements
Element Description
AcceptItem
Represents an accept reply to a meeting request.
CalendarItem
Represents an Exchange calendar item.
Conditions
Represents the conditions that, when fulfilled, will trigger the rule actions
for a rule.
Contact
Represents an Exchange contact item.
DeclineItem
Represents a decline reply to a meeting request.
DistributionList
Represents a distribution list.
Exceptions
Represents all the available rule exception conditions for an Inbox rule.
Item
Represents a generic Exchange item.
Element Description
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Message
Represents an Exchange e-mail message.
RemoveItem
Removes an item from the Exchange store.
Task
Represents a task in the Exchange store.
Text value
A text value is required. The following are the possible text values for this element:
Normal
Personal
Private
Confidential
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
SendSMSAlertToRecipients
Article • 03/29/2023 • 2 minutes to read
XML
<SendSMSAlertToRecipients>
<Address/>
</SendSMSAlertToRecipients>
ArrayOfEmailAddressesType
Attributes
None.
Child elements
Element Description
Address (EmailAddressType)
Represents a fully resolved e-mail address.
Parent elements
Element Description
Actions
Represents the set of actions that are available to be taken on a message when the
conditions are fulfilled.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
SentCcMe
Article • 03/29/2023 • 2 minutes to read
The SentCcMe element indicates whether the owner of the mailbox has to be in the
CcRecipients property of incoming messages in order for the condition or exception to
apply.
XML
<SentCcMe>true | false</SentCcMe>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Conditions
Represents the conditions that, when fulfilled, will trigger the rule actions for a rule.
Exceptions
Represents all the available rule exception conditions for an Inbox rule.
Text value
A text value of true indicates that the owner of the mailbox must be in the CcRecipients
property of the incoming messages in order for the condition or exception to apply. A
value of false indicates that the owner of the mailbox must not be in the CcRecipients
property of the incoming messages in order for the condition or exception to apply.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
SentOnlyToMe
Article • 03/29/2023 • 2 minutes to read
The SentOnlyToMe element indicates whether the owner of the mailbox has to be the
only one in the ToRecipients property of incoming messages in order for the condition
or exception to apply.
XML
<SentOnlyToMe/>true | false</SentOnlyToMe>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Conditions
Represents the conditions that, when fulfilled, will trigger the rule actions for a rule.
Exceptions
Represents all the available rule exception conditions for an Inbox rule.
Text value
A text value of true indicates that the owner of the mailbox must be the only one in the
ToRecipients property of the incoming messages in order for the condition or exception
to apply. A value of false indicates that the owner of the mailbox must not be the only
one in the ToRecipients property of the incoming messages in order for the condition or
exception to apply.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
SentTime
Article • 03/29/2023 • 2 minutes to read
The SentTime element specifies the time at which the item was sent.
XML
<SentTime></SentTime>
dateTime
Attributes
None.
Child elements
None.
Parent elements
SearchPreviewItem
Text value
The text value of the SentTime element is the date and time when an item was sent.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
SentToAddresses
Article • 03/29/2023 • 2 minutes to read
The SentToAddresses element indicates the e-mail addresses that incoming messages
have to have been sent to in order for the condition or exception to apply.
XML
<SentToAddresses>
<Address/>
</SentToAddresses>
ArrayOfEmailAddressesType
Attributes
None.
Child elements
Element Description
Address (EmailAddressType)
Represents a fully resolved e-mail address.
Parent elements
Element Description
Conditions
Represents the conditions that, when fulfilled, will trigger the rule actions for a rule.
Exceptions
Represents all the available rule exception conditions for an Inbox rule.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
SentToMe
Article • 03/29/2023 • 2 minutes to read
The SentToMe element indicates whether the owner of the mailbox has to be in the
ToRecipients property of incoming messages in order for the condition or exception to
apply.
XML
<SentToMe>true | false</SentToMe>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Conditions
Represents the conditions that, when fulfilled, will trigger the rule actions for a rule.
Exceptions
Represents all the available rule exception conditions for an Inbox rule.
Text value
A text value of true indicates that the owner of the mailbox must be in the ToRecipients
property of the incoming messages in order for the condition or exception to apply. A
value of false indicates that the owner of the mailbox must not be in the ToRecipients
property of the incoming messages in order for the condition or exception to apply.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
SentToOrCcMe
Article • 03/29/2023 • 2 minutes to read
The SentToOrCcMe element indicates whether the owner of the mailbox has to be in
either a ToRecipients or CcRecipients property of incoming messages in order for the
condition or exception to apply.
XML
<SentToOrCcMe>true | false</SentToOrCcMe>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Conditions
Represents the conditions that, when fulfilled, will trigger the rule actions for a rule.
Exceptions
Represents all the available rule exception conditions for an Inbox rule.
Text value
A text value of true indicates that the owner of the mailbox must be in the ToRecipients
or CcRecipients property of the incoming messages in order for the condition or
exception to apply. A value of false indicates that the owner of the mailbox must not be
in the ToRecipients or CcRecipients property of the incoming messages in order for the
condition or exception to apply.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
SerializedSecurityContext
Article • 03/29/2023 • 2 minutes to read
XML
<SerializedSecurityContext>
<UserSid/>
<GroupSids/>
<RestrictedGroupSids/>
<PrimarySmtpAddress/>
</SerializedSecurityContext>
SerializedSecurityContextType
Attributes
None.
Child elements
Element Description
UserSid
Represents the security descriptor definition language (SDDL) form of the
user security identifier in a serialized security context SOAP header.
GroupSids
Represents a collection of Active Directory directory service group object
security identifiers.
RestrictedGroupSids
Represents the group security identifier and attributes for a restricted
group.
PrimarySmtpAddress Represents the primary Simple Mail Transfer Protocol (SMTP) address of an
account to be used for server-to-server authorization.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server (CAS) role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
The Server element represents the physical server where the event occurred.
XML
<Server/>
NonEmptyStringType
Attributes
None.
Child elements
None.
Parent elements
Element Description
RecipientTrackingEvent
Contains information for a single event for a recipient.
Text value
A text value that represents a string is required if this element is used.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ServerHint
Article • 03/29/2023 • 2 minutes to read
The ServerHint element represents the starting point for tracking a message in a remote
site or forest.
XML
<ServerHint/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
FindMessageTrackingReport
Specifies criteria for the types of messages to find.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
FindMessageTrackingReport operation
XML
<ServerReplyWithMessage>
<ItemId>
</ServerReplyWithMessage>
ItemIdType
Attributes
None.
Child elements
Element Description
ItemId
Represents the unique identifier and change key of an item in the Exchange store.
Parent elements
Element Description
Actions
Represents the set of actions that are available to be taken on a message when the
conditions are fulfilled.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
ServerVersionInfo
Article • 03/29/2023 • 2 minutes to read
XML
Attributes
Attribute Description
Child elements
None.
Parent elements
None.
Remarks
This element is returned in the SOAP header of an Exchange Web Services response
message.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server that has the Client Access server
role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ServiceConfigurationResponseMessageT
ype
Article • 03/29/2023 • 2 minutes to read
XML
<ServiceConfigurationResponseMessageType ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<MailTipsConfiguration/>
<UnifiedMessagingConfiguration/>
<ProtectionRulesConfiguration/>
</ServiceConfigurationResponseMessageType>
ServiceConfigurationResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of the response.
- Success
- Warning
- Error
Value Description
Success
Describes a request that is fulfilled.
Value Description
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error
that the request encountered.
DescriptiveLinkKey
Currently unused and reserved for future use. This element
contains a value of 0.
MessageXml
Provides additional error response information.
UnifiedMessagingConfiguration
Contains service configuration information for the Unified
Messaging service.
Element Description
ProtectionRulesConfiguration
Contains service configuration information for the
protection rules service.
Parent elements
Element Description
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
SetClientExtension
Article • 03/29/2023 • 2 minutes to read
XML
<SetClientExtension>
<Actions/>
</SetClientExtension>
SetClientExtensionType
Attributes
None.
Child elements
Actions (ArrayOfSetClientExtensionActionsType)
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<SetClientExtensionResponse>
<ResponseMessages/>
</SetClientExtensionResponse>
SetClientExtensionResponseType
Attributes
None.
Child elements
ResponseMessages
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
SetClientExtensionResponseMessage
Article • 03/29/2023 • 2 minutes to read
XML
<SetClientExtensionResponseMessage>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</SetClientExtensionResponseMessage>
ResponseMessageType
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml
Parent elements
ResponseMessages
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
SetEncryptionConfiguration
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
SetEncryptionConfigurationResponse
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
SetEncryptionConfigurationResponseMe
ssage
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
SetFolderField
Article • 03/29/2023 • 2 minutes to read
The SetFolderField element represents an update that sets the value for a single
property on a folder in an UpdateFolder operation.
XML
<SetFolderField>
<FieldURI/>
<Folder/>
</SetFolderField>
XML
<SetFolderField>
<IndexedFieldURI/>
<SearchFolder/>
</SetFolderField>
XML
<SetFolderField>
<FieldURI/>
<TasksFolder/>
</SetFolderField>
XML
<SetFolderField>
<ExtendedFieldURI/>
<CalendarFolder/>
</SetFolderField>
XML
<SetFolderField>
<ExtendedFieldURI/>
<SearchFolder/>
</SetFolderField>
XML
<SetFolderField>
<ExtendedFieldURI/>
<Folder/>
</SetFolderField>
XML
<SetFolderField>
<IndexedFieldURI/>
<TasksFolder/>
</SetFolderField>
XML
<SetFolderField>
<FieldURI/>
<SearchFolder/>
</SetFolderField>
XML
<SetFolderField>
<FieldURI/>
<CalendarFolder/>
</SetFolderField>
XML
<SetFolderField>
<ExtendedFieldURI/>
<TasksFolder/>
</SetFolderField>
XML
<SetFolderField>
<IndexedFieldURI/>
<CalendarFolder/>
</SetFolderField>
XML
<SetFolderField>
<IndexedFieldURI/>
<Folder/>
</SetFolderField>
XML
<SetFolderField>
<FieldURI/>
<ContactsFolder/>
</SetFolderField>
XML
<SetFolderField>
<ExtendedFieldURI/>
<ContactsFolder/>
</SetFolderField>
XML
<SetFolderField>
<IndexedFieldURI/>
<ContactsFolder/>
</SetFolderField>
SetFolderFieldType
Attributes
None.
Child elements
Element Description
FieldURI
Identifies frequently referenced properties by URI.
IndexedFieldURI
Identifies individual members of a dictionary.
ExtendedFieldURI
Identifies extended MAPI properties.
Folder
Identifies a folder to update.
Element Description
CalendarFolder
Represents a folder that primarily contains calendar items.
ContactsFolder
Represents a Contacts folder in a mailbox.
SearchFolder
Represents a search folder that is contained in a mailbox.
TasksFolder
Represents a Tasks folder that is contained in a mailbox.
Parent elements
Element Description
Updates Contains a set of elements that defines append, set, and delete changes to
(Folder)
folder properties.
Remarks
If the property exists, the property value is set to the specified value. If the property
does not exist, the property is created with the specified value.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
UpdateFolder operation
EWS XML elements in Exchange
SetHoldOnMailboxes
Article • 03/29/2023 • 2 minutes to read
XML
<SetHoldOnMailboxes>
<ActionType/>
<HoldId/>
<Query/>
<Mailboxes/>
<Language/>
<IncludeNonIndexableItems/>
<Deduplication/>
<InPlaceHoldIdentity/>
</SetHoldOnMailboxes>
SetHoldOnMailboxesType
Attributes
None.
Child elements
ActionType (HoldActionType) | HoldId | Query | Mailboxes (ArrayOfStringsType) |
Language | IncludeNonIndexableItems | Deduplication | InPlaceHoldIdentity
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
SetHoldOnMailboxesResponse
Article • 03/29/2023 • 2 minutes to read
XML
<SetHoldOnMailboxesResponse>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<MailboxHoldResult/>
</SetHoldOnMailboxesResponse>
SetHoldOnMailboxesResponseMessageType
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml | MailboxHoldResult
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<SetHoldOnMailboxesResponseMessage>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<MailboxHoldResult/>
</SetHoldOnMailboxesResponseMessage>
SetHoldOnMailboxesResponseMessageType
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml | MailboxHoldResult
Parent elements
ResponseMessages
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
SetImGroup
Article • 03/29/2023 • 2 minutes to read
The SetImGroup element represents a request to change the display name of an instant
messaging group.
XML
<SetImGroup>
<GroupId/>
<NewDisplayName/>
</SetImGroup>
SetImGroupType
Attributes
None.
Child elements
GroupId | NewDisplayName
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
SetImGroupResponse
Article • 03/29/2023 • 2 minutes to read
XML
<SetImGroupResponse>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</SetImGroupResponse>
SetImGroupResponseMessageType
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<SetImListMigrationCompleted>
<ImListMigrationCompleted/>
</SetImListMigrationCompleted>
SetImListMigrationCompletedType
Attributes
None.
Child elements
ImListMigrationCompleted
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<SetImListMigrationCompletedResponse>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</SetImListMigrationCompletedResponse>
SetImListMigrationCompletedResponseMessageType
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<SetItemField>
<FieldURI/>
<Item/>
</SetItemField>
XML
<SetItemField>
<ExtendedFieldURI/>
<Item/>
</SetItemField>
XML
<SetItemField>
<ExtendedFieldURI/>
<MeetingRequest/>
</SetItemField>
XML
<SetItemField>
<ExtendedFieldURI/>
<MeetingResponse/>
</SetItemField>
XML
<SetItemField>
<IndexedFieldURI/>
<Contact/>
</SetItemField>
XML
<SetItemField>
<IndexedFieldURI/>
<DistributionList/>
</SetItemField>
XML
<SetItemField>
<IndexedFieldURI/>
<MeetingResponse/>
</SetItemField>
XML
<SetItemField>
<FieldURI/>
<MeetingResponse/>
</SetItemField>
XML
<SetItemField>
<FieldURI/>
<MeetingRequest/>
</SetItemField>
XML
<SetItemField>
<FieldURI/>
<Contact/>
</SetItemField>
XML
<SetItemField>
<IndexedFieldURI/>
<Message/>
</SetItemField>
XML
<SetItemField>
<ExtendedFieldURI/>
<CalendarItem/>
</SetItemField>
XML
<SetItemField>
<ExtendedFieldURI/>
<Task/>
</SetItemField>
XML
<SetItemField>
<ExtendedFieldURI/>
<Message/>
</SetItemField>
XML
<SetItemField>
<FieldURI/>
<MeetingCancellation/>
</SetItemField>
XML
<SetItemField>
<FieldURI/>
<Task/>
</SetItemField>
XML
<SetItemField>
<IndexedFieldURI/>
<MeetingRequest/>
</SetItemField>
XML
<SetItemField>
<FieldURI/>
<CalendarItem/>
</SetItemField>
XML
<SetItemField>
<IndexedFieldURI/>
<Item/>
</SetItemField>
XML
<SetItemField>
<ExtendedFieldURI/>
<MeetingCancellation/>
</SetItemField>
XML
<SetItemField>
<FieldURI/>
<DistributionList/>
</SetItemField>
XML
<SetItemField>
<IndexedFieldURI/>
<MeetingCancellation/>
</SetItemField>
XML
<SetItemField>
<ExtendedFieldURI/>
<MeetingMessage/>
</SetItemField>
XML
<SetItemField>
<IndexedFieldURI/>
<Task/>
</SetItemField>
XML
<SetItemField>
<IndexedFieldURI/>
<CalendarItem/>
</SetItemField>
XML
<SetItemField>
<FieldURI/>
<MeetingMessage/>
</SetItemField>
XML
<SetItemField>
<IndexedFieldURI/>
<MeetingMessage/>
</SetItemField>
XML
<SetItemField>
<FieldURI/>
<Message/>
</SetItemField>
XML
<SetItemField>
<ExtendedFieldURI/>
<DistributionList/>
</SetItemField>
XML
<SetItemField>
<ExtendedFieldURI/>
<Contact/>
</SetItemField>
SetItemFieldType
Attributes
None.
Child elements
Element Description
FieldURI
Identifies frequently referenced properties by URI.
IndexedFieldURI
Identifies individual members of a dictionary.
ExtendedFieldURI
Identifies extended MAPI properties to set.
Item
Represents an item in the Exchange store.
Message
Represents an Exchange e-mail message to update.
CalendarItem
Represents an Exchange calendar item to update.
Contact
Represents an Exchange contact item to update.
DistributionList
Represents a distribution list to update.
MeetingMessage
Represents a meeting message to update.
MeetingRequest
Represents a meeting request to update.
MeetingResponse
Represents a meeting response to update.
Task
Represents a task to update.
Parent elements
Element Description
Updates Contains a set of elements that define append, set, and delete changes to item
(Item)
properties.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
UpdateItem operation
SetRuleOperation
Article • 03/29/2023 • 2 minutes to read
UpdateInboxRules
Operations
XML
<SetRuleOperation>
<Rule/>
</SetRuleOperation>
SetRuleOperationType
Attributes
None.
Child elements
Element Description
Rule (RuleType)
Represents a rule in a user's mailbox.
Parent elements
Element Description
Operations
Contains an array of rule operations that can be performed on an Inbox.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
UpdateInboxRules
DeleteRuleOperation
CreateRuleOperation
XML
<SetTeamMailbox>
<EmailAddress/>
<SharePointSiteUrl/>
<State/>
</SetTeamMailbox>
SetTeamMailboxRequestType
Attributes
None.
Child elements
EmailAddress (EmailAddressType) | SharePointSiteUrl | State
(TeamMailboxLifecycleStateType)
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
SetTeamMailboxResponse
Article • 03/29/2023 • 2 minutes to read
XML
<SetTeamMailboxResponse>
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
</SetTeamMailboxResponse>
SetTeamMailboxResponseMessageType
Attributes
None.
Child elements
MessageText | ResponseCode | DescriptiveLinkKey | MessageXml
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
XML
<SetUserOofSettingsRequest>
<Mailbox>...</Mailbox>
<UserOofSettings>...</UserOofSettings>
<SetUserOofSettingsRequest>
SetUserOofSettingsRequest
Attributes
None.
Child elements
Element Description
UserOofSettings
Specifies the OOF settings.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Example
The following example of a SetUserOofSettings request sets an OOF setting for ten days.
XML
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<SetUserOofSettingsRequest
xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
<Mailbox
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Name>David Alexander</Name>
<Address>[email protected]</Address>
<RoutingType>SMTP</RoutingType>
</Mailbox>
<UserOofSettings
xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<OofState>Enabled</OofState>
<ExternalAudience>All</ExternalAudience>
<Duration>
<StartTime>2005-10-05T00:00:00</StartTime>
<EndTime>2005-10-25T00:00:00</EndTime>
</Duration>
<InternalReply>
</InternalReply>
<ExternalReply>
</ExternalReply>
</UserOofSettings>
</SetUserOofSettingsRequest>
</soap:Body>
</soap:Envelope>
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
SetUserOofSettings operation
SetUserOofSettingsResponse
Article • 03/29/2023 • 2 minutes to read
XML
<SetUserOofSettingsResponse>
<ResponseMessage>...</ResponseMessage>
<SetUserOofSettingsResponse>
SetUserOofSettingsResponse
Attributes
None.
Child elements
Element Description
ResponseMessage
Provides descriptive information about the response status.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
SetUserOofSettings operation
SharedFolderId
Article • 03/29/2023 • 2 minutes to read
The SharedFolderId element represents the identifier of the shared folder the local
folder identifier for which should be returned by a GetSharingFolder operation request.
XML
<SharedFolderId/>
NonEmptyStringType
Attributes
None.
Child elements
None.
Parent elements
Element Description
GetSharingFolder Defines a request to get the local folder identifier of a specified shared folder.
Text value
The text value is a string that represents the identifier of the shared folder the local
folder identifier for which should be returned by a GetSharingFolder operation request.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetSharingFolder operation
The SharePointSiteURL element contains the Uniform Resource Locator (URL) of the
SharePoint site that is linked with the site mailbox.
XML
<SharePointSiteURL></SharePointSiteURL>
string
Attributes
None.
Child elements
None.
Parent elements
SetTeamMailbox
Text value
The text value of the SharePointSiteURL element is the URL of the SharePoint site that is
linked with the site mailbox.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
SharePointUrl (MasterMailboxType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
SharingEffectiveRights
(CalendarPermissionReadAccessType)
Article • 03/29/2023 • 2 minutes to read
The SharingEffectiveRights element indicates the permissions that the user has for the
calendar data that is being shared.
XML
CalendarPermissionReadAccessType
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarFolder
Represents a folder that primarily contains calendar items.
Text value
The following table lists the possible values for the SharingEffectiveRights element.
Value Description
Value Description
None Indicates that the user does not have permission to view items in
the calendar.
TimeOnly Indicates that the user has permission to view only free/busy time
in the calendar.
TimeAndSubjectAndLocation Indicates that the user has permission to view free/busy time in
the calendar and the subject and location of appointments.
FullDetails Indicates that the user has permission to view all items in the
calendar, including free/busy time and subject, location, and
details of appointments.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
SharingEffectiveRights
(PermissionReadAccessType)
Article • 03/29/2023 • 2 minutes to read
The SharingEffectiveRights element indicates the permissions that the user has for the
contact data that is being shared.
XML
PermissionReadAccessType
Attributes
None.
Child elements
None.
Parent elements
Element Description
ContactsFolder
Represents a Contacts folder that is contained in a mailbox.
Text value
The following table lists the possible values for the SharingEffectiveRights element.
Value Description
Value Description
None Indicates that the user does not have permission to read items in the folder.
FullDetails Indicates that the user has permission to read all items in the folder.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
SharingFolderId
Article • 03/29/2023 • 2 minutes to read
The SharingFolderId element represents the identifier of the local folder in a sharing
relationship.
XML
FolderIdType
Attributes
Attribute Description
Id Contains a string that identifies a folder in the Exchange store. This attribute is
required.
ChangeKey Contains a string that identifies a version of a folder that is identified by the Id
attribute. This attribute is optional. Use this attribute to make sure that the correct
version of a folder is used.
Child elements
None.
Parent elements
Element Description
RefreshSharingFolder
Defines a request to refresh the specified local folder.
GetSharingFolderResponse
Defines a response to a GetSharingFolder operation
request.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
SharingSecurity
Article • 03/29/2023 • 2 minutes to read
The SharingSecurity element is used in the Simple Object Access Protocol (SOAP)
header for calendar or contact sharing.
XML
<SharingSecurity/>
EncryptedDataContainerType
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
The schema that describes this element is located in the IIS Virtual directory that hosts
Exchange Web Services of the computer that is running Microsoft Exchange Server that
has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Element Example
See also
EWS XML elements in Exchange
ShowExternalRecipientCount
Article • 03/29/2023 • 2 minutes to read
XML
<ShowExternalRecipientCount>true | false</ShowExternalRecipientCount>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
The text value of this element is true if consumers of the GetMailTips operation have to
show mail tips that indicate the number of external recipients to which a message is
addressed. The value is false if consumers of the GetMailTips operation do not have to
show mail tips that indicate the number of external recipients to which a message is
addressed.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetMailTips operation
The SID element represents the security descriptor definition language (SDDL) form of
the security identifier (SID) for the account to use for impersonation or delegate access.
XML
<SID/>
SIDType
Attributes
None.
Child elements
None.
Parent elements
Element Description
UserId
Identifies a delegate user or a user with folder access permissions.
Text value
The text value is a string representation of a SID.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Exchange Server with the Client Access server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
SIPResponseCode
Article • 03/29/2023 • 2 minutes to read
XML
<SIPResponseCode/>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
PhoneCallInformation
Specifies the state information for a phone call.
Text value
A SIP response code.
Remarks
The schema that describes this element is located in the /ews/ directory of the computer
that is running Microsoft Exchange Server 2010 that has the Client Access server role
installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
SIPResponseText
Article • 03/29/2023 • 2 minutes to read
XML
<SIPResponseText/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
PhoneCallInformation
Specifies the state information for a phone call.
Text value
The SIP response text.
Remarks
The schema that describes this element is located in the /ews/ directory of the computer
that is running Exchange Server with the Client Access server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Size
Article • 03/29/2023 • 2 minutes to read
The Size element represents the size in bytes of an item or all the items in a
conversation in the current folder. This property is read-only.
XML
<Size/>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
Contact
Represents an Exchange contact item.
DistributionList
Represents a distribution list.
FileAttachment
Represents a file that is attached to an item in the Exchange
store.
Item
Represents an item in the Exchange store.
Element Description
ItemAttachment
Represents an Exchange item that is attached to another
Exchange item.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Message
Represents an Exchange e-mail message.
RemoveItem
Removes an item from the Exchange store.
Task
Represents a task in the Exchange store.
Text value
The text value is an integer value that identifies the size of the item in bytes.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Code Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Size (long)
Article • 03/29/2023 • 2 minutes to read
The Size element specifies the total size of one or more mailbox items.
XML
<Size></Size>
long
Attributes
None.
Child elements
None.
Parent elements
KeywordStat | MailboxStat | SearchMailboxesResult | SearchPreviewItem
Text value
The text value of the Size element is the total size of one or more mailbox items.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
SizeRequested
Article • 03/29/2023 • 2 minutes to read
The SizeRequested element contains the requested photo size for a GetUserPhoto
operation.
XML
UserPhotoSizeType
Attributes
None.
Child elements
None.
Parent elements
GetUserPhoto
Text value
The text value of the SizeRequested element is the requested photo size of a digital
image returned from the server. The following table identifies the text values for the
SizeRequested element.
Value Meaning
HR120x120 The image is 120 pixels high and 120 pixels wide.
HR240x240 The image is 240 pixels high and 240 pixels wide.
HR360x360 The image is 360 pixels high and 360 pixels wide.
HR432x432 The image is 432 pixels high and 432 pixels wide.
HR504x504 The image is 504 pixels high and 504 pixels wide.
HR648x648 The image is 648 pixels high and 648 pixels wide.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
SmtpAddress
Article • 03/29/2023 • 2 minutes to read
The SmtpAddress element represents the Simple Mail Transfer Protocol (SMTP) address
of an account to be used for impersonation or a Simple Mail Transfer Protocol (SMTP)
recipient address of a calendar or contact sharing request.
XML
<SmtpAddress/>
SmtpAddressType
Attributes
None.
Child elements
None.
Parent elements
Element Description
ConnectingSID
Represents an account to impersonate when you are using the
ExchangeImpersonation SOAP header.
The following is the XPath expression to this element:
/ExchangeImpersonation/ConnectingSID
InvalidRecipient
Represents an invalid recipient for a calendar sharing or contact
sharing message.
GetSharingFolder
Defines a request to get the local folder identifier of a specified
shared folder.
Text value
A text value that represents an SMTP address is required.
Remarks
The schema that describes this element is located in the IIS Virtual directory that hosts
Exchange Web Services of the computer that is running Microsoft Exchange Server that
has the Client Access server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
SmtpAddress
(FederatedDirectoryGroupType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
SmtpAddress (MasterMailboxType)
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
SortBy
Article • 03/29/2023 • 2 minutes to read
The SortBy element contains an item property used for sorting the search result.
XML
<SortBy Order="">
<FieldURI/>
<IndexedFieldURI/>
</SortBy>
FieldOrderType
Attributes
Attribute Description
Order The text value of the Order attribute is the sort order. A text value of Ascending
indicates that the results are in ascending order. A text value of Descending indicates
that the results are in descending order.
Child elements
FieldURI | IndexedFieldURI
Parent elements
SearchMailboxes
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
SortOrder
Article • 03/29/2023 • 2 minutes to read
The SortOrder element defines how items are sorted in a FindItem or FindConversation
request.
XML
<SortOrder>
<FieldOrder/>
</SortOrder>
NonEmptyArrayOfFieldOrdersType
Attributes
None.
Child elements
Element Description
FieldOrder Represents a single field by which to sort results and indicates the direction for the
sort. One or more of these elements may be included. FieldOrder elements are
applied in the order specified for sorting.
Parent elements
Element Description
FindItem
Defines a request to find items in a mailbox.
The following is the XPath expression to this element: /FindItem
FindConversation
Defines a request to find conversations in a mailbox.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
FindItem operation
FindConversation operation
The SortOrder element specifies the sort order used for the result of a
GetConversationItems request.
XML
ConversationNodeSortOrder
Attributes
None.
Child elements
None.
Parent elements
GetConversationItems
Text value
The text value of the SortOrder element is the order in which conversations ordered. A
text value of TreeOrderAscending indicates that the conversations are ordered
according to the conversation tree in ascending order. A text value of
TreeOrderDescending indicates that the conversations are ordered according to the
conversation tree in descending order. A text value of DateOrderAscending indicates
that the conversations are ordered according to the conversation date in ascending
order. A text value of DateOrderDescending indicates that the conversations are
ordered according to the conversation date in descending order.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
SortValue
Article • 03/29/2023 • 2 minutes to read
XML
<SortValue></SortValue>
string
Attributes
None.
Child elements
None.
Parent elements
SearchPreviewItem | NonIndexableItemDetail
Text value
The text value of the SortValue element is the field used to sort the result set.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
SourceId
Article • 03/29/2023 • 2 minutes to read
The SourceId element specifies the identifier of the attributed contact in a persona.
XML
ItemIdType
Attributes
Attribute Description
ChangeKey The text value of the ChangeKey attribute is the change key of the contact.
Child elements
None.
Parent elements
Attribution (PersonaAttributionType)
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
SourceIds
Article • 03/29/2023 • 2 minutes to read
ConvertId
SourceIds
XML
<SourceIds>
<AlternateId/>
<AlternatePublicFolderId/>
<AlternatePublicFolderItemId/>
</SourceIds>
NonEmptyArrayOfAlternateIdsType
Attributes
None.
Child elements
Element Description
AlternateId
Describes an item or folder identifier to convert.
AlternatePublicFolderId
Describes a public folder identifier to convert.
AlternatePublicFolderItemId
Describes a public folder item identifier to convert.
Parent elements
Element Description
Element Description
ConvertId Defines a request to convert item and folder identifiers between Exchange supported
formats.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Exchange Server that has the Client Access server role
installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
ConvertId operation
Converting Identifiers
SpecificUsers
Article • 03/29/2023 • 2 minutes to read
The SpecificUsers element specifies the email accounts that can access the app.
XML
<SpecificUsers>
<String/>
</SpecificUsers>
ArrayOfStringsType
Attributes
None.
Child elements
String
Parent elements
ClientExtension
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
XML
<SpouseName/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Contact
Represents an Exchange contact item.
Text value
A text value is required.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Updating Contacts
Deleting Contacts
SpouseNames
Article • 03/29/2023 • 2 minutes to read
The SpouseNames element specifies an array of spouse or partner names and the
identifiers of their source attributions for the associated persona.
XML
<SpouseNames>
<StringAttributedValue/>
</SpouseNames>
ArrayOfStringAttributedValuesType
Attributes
None.
Child elements
StringAttributedValue
Parent elements
Persona
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Standard
Article • 03/29/2023 • 2 minutes to read
The Standard element represents the date and time when the time changes from
daylight saving time to standard time.
XML
<Standard TimeZoneName="">
<Offset/>
<RelativeYearlyRecurrence/>
<Time/>
</Standard>
XML
<Standard TimeZoneName="">
<Offset/>
<AbsoluteDate/>
<Time/>
</Standard>
TimeChangeType
Attributes
Attribute Description
TimeZoneName
Describes the name of the time zone.
Child elements
Element Description
Offset
Describes the offset from the BaseOffset. Together with the BaseOffset
element, the Offset element identifies whether the time is standard
time or daylight saving time.
Element Description
RelativeYearlyRecurrence Describes a relative yearly recurrence pattern for a time zone transition
date.
AbsoluteDate
Represents the date when the time changes from standard time or
daylight saving time.
Time (TimeChangeType)
Describes the time when the time changes between standard time and
daylight saving time.
Parent elements
Element Description
MeetingTimeZone
Represents the time zone of the location where the meeting is hosted.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
StandardGroupBy
Article • 03/29/2023 • 2 minutes to read
FindItem
DistinguishedGroupBy
StandardGroupBy
XML
<StandardGroupBy/>
StandardGroupByType
Attributes
None.
Child elements
None.
Parent elements
Element Description
DistinguishedGroupBy
Provides standard groupings for FindItem queries.
Text value
A text value is required. The only value that can be used for this element is
ConversationTopic. ConversationTopic groups by message:ConversationTopic and
aggregates on item:DateTimeReceived (maximum). For more information about
aggregation, see AggregateOn.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
FindItem operation
FindItem
Finding Items
StandardTime
Article • 03/29/2023 • 2 minutes to read
The StandardTime element represents an offset from the time relative to Coordinated Universal Time
(UTC) that is represented by the Bias (UTC) element. This element also contains information about the
transition to standard time from daylight saving time in regions where daylight saving time is observed.
TimeZone (Availability)
StandardTime
XML
<StandardTime>
<Bias>int</Bias>
<Time>string</Time>
<DayOrder>short</DayOrder>
<Month>short</Month>
<Year>string</Year>
</StandardTime>
SerializableTimeZoneTime
Attributes
None.
Child elements
Element Description
Bias Represents the offset from the UTC offset that is identified by the Bias (UTC) element for standard
time and daylight saving time. This value is in minutes.
Time Represents the transition time of day to and from standard time and daylight saving time.
DayOrder Represents the _n_th occurrence of the day that is specified in the DayOfWeek (TimeZone) element
that represents the date of transition from and to standard time and daylight saving time.
Month Represents the transition month of the year to and from standard time and daylight saving time.
DayOfWeek Represents the day of the week when the transition to and from standard time and daylight saving
(TimeZone) time occurs.
Year Defines a time zone that changes depending on the year. This element is optional. This element was
introduced in Microsoft Exchange Server 2007 Service Pack 1 (SP1).
Parent elements
Element Description
TimeZone Contains elements that identify time zone information. This element also contains information about the
(Availability) transition between standard time and daylight saving time. The following are the XPath expressions to this
element:
/GetUserAvailabilityResponse/FreeBusyResponseArray/FreeBusyResponse/FreeBusyView/WorkingHours/TimeZone
/GetUserAvailabilityRequest/TimeZone
Remarks
The StandardTime element represents an offset time that is represented by the Bias (UTC) element.
When the child Bias element equals 0, the standard time is equal to the bias offset from UTC that is
represented by the Bias (UTC) element.
Example
The following example shows a region where daylight saving time is observed. The transition from
daylight saving time to standard time is observed at 2 A.M. on the fifth Sunday of the tenth month.
XML
<TimeZone xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Bias>480</Bias>
<StandardTime>
<Bias>0</Bias>
<Time>02:00:00</Time>
<DayOrder>5</DayOrder>
<Month>10</Month>
<DayOfWeek>Sunday</DayOfWeek>
</StandardTime>
<DaylightTime>
<Bias>-60</Bias>
<Time>02:00:00</Time>
<DayOrder>1</DayOrder>
<Month>4</Month>
<DayOfWeek>Sunday</DayOfWeek>
</DaylightTime>
</TimeZone>
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
XML
<Start/>
DateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
DeletedOccurrence
Represents a deleted occurrence of a recurring calendar item.
FirstOccurrence
Represents the first occurrence of a recurring calendar item.
LastOccurrence
Represents the last occurrence of a recurring calendar item.
MeetingRequest
Represents a meeting request in the Exchange store.
Text value
The text value represents the start of a duration.
Remarks
The UpdateItem operation can set the Start and End time of an Exchange store item. In
an UpdateItem request, the Start time can be set without also setting the End time. This
can cause an error if the Start time is later than the End time. Be aware that client
applications must perform adjustments to End time when that Start time is changed in
order to preserve the duration.
7 Note
The time zone offset information is lost if the Start and End dates of the recurring
master item do not have a date that is equal to the first occurrence of a weekly
recurrence pattern.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Code Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
WeeklyRecurrence
EWS XML elements in Exchange
StartDate
Article • 03/29/2023 • 2 minutes to read
XML
<StartDate/>
dateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
Task
Represents a task in the Exchange store.
Flag
Specifies a flag on a mailbox item.
Text value
The text value represents the start date of a task.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Creating Tasks
Deleting Tasks
StartDate (Recurrence)
Article • 03/29/2023 • 2 minutes to read
The StartDate element represents the start date of a recurring task or calendar item.
XML
<StartDate/>
Date
Attributes
None.
Child elements
None.
Parent elements
Element Description
EndDateRecurrence
Describes the start date and the end date of an item recurrence pattern.
NoEndRecurrence
Describes the start date of an item recurrence pattern that does not have
a defined end date.
NumberedRecurrence Describes the start date and the number of occurrences of a recurring
item.
Text value
A text value that represents a date is required if this element is used. The value cannot
be less than Apr, 1, 1601 00:00:00.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
StartDateTime
Article • 03/29/2023 • 2 minutes to read
The StartDateTime element specifies the start date and time for a rule or a search.
XML
<StartDate/>
dateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
WithinDateRange
Specifies the date range within which incoming messages have to
have been received in order for the condition or exception to
apply.
Text value
A text value that represents a date/time is required if this element is used.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
StartFindInGALSpeechRecognition
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
StartFindInGALSpeechRecognitionRespo
nse
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
StartTime
Article • 03/29/2023 • 2 minutes to read
XML
<StartTime/
dateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
TimeWindow
Identifies the time span queried for the user availability information.
/GetUserAvailabilityRequest/FreeBusyViewOptions/TimeWindow
DetailedSuggestionsWindow Identifies the time span that is queried for detailed information about suggested meeting times.
/GetUserAvailabilityRequest/SuggestionViewOptions/DetailedSuggestionsWindow
Duration (UserOofSettings)
Specifies the duration for which the Out of Office (OOF) status is enabled if the OofState element is set to Scheduled.
/SetUserOofSettingsRequest/UserOofSettings/Duration
/GetUserOofSettingsResponse/OofSettings/Duration
CalendarEvent
Represents a unique calendar item occurrence. This is used for Availability inquiries. The StartTime element is required in
the CalendarEvent element. The StartTime element in the CalendarEvent element is unique to the CalendarEvent type
although it contains the same facet values that the StartTime elements in the Duration type contain.
/GetUserAvailabilityResponse/FreeBusyResponseArray/FreeBusyResponse/FreeBusyView/CalendarEventArray/CalendarEvent[i]
Text value
A text value is required.
Remarks
The EndTime element represents the end of the time span.
7 Note
The schema that describes this element is located in the EWS virtual directory of the computer that is running
MicrosoftExchange Server 2007 that has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
Getting User Availability
StartTime (ReminderMessageDataType)
Article • 03/29/2023 • 2 minutes to read
XML
<StartTime/>
dateTime
Attributes
None.
Child elements
None.
Parent elements
ReminderMessageData
Text value
The text value of the StartTime (ReminderMessageDataType) element is the starting
time of the item the reminder is for.
Remarks
This element was introduced in Exchange Server 2013 Service Pack 1 (SP1).
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
ReminderMessageData
EWS XML elements in Exchange
StartTimeInMinutes
Article • 03/29/2023 • 2 minutes to read
The StartTimeInMinutes element represents the start of the working day for a mailbox user.
GetUserAvailabilityResponse
FreeBusyResponseArray
FreeBusyResponse
FreeBusyView
WorkingHours
WorkingPeriodArray
WorkingPeriod
StartTimeInMinutes
XML
<StartTimeInMinutes>...</StartTimeInMinutes>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
WorkingPeriod Contains the work week days and hours of the mailbox user.
The following is the XPath expression to this element:
/GetUserAvailabilityResponse/FreeBusyResponseArray/FreeBusyResponse/FreeBusyView/WorkingHours/WorkingPeriodArray/WorkingPeriod
Text value
A text value is required. The text value represents the start of the working day by how many minutes have elapsed since the day
began. For example, a start time of 8 A.M. is represented by 480 minutes.
Remarks
The schema that describes this element is located in the EWS virtual directory of the computer that is running
MicrosoftExchange Server 2007 that has the Client Access server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityResponse
Getting User Availability
StartTimeZone
Article • 03/29/2023 • 2 minutes to read
The StartTimeZone element defines the time zone for the start time of a CalendarItem
or MeetingRequest.
XML
<Periods/>
<TransitionsGroups/>
<Transitions/>
</StartTimeZone>
TimeZoneDefinitionType
Attributes
Attribute Description
Child elements
Element Description
Periods
Represents an array of Period elements that define the time offset at different
stages of the time zone.
Transitions
Represents an array of time zone transitions.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
MeetingRequest
Represents a meeting request in the Exchange store.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server that has the Client Access server
role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
StartTimeZoneId
Article • 03/29/2023 • 2 minutes to read
The StartTimeZoneId element specifies the time zone in which a meeting takes place.
XML
<StartTimeZoneId></StartTimeZoneId>
string
Attributes
None.
Child elements
None.
Parent elements
CalendarItem | MeetingRequest
Text value
The text value of the StartTimeZoneId element is the time zone identifier of the time
zone used in the Start element.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
StartWallClock
Article • 03/29/2023 • 2 minutes to read
The StartWallClock element specifies the start time of a meeting in the time zone of the
location in which the meeting takes place.
XML
<StartWallClock></StartWallClock>
dateTime
Attributes
None.
Child elements
None.
Parent elements
CalendarItem | MeetingRequest
Text value
The text value of the StartWallClock element is the start time of a meeting in the time
zone of the location in which the meeting takes place.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
State
Article • 03/29/2023 • 2 minutes to read
The State element represents the state of residence for a contact item.
XML
<State/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Entry (PhysicalAddress)
Describes a single physical address for a contact item.
Text value
A string value that represents the name of a state is required if this element is used.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Creating Contacts (Exchange Web Services)
Updating Contacts
Deleting Contacts
State (TeamMailboxLifecycleStateType)
Article • 03/29/2023 • 2 minutes to read
The State element contains the lifecycle state that is set on a site mailbox.
XML
TeamMailboxLifecycleStateType
Attributes
None.
Child elements
None.
Parent elements
SetTeamMailbox
Text value
The text value of the State element is the lifecycle state that is set on a site mailbox. A
text value of Active indicates that a site mailbox is in active use. A text value of Closed
indicates that a site mailbox has been closed and is not in active use. A text value of
Unlinked indicates that a site mailbox is not linked to a web-based collaboration
environment. The Active, Closed, and PendingDelete values are mutually exclusive, but
the Unlinked value is not mutually exclusive of the other values. A text value of
PendingDelete indicates that a site mailbox is pending deletion. A site mailbox has to
be closed before it can be set as PendingDelete.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
StateDefinition
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Status
Article • 03/29/2023 • 2 minutes to read
XML
<Status/>
TaskStatusType
Attributes
None.
Child elements
None.
Parent elements
Element Description
Task
Represents a task in the Exchange store.
Text value
A text value is required. The following are the possible text values for this element:
NotStarted
InProgress
Completed
WaitingOnOthers
Deferred
Remarks
Setting CompleteDate has the same effect as setting PercentComplete to 100 or Status
to Completed. In a request that sets at least two of these properties, the last processed
property will determine the value that is set for these elements. For example, if
PercentComplete is 100, CompleteDate is 1/1/2007, and Status is NotStarted, and the
properties are streamed in this order, the effect will be to set the Status of the task to
NotStarted, the CompleteDate to null, and the PercentComplete to 0.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Creating Tasks
Deleting Tasks
Status (HoldStatusType)
Article • 03/29/2023 • 2 minutes to read
XML
HoldStatusType
Attributes
None.
Child elements
None.
Parent elements
MailboxHoldStatus
Text value
The text value of the Status element is the hold status of a mailbox. The Status element
can have the values in the following list.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Status (MemberStatusType)
Article • 03/29/2023 • 2 minutes to read
The Status element provides information about the status of a distribution list member
on the server.
MemberStatusType
Attributes
None.
Child elements
None.
Parent elements
Element Description
Member
Represents a member of a distribution list.
Text value
The following table lists the possible values for the Status element.
Value Description
Normal Member information in a distribution list is in sync with the referenced object.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server that has the Client Access server
role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
StatusDescription
Article • 03/29/2023 • 2 minutes to read
XML
<StatusDescription/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Task
Represents a task in the Exchange store.
Text value
This is a read-only property.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Creating Tasks
Deleting Tasks
StatusEvent
Article • 03/29/2023 • 2 minutes to read
The StatusEvent element represents a notification that no new activity has occurred in
the mailbox.
XML
<StatusEvent>
<Watermark/>
</StatusEvent>
BaseNotificationEventType
Attributes
None.
Child elements
Element Description
Watermark
Represents the last valid watermark for a subscription.
Parent elements
Element Description
Notification Contains information about the subscription and the events that have occurred
since the last notification.
Remarks
The StatusEvent element is returned in a notification for one of the following reasons:
The watermark will not remain the same in all cases. Event entries are maintained for 30
days. To maintain an active subscription, the CAS periodically updates the watermarks
for subscription queues. The updated watermarks are sent to clients to maintain an
active subscription.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Subscribe operation
GetEvents operation
Unsubscribe operation
StatusFrequency
Article • 03/29/2023 • 2 minutes to read
Subscribe
PushSubscriptionRequest
StatusFrequency
XML
<StatusFrequency/>
SubscriptionStatusFrequencyType
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
A text value that represents an integer is required if this element is used. The possible
values for this element are 1 to 1440, inclusive. This element is optional. The default
value is 30 minutes.
Remarks
The StatusFrequency value is used by the server to retry a push notification when it
does not receive a response to a push notification or status ping from the client. If the
server does not receive a response, it retries sending the notification several times
before it stops sending the notification. In EWS, the default retry interval is 30 seconds
and subsequent retries are always double the time of the last retry interval. Retry times
are not exact as they can be delayed due to other loads on the server. The following
table shows how the retry intervals occur in the 30 minutes allotted by the default
StatusFrequency value (assuming the server did not encounter any delays).
0 0 Initial sync
1 30 00:30
2 60 01:00
3 120 02:00
4 240 04:00
5 480 08:00
6 960 16:00
If the client does not receive notification messages from the server for a period of time
that exceeds twice the time specified by StatusFrequency, the client should take an
action such as recreating the subscription.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Name Value
See also
Subscribe operation
GetEvents operation
Unsubscribe operation
Watermark
StopProcessingRules
Article • 03/29/2023 • 2 minutes to read
XML
<StopProcessingRules>true | false</StopProcessingRules>
Boolean
Attributes
None.
Child elements
None.
Parent elements
Element Description
Actions
Represents the set of actions that are available to be taken on a message when the
conditions are fulfilled.
Text value
A text value of true indicates that subsequent rules should not be processed. A value of
false indicates that subsequent rules should continue to be evaluated.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
StorageQuota
Article • 03/29/2023 • 2 minutes to read
The StorageQuota element describes the storage quota for the managed folder.
XML
<StorageQuota/>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
ManagedFolderInformation
Contains information about a managed folder.
Text value
A text value is required.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
XML
<StoreEntryId/>
xs:base64Binary
Attributes
None.
Child elements
None.
Parent elements
AcceptItem
Represents an accept reply to a meeting request.
CalendarItem
Represents an Exchange calendar item.
Conditions
Represents the conditions that, when fulfilled, will trigger the rule actions
for a rule.
Contact
Represents a contact item in the Exchange store.
DeclineItem
Represents a decline reply to a meeting request.
DistributionList
Represents a distribution list.
Exceptions
Represents all the available rule exception conditions for an Inbox rule.
Item
Represents a generic Exchange item.
Element name Description
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Message
Represents an Exchange e-mail message.
RemoveItem
Removes an item from the Exchange store.
Task
Represents a task in the Exchange store.
Text value
The text value is a string that represents the store item identifier.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
This element was introduced in Exchange Server 2010 Service Pack 2 (SP2).
Element information
Name Value
Namespace
Schema Name
Validation File
Can be Empty
StreamingSubscriptionRequest
Article • 03/29/2023 • 2 minutes to read
Subscribe
StreamingSubscriptionRequest
XML
<StreamingSubscriptionRequest SubscribeToAllFolders="">
<FolderIds/>
<EventTypes/>
</StreamingSubscriptionRequest>
StreamingSubscriptionRequest
Attributes
Attribute Description
SubscribeToAllFolders Indicates whether the server will subscribe to all folders in the user's
mailbox. A value of true indicates that the server will subscribe.
Child elements
Element Description
FolderIds
Contains an array of folder identifiers that are used to identify folders to monitor for
event notifications.
EventTypes Contains a collection of event notifications that are used to create a subscription.
Parent elements
Element Description
Subscribe
Contains the properties that are used to create subscriptions.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
Subscribe operation
GetEvents operation
GetStreamingEvents operation
Unsubscribe operation
Street
Article • 03/29/2023 • 2 minutes to read
XML
<Street/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Entry (PhysicalAddress)
Describes a single physical address for a contact item.
Text value
The text value is a string that represents the street address of a contact.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Updating Contacts
Deleting Contacts
String
Article • 03/29/2023 • 2 minutes to read
The String element represents a string that is used by items, contacts, tasks, and
conversations.
XML
<String/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Categories
Contains a collection of strings that identify to which categories an
item in the mailbox belongs.
Children
Contains the names of the children of a contact.
Companies
Represents the collection of companies that are associated with a
contact or task.
Contacts
Contains a list of contacts that are associated with a task.
GlobalCategories
Contains the category list for all conversation items in a mailbox.
GlobalUniqueRecipients
Contains the recipient list of a conversation aggregated across a
mailbox.
Element Description
GlobalUniqueSenders
Contains a list of all the senders of conversation items in the
mailbox.
GlobalUniqueUnreadSenders Contains a list of all the people who have sent messages that are
currently unread in this conversation across all folders in the
mailbox.
MessageClassifications
Contains a list of the message classifications that must be
stamped on incoming messages in order for the condition or
exception to apply.
UniqueRecipients
Contains the list of recipients of the conversation. This element is
read-only.
UniqueSenders
Contains a list of all the senders of conversation items in the
current folder. This element is read-only.
UniqueUnreadSenders
Contains a list of all the people who have sent messages that are
currently unread in this conversation in the current folder.
Text value
The text value of this element is a string that represents a category, the child of a
contact, a company, a unique recipient of a conversation, or a contact that is associated
with a task.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.This element was introduced in Exchange Server 2010 Service
Pack 1 (SP1).
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
FindConversation operation
XML
<StringArrayAttributedValue>
<Value/>
<Attributions/>
</StringArrayAttributedValue>
StringArrayAttributedValueType
Attributes
None.
Child elements
Value | Attributions (ArrayOfValueAttributionsType)
Parent elements
Children (ArrayOfStringArrayAttributedValuesType)
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
StringAttributedValue
Article • 03/29/2023 • 2 minutes to read
XML
<StringAttributedValue>
<Value/>
<Attributions/>
</StringAttributedValue>
StringAttributedValueType
Attributes
None.
Child elements
Value | Attributions (ArrayOfValueAttributionsType)
Parent elements
DisplayNames | FileAses | FileAsIds | DisplayNamePrefixes | GivenNames | MiddleNames |
Surnames | Generations | Nicknames | Initials | YomiCompanyNames | YomiFirstNames |
YomiLastNames | BusinessHomePages | PersonalHomePages | OfficeLocations |
ImAddresses | ImAddresses2 | ImAddresses3 | Titles | Departments | CompanyNames |
Managers | AssistantNames | Professions | SpouseNames | Schools | Hobbies |
WeddingAnniversaries | Birthdays | Locations
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Subject (CalendarEventDetails)
Article • 03/29/2023 • 2 minutes to read
GetUserAvailabilityResponse
FreeBusyResponseArray
FreeBusyResponse
FreeBusyView
CalendarEventArray
CalendarEvent
CalendarEventDetails
Subject (CalendarEventDetails)
XML
<Subject/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
A text value is required if this element is returned in the response. This element will not be returned if the IsPrivate element value is equal
to true. This element can contain an empty string. This element is optional if the CalendarEventDetails element is used.
Remarks
The schema that describes this element is located in the EWS virtual directory of the computer that is running MicrosoftExchange Server
2007 that has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Element Example
See also
GetUserAvailability operation
GetUserAvailabilityResponse
The Subject element represents the subject property of Exchange store items. The
subject is limited to 255 characters.
XML
<Subject/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
CancelCalendarItem
Represents a cancel calendar item response object.
Contact
Represents an Exchange contact item.
DistributionList
Represents a distribution list.
FindMessageTrackingReport
Specifies criteria for the types of messages to find.
ForwardItem
Represents a forward item smart response object.
Item
Represents an item in the Exchange store.
MeetingMessage
Represents a meeting message in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Message
Represents an e-mail in the Exchange store.
MessageTrackingReport
Contains a single message that is returned in a
GetMessageTrackingReport operation.
RemoveItem
Represents a remove item response object.
ReplyAllToItem
Represents a reply-to-all smart response object.
ReplyToItem
Represents a reply-to-item smart response object.
Task
Represents a task in the Exchange store.
Text value
A text value that contains the subject of an Exchange item is required.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
The SubmittedTime element represents the time that the message entered the server.
XML
<SubmittedTime/>
DateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
A text value that represents a date/time is required if this element is used.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
SubmitTime
Article • 03/29/2023 • 2 minutes to read
The SubmitTime element represents the time at which the message was sent to the
server.
XML
<SubmitTime/>
dateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
A text value that represents a date/time is required if this element is used.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetMessageTrackingReport operation
XML
<Subscribe>
<PullSubscriptionRequest/>
<PushSubscriptionRequest/>
<StreamingSubscriptionRequest/>
</Subscribe>
SubscribeType
Attributes
None.
Child elements
Element Description
PullSubscriptionRequest
Represents a subscription to a pull-based event notification.
PushSubscriptionRequest
Represents a subscription to a push-based event notification.
StreamingSubscriptionRequest
Represents a subscription to a streaming event notification.
Parent elements
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
Subscribe operation
GetEvents operation
GetStreamingEvents operation
Unsubscribe operation
SubscribeResponse
Article • 03/29/2023 • 2 minutes to read
SubscribeResponse
XML
<SubscribeResponse>
<ResponseMessages/>
</SubscribeResponse>
SubscribeResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
Subscribe operation
SubscribeResponseMessage
Article • 03/29/2023 • 2 minutes to read
SubscribeResponse
ResponseMessages
SubscribeResponseMessage
XML
<SubscribeResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<SubscriptionId/>
<Watermark/>
</SubscribeResponseMessage>
SubscribeResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of a Subscribe operation response.
- Success
- Warning
- Error
Value Description
Value Description
Success
Describes a request that is fulfilled.
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the request
encountered.
DescriptiveLinkKey
Currently unused and reserved for future use. This element contains a
value of 0.
MessageXml
Provides additional error response information.
Watermark
Represents an event bookmark in the mailbox event queue.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
Subscribe operation
GetEvents operation
Unsubscribe operation
SubscriptionId (GetEvents)
Article • 03/29/2023 • 2 minutes to read
XML
<SubscriptionId/>
SubscriptionIdType
Attributes
None.
Child elements
None.
Parent elements
Element Description
GetEvents
Represents the operation used by pull clients to request
notifications from the server.
Notification
Contains information about the subscription and the events that
have occurred since the last notification.
Unsubscribe
Contains the properties used to unsubscribe from a subscription.
Text value
A text value is required. The text value is a GUID.
Remarks
The GUID that represents the subscription identifier is generated by the Client Access
server when the subscription is created.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
Subscribe operation
GetEvents operation
Unsubscribe operation
SubscriptionId (GetStreamingEvents)
Article • 03/29/2023 • 2 minutes to read
XML
<SubscriptionId/>
SubscriptionIdType
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
A text value is required. The text value is a GUID.
Remarks
The GUID that represents the subscription identifier is generated by the Client Access
server when the subscription is created.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetStreamingEvents operation
XML
<SubscriptionIds>
<SubscriptionId/>
</SubscriptionIds>
NonEmptyArrayOfSubscriptionIdsType
Attributes
None.
Child elements
Element Description
Parent elements
Element Description
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetStreamingEvents operation
XML
<SubscriptionStatus>OK or Unsubscribe</SubscriptionStatus>
SubscriptionStatusType
Attributes
None.
Child elements
None.
Parent elements
Element Description
SendNotificationResult
Contains the response of the client application' to a push notification.
Text value
A text value is required. The following are the possible text values for this element:
OK
Unsubscribe
Remarks
This element describes the status of the subscription. The push subscription client
application sends the status back to the computer that is running Exchange 2007 that
has the Client Access server role installed after each push notification. If the
SubscriptionStatus value equals Unsubscribe, the Client Access server will stop sending
notifications and end the subscription. If the SubscriptionStatus value equals OK, the
Client Access server will continue to send notifications.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
Suffix
Article • 03/29/2023 • 2 minutes to read
XML
<Suffix/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
CompleteName
Represents the complete name of a contact.
Text value
A text value is required.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
GetUserAvailabilityResponse
SuggestionsResponse
SuggestionDayResultArray
SuggestionDayResult
SuggestionArray
Suggestion
XML
<Suggestion>
<MeetingTime>...</MeetingTime>
<IsWorkTime>...</IsWorkTime>
<SuggestionQuality>...</SuggestionQuality>
<AttendeeConflictDataArray>...</AttendeeConflictDataArray>
</Suggestion>
Suggestion
Attributes
None.
Child elements
Element Description
MeetingTime
Represents a suggested meeting time.
IsWorkTime
Represents whether the suggested meeting time occurs during scheduled work hours.
SuggestionQuality
Represents the quality of the suggested meeting time.
AttendeeConflictDataArray Contains an array of information that describes conflicts between users and resources and the
suggested meeting time.
Parent elements
Element Description
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityResponse
GetUserAvailabilityResponse
SuggestionsResponse
SuggestionDayResultArray
SuggestionDayResult
SuggestionArray
XML
<SuggestionArray>
<Suggestion>...</Suggestion>
</SuggestionArray>
ArrayOfSuggestion
Attributes
None.
Child elements
Element Description
Suggestion
Represents a single meeting suggestion.
Parent elements
Element Description
Remarks
The schema that describes this element is located in the EWS virtual directory of the computer that is
running MicrosoftExchange Server 2007 that has the Client Access server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityResponse
GetUserAvailabilityResponse
SuggestionsResponse
SuggestionDayResultArray
SuggestionDayResult
XML
<SuggestionDayResult>
<Date>...</Date>
<DayQuality>...</DayQuality>
<SuggestionArray>...</SuggestionArray>
</SuggestionDayResult>
SuggestionDayResult
Attributes
None.
Child elements
Element Description
Date
Represents the date that contains the suggested meeting times.
DayQuality
Represents the quality of the day for containing quality suggested meeting
times.
Element Description
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access server
role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityResponse
GetUserAvailabilityResponse
SuggestionsResponse
SuggestionDayResultArray
XML
<SuggestionDayResultArray>
<SuggestionDayResult>...</SuggestionDayResult>
</SuggestionDayResultArray>
ArrayOfSuggestionDayResult
Attributes
None.
Child elements
Element Description
SuggestionDayResult
Represents a single day that contains suggested meeting times.
Parent elements
Element Description
Element Description
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetUserAvailability operation
GetUserAvailabilityResponse
The SuggestionQuality element represents the quality of the suggested meeting time.
GetUserAvailabilityResponse
SuggestionsResponse
SuggestionDayResultArray
SuggestionDayResult
SuggestionArray
Suggestion
SuggestionQuality
XML
SuggestionQuality
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
A text value that represents a SuggestionQuality value is required. The following are the possible values:
Excellent 100 percent of users and resources are available for the suggested meeting time.
Good The minimum percentage of users and resources available is equal to or greater than the GoodThreshold element
value plus 50.
Fair The maximum percentage of users and resources available for a suggested meeting time is equal to the
GoodThreshold element value plus 50. The minimum value for a Fair quality meeting time is 50 percent.
Poor Less than 50 percent of the users and resources are available for the suggested meeting time.
Remarks
The SuggestionQuality type is also the type for the DayQuality and the MinimumSuggestionQuality elements.
The schema that describes this element is located in the EWS virtual directory of the computer that is running
MicrosoftExchange Server 2007 that has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityResponse
GetUserAvailabilityResponse
SuggestionsResponse
XML
<SuggestionsResponse>
<ResponseMessage>...</ResponseMessage>
<SuggestionDayResultArray>...</SuggestionDayResultArray>
</SuggestionsResponse>
SuggestionsResponseType
Attributes
None.
Child elements
Element Description
ResponseMessage
Provides descriptive information about the response status.
SuggestionDayResultArray
Contains an array of meeting suggestions organized by date.
Parent elements
Element Description
GetUserAvailabilityResponse
Contains the requested users' availability information.
The following is the XPath expression to this element:
/GetUserAvailabilityResponse
Remarks
This element is not included in a GetUserAvailability response if
SuggestionsViewOptions is not set in the GetUserAvailability request message.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
GetUserAvailability operation
GetUserAvailabilityResponse
GetUserAvailabilityRequest
SuggestionsViewOptions
XML
<SuggestionsViewOptions>
<GoodThreshold>...</GoodThreshold>
<MaximumResultsByDay>...</MaximumResultsByDay>
<MaximumNonWorkingHourResultsByDay>...
</MaximumNonWorkingHourResultsByDay>
<MeetingDurationInMinutes>...</MeetingDurationInMinutes>
<MinimumSuggestionQuality>...</MinimumSuggestionQuality>
<SuggestionIntervalInMinutes>...</SuggestionIntervalInMinutes>
<DetailedSuggestionsWindow>...</DetailedSuggestionsWindow>
<CurrentMeetingTime>...</CurrentMeetingTime>
<GlobalObjectId>...</GlobalObjectId>
</SuggestionsViewOptions>
SuggestionsViewOptionsType
Attributes
None.
Child elements
Element Description
GoodThreshold
Specifies the percentage of attendees that must have the
time period open for the time period to qualify as a good
suggested meeting time.
Element Description
MaximumResultsByDay
Specifies the number of suggested meeting times per
day returned in the response.
MeetingDurationInMinutes
Specifies the length of the meeting to be suggested.
MinimumSuggestionQuality
Specifies the quality of meeting suggestions to be
returned in the response.
DetailedSuggestionsWindow
Identifies the time span that is queried for detailed
information about suggested meeting times.
CurrentMeetingTime
Represents the start time of a meeting that you want to
update with the suggested meeting time results.
GlobalObjectId
This element is not used.
Parent elements
Element Description
Remarks
This element is not required and can only occur once if used. This value can be null if the
value of the FreeBusyViewOptions element is not null.
7 Note
The schema that describes this element is located in the EWS virtual directory of
the computer that is running MicrosoftExchange Server 2007 that has the Client
Access server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
XML
<SuppressReadReceipt>
<ReferenceItemId/>
</SuppressReadReceipt>
SuppressReadReceiptType
Attributes
None.
Child elements
Element Description
ReferenceItemId
Identifies the item to which the response object refers.
Parent elements
Element Description
AdjacentMeetings
Describes all items that are adjacent to a meeting time.
/CalendarItem/AdjacentMeetings
/MeetingRequest/AdjacentMeetings
/SetItemField/CalendarItem/AdjacentMeetings
/AppendToItemField/CalendarItem/AdjacentMeetings
/AcceptItem/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/DeclineItem/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/TentativelyAcceptItem/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/SetItemField/CalendarItem/AdjacentMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/AppendToItemField/CalendarItem/AdjacentMeetings
/CreateAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/GetAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
Element Description
/CalendarItem/ConflictingMeetings
/MeetingRequest/ConflictingMeetings
/SetItemField/CalendarItem/ConflictingMeetings
/AppendToItemField/CalendarItem/ConflictingMeetings
/AcceptItem/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/DeclineItem/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/TentativelyAcceptItem/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/SetItemField/CalendarItem/ConflictingMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/AppendToItemField/CalendarItem/ConflictingMeetings
/CreateAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/GetAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
ResponseObjects
Contains a collection of all the response objects that are associated with an item in the Exchange
store.
Items Contains an array of items to create in the folder that is identified by the ParentFolderId
(NonEmptyArrayOfAllItemsType) (TargetFolderIdType) element.
Remarks
The schema that describes this element is located in the EWS virtual directory of the computer that is running
Microsoft Exchange Server 2007 that has the Client Access server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
SuppressReadReceipts
Article • 03/29/2023 • 2 minutes to read
XML
<SuppressReadReceipts>true | false</SuppressReadReceipts>
Boolean
Attributes
None.
Child elements
None.
Parent elements
ConversationAction | MarkAllItemsAsRead
Text value
A text value of true for the SuppressReadReciepts element indicates that read receipts
are suppressed. A value of false indicates that read receipts will be sent to the sender.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
Surname
Article • 03/29/2023 • 2 minutes to read
XML
<Surname/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
Contact
Represents an Exchange contact item.
Text value
A text value is required.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Updating Contacts
Deleting Contacts
Surnames
Article • 03/29/2023 • 2 minutes to read
The Surnames element specifies an array of surname values and the identifiers of their
source attributions for the associated persona.
XML
<Surnames>
<StringAttributedValue/>
</Surnames>
ArrayOfStringAttributedValuesType
Attributes
None.
Child elements
StringAttributedValue
Parent elements
Persona
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
SyncFolderHierarchy
Article • 03/29/2023 • 2 minutes to read
XML
<SyncFolderHierarchy>
<FolderShape/> <SyncFolderId/>
<SyncState/>
</SyncFolderHierarchy>
SyncFolderHierarchyType
Attributes
None.
Child elements
Element Description
SyncFolderId Represents the folder that contains the items to synchronize. This element is
optional.
SyncState
Contains a base64-encoded form of the synchronization data that is updated after
each successful request. This is used to identify the synchronization state.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
SyncFolderHierarchy operation
XML
<SyncFolderHierarchyResponse>
<ResponseMessages/>
</SyncFolderHierarchyResponse>
SyncFolderHierarchyResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
SyncFolderHierarchy operation
SyncFolderHierarchyResponse
ResponseMessages
SyncFolderHierarchyResponseMessage
XML
<SyncFolderHierarchyResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<SyncState/>
<IncludesLastFolderInRange/>
<Changes/>
</SyncFolderHierarchyResponseMessage>
SyncFolderHierarchyResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of a SyncFolderHierarchy operation response.
- Success
- Warning
- Error
Success
Describes a request that is fulfilled.
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while an item in the request was processing and subsequent items could not
be processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the
request encountered.
DescriptiveLinkKey
Currently unused and is reserved for future use. It contains a value of
0.
MessageXml
Provides additional error response information.
SyncState
Contains a base64-encoded form of the synchronization data that is
updated after each successful request. This is used to identify the
synchronization state.
Element Description
IncludesLastFolderInRange Indicates whether the last item to synchronize has been included in
the response.
Changes (Hierarchy)
Contains a sequence array of change types that represent the types
of differences between the items on the client and the items on the
Exchange server.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2010 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
SyncFolderHierarchy operation
EWS XML elements in Exchange
SyncFolderId
Article • 03/29/2023 • 2 minutes to read
The SyncFolderId element represents the folder that contains the items to synchronize.
XML
<SyncFolderId>
<FolderId/>
</SyncFolderId>
XML
<SyncFolderId>
<DistinguishedFolderId/>
</SyncFolderId>
TargetFolderIdType
Attributes
None.
Child elements
Element Description
FolderId
Contains the identifier and change key of a folder.
Parent elements
Element Description
SyncFolderHierarchy
Defines a request to synchronize a folder hierarchy in an Exchange store.
Element Description
SyncFolderItems
Defines a request to synchronize items in an Exchange store folder.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Exchange Server 2007 that has the Client Access server role
installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
SyncFolderItems operation
EWS XML elements in Exchange
SyncFolderItems
Article • 03/29/2023 • 2 minutes to read
XML
<SyncFolderItems>
<ItemShape/>
<SyncFolderId/>
<SyncState/>
<Ignore/>
<MaxChangesReturned/>
<SyncScope/>
</SyncFolderItems>
7 Note
SyncFolderItems operation is not supported for use against Office 365 Group
mailboxes.
SyncFolderItemsType
Attributes
None.
Child elements
Element Description
ItemShape
Identifies the item properties and content to include in a SyncFolderItems
response. This element is required.
SyncFolderId
Represents the folder that contains the items to synchronize. This
element is required.
Element Description
SyncState
Contains a base64-encoded form of the synchronization data that is
updated after each successful request. This is used to identify the
synchronization state. This element is optional.
Ignore
Identifies items to skip during synchronization. This element is optional.
SyncScope
Specifies whether just items or items and folder associated information
are returned in a synchronization response. This element is optional.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server that has the Client Access server
role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
SyncFolderItems operation
XML
<SyncFolderItemsResponse>
<ResponseMessages/>
</SyncFolderItemsResponse>
SyncFolderItemsResponseType
Attributes
None.
Child elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
SyncFolderItemsResponse
ResponseMessages
SyncFolderItemsResponseMessage
XML
<SyncFolderItemsResponseMessage ResponseClass="">
<MessageText/>
<ResponseCode/>
<DescriptiveLinkKey/>
<MessageXml/>
<SyncState/>
<IncludesLastItemInRange/>
<Changes/>
</SyncFolderItemsResponseMessage>
SyncFolderItemsResponseMessageType
Attributes
Attribute Description
ResponseClass
Describes the status of a SyncFolderItems operation response.
- Success
- Warning
- Error
ResponseClass Attribute
Value Description
Success
Describes a request that is fulfilled.
Warning Describes a request that was not processed. A warning may be returned if an error
occurred while processing an item in the request and subsequent items cannot be
processed.
Error
Describes a request that cannot be fulfilled.
Information about the error can be found in the ResponseCode and MessageText
elements.
Child elements
Element Description
MessageText
Provides a text description of the status of the response.
ResponseCode
Provides an error code that identifies the specific error that the
request encountered.
DescriptiveLinkKey
Currently unused and is reserved for future use. It contains the value
of 0.
MessageXml
Provides additional error response information.
SyncState
Contains a base64-encoded form of the synchronization data that is
updated after each successful request. This is used to identify the
synchronization state.
Element Description
IncludesLastItemInRange Indicates whether the last item to synchronize has been included in
the response.
Changes (Items)
Contains a sequence array of change types that represent the types of
differences between the items on the client and the items on the
Exchange server.
Parent elements
Element Description
ResponseMessages
Contains the response messages for an Exchange Web Services request.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
SyncFolderItems operation
EWS XML elements in Exchange
SyncScope
Article • 03/29/2023 • 2 minutes to read
The SyncScope element specifies whether just items or items and folder associated
information are returned in a synchronization response.
XML
<SyncScope>NormalItems or NormalAndAssociatedItems</SyncScope>
SyncFolderItemsScopeType
Attributes
None.
Child elements
None.
Parent elements
Element Description
SyncFolderItems The element that defines a request to synchronize items in an Exchange store
folder.
The following is the XPath expression to this element:
/SyncFolderItems
Text value
The following table lists the possible values for the SyncScope element.
Value Description
Value Description
NormalAndAssociatedItems Specifies that both items in the folder and folder associated
information are returned in a synchronization response.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server that has the Client Access server
role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
SyncFolderItems operation
XML
<SyncState/>
String
Attributes
None.
Child elements
None.
Parent elements
Element Description
SyncFolderHierarchy
Defines a request to synchronize a folder hierarchy on a
client.
SyncFolderItems
Defines a request to synchronize items in an Exchange
store folder.
SyncFolderItemsResponseMessage
Contains the status and result of a SyncFolderItems
request.
Text value
A text value is required when this element is used.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
SyncFolderItems operation
SyncFolderHierarchy operation
XML
<SyncState></SyncState>
base64Binary
Attributes
None.
Child elements
None.
Parent elements
Conversation (ConversationRequestType) | Conversation (ConversationResponseType)
Text value
The text value of the SyncState element is the synchronization state for a conversation.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element info value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
XML
<Task>
<MimeContent/>
<ItemId/>
<ParentFolderId/>
<ItemClass/>
<Subject/>
<Sensitivity/>
<Body/>
<Attachments/>
<DateTimeReceived/>
<Size/>
<Categories/>
<InReplyTo/>
<IsSubmitted/>
<IsDraft/>
<IsFromMe/>
<IsResend/>
<IsUnmodified/>
<InternetMessageHeaders/>
<DateTimeSent/>
<DateTimeCreated/>
<ResponseObjects/>
<ReminderDueBy/>
<ReminderIsSet/>
<ReminderMinutesBeforeStart/>
<DisplayCc/>
<DisplayTo/>
<HasAttachments/>
<ExtendedProperty/>
<Culture/>
<ActualWork/>
<AssignedTime/>
<BillingInformation/>
<ChangeCount/>
<Companies/>
<CompleteDate/>
<Contacts/>
<DelegationState/>
<Delegator/>
<DueDate/>
<IsAssignmentEditable/>
<IsComplete/>
<IsRecurring/>
<IsTeamTask/>
<Mileage/>
<Owner/>
<PercentComplete/>
<Recurrence/>
<StartDate/>
<Status/>
<StatusDescription/>
<TotalWork/>
<EffectiveRights/>
<LastModifiedName/>
<LastModifiedTime/>
<IsAssociated/>
<WebClientReadFormQueryString/>
<WebClientEditFormQueryString/>
<ConversationId/>
<UniqueBody/>
</Task>
TaskType
Attributes
None.
Child elements
Element Description
MimeContent
Contains the native Multipurpose Internet Mail Extensions
(MIME) stream of an object that is represented in base64Binary
format.
ItemId
Contains the unique identifier and change key of an item in the
Exchange store.
ParentFolderId Represents the identifier of the parent folder that contains the
item or folder.
ItemClass
Represents the message class of an item.
Subject
Represents the subject for Exchange store items and response
objects.
Sensitivity
Contains the status for an item's sensitivity.
Element Description
Body
Represents the actual body content of a message.
Attachments
Contains the items or files that are attached to an item in the
Exchange store.
DateTimeReceived
Represents the date and time that an item in a mailbox was
received.
Size
Represents the size, in bytes, of an item. This property is read-
only.
Categories
Represents a collection of strings that identify to which
categories an item in the mailbox belongs.
Importance
Describes the importance of an item.
InReplyTo
Represents the identifier of the item to which this item is a
reply.
IsSubmitted
Indicates whether an item has been submitted to the Outbox
default folder.
IsDraft
Represents whether an item has not yet been sent.
IsFromMe
Indicates whether a user sent an item to him or herself.
IsResend
Indicates whether the item had previously been sent.
IsUnmodified
Indicates whether the item has been modified.
InternetMessageHeaders
Represents the collection of all Internet message headers that
are contained in an item in a mailbox.
DateTimeSent
Represents the date and time that an item in a mailbox was
sent.
DateTimeCreated
Represents the date and time that a given item in the mailbox
was created.
ResponseObjects
Contains a collection of all the response objects that are
associated with an item in the Exchange store.
ReminderDueBy
Represents the date and time when the event occurs. This is
used by the ReminderMinutesBeforeStart element to
determine when the reminder is displayed.
ReminderIsSet
Indicates whether a reminder has been set for an item in the
Exchange store.
Element Description
ReminderMinutesBeforeStart
Represents the number of minutes before an event when a
reminder is displayed.
DisplayCc
Represents the display string that is used for the contents of
the Cc box. This is the concatenated string of all Cc recipient
display names.
DisplayTo
Represents the display string that is used for the contents of
the To box. This is the concatenated string of all To recipient
display names.
HasAttachments
Represents a property that is set to true if an item has at least
one visible attachment. This property is read-only.
ExtendedProperty
Identifies extended properties on folders and items.
Culture
Represents the culture for a given item in a mailbox.
ActualWork
Represents the actual amount of time that is spent on a task.
AssignedTime
Represents the time when a task is assigned to a contact.
BillingInformation
Holds billing information for a task.
ChangeCount
Specifies the version of the task.
Companies
Represents the collection of companies that are associated
with a contact or task.
CompleteDate
Represents the date on which a task is completed.
Contacts
Contains a list of contacts that are associated with a task.
DelegationState
Represents the status of a delegated task.
Delegator
Contains the name of the delegator who assigned the task.
DueDate
Represents the date when a task item is due.
IsAssignmentEditable
Indicates whether the task is editable or not.
IsComplete
Indicates whether the task has been completed or not.
IsRecurring
Indicates whether a task is part of a recurring item. This
element is read-only.
IsTeamTask
Indicates whether the task is owned by a team or not.
Mileage
Represents mileage for a task item.
Owner
Represents the owner of a task.
Element Description
PercentComplete
Describes the completion status of a task.
StartDate
Represents the start date of a task item.
Status
Represents the status of a task item.
StatusDescription
Contains an explanation of the task status.
TotalWork
Contains a description of how much work is associated with an
item.
EffectiveRights
Contains the rights of the client based on the permission
settings for the item or folder. This element is read-only.
LastModifiedName
Contains the display name of the last user to modify an item.
LastModifiedTime
Indicates when an item was last modified.
IsAssociated
Indicates whether the item is associated with a folder.
WebClientEditFormQueryString
Represents a URL to concatenate to the Outlook Web App
endpoint to edit an item in Outlook Web App.
ConversationId
Contains the identifier of an item or conversation.
UniqueBody
Represents an HTML fragment or plain text which represents
the unique body of this conversation.
Parent elements
Element Description
AdjacentMeetings
Describes all calendar items that are adjacent to a meeting time.
Create (ItemSync)
Identifies a single item to create in the local client store.
ItemAttachment
Represents an Exchange item that is attached to another Exchange item.
Element Description
Items
Contains an array of items.
SetItemField
Represents an update to a single property of an item in an UpdateItem
operation.
Update (ItemSync)
Identifies a single item to update in the local client store.
Text value
None.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Creating Tasks
Deleting Tasks
TasksFolder
Article • 03/29/2023 • 2 minutes to read
XML
<TasksFolder>
<FolderId/>
<ParentFolderId/>
<FolderClass/>
<DisplayName/>
<TotalCount/>
<ChildFolderCount/>
<ExtendedProperty/>
<ManagedFolderInformation/>
<UnreadCount/>
<PermissionSet/>
<EffectiveRights/>
</TasksFolder>
TasksFolderType
Attributes
None.
Child elements
Element Description
FolderId
Contains the identifier and change key of a Tasks folder.
ParentFolderId Represents the identifier of the parent folder that contains the Tasks
folder.
FolderClass
Represents the folder class for a Tasks folder.
DisplayName (string)
Contains the display name of a Tasks folder.
TotalCount
Represents the total count of items within a Tasks folder.
Element Description
ChildFolderCount
Represents the number of child folders that are contained within a
Tasks folder. This property is read-only.
ExtendedProperty
Identifies extended properties on a Tasks folder.
UnreadCount
Represents the count of unread items within a Tasks folder.
PermissionSet Contains all the configured permissions for a folder. This element
(PermissionSetType)
was introduced in Microsoft Exchange Server 2007 Service Pack 1
(SP1).
EffectiveRights
Contains the client's rights based on the permission settings for the
item or folder. This element is read-only. This element was
introduced in Microsoft Exchange 2007 SP1.
Parent elements
Element Description
Create (FolderSync)
Identifies a single folder to create in the local client store.
SetFolderField
Represents an update to a single property on a folder in an UpdateFolder
operation.
Update (FolderSync)
Identifies a single folder to update in the local client store.
Folders
Contains an array of folders that are used in folder operations.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element info Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Element info Value
See also
EWS XML elements in Exchange
TasksFolderPermissionLevel
Article • 03/29/2023 • 2 minutes to read
The TasksFolderPermissionLevel element contains the permissions for the default Tasks
folder. This element was introduced in Microsoft Exchange Server 2007 Service Pack 1
(SP1).
XML
<TasksFolderPermissionLevel>
</TasksFolderPermissionLevel>
DelegateFolderPermissionLevelType
Attributes
None.
Child elements
None.
Parent elements
Element Description
DelegatePermissions Contains the delegate permission level settings for a user. This element
was introduced in Exchange 2007 SP1.
Text value
The following table lists the text values that represent the permission levels.
None The delegate user has no access permissions to the Tasks folder.
Reviewer The delegate user can read items in the Tasks folder.
Author The delegate user can read and create items in the Tasks folder.
Editor The delegate user can read, create, and modify items in the Tasks folder.
Custom The delegate user has custom access permissions to the Tasks folder.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
AddDelegate operation
UpdateDelegate operation
EWS XML elements in Exchange
Adding Delegates
TaskString
Article • 03/29/2023 • 2 minutes to read
XML
<TaskString></TaskString>
string
Attributes
None.
Child elements
None.
Parent elements
TaskSuggestion
Text value
The text value of the TaskString element is the suggested task that resulted from a task
entity extracted from an item in the mailbox.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
TaskSuggestion
Article • 03/29/2023 • 2 minutes to read
The TaskSuggestion element contains a task suggestion that resulted from an entity
extracted from an item.
XML
<TaskSuggestion>
<Position/>
<TaskString/>
<Assignees/>
</TaskSuggestion>
TaskSuggestionType
Attributes
None.
Child elements
Position | TaskString | Assignees
Parent elements
TaskSuggestions
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
TaskSuggestions
Article • 03/29/2023 • 2 minutes to read
XML
<TaskSuggestions>
<TaskSuggestion/>
</TaskSuggestions>
ArrayOfTaskSuggestionsType
Attributes
None.
Child elements
TaskSuggestion
Parent elements
EntityExtractionResult
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
TaskTimedOut
Article • 03/29/2023 • 2 minutes to read
Attributes
None.
Child elements
None.
Parent elements
None.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
TelexNumbers
Article • 03/29/2023 • 2 minutes to read
The TelexNumbers element specifies an array of Telex numbers and the identifiers of
their source attributions for the associated persona.
XML
<TelexNumbers>
<PhoneNumberAttributedValue/>
</TelexNumbers>
ArrayOfPhoneNumberAttributedValuesType
Attributes
None.
Child elements
PhoneNumberAttributedValue
Parent elements
Persona
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
The TelUriAddress element contains the tel Uniform Resource Identifier (URI) for a
contact.
XML
<TelUriAddress></TelUriAddress>
NonEmptyStringType
Attributes
None.
Child elements
None.
Parent elements
AddNewTelUriContactToGroup
Text value
The text value of the TelUriAddress element is the tel URI for a contact.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
TemplateDescription
Article • 03/29/2023 • 2 minutes to read
XML
<TemplateDescription></TemplateDescription>
string
Attributes
None.
Child elements
None.
Parent elements
RightsManagementLicenseData
Text value
The text value of the TemplateDescription element is the description of the Rights
Management template applied to an item.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Code Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
TemplateName
Article • 03/29/2023 • 2 minutes to read
The TemplateName element specifies the name of the Rights Management template.
XML
<TemplateName></TemplateName>
string
Attributes
None.
Child elements
None.
Parent elements
RightsManagementLicenseData
Text value
The text value of the TemplateName element is the name of the Rights Management
template applied to an item.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
TentativelyAcceptItem
Article • 03/29/2023 • 2 minutes to read
XML
<TentativelyAcceptItem>
<ItemClass/>
<Sensitivity/>
<Body/>
<Attachments/>
<InternetMessageHeaders/>
<Sender/>
<ToRecipients/>
<CcRecipients/>
<BccRecipients/>
<IsReadReceiptRequested/>
<IsDeliveryReceiptRequested/>
<ReferenceItemId/>
<ReceivedBy/>
<ReceivedRepresenting/>
<ProposedStart/>
<ProposedEnd/>
</TentativelyAcceptItem>
TentativelyAcceptItemType
Attributes
None.
Child elements
Element Description
ItemClass
Represents the message class of an item.
Sensitivity
Identifies the sensitivity of an item.
Body
Represents the actual body content of a message.
Attachments
Contains the item or file that is attached to an item in the Exchange store.
InternetMessageHeaders
Represents the Internet message header name for a given header within the headers collection.
Sender
Identifies the sender of an item.
ToRecipients
Contains a set of recipients of an item. These are the primary recipients of an item.
CcRecipients
Represents a collection of recipients that will receive a copy of the message.
BccRecipients
Represents a collection of recipients to receive a blind carbon copy (Bcc) of an e-mail.
IsReadReceiptRequested
Indicates whether the sender of an item requests a read receipt.
Element Description
ReferenceItemId
Identifies the item to which the response object refers.
ReceivedBy
Identifies the delegate in a delegate access scenario. This element was introduced in Microsoft
Exchange Server 2007 Service Pack 1 (SP1).
ReceivedRepresenting
Identifies the principal in a delegate access scenario. This element was introduced in Microsoft
Exchange Server 2007 Service Pack 1 (SP1).
ProposedStart
Specifies the proposed start time of the meeting request.
ProposedEnd
Specifies the proposed end time of the meeting request.
Parent elements
Element Description
AdjacentMeetings
Describes all items that are adjacent to a meeting time.
/CalendarItem/AdjacentMeetings
/MeetingRequest/AdjacentMeetings
/SetItemField/CalendarItem/AdjacentMeetings
/AppendToItemField/CalendarItem/AdjacentMeetings
/AcceptItem/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/DeclineItem/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/TentativelyAcceptItem/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/SetItemField/CalendarItem/AdjacentMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/AppendToItemField/CalendarItem/AdjacentMeetings
/CreateAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/GetAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/AdjacentMeetings
/CalendarItem/ConflictingMeetings
/MeetingRequest/ConflictingMeetings
/SetItemField/CalendarItem/ConflictingMeetings
/AppendToItemField/CalendarItem/ConflictingMeetings
/AcceptItem/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/DeclineItem/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/TentativelyAcceptItem/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/SetItemField/CalendarItem/ConflictingMeetings
/UpdateItem/ItemChanges/ItemChange/Updates/AppendToItemField/CalendarItem/ConflictingMeetings
/CreateAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
/GetAttachmentResponseMessage/Attachments/ItemAttachment/CalendarItem/ConflictingMeetings
ResponseObjects
Contains a collection of all the response objects that are associated with an item in the Exchange
store.
Items Contains an array of items to create in the folder identified by the ParentFolderId
(NonEmptyArrayOfAllItemsType) (TargetFolderIdType) element.
Remarks
The schema that describes this element is located in the EWS virtual directory of the computer that is running
MicrosoftExchange Server 2007 that has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Term
Article • 03/29/2023 • 2 minutes to read
XML
<Term>
<Scope/>
<Value/>
</Term>
HighlightTermType
Attributes
None.
Child elements
Scope (HighlightTermType) | Value
Parent elements
HighlightTerms
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Code Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
TextBody
Article • 03/29/2023 • 2 minutes to read
XML
BodyType
Attributes
Attribute Description
BodyTypeType Indicates the body type. The value of Text for the BodyTypeType attribute
indicates that the body is in plain text form. The value of HTML for the
BodyTypeType attribute indicates that the body is in HTML form. The
BodyTypeType attribute is required.
IsTruncated Indicates that the body contents have been truncated. A text value of false for
the IsTruncated attribute indicates that the body contents have not been
truncated. The normalized body will be truncated if the text body length is
longer than the value set in the MaximumBodySize element.
Child elements
None.
Parent elements
Item | Contact | Message | DistributionList | CalendarItem | PostItem | Task
Text value
The text value of the TextBody element is the text body of the item.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Time
Article • 03/29/2023 • 2 minutes to read
The Time element represents the transition time of day to and from standard time and daylight saving time.
XML
<Time>...</Time>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
StandardTime Represents an offset from the time relative to Coordinated Universal Time (UTC) represented by the Bias (UTC) element.
This element also contains information about the transition to standard time from daylight saving time in regions where
daylight saving time is observed.
/GetUserAvailabilityResponse/FreeBusyResponseArray/FreeBusyResponse/FreeBusyView/WorkingHours/TimeZone/StandardTime
/GetUserAvailabilityRequest/TimeZone/StandardTime
DaylightTime
Represents an offset from the time relative to UTC represented by the Bias (UTC) element in regions where daylight saving
time is observed. This element also contains information about when the transition to daylight saving time from standard
time occurs.
/GetUserAvailabilityResponse/FreeBusyResponseArray/FreeBusyResponse/FreeBusyView/WorkingHours/TimeZone/DaylightTime
/GetUserAvailabilityRequest/TimeZone/DaylightTime
Text value
The text value represents hours, minutes, and seconds in the following format: hh:mm:ss.
Remarks
When the Time element occurs in the DaylightTime element, it represents the time of day that the transition from
daylight saving time to standard time occurs. When the Time element occurs in the StandardTime element, it
represents the time of day that the transition from standard time to daylight saving time occurs.
This element has a minimum occurrence of zero and a maximum occurrence of one.
Example
The following part of a request represents a transition time of 2 A.M. from standard time to daylight saving time.
XML
<StandardTime>
<Bias>0</Bias>
<Time>02:00:00</Time>
<DayOrder>5</DayOrder>
<Month>10</Month>
<DayOfWeek>Sunday</DayOfWeek>
</StandardTime
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
Getting User Availability
Time (TimeChangeType)
Article • 03/29/2023 • 2 minutes to read
The Time element describes the time when the time changes between standard time
and daylight saving time.
XML
<Time/>
Time
Attributes
None.
Child elements
None.
Parent elements
Element Description
Daylight
Represents the date and time when the time changes from daylight saving time to
standard time.
Standard Represents the date and time when the time changes from daylight saving time to
standard time.
Text value
The text value represents the time when the time changes between standard time and
daylight saving time.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
TimeOffset
Article • 03/29/2023 • 2 minutes to read
The TimeOffset element represents the time offset from Coordinated Universal Time
(UTC) for the time zone transition.
XML
<TimeOffset/>
duration
Attributes
None.
Child elements
None.
Parent elements
Element Description
RecurringDateTransition Represents a time zone transition that occurs on a specific date each
year.
RecurringDayTransition
Represents a time zone transition that occurs on the same day each
year.
Text value
The text value of the TimeOffset element is a duration that specifies the time offset
from UTC for the time zone transition.
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
Timeout
Article • 03/29/2023 • 2 minutes to read
The Timeout element represents the duration, in minutes, that the subscription can
remain idle without a GetEvents request from the client.
XML
<Timeout/>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
Text value
A text value that represents an integer is required if this element is used. The possible
values for this element are 1 to 1440, inclusive. This element is required.
Remarks
The timeout timer for the subscription is reset by a successful GetEvents request.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Subscribe operation
GetEvents operation
Unsubscribe operation
Timeout (duration)
Article • 03/29/2023 • 2 minutes to read
The Timeout element specifies the length of time before a pull subscription is timed out
by the server.
XML
<Timeout></Timeout>
SubscriptionTimeoutType
Attributes
None.
Child elements
None.
Parent elements
PullSubscriptionRequest
Text value
The text value of the Timeout element is the length of time, in minutes, before a pull
subscription is timed out by the server. The minimum value is 1; the maximum value is
1440.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
TimeStamp
Article • 03/29/2023 • 2 minutes to read
XML
<TimeStamp/>
DateTime
Attributes
None.
Child elements
None.
Parent elements
Element Description
CopiedEvent
Represents an event where an item or folder is copied.
CreatedEvent
Represents an event where an item or folder is created.
DeletedEvent
Represents an event where an item or folder is deleted.
MovedEvent
Represents an event where an item or folder is moved from one parent folder to
another parent folder.
Text value
This property is read-only.
Remarks
This element is primarily available for use in client determination of event frequency.
This is not present in StatusEvent.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
Subscribe operation
GetEvents operation
Unsubscribe operation
TimeWindow
Article • 03/29/2023 • 2 minutes to read
The TimeWindow element identifies the time span queried for the user availability
information.
GetUserAvailabilityRequest
FreeBusyViewOptions
TimeWindow
XML
<TimeWindow>
<StartTime>dateTime</StartTime>
<EndTime>dateTime</EndTime>
</TimeWindow>
Duration
Attributes
None.
Child elements
Element Description
StartTime
Represents the start of a time span queried for the user availability information.
EndTime
Represents the end of a time span queried for the user availability information.
Parent elements
Element Description
Element Description
FreeBusyViewOptions
Specifies the type of free/busy information returned in the response.
The following is the XPath to this element:
/GetUserAvailabilityRequest/FreeBusyViewOptions
Remarks
The maximum value for this time period is 42 days. This maximum value can be
modified. Any requests for user availability information beyond the maximum value will
return an error. If any appointments are partially in the time span defined by the
StartTime and EndTime elements, that appointment is included in its entirety.
7 Note
The schema that describes this element is located in the /EWS/ directory of the
computer that is running Microsoft® Exchange Server 2007 that has the Client
Access server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
The TimeZone element contains elements that identify time zone information. This element also contains
information about the transition between standard time and daylight saving time.
XML
<TimeZone>
<Bias/>
<StandardTime/>
<DaylightTime/>
</TimeZone>
SerializableTimeZone
Attributes
None.
Child elements
Element Description
Bias (UTC)
Represents the general offset from Coordinated Universal Time (UTC). This value is in minutes.
StandardTime Represents an offset from the time relative to UTC represented by the Bias (UTC) element. This element
also contains information about the transition to standard time from daylight saving time in regions
where daylight saving time is observed.
DaylightTime
Represents an offset from the time relative to UTC represented by the Bias (UTC) element in regions
where daylight saving time is observed. This element also contains information about when the
transition to daylight saving time from standard time occurs.
Parent elements
Element Description
GetUserAvailabilityRequest Contains the arguments used to obtain user availability information. This is a root element.
The TimeZone element in the GetUserAvailabilityRequest message represents the time zone in
which the DateTime values in the request are specified. The DateTime values returned by the
Availability service are also in this time zone.
The following is the XPath to this element:
/GetUserAvailabilityRequest
Element Description
WorkingHours
Represents the time zone settings and working hours for the requested mailbox user.
The TimeZone element in the GetUserAvailabilityResponse message represents the time zone
settings of the requested mailbox user.
The following is the XPath to this element:
/GetUserAvailabilityResponse/FreeBusyResponseArray/FreeBusyResponse/FreeBusyView/WorkingHours
Remarks
This element is required in the GetUserAvailabilityRequest element. This element occurs at most once or at
least zero times when the parent element is the WorkingHours element.
Example
The following example shows part of an XML request that identifies an offset from UTC of 8 hours in the
client application.
XML
<TimeZone xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
<Bias>480</Bias>
<StandardTime>
<Bias>0</Bias>
<Time>02:00:00</Time>
<DayOrder>1</DayOrder>
<Month>11</Month>
<DayOfWeek>Sunday</DayOfWeek>
</StandardTime>
<DaylightTime>
<Bias>-60</Bias>
<Time>02:00:00</Time>
<DayOrder>2</DayOrder>
<Month>3</Month>
<DayOfWeek>Sunday</DayOfWeek>
</DaylightTime>
</TimeZone>
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
Bias
XML
<TimeZone/>
string
Attributes
None.
Child elements
None.
Parent elements
Element Description
CalendarItem
Represents an Exchange calendar item.
MeetingRequest
Represents a meeting request in the Exchange store.
Text value
The text value describes a time zone. This property is read-only.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
TimeZoneContext
Article • 03/29/2023 • 2 minutes to read
The TimeZoneContext element is used in the Simple Object Access Protocol (SOAP)
header to specify the time zone definition that is to be used as the default when
assigning the time zone for the DateTime properties of objects that are created,
updated, and retrieved by using Exchange Web Services (EWS).
XML
<TimeZoneContext>
<TimeZoneDefinition/>
</TimeZoneContext>
TimeZoneContextType
Attributes
None.
Child elements
Element Description
TimeZoneDefinition
Specifies the periods and transitions that define a time zone.
Parent elements
None.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server that has the Client Access server
role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
TimeZoneDefinition
Article • 03/29/2023 • 2 minutes to read
The TimeZoneDefinition element specifies the periods and transitions that define a time
zone.
XML
<Periods/>
<TransitionsGroups/>
<Transitions/>
</TimeZoneDefinition>
TimeZoneDefinitionType
Attributes
Attribute Description
Child elements
Element Description
Periods
Represents an array of Period elements that define the time offset at different
stages of the time zone.
Transitions
Represents an array of time zone transitions.
Parent elements
Element Description
TimeZoneContext
Represents the default time zone definition that is to be used for scoping
the DateTime properties of objects that are created, updated, and
retrieved by using Exchange Web Services (EWS).
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
TimeZoneDefinitions
Article • 03/29/2023 • 2 minutes to read
XML
<TimeZoneDefinitions>
<TimeZoneDefinition/>
</TimeZoneDefinitions>
ArrayOfTimeZoneDefinitionType
Attributes
None.
Child elements
Element Description
TimeZoneDefinition
Specifies the periods and transitions that define a time zone.
Parent elements
Element Description
Remarks
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
EWS XML elements in Exchange
Title
Article • 03/29/2023 • 2 minutes to read
XML
<Title/>
String
Attributes
None.
Child elements
None.
Parent elements
Element Description
CompleteName
Represents the complete name of a contact.
Text value
The text value is a string that represents the title of a contact.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
The Titles element specifies an array of job titles and the identifiers of their source
attributions for the associated persona.
XML
<Titles>
<StringAttributedValue/>
</Titles>
ArrayOfStringAttributedValuesType
Attributes
None.
Child elements
StringAttributedValue
Parent elements
Persona
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
To
Article • 03/29/2023 • 2 minutes to read
The To element specifies the target of the time zone transition. The target is either a
time zone period or a group of time zone transitions.
XML
<To Kind=""/>
TransitionTargetType
Attributes
Attribute Description
Kind Indicates whether the time zone transition target is a time zone period or of a group
of time zone transitions.
Value Description
Period Specifies that the time zone transition target is a time zone period.
Group Specifies that the time zone transition target is a group of time zone transitions.
Child elements
None.
Parent elements
Element Description
Element Description
AbsoluteDateTransition
Represents a time zone transition that occurs on a specific date and at
a specific time.
RecurringDayTransition
Represents a time zone transition that occurs on the same day each
year.
RecurringDateTransition Represents a time zone transition that occurs on a specified day of the
year.
Transition
Represents a time zone transition.
Text value
The text value is a string that specifies the unique identifier of the Period or
TransitionsGroup that is the target of the time zone transition.
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running Microsoft Exchange Server that has the Client Access server
role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ToDate
Article • 03/29/2023 • 2 minutes to read
The ToDate element specifies the date that the message was received.
XML
<ToDate></ToDate>
dateTime
Attributes
None.
Child elements
None.
Parent elements
FindMailboxStatisticsByKeywords
Text value
The text value of the ToDate element is the date the message was received.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
ToFolderId
Article • 03/29/2023 • 2 minutes to read
The ToFolderId element represents the destination folder for a copied or moved item or
folder.
XML
<ToFolderId>
<FolderId/>
</ToFolderId>
XML
<ToFolderId>
<DistinguishedFolderId/>
</ToFolderId>
TargetFolderIdType
Attributes
None.
Child elements
Element Description
FolderId
Contains the identifier of a destination folder for a copied or moved item
or folder.
Parent elements
Element Description
Element Description
MoveFolder
Defines a request to move a folder in the Exchange store.
The following is the XPath expression to this element:
/MoveFolder
CopyFolder
Defines a request to copy a folder in the Exchange store.
The following is the XPath expression to this element:
/CopyFolder
MoveItem
Defines a request to move an item in the Exchange store.
The following is the XPath expression to this element:
/MoveItem
CopyItem
Defines a request to copy an item in the Exchange store.
The following is the XPath expression to this element:
/CopyItem
Remarks
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
See also
MoveFolder operation
CopyFolder operation
MoveItem operation
CopyItem operation
Token
Article • 03/29/2023 • 2 minutes to read
The Token element contains encrypted data that represents the identification token for
the shared data.
XML
<Token/>
EncryptedDataContainerType
Attributes
None.
Child elements
None.
Parent elements
Element Description
EncryptedSharedFolderData Contains the encrypted data that a client can use to authorize the
sharing of its calendar or contact data with other clients.
Remarks
The schema that describes this element is located in the IIS Virtual directory that hosts
Exchange Web Services of the computer that is running Microsoft Exchange Server that
has the Client Access server role installed.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetSharingMetadata operation
XML
<Token>
<Id/>
<TokenType/>
<TokenValue/>
<TTL/>
</Token>
ClientAccessTokenType
Attributes
None.
Child elements
ID (String) | TokenType | TokenValue | TTL
Parent elements
GetClientAccessTokenResponseMessage
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
Token (String)
Article • 03/29/2023 • 2 minutes to read
XML
<Token></Token>
string
Attributes
None.
Child elements
None.
Parent elements
Refiner
Text value
The text value of the Token element is a search refiner token for a discovery search.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
TokenRequest
Article • 03/29/2023 • 2 minutes to read
XML
<TokenRequest>
<Id/>
<TokenType/>
</TokenRequest>
ClientAccessTokenRequestType
Attributes
None.
Child elements
ID (String) | TokenType (ClientAccessTokenType)
Parent elements
TokenRequests
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
XML
<TokenRequests>
<TokenRequest/>
</TokenRequests>
NonEmptyArrayOfClientAccessTokenRequestsType
Attributes
None.
Child elements
TokenRequest
Parent elements
GetClientAccessToken
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
TokenType
Article • 03/29/2023 • 2 minutes to read
XML
ClientAccessTokenTypeType
Attributes
None.
Child elements
None.
Parent elements
TokenRequest | Token
Text value
The text value of the TokenType element is the token type. The text value of
CallerIdentity indicates that the token is a caller identity token. The text value of
ExtensionCallback indicates that the token is for an extension callback. The text value of
ScopedToken indicates that the client access token is a scoped token.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
The TokenType element identifies the type of client access token that will be returned in
the GetClientAccessToken response.
XML
ClientAccessTokenTypeType
Attributes
None.
Child elements
None.
Parent elements
TokenRequest | Token (ClientAccessTokenType)
Text value
A text value of CallerIdentity means a caller identity client access token is returned. A
text value of ExtensionCallback indicates that an extension callback client access token
is returned. A text value of ScopedToken indicates that the client access token is a
scoped token.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element info value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
XML
<TokenValue></TokenValue>
string
Attributes
None.
Child elements
None.
Parent elements
Token (ClientAccessTokenType)
Text value
The text value of the TokenValue element is the encoded client access token.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
TooBigGroupAttendeeConflictData
Article • 03/29/2023 • 2 minutes to read
The TooBigGroupAttendeeConflictData element represents an attendee that was resolved as a distribution list but the distribution list was
too large to expand.
GetUserAvailabilityResponse
SuggestionsResponse
SuggestionDayResultArray
SuggestionDayResult
SuggestionArray
Suggestion
AttendeeConflictDataArray
TooBigGroupAttendeeConflictData
XML
<TooBigGroupAttendeeConflictData/>
TooBigGroupAttendeeConflictData
Attributes
None.
Child elements
None.
Parent elements
Element Description
AttendeeConflictDataArray Contains an array of conflict data for attendees identified in the GetUserAvailabilityRequest.
The following is the XPath expression to this element:
/GetUserAvailabilityResponse/SuggestionsResponse/SuggestionDayResultArray/SuggestionDayResult[i]/SuggestionArray/Suggestion[i]/At
Remarks
Distribution lists that contain more than 100 members cannot be expanded.
The schema that describes this element is located in the EWS virtual directory of the computer that is running MicrosoftExchange Server
2007 that has the Client Access server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
GetUserAvailability operation
GetUserAvailabilityResponse
The ToRecipients element contains an array of recipients of an item. These are the
primary recipients of an item.
XML
<ToRecipients>
<Mailbox/>
</ToRecipients>
ArrayOfRecipientsType
Attributes
None.
Child elements
Element Description
Mailbox
Identifies a mail-enabled Active Directory directory service object.
Parent elements
Element Description
RemoveItem
Removes an item from the Exchange store.
Message
Represents an Exchange e-mail message.
MeetingMessage
Represents a meeting in the Exchange store.
MeetingRequest
Represents a meeting request in the Exchange store.
MeetingResponse
Represents a meeting response in the Exchange store.
Element Description
AcceptItem
Represents an Accept reply to a meeting request.
DeclineItem
Represents a Decline reply to a meeting request.
ReplyToItem
Contains a reply to the creator of an item in the Exchange store.
ReplyAllToItem
Contains a reply to all identified recipients of an item in the Exchange
store.
ForwardItem
Contains an Exchange store item to forward to recipients.
CancelCalendarItem
Represents the response object that is used to cancel a meeting.
Remarks
You cannot get ToRecipients by using a FindItem request. Use a GetItem request to get
the ToRecipients.
The schema that describes this element is located in the EWS virtual directory of the
computer that is running MicrosoftExchange Server 2007 that has the Client Access
server role installed.
Element information
Element Example
Namespace https://schemas.microsoft.com/exchange/services/2006/types
See also
EWS XML elements in Exchange
ToRecipients (ArrayOfSmtpAddressType)
Article • 03/29/2023 • 2 minutes to read
The ToRecipients element specifies a list of recipients to whom the item was sent.
XML
<ToRecipients>
<SmtpAddress/>
</ToRecipients>
ArrayOfSmtpAddressType
Attributes
None.
Child elements
SmtpAddress
Parent elements
SearchPreviewItem
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/types
Can be empty
TotalConversationsInView
Article • 03/29/2023 • 2 minutes to read
XML
<TotalConversationsInView></TotalConversationsInView>
int
Attributes
None.
Child elements
None.
Parent elements
FindConversationResponse
Text value
The text value of the TotalConversationsInView element is the count of conversations
returned in a FindConversation response.
Remarks
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts
Exchange Web Services.
Element information
Name Value
Namespace https://schemas.microsoft.com/exchange/services/2006/messages
Can be empty
TotalCount
Article • 03/29/2023 • 2 minutes to read
The TotalCount element represents the total count of items within a given folder.
XML
<TotalCount/>
int
Attributes
None.
Child elements
None.
Parent elements
Element Description
Folder
Represents a folder in a mailbox.
CalendarFolder
Represents a calendar folder in a mailbox.
ContactsFolder
Represents a contacts folder in a mailbox.
SearchFolder
Represents a search folder in a mai