Solved

Creating new items using EWS vs WEBDAV. Need help.

Posted on 2013-11-08
2
376 Views
Last Modified: 2013-11-11
Hi,

We are migrating from Exchange 2003 to 2010 and as part of this migration I need to update some clientside c# apps which update/create calendar appointments in Exchange.

These apps were using WEBDAV and HTTP/XML requests to update Exchange. I understand I need to convert these apps to use the managed EWS API. I have downloaded some code samples from the Microsoft site and have these working but I need a understanding of how to uniquely identify these appointments so I can update/create them from a local database.

In the current apps when creating the HHTP request the URI would contain the ID to create the appointment :

http://mymailserver/exchange/username/calendar/12345.eml

12345 would be the ID from the local database to identify the appointment.

Now my question is how do I go above achieving the same results using EWS ? There are already 100s of appointments in our exchange server in this format so when I upgrade I still need to identify the appointment in the same way.

I would love some help with this as I only have just over a week to update the current applications!
0
Comment
Question by:chriscboy
2 Comments
 

Author Comment

by:chriscboy
Comment Utility
Further to the above, below is an example of how I am creating/updating the appointments in the client apps :

http://msdn.microsoft.com/library/office/ms877306(v=exchg.65).aspx

The main difference is with the appointment item :

 ' Appointment item.
 strApptItem = "testappointment.eml"

I am setting to a unique id from a database e.g.  strApptItem = "12345.eml"
0
 
LVL 31

Accepted Solution

by:
LeeDerbyshire earned 500 total points
Comment Utility
When you create the item in EWS, its unique Id is returned. Your best option would be to store that in your database, and use that to retrieve it later. Note that if the appointment gets moved, the Id may change.

Another option (possibly more reliable) is to add a custom property, and search for that when you want to do an update on it.
http://msdn.microsoft.com/en-us/library/dd633654(v=exchg.80).aspx
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
In this video we show how to create a Distribution Group in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >>…
To show how to create a transport rule in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Rules tab.:  To cr…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now