none
How to get Attachment from attachment Id RRS feed

  • Question


  • I had taken attachment id from-- Office.context.mailbox.item.attachments[0].id

    var myxml='<?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="http://schemas.microsoft.com/exchange/services/2006/types"> ' +
                    '  <soap:Header> '+
                    '<t:RequestServerVersion Version="Exchange2013" />'+
                    ' </soap:Header> '+
                    '  <soap:Body>' +
                    '    <GetAttachment ' +
                    '      xmlns="http://schemas.microsoft.com/exchange/services/2006/messages" ' +
                    '      xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"> ' +
                    '      <AttachmentShape> ' +
                    '        <t:BodyType>Default</t:BodyType> ' +
                    '        <t:IncludeMimeContent>true</t:IncludeMimeContent> ' +
                    '      </AttachmentShape> ' +
                    '      <AttachmentIds> ' +
                    ' <t:AttachmentId Id="AAMkADRkNjU3YmMyLTQ4N2MtNGQ4My04ZDg5LWU4YTYwODRhMDc5NABGAAAAAAC6PzCEnjqwRqB/xDDvpF1yBwC+AnjeQ+/PR5Sjo43wegE+AAAAAAEMAAC+AnjeQ+/PR5Sjo43wegE+AAAKbfL3AAABEgAQALRJ/Ygk+2xKrPFvVhaDIjo=" />' +
                    '      </AttachmentIds> ' +
                    '    </GetAttachment> ' +
                    '  </soap:Body> ' +
                    '</soap:Envelope>';

    mailbox.makeEwsRequestAsync(myxml, function (asyncResult) {
       result = asyncResult;
    console.log(result);
    });

    And Getting below error

    The requested web method is unavailable to this caller or application.



    Monday, January 11, 2016 1:45 PM

All replies