An Outlook Office JavaScript add-in makes EWS requests to handle forwarding emails for the user. The code gets some details from the local context but then makes SOAP calls via makeEwsRequestAsync to have the server do the actual work. We are moving to Hybrid Exchange mode, and I was uncertain as to whether the code would continue working. I was not involved with the testing, and it is likely the testers did not test the add-in with newly created Exchange Online accounts, but I can't be certain. I do remember it working with on-premise accounts.
The current Office JavaScript add-in does not use AutoDiscover, but does make EWS calls, as so:
_mailbox = Office.context.mailbox;
[snip]
_mailbox.makeEwsRequestAsync(soapToGetItemData, soapToGetItemDataCallback);
Will this break oi Hybrid mode? Will it only work for on-premise accounts, but accounts created in Exchange Online break?
FYI, I do plan on writing new code using OAuth 2.0, likely using the REST API, but that is not the immediate concern unless that is what is required to have the add-in continue working.