Guest
|
Posted:
Thu Aug 11, 2005 12:29 am Post subject:
Modifying Custom Fields using WebDAV |
|
|
Hey all,
I've been trying to create and modify Outlook custom forms using WebDAV
(so it can be done from OWA), and I've run into a bit of a wall.
Although I can modify built-in Outlook fields on the custom forms, I
can't seem to modify any of my custom fields. I've successfully
modified the message class to my custom form, and it opens properly, I
simply cannot set the custom fields. Here's a snippet of the code I'm
using so you have a better idea what I mean - the custom field is
"webpath".
strXMLNSInfo = "xmlns:g=""DAV:"" " & _
"xmlns:e=""http://schemas.microsoft.com/exchange/"" " & _
"xmlns:mapi=""http://schemas.microsoft.com/mapi/"" " & _
"xmlns:mapit=""http://schemas.microsoft.com/mapi/proptag/"" " & _
"xmlns:x=""xml:"" xmlns:cal=""urn:schemas:calendar:"" " & _
"xmlns:dt=""urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"" " & _
"xmlns:header=""urn:schemas:mailheader:"" " & _
"xmlns:mail=""urn:schemas:httpmail:"">"
Set objXMLHttp = CreateObject("Microsoft.XMLHTTP")
objXMLHttp.open "PROPPATCH", timeUrl, true
sQuery = "<?xml version='1.0'?>"
sQuery = sQuery & "<g:propertyupdate " & strXMLNSInfo
sQuery = sQuery & "<g:set><g:prop>"
sQuery = sQuery & "<webpath>" & window.location & "&timecardID=" &
BuildDesc(GetParam("Employee"),"Time") & "</webpath>"
sQuery = sQuery & "</g:prop></g:set>"
sQuery = sQuery & "</g:propertyupdate>"
objXMLHttp.setRequestHeader "Content-Type", "text/xml"
objXMLHttp.send sQuery
If anyone could lend me a hand, I'm greatly appreciate it. I've been
scouring Google and various other sites for the past few hours, but
simply cannot find any reference to code that allows me to modify an
Outlook custom field using WebDAV.
Thanks in advance!
- Jason Kallelis
|
|