Folder.Bind - "Id is malformed" - Exchange Web Services Managed API
Posted
by Michael Shimmins
on Stack Overflow
See other posts from Stack Overflow
or by Michael Shimmins
Published on 2010-03-27T14:05:45Z
Indexed on
2010/03/27
14:13 UTC
Read the original article
Hit count: 822
I'm passing the Folder.Id.UniqueId property of a folder retrieved from a FindFolders query via the query string to another page. On this second page I want to use that UniqueId to bind to the folder to list its mail items:
string parentFolderId = Request.QueryString["id"];
...
Folder parentFolder = Folder.Bind(exchangeService, parentFolderId);
// do something with parent folder
When I run this code it throws an exception telling me the Id is manlformed. I thought maybe it needs to be wrapped in a FolderId object:
Folder parentFolder = Folder.Bind(exchangeService, new FolderId(parentFolderId));
Same issue.
I've been searching for a while, and have found some suggestions about Base64/UTF8 conversion, but again that did not solve the problem.
Anyone know how to bind to a folder with a given unique id?
© Stack Overflow or respective owner