Solved

Creating new items using EWS vs WEBDAV. Need help.

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
In this video we show how to create an Address List 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 Organization >> Ad…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

860 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