Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

access the root web's splist from itemeventreceiver using spitemeventproperties properties object

$
0
0

Hi,

Am having a event receiver which is an item event receiver which is trying to read the  top level list called ApproverInfoList's items and apply some permissions and manipulations.

ApproverInfoList is residing at  RootWeb. am trying to access this approerinfo splist from a subweb's document library's itemevent receiver file.

But  am stuck with  how to access the root web from a   subweb. am having a  site collections with multiple levels of sub sites.

like sitecollec1 - is the site collection and subsite1 is the sub site of sitecollec1 and sub_subsite1 is the sub site of subsite1.

Now when i trying to activate the event receiver it fails to read the top level -root web's - list.

can anyone help me, how to access the root web object  from properties - ( SPItemEventPropertis properties)

object ?



Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>