Note that there are some explanatory texts on larger screens.

plurals
  1. POEWS CreateItem creating all messages as drafts
    text
    copied!<p>I'm trying to use the CreateItem function of Exchange Web Services for Exchange 2010 as per <a href="http://msdn.microsoft.com/en-us/library/exchange/aa566468%28v=exchg.140%29.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/exchange/aa566468%28v=exchg.140%29.aspx</a> to create a message. No matter what I do, the messages always appear in Outlook as drafts. Here is the XML I am sending:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"&gt; &lt;soap:Header&gt; &lt;t:RequestServerVersion Version="Exchange2010_SP1"/&gt; &lt;/soap:Header&gt; &lt;soap:Body&gt; &lt;CreateItem MessageDisposition="SaveOnly" xmlns="http://schemas.microsoft.com/exchange/services/2006/messages"&gt; &lt;SavedItemFolderId&gt; &lt;t:FolderId ChangeKey="..." Id="..."/&gt; &lt;/SavedItemFolderId&gt; &lt;Items&gt; &lt;t:Message&gt; &lt;t:MimeContent CharacterSet="UTF-8"&gt;BASE64 ENCODED MESSAGE&lt;/t:MimeContent&gt; &lt;t:ItemClass&gt;IPM.Note&lt;/t:ItemClass&gt; &lt;t:Subject&gt;THE SUBJECT LINE&lt;/t:Subject&gt; &lt;t:Sensitivity&gt;Normal&lt;/t:Sensitivity&gt; &lt;t:Importance&gt;Normal&lt;/t:Importance&gt; &lt;t:Culture&gt;en-US&lt;/t:Culture&gt; &lt;t:IsRead&gt;true&lt;/t:IsRead&gt; &lt;/t:Message&gt; &lt;/Items&gt; &lt;/CreateItem&gt; &lt;/soap:Body&gt; &lt;/soap:Envelope&gt; </code></pre> <p>I've tried adding a &lt;t:IsDraft&gt;false&lt;/t:IsDraft&gt; to the &lt;t:Message/&gt; but it appears that isn't allowed.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload