Reputation: 2103
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.
Upvotes: 0
Views: 259
Reputation: 1
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.
Upvotes: 0
Reputation: 303
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
Upvotes: 1