Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WebDAV search to get last name

Status
Not open for further replies.

csteinhilber

Programmer
Aug 2, 2002
1,291
US
I'm using classic ASP to create a WebDAV search of all appointments in a given (public) calendar. And I'm able to retrieve the creator of the given appointment ("urn:schemas:httpmail:fromname"), as well as their email address ("urn:schemas:httpmail:fromemail").

Code:
    strDAVsql = "<d:sql> SELECT ""DAV:href"", " & _
        " ""urn:schemas:calendar:dtstart"", " & _
	" ""urn:schemas:httpmail:fromname"", " & _
	" ""urn:schemas:httpmail:subject"", " & _
	" ""urn:schemas:calendar:location"", " & _
        " ""urn:schemas:calendar:dtend"", " &_   
        " ""urn:schemas:httpmail:fromemail"" " & _
        " FROM Scope('SHALLOW TRAVERSAL OF ""[URL unfurl="true"]http://domain.com/public/room1""[/URL] ')" & _
        "WHERE ""DAV:contentclass"" = 'urn:content-classes:appointment'" & _
        "AND ""urn:schemas:calendar:dtstart"" &lt;= " & _
        "CAST(""" & sAppntEnd & """ AS ""dateTime.tz"")" & _
        "AND ""urn:schemas:calendar:dtend"" &gt;= " & _
        "CAST(""" & sAppntStart & """ AS ""dateTime.tz"") ORDER BY ""urn:schemas:calendar:dtstart"""

It works quite nicely.

Except, I really kinda need the creator name split out to first name/last name.

I believe I'd need to use the urn:schemas:contact namespace to do this, but I've been unable to figure out exactly how.

Anybody have any ideas?

Thanks in advance!
-Carl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top