?
Solved

Creating new items using EWS vs WEBDAV. Need help.

Posted on 2013-11-08
2
Medium Priority
?
388 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 2000 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

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  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

Read this checklist to learn more about the 15 things you should never include in an email signature.
A couple of months ago we ran into an issue that necessitated re-creating our Edge Subscriptions. However, when we attempted to execute the command: New-EdgeSubscription -filename C:\NewEdgeSub_01.xml we received an error indicating that the LDAP se…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
how to add IIS SMTP to handle application/Scanner relays into office 365.
Suggested Courses
Course of the Month15 days, 1 hour left to enroll

771 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