Quantcast
Channel: Exchange Server Development forum
Viewing all articles
Browse latest Browse all 7132

[E2010] [EWSMA] [C#] Convert FolderEntryId to FolderId

$
0
0

I have PidTagWlinkEntryIdfrom "Navigation shortcuts" http://msdn.microsoft.com/en-us/library/ee179467(v=exchg.80).aspx in this "Folder EntryID Structure" http://msdn.microsoft.com/en-us/library/ee217297(v=exchg.80).aspx. How can I convert this to FolderId http://msdn.microsoft.com/en-us/library/dd633930(v=exchg.80).aspx?

When I try to do the following:

var appointments = service.FindAppointments(
    new FolderId(Convert.ToBase64String(entryId)),
    new CalendarView(DateTime.Now.Date, DateTime.Now.Date.AddDays(7)));

i get this Exception:

[Microsoft.Exchange.WebServices.Data.ServiceResponseException] = {"Id is malformed."}

Any help would be appreciated.

Thanks in advance.


Viewing all articles
Browse latest Browse all 7132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>