Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Sun, 19 Feb 2006 21:39:26 -0800,    group: microsoft.public.exchange2000.development        back       


WebDAV and PR_ENTRYID   
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!
date: Sun, 19 Feb 2006 21:39:26 -0800   author:   Gavin McKay

Re: WebDAV and PR_ENTRYID   
>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
date: Mon, 20 Feb 2006 01:39:40 -0500   author:   Sanford Whiteman

Re: WebDAV and PR_ENTRYID   
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!
date: Mon, 20 Feb 2006 11:02:07 +0100   author:   Henning Krause [MVP]

Re: WebDAV and PR_ENTRYID   
"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
_______________________________________
date: Tue, 21 Feb 2006 15:45:11 -0000   author:   Lee Derbyshire email a@t leederbyshire d.0.t c.0.m

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us