Hello Friends, Here is the simple search for entry-id from Exchange Server through Webdav. public void SearchForTask(string userName,string resourceURL) { string taskContentClass = "urn:content-classes:task"; string url = "http://" + _exchangeServerName + "/ exchange/" + userName; string xmlString = "<?xml version='1.0' ?>" + "<a:searchrequest xmlns:a='DAV:' xmlns:f='urn:uuid:c2f41010-65b3-11d1- a29f-00aa00c14882/'><a:sql>" + "select http://schemas.microsoft.com/mapi/proptag/x0fff0102 from http://dev-exg/exchange/eiuser2/Tasks" + "where \"DAV:contentclass\"= " + "'" + taskContentClass + "'" + " </a:sql></a:searchrequest>"; } Iam able to get the entryId but the problem is that it returns different values(base64 encoded string) from Exchange everytime. And only some of the parts are different. For eg: AAAAAGGtZPz+lIFChf+5n +PZEREHAIiRsBQNqyFKjCNx9IN4EFoAAAXrmdIAAIiRsBQNqyFKjCNx9IN4EFoAAALM1pcAAA== AAAAAGGtZPz+lIFChf+5n +PZEREHAIiRsBQNqyFKjCNx9IN4EFoAAAXrsQoAAIiRsBQNqyFKjCNx9IN4EFoAAALM1pgAAA== AAAAAGGtZPz+lIFChf+5n +PZEREHAIiRsBQNqyFKjCNx9IN4EFoAAAXrsSkAAIiRsBQNqyFKjCNx9IN4EFoAAALM1pgAAA== AAAAAGGtZPz+lIFChf+5n +PZEREHAIiRsBQNqyFKjCNx9IN4EFoAAAXr0fIAAIiRsBQNqyFKjCNx9IN4EFoAAAXrvGYAAA== We got the above 4 values every time we ran the above search.They are all different. Could anyone please suggest the reasons for the above behaviour? Regards, Paras
Hi paras, > Here is the simple search for entry-id from Exchange Server through > Webdav. <.../> > + "select > http://schemas.microsoft.com/mapi/proptag/x0fff0102 <.../> > Iam able to get the entryId but the problem is that it returns > different values(base64 encoded string) from Exchange everytime. And > only some of the parts are different. I suspect that you are seeing session specific short term entry ids. Instead of x0fff0102 try to retrieve this property which is defined for the Exchange MAPI provider: x66700102 -- SvenC
Hi Sven, Thanks for the reply. As mentioned by you, I checked the entry id type and it is long term entry id (abFlags are all 0). I tried querying x66700102 from webDAV, but exchange is returning an empty value. What is this property exactly. Any further help will be highly appreciated. Regards, Paras
Hi Paras, > As mentioned by you, I checked the entry id type and it is long term > entry id (abFlags are all 0). Hmm, that is really strange. Are you absolutely sure that you do get the same item for every search request? There is no code running which "changes" tasks by reading its properties, deleting the current task and recreate a new one based on the saved properties? > I tried querying x66700102 from webDAV, but exchange is returning an > empty value. > What is this property exactly. You can find some info here: http://www.dimastr.com/redemption/mapitable.htm Search for PR_LONGTERM_ENTRYID_FROM_TABLE. > Any further help will be highly appreciated. I don't have much personal experience with WebDAV. I hope someone more knowledgable helps out. -- SvenC