You'll want to test your MIME content to see how the Exchange MIME parser handles the content of your MIME stream. Use the MIME stream to import from common file formatsĮWS can import EML (.eml) and iCal (.ics) files. The response also includes the item ID of the uploaded item. The server responds to the UploadItems request with an UploadItemsResponse element that that includes a ResponseCode element value of NoError, which indicates that the item was successfully uploaded. In the following example, the identifiers and the Data element content are shortened for readability. This is the easiest way to import items that have been exported from another Exchange server. Because the EWS Managed API does not implement the UploadItems operation, if you use the EWS Managed API, you'll need to write a routine to send the web requests. This data stream representation of an item has to come from the results of an ExportItems operation call. You can use the UploadItems EWS operation to upload an item as a data stream.
For more information about how to set properties on items and then save the item, see Create an item by using the EWS Managed API or Create an item by using EWS. We recommend this approach when you're importing items from other systems because you have control over which properties get imported. Use the Item.Save EWS Managed API method or the CreateItem EWS operation to perform the import of items. EWS Managed API objects and EWS elements EWS Managed API object Just set the properties from your source format on any of the following objects, depending on what you're importing. You can use the EWS Managed API or EWS to import emails, contacts, appointments, or tasks from other systems. Use EWS Managed API or EWS item types to import an item Information about the assignees is not preserved when assigned tasks are imported.Īll the import options can be used to batch import items into Exchange. The attendees will need to accept the resent meeting invite from the organizer in order to reestablish the organizer-attendee relationship. If the appointment was imported into an attendee's calendar, the appointment will not be related to the meeting organizer's appointment. This means that the meeting organizer will need to resend meeting invites to attendees in order to reestablish the relationship between the organizer and attendees.
You cannot maintain the relationship between organizers and attendees when importing appointments with attendees (meetings). The simple approach does not support all scenarios, however for example:
You can use the Item.Save EWS Managed API method or the CreateItem EWS operation to create the items in an Exchange mailbox. Importing items into Exchange is simple when mailbox relationships aren't maintained on those items. Many systems contain appointments, emails, contacts, and tasks, and you can import those items into Exchange in a number of different ways. Learn how to import appointments, emails, contacts, tasks, and other items by using the EWS Managed API or EWS in Exchange.