locked
getrooms in mailapp RRS feed

  • Question

  • Hi,

    i am trying to get the rooms in a collection in my mail app . i am doing it through ews operation.

    _getRooms = function(id) {
    		var mailbox = Office.context.mailbox;
    		var request = getRoomsRequest();		
    		mailbox.makeEwsRequestAsync(request, callbackRooms);
    	}
    
    
    getRoomsRequest = function() {
    		var result = 
    		'<?xml version="1.0" encoding="utf-8"?>' +
    				'<soap:Envelope 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"' +
                   'xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">' +
    				'<soap:Header>' +
    					'<t:RequestServerVersion Version ="Exchange2013"/>' +
    				'</soap:Header>' +
    				'<soap:Body>' +
    					'<m:GetRooms>' +
    						'<m:RoomList>' +
    							'<t:EmailAddress>Building31ConferenceRooms@mdc.onmicrosoft.com</t:EmailAddress>' +
    						'</m:RoomList>' +
    					'</m:GetRooms>' +
    				'</soap:Body>' +
    				'</soap:Envelope>'
    				return result;
    	}
    
    callbackRooms = function(asyncResult) {
    		console.log(asyncResult);
    	}

    but with above code asyncResult is returning an error

    OSF.DDA.AsyncResult {valuenullstatus"failed"errorOSF.DDA.Error}

    i do not know what i am doing wrong here. i just picked this xml from microsoft online documentation. my other EWS operations are fine, but with this operation i am getting error. is there any restriction on getting rooms with in mail app?

    Thanks

    Nit


    • Edited by Nitrup Thursday, October 16, 2014 4:15 PM missed word
    Thursday, October 16, 2014 4:14 PM

Answers

  • Hi Nitrup,

    GetRooms is not one of the allowed EWS methods via makeEwsRequest.

    Friday, October 17, 2014 4:54 AM
  • Hi Nitrup,

    You can get more detail about EWS operations that mail apps support from link below:
    Call web services from a mail app for Outlook

    If you want mail app to support this feature, I suggest that you submit the feedback from link below:

    Customer Feedback for the Office Developer Platform

    Best regards

    Fei


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by Nitrup Friday, October 17, 2014 9:00 AM
    Friday, October 17, 2014 6:38 AM

All replies

  • Hi Nitrup,

    GetRooms is not one of the allowed EWS methods via makeEwsRequest.

    Friday, October 17, 2014 4:54 AM
  • Hi Nitrup,

    You can get more detail about EWS operations that mail apps support from link below:
    Call web services from a mail app for Outlook

    If you want mail app to support this feature, I suggest that you submit the feedback from link below:

    Customer Feedback for the Office Developer Platform

    Best regards

    Fei


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by Nitrup Friday, October 17, 2014 9:00 AM
    Friday, October 17, 2014 6:38 AM
  • Thanks for the reply Andrew & Fei. i have now put the idea in forum.
    Friday, October 17, 2014 9:00 AM