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

2
votes
2answers
816 views

Connecting to WCF service from SharePoint

I have a WCF service that lives on another server that I am trying to connect to from an EventReciever in a SharePoint 2010 feature. I have gone through all the hoops of configuring the feature in ...
0
votes
1answer
2k views

Show message in ItemUpdated Eventreceiver (SP2010)

I need to show an errormessage in a popup or redirecting to another page when an error occurs in the ItemAdded (not ItemAdding...) eventreceiver. Anyone knows how to do this? I've tried: private ...
0
votes
1answer
616 views

updating an item in itemupdating on the same list and on the same item

in item updating event of list, i want to update the same item which being updating but i don't want to change and update the fields of the item but the permissions of it. so i can't use ...
0
votes
2answers
2k views

ItemAdding event not firing when submitting InfoPath form to form library

I created an event receiver in Visual Studio to handle three events in a form library: ItemAdding, ItemUpdating, and ItemDeleting. ItemUpdating and ItemDeleting work as expected when debugging, but ...
3
votes
1answer
203 views

ItemUpdating method for an item event reciever is called three times

I've creted an asset library for holding pictures and I've created an event reciever for the ItemUpdating event. When the item is updated, the method is called three times(!?!). I've noticed that two ...
1
vote
4answers
562 views

Calling Console Application (.exe) in Event Receiver and Getting Error

I am using SharePoint foundation. I have a console application that is used to run some OCR process. I am calling the exe of the console application from windows service and it is working fine. I am ...
1
vote
1answer
327 views

Setting an alert in WebProvisioned event

I want to set alerts for all users whenever a new subsite is created under the root site. I am using the WebProvisioned event, but when I attempt to Update() my new alert I get an error: "There is no ...
2
votes
2answers
2k views

Preventing users from deleting an item from a task list

I am using the ItemDeleting event receiver to prevent users from deleting items in a Task List. Currently, my code looks like: if (properties.ListTitle == "Project Intake Tasks") { ...
2
votes
2answers
1k views

Move a document from library after adding it

I am using the ItemAdded event to fill in a metadata field. In the ItemUpdated event (after submitting the file properties diagog) - I want to move the file elsewhere. However, I get an error saying ...
1
vote
2answers
3k views

event receivers and execution order

I am using some of these such as ItemAdded and ItemUpdated and I had altered the elements file to make this synchronous. I'm just curious as to what the order of execution is for all these handlers. ...
0
votes
1answer
4k views

properties.ListItem is NULL on item added Event Receiver?

The following articles... http://moonistahir.wordpress.com/2008/05/05/properties-listitem-in-itemadded-is-null-workaround-to-get-listitem/ ...
0
votes
1answer
543 views

Scope Event Receiver to WebApplication (SharePoint 2010)

I'm working on creating an event receiver which facilitates synchronization between two lists. I originally created the receiver as a sandbox solution and after successful testing deployed it to ...
0
votes
2answers
383 views

What can be preventing OnTaskChanged from triggering with custom InfoPath task forms in the workflow?

Why could this be happening: VS Workflow with custom InfoPath Task Forms does not trigger OnTaskChanged when form is submitted with data (so clearly changed). Funny thing is that the same workflow ...
0
votes
2answers
488 views

Managed Client Object Model in Event Receiver - Event is not firing at all

When I use ClientContext context = new ClientContext("SITEURL"); in my event receiver, the event doesn't trigger at all. So my question is can I use managed client object model in event receivers. ...
3
votes
2answers
2k views

One Event Receiver for many lists

I have Event Receiver for document library. It is added in Elements.xml like this: <Receivers ListTemplateId="101"> I would like to use this ER for all my document libraries. Do I have to ...
1
vote
2answers
755 views

Is there any event reciver available for user group events?

I have to update some list whenever a new user or group is added to the site. Is there any event receiver available for users/groups?
4
votes
2answers
1k views

Webprovisioned not fire

I have a code from external developer that creates site in list event receiver. public override void ItemAdded(SPItemEventProperties properties) { bool EventFiringEnabledStatus = ...
3
votes
1answer
454 views

How can an InfoPath form get the Claims of the user who is logged in to SharePoint?

We have a document library that contains a list of proposals (InfoPath Forms). Users log in through SharePoint using Claims (Forms Auth, via an Extranet) who are from various organizations. The ...
0
votes
1answer
580 views

Best way to check if SPListItem have been publish, on an ItemUpdate EventReceiver

I have an EventReceiver associated to DocLib template id, triggered at every ItemUpdate. Everytime an SPListItem is publish I want to execute my code. (Required check out and Content approval are ...
4
votes
2answers
2k views

Event Receiver behaving unexpectedly

I have created a list item event receiver(ItemUpdated). When a item is updated in a list(for which event handler is attached),my code updates other items (may be more than 1) in lists in subsites. ...
3
votes
3answers
3k views

Get list of event receivers registered for a list created from a list definition

I created a list definition created from visual studio. I also have an event receiver specified along with the listtemplate feature. The idea was to have event receiver registered for all lists ...
1
vote
1answer
62 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
599 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
761 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
794 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
326 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
666 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
276 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
3answers
567 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
213 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
213 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
945 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
250 views

Sharepoint 2010 event reciever item adding

is it possible to retrieve the "Modified" date column in item adding event reciever?
6
votes
1answer
568 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
294 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
539 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
2answers
275 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
633 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
4answers
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
474 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
902 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
95 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
777 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
261 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)