Solved

Creating new items using EWS vs WEBDAV. Need help.

Posted on 2013-11-08
2
386 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 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
In-place Upgrading Dirsync to Azure AD Connect
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

688 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