Access data from SharePoint-hosted app

261 views Asked by At

I am trying to get a grip of apps for SharePoint. What I have not yet clearly understood is whether it would basically be possible to access SharePoint-objects, e.g. a public outlook calendar, from a SharePoint-hosted app via the JSOM?

Would I need a provider hosted app and access via the REST-Api & CSOM instead?

I'd be thankful for a short comment.

2

There are 2 answers

0
Ebbz On BEST ANSWER

If it is a regular calendar in the host web, you can access its data via CSOM or REST Api.

Have a look at the following URLs go get a better idea.

CSOM : BasicOps SPListItemTasks

REST: Rest operations

0
MadTaz On

You can use a SharePoint Hosted Add In (new name for hosted app) to achieve what you are talking about. SharePoint hosted and Provider hosted are no different with regards to whether you can or cannot access data in the host web, instead, they are different in the technologies you are able to use and the infrastructure required.