Quantcast
Channel: Developing Apps for SharePoint 2013 forum
Viewing all articles
Browse latest Browse all 8089

Can SharePoint objects like 'SP.ClientContext' be used while developing Office 365 Mail Addin?

$
0
0

I am developing a Office 365 Mail Addin in Napa. I am trying to use the object of SP.ClientContext but it shows me error that SP is not defined.

Office.initialize = function (reason) {
    $(document).ready(function () {
        app.initialize();

        var context = new SP.ClientContext("https://mysite.sharepoint.com/"); // <-- Error
        var web = context.get_web();
    });
};

I would like to know can SharePoint objects like SP.ClientContext, SP.Web, etc. be used while developing Office 365 Mail Addin? If yes, then what is the best approach for the same?



Viewing all articles
Browse latest Browse all 8089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>