Howto: Set multiple extended properties on a folder using raw XML for EWS with a POST

Hmmm, there are very few samples on setting multiple extended properties on folders using a POST to EWS… so, I thought I would blog one.   This sample can be used with:      http://blogs.msdn.com/webdav_101/archive/2009/02/27/howto-post-xml-to-ews-using-exchangeservicebinding-credentials.aspx    Note the following:                 The version is set.                 Each property being set is done under a separate SetFolderField node.   <?xml…

1

Howto: Post XML to EWS using ExchangeServiceBinding credentials.

Here is a sample which shows how to use the connection of the Exchange Service Binding to do a POST to EWS using an XML string.        // Sample calling code: private void cmdExecute_Click(object sender, EventArgs e) {     string sRequest = string.Empty;       bool bRet = false;          string sResponse…

1

Example: How to use PS_INTERNET_HEADERS with cdo 1.21 for custom properties.

‘This example uses PS_INTERNET_HEADERS for setting a custom property const smbx=”mymailbox”  ‘ TODO: Changeconst ssrv=”myserver”      ‘ TODO: Changeconst mycdoInetPset = “8603020000000000C000000000000046″const myXheader = “X-SPAM”  ‘ TODO: Change to your property set oses=createobject(“mapi.session”)oses.logon “”, “”, false, true, 0, true, ssrv & vblf & smbxset omsg=oses.inbox.messages.getfirstsfrom=omsg.fields.item(myXheader,myCdoInetPset).valuewscript.echo sfromomsg.fields.add myXheader, vbString, “I Hate Spam!”, myCdoInetPsetomsg.update set omsg=nothingset oses=nothing

0

How to work with Item and Folder Permissions using WebDAV?

Permissions to folders and items can be read and changed via WebDAV using an XML descriptor.  It’s also possible to use other APIs such as ADO update security settings.   An XML descriptor is an XML document in a string which describes security permissions to an item or folder.  A PROPFIND is used to read security…

1

HOWTO: Make XML returned from a propfind easier to read

Here is a sample to reformat XML returned from WebDAV PROPFINDs to make it a little easier to read. ‘  ReformXML – reformats the XML to be more easily readablePrivate Function ReformXML(sOriginalXML)    Dim sXML As String    sXML = sOriginalXML    sXML = Replace(sXML, “<“, (vbCrLf & “<“))    sXML = Replace(sXML, “/>”, (“/>” & vbCrLf))    sXML =…

0