none
Facing problem in setting follow up for email RRS feed

  • Question

  • I am trying to set an email for follow up using the EWS managed api. I followed these links 

     

    http://social.msdn.microsoft.com/Forums/office/en-US/bce82c8c-a534-4713-a38d-169620c0cffd/ews-set-followup-on-an-email?forum=exchangesvrdevelopment">//social.msdn.microsoft.com/Forums/office/en-US/bce82c8c-a534-4713-a38d-169620c0cffd/ews-set-followup-on-an-email?forum=exchangesvrdevelopment

     

     and 

    http://social.technet.microsoft.com/Forums/office/en-us/8fccfcf9-e7ea-43b2-821d-2fb611855428/ews-managed-api-setting-followup-flags-consistent-with-outlook?forum=exchangesvrdevelopment">social.technet.microsoft.com/Forums/office/en-us/8fccfcf9-e7ea-43b2-821d-2fb611855428/ews-managed-api-setting-followup-flags-consistent-with-outlook?forum=exchangesvrdevelopment

     

    for some guidance but it still i am sure i am missing many things here. The xml i send for updating flagstatus is 

     

    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">

           

    <soap:Header>

                  <t:RequestServerVersion Version="Exchange2013"></t:RequestServerVersion>

              </soap:Header>

           

     

    <soap:Body>

                  

     

    <UpdateItem ConflictResolution="AutoResolve" MessageDisposition="SaveOnly">

                         

     

    <ItemChanges>

                                

    <t:ItemChange>

                                       <t:ItemId Id="AAMkAGEyNzAwYzc3LTkwZTgtNGI2MC05MzVkLTNjMjQzYTgyODc2OQBGAAAAAAA3WMO+ZnF/QrCdez0LEjxsBwB2Nkz9SQDSSozr39zl7KzqAAAAAAENAAB2Nkz9SQDSSozr39zl7KzqAACdlFOTAAA=" ChangeKey="CQAAABYAAAB2Nkz9SQDSSozr39zl7KzqAACdnI3c"></t:ItemId>

                                       

     

    <t:Updates>

                                              

     

    <t:SetItemField>

                                                     <t:FieldURI FieldURI="message:IsRead"></t:FieldURI>

    <t:Message>                                                        

     

    <t:ExtendedProperty>

                                                                   <ExtendedFieldURI PropertyTag="0x1090" PropertyName="FlagRequest" PropertyId="0" PropertyType="String"></ExtendedFieldURI>

                                                                   <Value>2</Value>

                                                                   <Values></Values>

                                                               </t:ExtendedProperty>

                                                            <t:IsRead>false</t:IsRead>

                                                        </t:Message>

                                                 </t:SetItemField>

                                          </t:Updates>

                                   </t:ItemChange>

                            </ItemChanges>

                     </UpdateItem>

              </soap:Body>

       </soap:Envelope>

     

    Using this i am getting "The request failed schema validation" as i am sure there a lot many things i need to properly while setting the extended property type. 

     

    I have looked up over google and in msdn forum but am still unclear what needs to be done to achieve it. 

    Can some one please explain, possibly in detail, how this can be done? Whether the way i am updating the item as in xml above is totally wrong or it misses some basic idea.

     

    Thanks 

    Madhur


    Wednesday, September 24, 2014 12:21 PM

Answers

  • If you have Exchange 2013 then you can use the Strongly type properties for the Followup flag which is a lot easier then using the extended properties eg to mark a message a follow and set the due date use

      <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="
    http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://sc
    hemas.microsoft.com/exchange/services/2006/types" xmlns:soap="http://schemas.xml
    soap.org/soap/envelope/">
        <soap:Header>
          <t:RequestServerVersion Version="Exchange2013_SP1" />
        </soap:Header>
        <soap:Body>
          <m:UpdateItem MessageDisposition="SaveOnly" ConflictResolution="AlwaysOver
    write">
            <m:ItemChanges>
              <t:ItemChange>
                <t:ItemId Id="AAMkADk0OTQ3NjhhLTUzM2UtNDliMi1iYzM4LWQ5Y2JhMmMyYTkxZg
    BGAAAAAABpy48RairITJtRzpjfXjnTBwAOv8A6wS4pSZxXkD7GUo9PAAAAiYaNAAB8PtJwmH78TaGH6N
    /gd2ToAACtxZ88AAA=" ChangeKey="CQAAABYAAAB8PtJwmH78TaGH6N/gd2ToAACt1Afe" />
                <t:Updates>
                  <t:SetItemField>
                    <t:FieldURI FieldURI="item:Flag" />
                    <t:Message>
                      <t:Flag>
                        <t:FlagStatus>Flagged</t:FlagStatus>
                        <t:StartDate>0001-01-01T00:00:00.000Z</t:StartDate>
                        <t:DueDate>2014-09-25T09:20:26.345Z</t:DueDate>
                      </t:Flag>
                    </t:Message>
                  </t:SetItemField>
                </t:Updates>
              </t:ItemChange>
            </m:ItemChanges>
          </m:UpdateItem>
        </soap:Body>
      </soap:Envelope>
    Cheers
    Glen

    • Marked as answer by madhuragreeya Friday, September 26, 2014 7:21 AM
    Thursday, September 25, 2014 4:23 AM

All replies

  • If you have Exchange 2013 then you can use the Strongly type properties for the Followup flag which is a lot easier then using the extended properties eg to mark a message a follow and set the due date use

      <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="
    http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://sc
    hemas.microsoft.com/exchange/services/2006/types" xmlns:soap="http://schemas.xml
    soap.org/soap/envelope/">
        <soap:Header>
          <t:RequestServerVersion Version="Exchange2013_SP1" />
        </soap:Header>
        <soap:Body>
          <m:UpdateItem MessageDisposition="SaveOnly" ConflictResolution="AlwaysOver
    write">
            <m:ItemChanges>
              <t:ItemChange>
                <t:ItemId Id="AAMkADk0OTQ3NjhhLTUzM2UtNDliMi1iYzM4LWQ5Y2JhMmMyYTkxZg
    BGAAAAAABpy48RairITJtRzpjfXjnTBwAOv8A6wS4pSZxXkD7GUo9PAAAAiYaNAAB8PtJwmH78TaGH6N
    /gd2ToAACtxZ88AAA=" ChangeKey="CQAAABYAAAB8PtJwmH78TaGH6N/gd2ToAACt1Afe" />
                <t:Updates>
                  <t:SetItemField>
                    <t:FieldURI FieldURI="item:Flag" />
                    <t:Message>
                      <t:Flag>
                        <t:FlagStatus>Flagged</t:FlagStatus>
                        <t:StartDate>0001-01-01T00:00:00.000Z</t:StartDate>
                        <t:DueDate>2014-09-25T09:20:26.345Z</t:DueDate>
                      </t:Flag>
                    </t:Message>
                  </t:SetItemField>
                </t:Updates>
              </t:ItemChange>
            </m:ItemChanges>
          </m:UpdateItem>
        </soap:Body>
      </soap:Envelope>
    Cheers
    Glen

    • Marked as answer by madhuragreeya Friday, September 26, 2014 7:21 AM
    Thursday, September 25, 2014 4:23 AM
  • This works. and its very simple too. Thanks again Glen. Cheers
    Friday, September 26, 2014 7:22 AM
  • Hi,

      We have also to support exchange 2010 for flagging. Apart from links above i had been looking into this link

    http://social.technet.microsoft.com/Forums/en-US/f949a75d-070b-455e-82b6-01f1674de111/ews-adding-due-date-to-flagged-message?forum=exchangesvrdevelopment

    and sending this request XML for exchange2010 

    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
           <soap:Header>
                  <t:RequestServerVersion Version="Exchange2010_SP1"></t:RequestServerVersion>
              </soap:Header>
           <soap:Body>
                  <UpdateItem ConflictResolution="AutoResolve" MessageDisposition="SaveOnly">
                         <ItemChanges>
                                <t:ItemChange>
                                       <t:ItemId Id="AAMkADU4YWJjNjhkLTE4OWYtNGJmNy1iOTIzLTRlNGVjNDFmYTBhNABGAAAAAAA+3eJWXGVyTLYpBc0G1f+2BwCWtgWpIkfLQ4VqkhNzipUqAAAAP4L0AACWtgWpIkfLQ4VqkhNzipUqAAAASbfZAAA=" ChangeKey="CQAAABYAAACWtgWpIkfLQ4VqkhNzipUqAAAATyTc"></t:ItemId>
                                       <t:Updates>
                                              <t:SetItemField>
                                                     <t:Message>
                                                            <t:ReminderIsSet>false</t:ReminderIsSet>
                                                            <t:ReminderMinutesBeforeStart>0</t:ReminderMinutesBeforeStart>
                                                            <t:ExtendedProperty>
                                                                   <ExtendedFieldURI PropertyTag="0x1090" PropertyName="FlagStatus" PropertyId="0" PropertyType="Integer"></ExtendedFieldURI>
                                                                   <Values></Values>
                                                               </t:ExtendedProperty>
                                                            <t:IsRead>false</t:IsRead>
                                                        </t:Message>
                                                 </t:SetItemField>
                                          </t:Updates>
                                   </t:ItemChange>
                            </ItemChanges>
                     </UpdateItem>
              </soap:Body>
       </soap:Envelope>

    But facing some issues with which is surely incorrect. Can someone let me know what should be a proper request xml format for flag status in exchange2010. And also fi possible some other related links which could be helpful in understanding the xml format to be send.

    Thanks,

     Madhur Rawat

    Monday, October 6, 2014 12:41 PM