Create an ical from a users exchange mailbox calendar with ews

Hello,
is there a way to export (save) a users calendar as an ics file over ews?
Regards
Ioannis

Exchange will return a VCalendar version of the Appointment if you request the Mime Content eg
FindItemsResults<Item> fiResults = null;
ItemView ivItemView = new ItemView(1000);
PropertySet psPropSet = new PropertySet(BasePropertySet.IdOnly);
ivItemView.PropertySet = psPropSet;
PropertySet mimePropSet = new PropertySet(BasePropertySet.IdOnly){ItemSchema.MimeContent,ItemSchema.Subject};
do
fiResults = service.FindItems(WellKnownFolderName.Calendar, ivItemView);
if (fiResults.Items.Count > 0) {
service.LoadPropertiesForItems(fiResults.Items, mimePropSet);
foreach (Item itItem in fiResults.Items) {
String FileName = "c:\\temp\\" + Guid.NewGuid().ToString() + ".ical";
MimeContent mcMimeContent = null;
if (itItem.TryGetProperty(ItemSchema.MimeContent, out mcMimeContent))
File.WriteAllBytes(FileName, mcMimeContent.Content);
} while (fiResults.MoreAvailable);
I wouldn't however recommend you use this as a backup because it doesn't give you full fidelity on the appointment data eg things like attendees and other properties aren't included in you'll experience data loss.
If you want to backup calendar appointments the best method is to use the New-MailboxExportRequest eg
New-MailboxExportRequest -Mailbox Mailbox -IncludeFolders "#Calendar#"
Cheers
Glen

Similar Messages

  • Create an ical from a users exchange calendar with ews

    Hello,
    is there a way to export (save) a users calendar as an ics file over ews?
    Regards
    Ioannis

    Hi,
    To save our calendar as .ics file, we can just follow the steps below to save it.
    1. Click on Calendar in Outlook.
    2. File > Save Calendar, click More Option to range the date.
    If you prefer to export or save user's calendar using EWS, I would like to ask the question on the Exchange development forum which is staffed by more experts specializing in this kind of problems to get better help.
    Here is the link for Exchange Server Development forum:
    https://social.technet.microsoft.com/Forums/exchange/en-US/home?forum=exchangesvrdevelopment
    Best regards,
    Belinda
    Belinda Ma
    TechNet Community Support

  • Exchange mailbox calendar language setting DUTCH

    Good day,
    Are there known bugs related to the Ducht language and calendar settings ?
    When creating a new mailbox the calender is called "Kalender" in Dutch. This should be "Agenda"
    Now when running a new pst import a folder "Kalender" already exists and "Agenda" is created as an extra calendar.
    I am in the proces of migrating several mailboxes to Exchange 2013 using pst imports of the old mailboxes. After every import the user has 2 calendars with different names !
    Any solutions ?
    Please see the screenshots:

    It's not a bug, it's a design failure...
    Agenda is the correct Dutch translation for this and it was correct in Exchange for years. Now it was suddenly renamed and gave a lot of users and system administrators pain in the head...
    The big question in this case is why? and will it be fixed?
    Just like some other hard coded not documented features of exchange 2013...

  • I created a folder from my camera roll and shared with my icloud acct, can't figure out how to access it from my computer?

    I created a folder from my camera roll and shared with my icloud acct, can't figure out how to access it from my computer? I log onto icloud and can't find anywhere where "shared" photos are..

    You need Mountain Lion (10.8.2 or higher) and iPhoto '11 (9.4 or higher) or Aperture 3.4 to get shared photo streams on Mac.
    Another option to transfer them is to either import them to iPhoto using your usb cable, as explained here:http://support.apple.com/kb/HT4083, or to us an app like PhotoSync to transfer them to your Mac over your wifi.  (PhotoSync will also transfer albums, not just photos from the camera roll.)

  • Having 2 iphones sync to the same Exchange mailbox calendar and contacts??

    I would like to have 2 people monitor the same Exchange mailbox for calendar and contacts, is this possible via ActiveSync and the iphone or some other protocol? I have a business owner and his assistant that want to have constant access to the owner's calendar and contacts. Or maybe there is a simpler way to do this. thanks for any advice.

    If IMAP account access is enabled for the assistant's Exchange account at the Exchange server, the assistant's email account can be accessed as an IMAP account with the iPhone's mail client, but the assistant will have access to the boss's contact info and calendar events only. Email access for the boss's Exchange account can be turned off on the assistant's iPhone. The assistant can access personal contact info and calendar events over the air with a MobileMe account at the same time as the boss's contact info and calendar events via the Exchange account.

  • How can i synchronize the data from PDA (address book and calendar) with AP

    I�m yang J2ME programmer. I�m just programming an API. I need to synchronize the data from PDA or mobile phone (address book and calendar) with PCs .
    Is the JSR 75 s right way? or JSR 230?
    Where can i download JSR 230 ? not PDF

    Can somebody help me?
    I mean, i want to read address book from cell phone to PC.
    Message was edited by:
    cash_ye

  • ICAL: Subscribe to other users Exchange 2007 calendars

    Hi all,
    I didn't see a category for iCal in the list for 10.6, so I hope this is a good place to put this post.
    Is there any way to subscribe, from iCal, to other Exchange 2007 users' calendars?
    Thank you!

    After a bit more research, it turns out that this feature from Entourage or Outlook is NOT supported in Exchange support for Snow Leopard. Too bad.

  • Creating new event in iCal from BBEdit data window.  Calendar number fails.

    When I try to create a new event in iCal I am getting the error "The variable theCalendarNumber is not defined." even though theCalendarNumber is supposed to be set in the preceding line. Does this have anything to do with embedding the tell application "iCal" within the tell application "BBEdit 6.5" loop?
    Before this error I was getting a NSContainerSpecifierError error. I think that was because I was trying to specify the calendar as a string instead of a number as required by Panther OS.
    BBEdit data window follows.........
    3/8/2009 Fun Fly CD ?
    4/5/2009 Fun Fly CD ?
    14/8/2009 Combat
    4/25/2009 Club Cleanup Workday
    5/2/2009 Electric Extravaganza
    5/17/2009 Fun Fly CD ?
    6/7/2009 Fun Fly CD ?
    7/12/2009 Fun Fly CD ?
    7/19/2009 Combat
    8/9/2009 Fun Fly CD ?
    8/14/2009 Combat
    8/22/2009 War Bird
    8/29/2009 Club Cleanup Workday
    9/5/2009 & 9/6/2009 IMAC
    9/13/2009 Fun Fly CD ?
    10/4/2009 Fun Fly CD ?
    11/9/2009 Fun Fly CD ?
    11/14/2009 Combat
    12/13/2009 Combat
    Applescript follows.......
    set theCals to {}
    set iCalendars to {}
    set theDate to current date
    set myDate to date string of theDate
    tell application "iCal"
    set theCals to calendars whose writable is true
    repeat with i from 1 to count of theCals
    copy title of item i of theCals to end of iCalendars
    end repeat
    end tell
    set theChoice to (choose from list iCalendars with prompt "Choose the Calendar to use" OK button name "Choose" without multiple selections allowed and empty selection allowed)
    tell application "BBEdit 6.5"
    repeat with i from 1 to count of lines in text window 1
    set the_line to contents of line of text window 1
    set old_delims to AppleScript's text item delimiters
    set AppleScript's text item delimiters to tab
    set the_Date to text item 1 of the_line
    set the_Event to text item 2 of the_line
    tell application "iCal"
    set theCalendarNumber to (first calendar whose title is theChoice)
    set theEvent to make new event at end of events of theCalendarNumber with properties {start date:the_Date, summary:"", description:the_Event}
    --if alarmTime is not 0 then
    --tell MyEvent
    --make new display alarm at end of display alarms with properties {trigger interval:alarmTime}
    --end tell
    --end if
    --show theEvent
    save
    end tell
    set AppleScript's text item delimiters to old_delims
    end repeat
    end tell
    tell application "iCal"
    reload calendars
    end tell

    You have a couple of issues here.
    First, the line:
    set theCalendarNumber to (first calendar whose title is theChoice)
    However, theChoice is defined at:
    set theChoice to (choose from list iCalendars with prompt "Choose the Calendar to use" OK button name "Choose" without multiple selections allowed and empty selection allowed)
    Since you're allowing multiple selections, theChoice will be a list.
    You can't get 'first calendar whose title is' a list. You will need to either permit single selections only, or extract the calendar name from the selected items (maybe iterating through them if you want to add the event to multiple calendars).
    Once you address that, the line:
    set theEvent to make new event at end of events of theCalendarNumber...
    also won't work because theCalendarNumber will be the name of a calendar, so this command tries to set the event to the end of events of a string. Instead you need to ask for the named calendar, like:
    set theEvent to make new event at end of events of calendar theCalendarNumber
    Then you should be set.

  • How to create view/table from other user's view/table

    Hi all
    I'm using Oracle database 10g.
    I create table/view on user XXX, how to I create table/view on user YYY from user XXX.
    Thankyou,
    Thiensu2810

    user8248216 wrote:
    Hi all
    I'm using Oracle database 10g.
    I create table/view on user XXX, how to I create table/view on user YYY from user XXX.
    Thankyou,
    Thiensu2810grant select on xxx.table_name to yyy;
    create table/view table/view_name as select * from xxx.table_name;

  • Using two T lists i want to create a UI, from which user can make selection

    I want to create a UI in forms 6i, wherein there will be two T lists on the same canvas. I'll populate the left one from the record group and then make selections to the right one using four buttons in between.
    I'm using the add_list_element, delete_list_element, get_list_element_label, get_list_element_value built ins to do that. But it is not working properly. Giving a lot of forms errors.
    The same thing can be done in JDeveloper using a shuttle bean.
    An example of the UI that i want to construct :
    The kind of UI that i'm talking can be seen when we construct a new form manually, then we goto data block wizard. There we browse for a table and the wizard gives the list of the columns for that table, from this list selections can be done using the four buttons in the same way that i intend my form to do. This is the kind of UI i want to develop.
    I'm very new to development in forms. I'm sure you people at OTN will help me.
    Thanks,
    Abhishek.

    Hi Abhishek
    What is happening by these
    Copy(v_value, p_tlist_into); and
    ...This commans set list item value (list selection).
    The most simple way to move all elements between lists is to populate the target list from record group, and the to clear the source list. The lack of the given method - order of elements will be same, as in group.
    PROCEDURE Move_All_Elements (p_tlist_from VARCHAR2, p_tlist_into VARCHAR2) is
    v_value VARCHAR2(100);
    v_label VARCHAR2(100);
    v_index_from NUMBER;
    v_index_into NUMBER;
    v_count_from NUMBER; -- Count elements of tlist_out
    BEGIN
    --v_index_from := Get_List_element_count(p_tlist_from);
    -- Get_List_element_count never return zero!
    v_index_from := Get_List_Current_Index(p_tlist_from);
    if v_index_from = 0 then -- The source list is enpty
    --fnd_message.debug('elements=0, so return');pause;
    RETURN;
    end if;
    --v_index_into := Get_List_element_count(p_tlist_into);
    v_index_into := Get_List_Current_Index(p_tlist_into);
    if v_index_into = 0 then -- The target list contant only DEFAULT value
    --fnd_message.debug('no elements, so clearing the list');pause;
    clear_list(p_tlist_into);
    end if;
    v_count_from := Get_List_element_count(p_tlist_from);
    FOR i IN 1..v_count_from
    LOOP
    v_label := Get_List_Element_Label(p_tlist_from, i);
    v_value := Get_List_Element_Value(p_tlist_from, i);
    --Add_List_Element(p_tlist_into, v_index_into, v_label, v_value);
    Add_List_Element(p_tlist_into, v_index_into+i, v_label, v_value);
    -- The commands are lower in a loop are not necessary.
    -- The commands after the loop make too most.
    --Copy(v_value, p_tlist_into);
    --Delete_List_Element(p_tlist_from, i);
    --v_index_from := Least(v_index_from, Get_List_Element_Count(p_tlist_From));
    --v_value := Get_List_Element_Value(p_tlist_from, v_index_from);
    --v_value := Get_List_Element_Value(p_tlist_from, v_index_from + v_index_into);
    --Copy (v_value, p_tlist_from);
    --fnd_message.debug('done for one element');pause;
    --exit when v_label is null;
    END LOOP;
    clear_list(p_tlist_from);
    v_value := Get_List_Element_Value(p_tlist_into, v_count_from + v_index_into);
    Copy (v_value, p_tlist_into);
    EXCEPTION
    when others then null;
    END;

  • How do I stop receiving calendar invites on iCal/iCloud and use exchange 2013 calendar instead?

    I Have an exchange 2013 email account which isn't registered as part of my iCloud account.
    i Use my outlook calendar (exch) for work and the same exch calendar day to day from all my iOS devices.
    when a colleague or outside email away from my company sends me a calendar meeting request, it works fine. (Using my exch email as the invite recipient).
    my girlfriend sends me a meeting request from her hotmail account using the same exch email address for me, but he. Invites always arrive to my iCloud/iCal calendar instead! I can't seem to change it so I often miss diary notes or reminders unless I constantly look at both calendars.
    i Just want to use exchange calendar and lose iCal (or if easier sync both iCal and exchange calendars vica versa - but that may be over complicating the issue, basically I just need one calendar and would rather it be my outlook exchange cal)
    any ideas?

    Hello again,
    False alarm..... it didnt work sorry.
    I removed the iCal accounts from my mac, and also from my iphone. Then when my partner sent me a calendar invite it simply didnt arrive at all!
    She has a hotmail account installed on her IOS iphone 5.
    She is sending the invite to my exch 2013 email address which is not associated with any icloud account.
    My exch 2013 email is installed in both my Outlook for mac 2011 and IOS device Iphone 5s.
    When I switch the iCloud Calendar back on in my iphone 5s, the invite comes through but ONLY optional to the icloud calendar. I cannot seem to get it receiving on my default calendar which is set to Exchange 2013 account.
    Its very strange as its only her invites that do this. Anyone else's come through on my exchange calendar because its the same email address receeving it my end.

  • Can I share an Exchange account Calendar with another icloud user?

    How do I get my work calendar onto the my iCloud accout, and how do I share it with another iCloud user?
    he exchange calendar is currently on my iphone calendar, but I can't find a way to see it on my iCloud.

    iCloud only syncs your iCloud calendar.  It won't sync your exchange calendar.

  • How Do I sync Ical from my Mac to Ipod Touch with Icloud?

    I just set up Icloud to work with syncing my desktop Mac to my Ipod Touch.
    I have set up my years of appointments on to my MAc on Ical.
    I like to know how to transfer all the information from Ical on Mac to my Ipod Touch, Calendar app.
    I do not want to input all the information all individually again on Ipod.
    Can someone give me precise instructions on how to do this? thanks

    Did you try to delete the photo cache? iTunes: Understanding the iPod Photo Cache folder
    Any error messages during the sync process? Does the progress bar stop at a certain point?

  • HELP I created a newsletter from Pages - sent it out - those with PC's cannot open.  What do I do?

    I'm new to all this MAC system.  I created a newsletter on Pages, sent it out and now getting emails saying no one can open it.  DId I save it wrong?  What to do?  Thanks   Rick

    You probably left it as a Pages document, which is only readable on Macs. Export as Word or (much better) PDF using the File - Export menu.
    Matt

  • How can I sync Exchange/GroupWise calendar with Mountain Lion and iOS 6.1?

    On my iPhone I have defined the GroupWise server and I'm receiving every calendar events but it doesn't sync to my computer.
    Any idea why and how to fix it?

    Can't I just set up Exchange as one of my calendars in ical?
    Only if you're running Snow Leopard and your employer will allow access (different than iPhone/mobile device access, so most likely not), but not needed - keep reading.
    Is it really true that I have to choose between syncing Exchange with work server OR syncing iCal with personal Macbook?
    No. It was true, but with the v3.0 software that changed - you can now sync your Exchange contacts and calendar over the air, and your Address Book and iCal via iTunes over the docking cable.
    What is the best work around for this?
    None needed. When you set up the exchange account, and choose to turn on syncing of contacts and calendars, you will be prompted to remove all other data, or keep it on the iPhone. Choose the keep option. Note that in that case, your personal data will not be uploaded to the Exchange server - the iPhone keeps them separate (although you can choose to view them in a merged fashion).
    I have this set up on my phone (Exchange calendar along side personal and other calendars from iCal). Same for contacts. Works great.

Maybe you are looking for

  • Imac seagate 750gig Hard Drive performance

    Ive got a new alum imac that I got about a month ago. Ive been doing some xbench benchmarks and have come to the conclusion that the internal 750 gig seagate is extremely slow. The only reason i benchmarked my mac was due to some performance issues i

  • Problem with Adobre Read at Windows 2009 64 bit

    Dear All, I have one problem and hope that somebody maybe can help me. Namely, I implemented on BI tool which is installed at Windows 2008 64 bit machine. At the same Machine is installed Adobre Reader 9.3 version. That BI tool has option Export Repo

  • Do you know how to sort all except one column?

    I implement the Comparator interface tosort the rows in my table. The last row is a totals row which i want to keep at the bottom always. Do you know how to do that? Thanks, Zeke

  • Problems with MySQL in JSC 2

    i have problem with MySQL i have a driver i added it in to servers list and i made tests with data source everythink is ok, i see tables but when i drop a table from data source on table componenet(or other) i have errors nullPointerExpection at: (he

  • Select and Cursor doubt

    Dear All, I got a doubt b/n select and cursor. I read in one oracle book that select into clause will actually tries to get the data twice, Whereas the cursor will query only ones. Is this the case in Oracle 10g or both the select and cursor will fet