Hi folks, I've been trawling the newsgroups searching for some sample code to obtain the PR_ENTRYID value for a Contact in a public folder, but I can't seem to get to it... I current submit a PROPFIND request using: <?xml version="1.0"?> <d:propfind xmlns:d="DAV:" xmlns:mapi="http://schemas.microsoft.com/mapi/" > <d:allprop/> <mapi:prop> <mapi:x0fff0102/> </mapi:prop> </d:propfind> I thought this would give me the value of PR_ENTRYID (mapped to x0fff0102) for the request, but no dice... can anyone point out where I'm going wrong??? I must be having a "dumb" day or something, just can't seem to get it right... :) Or should I be using the "SELECT" form to send WebDAV requests instead? Thanks!
>I thought this would give me the value of PR_ENTRYID (mapped to x0fff0102) >for the request, but no dice... can anyone point out where I'm going wrong??? > I must be having a "dumb" day or something, just can't seem to get it >right... :) Or should I be using the "SELECT" form to send WebDAV requests >instead? You could try this SEARCH request instead: <d:searchrequest xmlns:d="DAV:"> <d:sql> SELECT "http://schemas.microsoft.com/mapi/proptag/x0fff0102" AS PR_ENTRYID FROM "<the_contact_uri>" </d:sql> </d:searchrequest> Obviously, you can shorten that up, but it should work as written. --Sandy
Hello, <?xml version="1.0"?> <d:propfind xmlns:d="DAV:" xmlns:mapi="http://schemas.microsoft.com/mapi/" > <d:prop> <mapi:x0fff0102/> </d:prop> </d:propfind> should do it. What do you want to do with the entryid? Greetings, Henning Krause "Gavin McKay" wrote in message news:D3B86B9B-C977-492D-BC6D-294992B654AA@microsoft.com... > Hi folks, > > I've been trawling the newsgroups searching for some sample code to obtain > the PR_ENTRYID value for a Contact in a public folder, but I can't seem to > get to it... I current submit a PROPFIND request using: > > <?xml version="1.0"?> > <d:propfind xmlns:d="DAV:" xmlns:mapi="http://schemas.microsoft.com/mapi/" > > > <d:allprop/> > <mapi:prop> > <mapi:x0fff0102/> > </mapi:prop> > </d:propfind> > > I thought this would give me the value of PR_ENTRYID (mapped to x0fff0102) > for the request, but no dice... can anyone point out where I'm going > wrong??? > I must be having a "dumb" day or something, just can't seem to get it > right... :) Or should I be using the "SELECT" form to send WebDAV > requests > instead? > > Thanks!
"Gavin McKay" wrote in message news:D3B86B9B-C977-492D-BC6D-294992B654AA@microsoft.com... > Hi folks, > > I've been trawling the newsgroups searching for some sample code to obtain > the PR_ENTRYID value for a Contact in a public folder, but I can't seem to > get to it... I current submit a PROPFIND request using: > > <?xml version="1.0"?> > <d:propfind xmlns:d="DAV:" xmlns:mapi="http://schemas.microsoft.com/mapi/" > > <d:allprop/> > <mapi:prop> > <mapi:x0fff0102/> > </mapi:prop> > </d:propfind> > > I thought this would give me the value of PR_ENTRYID (mapped to x0fff0102) > for the request, but no dice... can anyone point out where I'm going wrong??? > I must be having a "dumb" day or something, just can't seem to get it > right... :) Or should I be using the "SELECT" form to send WebDAV requests > instead? > > Thanks! Shouldn't it be xmlns:mapi="http://schemas.microsoft.com/mapi/proptag/" ? Lee. -- _______________________________________ Outlook Web Access For PDA , OWA For WAP www.owapda.com email a@t leederbyshire d.0.t c.0.m _______________________________________