Modifying Custom Fields using WebDAV
Exchange Server Forum Index Exchange Server
Discussion forums for Microsoft Exchange Server users.
Microsoft Outlook
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web ExchangeServerHelp.com
Modifying Custom Fields using WebDAV

 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development
Author Message
Guest






Posted: Thu Aug 11, 2005 12:29 am    Post subject: Modifying Custom Fields using WebDAV Reply with quote

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

Back to top
Guest






Posted: Thu Aug 11, 2005 12:58 am    Post subject: Re: Modifying Custom Fields using WebDAV Reply with quote

I think the problem may be that the custom field doesn't actually
exist, due to the fact I created the document as one type and simply
changed the Message Class. So I guess the better question for me to
ask is: How can I add a custom property to a message through WebDAV?

Thanks!
Back to top
 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server Dedicated Servers
Contact Us
New Topics Powered by phpBB