SOAP Message to EWS to create mail as regular mail, not draft

前端 未结 1 1264
青春惊慌失措
青春惊慌失措 2021-01-22 20:20

In EWS, you can create a draft like this:


  
    
      

        
相关标签:
1条回答
  • 2021-01-22 21:15

    Setting the extended MessageFlags property did the trick! Has to be done at creation.

    <tns:CreateItem MessageDisposition="SaveOnly">
      <tns:Items>
        <t:Message>
          <t:ItemClass>IPM.Note</t:ItemClass>
          <t:Subject>subject</t:Subject>
          <t:Body BodyType="HTML">body</t:Body>
          <t:IsRead>false</t:IsRead>
          <t:ExtendedProperty> 
            <t:ExtendedFieldURI PropertyTag="3591" PropertyType="Integer" /> 
            <t:Value>1</t:Value> 
          </t:ExtendedProperty>
        </t:Message>
      </tns:Items>
    </tns:CreateItem>
    
    0 讨论(0)
提交回复
热议问题