Access sharepointonline list from azure hosted .net app service
New Contributor

Hello ,


Currently I am doing a PoC in which I had a list in sharepointonline site whose data is needed to be consumed by external entity (Webpage/mobile app).  If somehow list data is exposed via rest services then this can be achieved. Sharepointonline list exposed its rows by default as REST but in sharepoint context itself. Is it possible to access the list data from outside the sharepoint context (How to get access token). Any help in form of code sample will b every helpful.

3 Replies
Have you looked at using Flow to extracting the data?

I think the same problem of authentication happens in Flow also as sharepoint works in its own context. Problem is How to get the Authentication Token for a sharepoint online site.


Is it not possible for you to use CSOM? If the answer is no, what you can do is create an Azure Function that gets the data of the SPO List and then you can call this Azure function from a Web / Mobile App