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

0
votes
1answer
466 views

Event receiver not firing on item added via email

I have a list that have been configure to receive incoming email. I also create event receiver for that list (on itemAdded and on itemAdding). The problem is, my event receiver not executed when ...
0
votes
1answer
572 views

Try to add a user to a multiple user field in the itemUpdating eventreceiver: The field you are trying to update may be read only

I am using Sharepoint 2013. I have created a custom list. This custom list is using a custom contentype. In this custom contenttype I have a custom column. This column is a people picker. It is ...
0
votes
0answers
81 views

Lock error when updating new document in ItemAdded

I'm trying to update an item when it is added to a document library. I have an EventReceiver on my document library and I am using the ItemAdded event. I am using the New Document button to create a ...
0
votes
3answers
595 views

How to redirect to another page using an event receiver?

I want to redirect to another page after an item is added to the list. I have referred many links and found the same alternative that is SPUtility.Redirect("https://www.google.co.in/", ...
0
votes
1answer
627 views

Error occurred in deployment step 'Activate Features' while trying to deploy an event receiver?

I cant seem to figure out what the issue is while I try to deploy my event receiver targeted at a particular list on my site. All I am trying to do in the event receiver is to check (on ...
0
votes
0answers
128 views

ListAdding is not firing, but ListDeleting yes

I have an SPListEventReceiver on Custom List Definition in SharePoint 2013 that handles the ListAdding and ListDeleting events. <Receivers ListTemplateId="10002" > <Receiver> ...
1
vote
0answers
73 views

Copy File Name to Title Field in Asset Library

I need to put together an Event Receiver on Asset Libraries which copies the File Name of the asset being uploaded to the Title Field of the list. I am currently using the following code. The ...
0
votes
1answer
250 views

Can Event Receiver be used in Sharepoint Client Object Model 2010?

I need to e.g detect in a console application any updates that affect items in a SP list. Thanks!
0
votes
1answer
55 views

event handler properties call

I was reading this nice article about basic event handling in sharepoint http://karinebosch.wordpress.com/walkthroughs/event-receivers-walkthrough1/ but while doing the exercise a question arised: Why ...
0
votes
1answer
542 views

How to get and set term store field in the ItemUpdated event receiver

I am using sharepoint 2010. I have a document library which is using some custom content type. This content type has 2 custom fields which are termstore fields. These are the names of the fields: ...
2
votes
0answers
49 views

Change logic for event receivers in an already deployed solution

I have a sandbox solution that has list schemas, visual web parts, custom pages and actions, workflows and a couple event receivers. Yes, one big mess of a thing, but I needed to pack everything up in ...
0
votes
2answers
19 views

Remove annoucement for a specific user

Does anyone know how can I remove a list item for a current user when a checkbox is set to 'yes'? I have an announcement list and I want to hide a read announcement from the list, whenever the user ...
0
votes
1answer
98 views

SPWeb permissions inside RunWithElevatedPrivileges

Please consider following scenario: public override void ItemUpdated(SPItemEventProperties properties) { SPSecurity.RunWithElevatedPrivileges(delegate() { SPWeb web1 = properties.Web; ...
0
votes
1answer
227 views

(Solved) How to create an event receiver for RoleAssignments on file in sharepoint 2013

I'm trying for like 5 days to achieve this event and i got to this but still not even close to what i want. I need to change permissions on file added in library like: user which added file to have ...
1
vote
1answer
309 views

SPContext.Current.FormContext.OnSaveHandler Not Firing from Custom Field Type Control

I am having the exact same problem described here. Unfortunately because I don't have 50 points yet I can't comment on it so I have to create a new duplicate question. I mean it's not "100% EXACTLY" ...
4
votes
4answers
338 views

Event Receiver called multiple times

I attached an event handler for ItemAdded to a content type A in the xml (using XmlDocuments). I have 4 other content types A1, A2, A3 and A4 that inherit from content type A (in their xml definition ...
0
votes
1answer
2k views

SharePoint 2013 Event Receiver on Custom List Definition not firing

There is custom list definition and I have attached an event receiver on ItemUpdating of list instances from the custom list definition. For some reason, the Event Receiver doesn't seem to fire at ...
0
votes
2answers
323 views

ItemEventReceiver - ItemDeleting not working with a document library and referencing list

I have a custom list that has a GUID column which refers to the UniqueId of a document in a document library. Every time I upload a document, it should add an entry in this list and populate the ...
0
votes
0answers
21 views

Accès refusé lors de la création d"une collection de site

I am trying to create a site collection in ItemUpdated according to my Event Handler. SPSecurity.RunWithElevatedPrivileges ( delegate () { using (SPSite oSPSite = new SPSite ...
0
votes
1answer
89 views

Access Denied when using CancelWithRedirectURL

I'm trying to prevent some records from being deleted from a list. I've got the ItemDeleting event firing and everything works great. I can prevent the item from being deleted just fine. The ...
0
votes
0answers
45 views

What are the events that are fired when a user updates a task on Project Server?

If for example I want to add an event handler when a new project is created on Project Server I create a class that is derived from ProjectEventReceiver class and I override the OnCreated method. But ...
0
votes
1answer
257 views

How to disable event receiver in feature deactivated?

I am new SharePoint programming. I have created event receiver on item adding for the document library that allows only .doc files to be uploaded, otherwise it gives error. My code for event ...
0
votes
3answers
367 views

Unable to redirect from sharepoint event receiver

I have created an event receiver on the "Task" list. If the "Due Date" is null then the user should be redirected to the custom error page. Custom error page resides in the SharePoint mapped folder ...
2
votes
2answers
313 views

How do i send user back to edit item dialog when event receiver comes back with an error

I am creeting an event reciever that ensure that my list has unique items based on two columns. If I find a duplicate I wish to do one of the following: display a dialog which states a duplicate has ...
0
votes
0answers
160 views

How to Retrieve List Item Using It's Field Name? - SharePoint

I have two contact lists in my site i.e. Contacts 1 and Contacts 2. I am creating "item added" event receiver on Contacts 1 that is whenever new entry is made to the Contacts 1 automatically it ...
0
votes
2answers
92 views

SharePoint rename file on overwrite

I have a simple requirement, yet it seems very complex to implement. When users upload a file to the document library, I want to check if it exists. If it exists I need to rename the file by appending ...
0
votes
2answers
1k views

Custom Error Message for Event Receiver in SharePoint 2010

I want users to upload the .doc files only in the document library. To do so, I have developed an event receiver in Visual Studio 2010. My code is as follows: public override void ...
0
votes
1answer
117 views

Retrieve previous file contents on ItemUpdated

I am writing an event receiver on a document library. I need to get the previous version of the document, before the upload. BeforeProperties unfortunately does not give me the SPFile, only the ...
0
votes
0answers
14 views

What event(s) are called when sending a list item to another list?

When an item is moved or copied to another list, I need to take action using both the GUID of the old item and of the new. What events do I need to handle, and will I have access to both GUIDs?
1
vote
2answers
1k views

Unable to update item using powershell when event reciever is enabled

I have a powershell script that I am using to update some list items programatically. It seems to work as I expected when I disable the event reciever that is associated with the list however when I ...
1
vote
0answers
73 views

RefreshToken is null on ItemAdded, works fine on ItemUpdated

I have an EventReceiver that is subscribed to both the ItemAdded and ItemUpdated event on a SharePoint list. I'm using the TokenHelper provided in the sample files, and have also tried the version ...
1
vote
1answer
434 views

WebProvisioned event receiver is firing twice

I am creating a SharePoint site from code behind using SharePoint object model. In the WebProvisioned event, I am creating the groups, enabling a few features. Everything is working fine, except the ...
1
vote
0answers
61 views

Notifying a webservice about list update events

I have a custom webservice hosted in SharePoint that caches data from a certain list. It needs to update the cache every time the list is updated. It seems to me there are 3 ways this could happen: ...
0
votes
0answers
95 views

cannot add item to Attendees list of Meeting Workspace

We have a calendar and there is an event receiver that creates a Meeting Workspace for the event and also adds items to Attendees list. But new items doesn't appear in the list. There is no any ...
1
vote
1answer
81 views

Unreliable EventReceiver issue

I recently created an EventReceiver that should add a certain web part to new pages that are created. However, the EventReceiver's behavior seem very unreliable. For example, the first page I create ...
0
votes
1answer
144 views

Programatically populate custom list column

I have a list definition project (schema.xml, etc.). I would like to create a computed column that's available for grouping, but not have the computed value from a CAML query, as it's going to be ...
0
votes
1answer
69 views

EventReceiver: AddWebpart works only once or never.

I've run into an enormously frustrating problem. I want to add a Webpart to every page that's created on a certain site. I made an "Item was added to Pages library" Event Receiver, and am using the ...
1
vote
2answers
118 views

Re-attach Event Receiver to library

Using SP 2010, we created a content type with an event receiver bound to the content type. The ER is an ItemDeleting ER that prevents deletes from the library. When we create a library and attach the ...
0
votes
0answers
23 views

Site definition with workflow

i need advice on how to implement workflows inside a specific situation. We have a list of projects. When someone adds a new project we need to create a subsite for this project (with the proper ...
0
votes
0answers
293 views

Event Receiver on Publishing Page Library

I created a new event receiver and hooked it onto the Pages library for my publishing site. I attached each one of the events exposed, but I cannot get any of them to fire. elements xml: ...
0
votes
0answers
50 views

Features in Sharepoint 2010

I created an empty Project and used the default Feature1 thats created with the project to then create the following: public override void FeatureActivated(SPFeatureReceiverProperties properties) ...
0
votes
0answers
104 views

Event-receiver ItemUpdating event not getting triggered when list item is updated from a designer workflow after a pause duration

I am having a Workflow and Event receiver attached to a custom list.The workflow is started from code, based on some condition satisfied.When the workflow is started it initially updates a Status ...
0
votes
2answers
27 views

Workflow Question

So using http://msdn.microsoft.com/en-us/library/ff648492.aspx at the very bottem of the page theres a condition that states, "High Volume?". I just want to understand this. A brief explanation will ...
0
votes
1answer
53 views

SharePoint 2010 create SPWeb object in synchronous and in asynchronous events

Is there any difference in creating SPWeb objects in synchronous and in asynchronous events? A far as I know in both cases it will be using (SPSite site = new SPSite("http://.........")) { using ...
1
vote
1answer
326 views

SharePoint event receiver ItemUpdating event behaves differently when a list item is updated through Workflow

I am having a SharePoint custom list which is having a designer workflow and event receiver attached to it. In the event receiver on ItemUpdating event I am having the below code to check if a ...
1
vote
1answer
272 views

Event Receivers not working on Sharepoint Online

I have a sandbox solution. It has an event receiver. The event is triggered when a workflow is started. It works in our dev environment. However, when the solution is deployed to Sharepoint Online, ...
0
votes
1answer
60 views

Event Receiver Update

I have a complex situation that I was wondering if you guys have an idea on how to do: I have 2 lists, the parent list (CRDB) and child list(ReleaseDB). The parent list can have one or many child. ...
0
votes
1answer
39 views

xmldocument & receiver on sharepoint

I'm developing on sharepoint since few months, and I begin to understand the structure of Sharepoint. However, there is some things I don't understand. For example, I don't understand how work the ...
0
votes
0answers
29 views

disabling multiple fiel upload on picture library

How can I make my library picture one to disable multiple picture upload at a time. only 1 at a time is nice. I tried but getting context as null. not sure how to improve it myself. I also need this ...
2
votes
1answer
42 views

ItemUpdated vs FieldUpdated

I have a user request where a Document Library with Content Approval turned on, wants the name of the person who approved the document. So I created an "Approver" column and want to create an Event ...