Sunday, February 21, 2016

SharePoint 2013 - Event Handler Manager

If you are developing event receivers in SharePoint, things can get a little bit messy, because, sometimes you might find yourself in a situation where you have multiple events firing on your SharePoint lists and you don't know why. And SharePoint platform doesn't give you any tool for monitoring events in your farm

Sometimes you accidentally deploy multiple event receivers and you aren't aware of that, but there is no way you can know how many event receivers per one list you have.

But, luckily, there are many free tools for monitoring and even creating new event receivers for SharePoint lists. One of them is "SharePoint 2013 Event Manager", a simple windows application which enables to monitor all event receivers in you farm, create new events or delete existing events:

Download tool from CodePlex:
SHAREPOINT 2013 EVENT MANAGER

Friday, February 19, 2016

SP 2013 Provider Hosted Apps - How to access items on subsite items of HostWeb

Recently I came across a problem when working with provider hosted apps. If you are trying to access items (fetching lists, or list items) in Host Web (using CSOM), then you need to set the appropriate permissions in AppManifest of the app.
With the permission "Web" you can access items on Host web, but if you want to access items on a subsite of the Host Web, then you will get "Access denied" error.

SOLUTION:
In the AppManifest you need to change permission from "Web" to "SiteCollection". This should allow you to access lists and other items on that all subsites in Host Web.