Event Receivers are a piece of managed code that responds to SharePoint events when specific triggering actions occur on a SharePoint object.

learn more… | top users | synonyms

1
vote
1answer
63 views

SharePoint 2010 Restrict List Types by Role

We have a requirement that members of a specific group should only be allowed to create discussion forums while administrators should be able to create any type of list/library. Any advice on how to ...
1
vote
2answers
669 views

No context in list event receivers

I am dependent on an HttpContext within a utility class to update cache items but for some reason this always returns a NULL context. It would seem that an HttpContext cannot be inferred from within ...
0
votes
2answers
802 views

How to cancel the deletion of an item (using ItemDeleting event) and set a property instead?

I have a list with requests. This list is monitored by BizzTalk and synced with an external system. In the list is a status column, which is hidden on the editing/new form, in which the status of the ...
1
vote
2answers
5k views

Event Receiver Not Firing

I have an event receiver using the VS2010 template for SharePoint 2010 and I have coded it the same way I have done many times. This time, though, it is not firing at all. It is attached to the list ...
0
votes
2answers
860 views

List event Item Updating is not firing

I have added a list item updating event to a document library but I cant see it running please tell me how to check if it is running, I also have put a log entry in the event receivers code but cant ...
2
votes
2answers
349 views

Detect SystemUpdate() in an event receiver

Is it possible to detect whether SystemUpdate() or Update() has been invoked in an event receiver?
0
votes
1answer
710 views

Event Receiver for onitemdeleting attached to content type firing on all content types

I have an event receiver on item deleting which is being activated through code, the following is my code: SPContentType myContentType = web.ContentTypes["abc"]; //class where event receiver methods ...
1
vote
2answers
2k views

Event receiver not working properly?

I created an Event Receiver for a feature, my problem is when I deploy the solution, the feature is deployed as active but never goes through my FeatureActivated() inside my Event Receiver. It also ...
0
votes
1answer
282 views

Event Reciever(item deleting) pop up for event cancellation yes/np sharepoint 2010

Is there any way that we can create a pop up on item deleting event reiever -- so when an item is deleting which gives us option whether to go ahead and delete the item or cancel the delete..
1
vote
2answers
618 views

iTextSharp and SharePoint

I have a requirement to save incoming email details in pdf format when a document library received an email. So in the EmailReceived event receiver I created the code to retrieve all the email details ...
0
votes
1answer
226 views

Why do I get only 1 ItemAttachmentDeleting event when deleting more than 1 file in WSS 3.0

I have this requirement, using WSS 3.0, that when an attachment is added or deleted from a list item, I need to send an email to the users. I'm not having a problem with the emails; it's ...
1
vote
1answer
224 views

Get selected term level

I've got a "Managed Metadata" column on a document library (required field). When I've added a document, I need to get te level of the selected term in my term store. I'm using a eventreceiver. I know ...
2
votes
1answer
1k views

Add choice to SPFieldChoice from an Eventreceiver in sandboxed

I am trying to make a sandboxed solution that adds a couple of itemeventreceivers to a list, that add the items to the choices of a choicefield. The result would be something like a lookup field, ...
1
vote
1answer
255 views

Sharepoint 2010 event reciever item adding

is it possible to retrieve the "Modified" date column in item adding event reciever?
6
votes
1answer
649 views

Client Object Model SystemUpdate

I need to have the SystemUpdate functionality from the Client Object Model. Is there any way I can do it since the ListItem.SystemUpdate() does not exist. Another solution would be to disable the ...
2
votes
4answers
2k views

Event Reciever firing twice sharepoint 2010

Hi I have a event receiver(item adding,item editing,item added), it was working fine before ...now it has started to fire twice...any suggestions?
2
votes
2answers
297 views

Requiring Event Receiver while creating new item

I have an event receiver(item adding,item added)..on a custom list..this event receiver creates an ID when a new item is created..so when i deactivate the event receiver and add a new item to the list ...
1
vote
1answer
581 views

Updating an uncustomized master page deployed as a wsp solution

I deployed an uncustomized master page as a SP 2010 Server farm solution using these instructions http://plekky.com/blog/Lists/Posts/Post.aspx?ID=11 Now I need to update the master page. I edited it ...
1
vote
3answers
3k views

ListAdded is not firing when list is created by code

I have an SPListEventReceiver that handles the ListAdded event. If checks that the list is a Document Library, and then adds some fields to the library: public class ListEventReceiver : ...
0
votes
3answers
289 views

How To attach an Event Reciever to a Specific List in SP2007

I'm having trouble binding my event receiver (ItemAdding) event to a specific list. I created a Feature Receiver and tried both the GUID and Name. But, I have another list that uses the same column ...
1
vote
1answer
677 views

Event Reciever Sharepoint 2010(when the calling fails)

I am working on a share-point 2010 custom list event receiver(item adding, item updating,item added), once in a while i will notice that when i create a new item, it seems like the event receiver wont ...
0
votes
5answers
3k views

Event Reciever Custom Error Message Page Sharepoint List 2010

I am working on creating event receiver on a specific custom list using visual studio 2010. Below is the screenshot of the error message set on properties. ErrorMessage I'm interested in knowing ...
3
votes
1answer
511 views

Access denied for BCS method in e-mail event receiver

I have a SPItemEventReceiver which does some stuff with an external list when a document is uploaded to a DocLib. I now wanted to have it also run when an e-mail is sent to that DocLib. I could have ...
2
votes
1answer
992 views

Sending an email using sharepoint object model sharepoint 2010

i have been working on generating email in an event receiver using share point object model..i used the sputility.sendemail method..2 things are necessary in the email(email from and HTML body)..so i ...
1
vote
1answer
100 views

Event reciever(email generation functionality not working on production) but working on dev

i have an event receiver(which has item adding,added events) based on a condition i have set the email to get generated in item added event, the email is getting generated on my dev machine but when ...
2
votes
4answers
4k views

Item added or item edited Sharepoint 2010 event receiver

I am working on Sharepoint list form with 10 fields. The first time when I add the new item I fill in 8 values and id is generated. Next time I edit the form I fill in the one of the two remaining ...
0
votes
0answers
824 views

Unable to debug in an event receiver sharepoint 2010

When i debug in the event reciever(item adding) as soon as it reached the if condition i get the following error unable to automatically step into the server.The remote procedure could not be ...
1
vote
2answers
1k views

Accessing the Created By coloumn value in event receiver(item added) sharepoint 2010

Hi I am trying to access the created by coloumn in item added event reciever.But when i debug it shows null value...below is the code public override void ItemAdded(SPItemEventProperties properties) ...
0
votes
2answers
267 views

Event reciever (itemadded) sharepoint 2010

is there a way where we can get the link(editform.aspx) of item just added to the list-- in the itemadded method of the event receiver (Share Point object model)
3
votes
6answers
1k views

Logged in user name in SharePoint 2010

I am trying to retrieve the display name('firstname lastname') of a user who logs in the SharePoint site. When I log into my SharePoint site I could see at the top right --'domain/user name'. So when ...
1
vote
1answer
1k views

Event Reciever run with elevated previledges

I created one event receiver and deployed it, but only users who are site collection admins are able to view this web part. I have included the SPSecurity.RunWithElevatedPrivileges but the same thing. ...
2
votes
2answers
823 views

Event Reciever on specific list in SharePoint 2010 working in dev environment but not in production

I have created an event receiver (on item adding) using VS2010 in SharePoint 2010 targeted to specific custom list which is a globally deployed in the production environment. This event receiver ...
0
votes
2answers
576 views

Deploying Event Reciever on the production environment

I want to deploy the event receiver created in SharePoint 2010 to the production environment. This is a farm solution, but I have a question regarding the deployment in the production environment. ...
0
votes
1answer
44 views

Interaction between custom forms and event recievers

How can we interect with custom forms and event recievers? How can we talk to custom fields (asp controls) within the custom form from an event recievers?
3
votes
1answer
644 views

How to remove duplicate EventReceiver entries

Lately i had a bug that time-to-time added duplicate event receiver entries in SPEventReceiverDefinitionCollection. So how do i easily enumerate and remove these duplicate entries?
4
votes
1answer
5k views

How to get a field value of the item in ItemDeleted event handler?

I need to get the value of ListItem field in ItemDeleted event handler. Only value of one numeric field. But properties.ListItem == null. And AfterProperties, BeforeProperties also do not work. Is ...
5
votes
2answers
1k views

How do programmatically determine when Approval workflow has completed

I have a list with 2x declarative approval workflows associated with it (the workflows themselves are copies of the OOTB Approval workflow and were built in SharePoint Designer 2010). FYI: The ...
0
votes
2answers
1k views

Getting the value from the dropdownbox Event Reciever sharepoint 2010

I have an event reciever for item adding. I'm using: dropdwnvalue = web.Lists[properties.ListId].Fields["Names"].InternalName; string selectedValue = ...
1
vote
1answer
736 views

passing parameter values to the event reciver sharepoint 2010

is there any way we can pass parameter value(selected form field value(drop down box) from newform.aspx)to the event receiver(itemadding) from newform.aspx()in sharepoint 2010, so that they can be ...
7
votes
2answers
1k views

Event Reciever on specific list in sharepoint 2010

I am working on creating event reciever for a custom list in sharepoint 2010 using visual studio..how can this event reciever be targeted to a specific custom list ..in my case its customEmpList?
1
vote
1answer
201 views

Event Reciever on Item created

I am working on creating a event reciever on a custom list .. my senario: I have a customizes newform.aspx and this form has a field called ticketID as hidden ..in the newform..so when a user creates ...
1
vote
2answers
564 views

Error while creating event reciever in SharePoint 2010

I am working on creating the event receiver in SharePoint 2010. When I create a new--> project--> event receiver, I choose the sandbox solution and hit ok. I am getting the following error ...
3
votes
1answer
314 views

Event receiver in SharePoint 2010

I am working on creating an event receiver. Does SharePoint have a stipulation that the event receiver should be a farm solution or a sandbox solution?
2
votes
2answers
637 views

Sharepoint development without Visual Studio on server machine

Till now I was doing Sharepoint development with Sharepoint server and Visual Studio on same machine. Now there is a Sharepoint 2010 installed on my client machine with no Visual Studio installed. I ...
5
votes
2answers
291 views

How to add style library event receivers?

how can I add an event receiver to the style library ? (can't find any templateid) thank you ;)
7
votes
4answers
8k views

Creating a Site collection programmatically throws exception <nativehr>0x80070005</nativehr>

I'm migrating a SharePoint customization from MOSS 2007 to SharePoint Server 2010 (Win 2008), which creates the Site Collection programmatically. Problem is I'm unable to create the Site Collection ...