Hello,
I was wondering if it were possible to talk to Exchange Web Services via a SharePoint 2013 (SharePoint-Hosted) app and if so, are there any basic (JavaScript) code examples on how this would be done from a SP 2013 app?
Questions I'm not clear on are:
- How would you utilise the autodiscover service based on the current user of the SharePoint app?
- Or would you instead use something like a config list that contained the EWS url?
- Can you work in JSON format or is it XML only?
- If XML, how would you generate and consume the request/reply?
- Is it a GET or a POST request?
Let's say for example, you have a page where you enter a string and then click a button and it creates a folder in your inbox based on that string. How would this be achieved? The JavaScript for SharePoint operations seem to have examples but I haven't been able to find the equivalent on the Exchange side.
Basically I'm looking for a working example of how accessing EWS from a SharePoint 2013 app is achieved via JavaScript.
I've done a lot of searching but have only been able to find C# examples. Or should I be doing this in C# rather than JavaScript? If so does this have any implications such as additional files being required on the client or server or any cross site scripting issues?
I'm fairly new to the app dev side of things so apologies if any of the above is on the wrong track!
Best Regards,
Michael.