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


  • The EntryId you get from that property is the HexEntryId so you need to convert this to the EWSId using ConvertI operation to be able to bind to the folder. So the first thing you want to do is Convert the ByteArray to Hex using BitConvertor eg

                AlternateId aiAlternateid = new AlternateId(IdFormat.HexEntryId, BitConverter.ToString(baByteArray).Replace("-",""), "");
                AlternateIdBase aiResponse = service.ConvertId(aiAlternateid, IdFormat.EwsId);
                Folder fld = Folder.Bind(service, ((AlternateId)aiResponse).UniqueId);
    • Marked as answer by Martin Pecuch Monday, October 8, 2012 8:49 AM
    Monday, October 8, 2012 2:19 AM