Solved

Creating new items using EWS vs WEBDAV. Need help.

Posted on 2013-11-08
2
378 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
ID: 39633084
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
ID: 39633095
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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
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 generate a certificate request 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 Servers >> Certificates…

914 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

19 Experts available now in Live!

Get 1:1 Help Now