Forum Discussion

Ketill Antoníus Ágústsson's avatar
Aug 01, 2017

Calling SharePoint Online REST API from an Outlook add in

Hi guys, this will be my first post on here and I am in dire need of help. Fairly obviously I'm a SP novice and appreciate any and all comments and suggestions. I've been bouncing around the interwebs looking for a simple concise answer / walkthrough to guide me on how to call the SharePoint REST API from an external client-side source (JavaScript) to no avail. 

 

I'm developing an add in which is capable of creating a item in a list, nothing more, nothing less. The resources I have found so far:

and a couple of others which I didn't find helpful.

 

Is there no simple straightforward way to recieve an access token and append that to each REST call header? I'd hoped to use the PnP JavaScript library and use the configuration function to authenticate each call automatically. This being such a general inquiry I didn't include further details, if anyone thinks they'll help, I will gladly post them :)

 

Thanks in advance,

-Ketill

Resources