ApplyConversationAction 操作ApplyConversationAction operation

ApplyConversationAction操作は、スレッド内のすべてのアイテムに対して1回限りまたはフォローアップのアクションを設定します。The ApplyConversationAction operation sets a one-time or follow up action on all the items in a conversation. ApplyConversationAction操作を使用すると、会話内のすべてのアイテムに対して、分類、移動、コピー、削除、および読み取り状態の設定を行うことができます。The ApplyConversationAction operation allows you to categorize, move, copy, delete, and set the read state on all items in a conversation. 会話の新しいメッセージに対してアクションを設定することもできます。Actions can also be set for new messages in a conversation.

ApplyConversationAction 要求の例ApplyConversationAction request example

DescriptionDescription

ApplyConversationAction要求の次の例は、指定されたスレッド内のアイテムを別のフォルダーに移動する方法を示しています。The following example of an ApplyConversationAction request shows how to move the items in the specified conversation to another folder. 会話に追加されたアイテムも、指定したフォルダーに移動されます。Items that are added to the conversation will also be moved to the specified folder.

コードCode

<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
               xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
               xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages">
  <soap:Header>
    <t:RequestServerVersion Version="Exchange2010_SP1" />
  </soap:Header>
  <soap:Body>
    <m:ApplyConversationAction>
      <m:ConversationActions>
        <t:ConversationAction>
          <t:Action>AlwaysMove</t:Action>
          <t:ConversationId Id="AAQkADVkNjM1EH39AWcDUGrnrnJ32hHpdc="/>
          <t:DestinationFolderId>
            <t:FolderId Id="AAMkADVkNjM1ODI3LTEwYTAtNDUBTTT6tWal35iSoKAAAABZZWAAA="/>
          </t:DestinationFolderId>
        </t:ConversationAction>
      </m:ConversationActions>
    </m:ApplyConversationAction>
  </soap:Body>
</soap:Envelope>

注釈Remarks

読みやすくするために、会話とフォルダーの識別子が短縮されています。The conversation and folder identifiers have been shortened to preserve readability.

ApplyConversationAction response の例ApplyConversationAction response example

DescriptionDescription

次の例は、 ApplyConversationAction要求に対する正常な応答を示しています。The following example shows a successful response to an ApplyConversationAction request.

コードCode

<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Header>
    <h:ServerVersionInfo MajorVersion="14" 
                         MinorVersion="1" 
                         MajorBuildNumber="91" 
                         MinorBuildNumber="0" 
                         Version="Exchange2010_SP1" 
                         xmlns:h="https://schemas.microsoft.com/exchange/services/2006/types" 
                         xmlns="https://schemas.microsoft.com/exchange/services/2006/types" 
                         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
                         xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
  </s:Header>
  <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
          xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <m:ApplyConversationActionResponse xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages" 
                                       xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
      <m:ResponseMessages>
        <m:ApplyConversationActionResponseMessage ResponseClass="Success">
          <m:ResponseCode>NoError</m:ResponseCode>
        </m:ApplyConversationActionResponseMessage>
      </m:ResponseMessages>
    </m:ApplyConversationActionResponse>
  </s:Body>
</s:Envelope>

関連項目See also