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
0answers
157 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
93 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
469 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
76 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
966 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
56 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
134 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
410 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 ...
2
votes
1answer
467 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
808 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
3k 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
530 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
1answer
95 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
1answer
418 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
521 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
364 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
262 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
104 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
2k 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
161 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 ...
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
87 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
545 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
75 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: ...
1
vote
1answer
108 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
158 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
89 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
132 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
1answer
464 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
56 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
2answers
28 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
56 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
389 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
332 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
62 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
46 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 ...
2
votes
1answer
43 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 ...
0
votes
2answers
1k views

How to update calendar item created by an other list?

Appreciate any thoughts on this: A user edits an existing list item to pick a date to select a project deadline. A custom workflow, initiated by that item change, takes that date and project title ...
1
vote
0answers
58 views

Exchange event receivers of lists

Recently i faced an interview question for which i am unable to find a suitable answer. I was given a scenarion to implement, which goes like this. There are two event receivers Ea and Eb, these are ...
0
votes
1answer
544 views

redirect to page after itemadding in list withlong run operation

after many checking about redirecting to page from event recievers I understood that my best option it to di it from itemadding event and not itemadded. that does not means that I can neglect the ...
2
votes
2answers
327 views

Event Receiver site creation

I've got this eventreceiver that fires after an item has been added to a list. The eventreceiver creates a subsite from a template I created myself. The only problem is, every first time I try to add ...
0
votes
1answer
44 views

Changed event content type at parent now existing calendar lists content types are _hidden

I am new to SharePoint and I changed the event content type at the parent level. Now existing calendars list content types groups are _Hidden. The calendars also do not work now. Is there a way to re ...
0
votes
2answers
54 views

I want to execute workflow when new item is inserted

private void codeActivity1_ExecuteCode(object sender, EventArgs e) { SPSite objsite = SPContext.Current.Site; using (SPWeb objWeb = SPContext.Current.Web) { ...
1
vote
4answers
1k views

The security validation for this page is invalid error trying to add sharepoint approval workflow to List in ListAdded eventreceiver

What I am trying to do is to attach the OOTB sharepoint workflow [Approval Sharepoint - 2010] to each and every document library that ever gets created. To accomplish this I created a List Added event ...
2
votes
2answers
659 views

Access Denied when trying to set formdigestsettings in a list event receiver even when logged in as Farm Administrator account

I am trying to set the formdigestsettings to false within an event receiver (sharepoint 2010). So far I have tried to a) run the code with elevated privileges public override void ...
0
votes
0answers
148 views

Event Recevier ItemAdded/ItemUpdated and Custom Workflow with Word Automation Service

I have created one visual webpart to convert selected word document to pdf using word automation service. Pdf is created successfully on each time when WAS timer job runs. I know we can not retain ...
0
votes
1answer
70 views

Remove entries from dbo.EventReceivers

Can I safely remove Entries in dbo.EventReceivers ? The Problem is that when i'm deploying a Solution i get on the Feature Activation many Errors in the SharePoint Logs like: ...
3
votes
1answer
316 views

Event Receiver - Cannot access item from Document Library if the user changed the name

I have a library, that has versioning enabled. On that library is an event receiver that does stuff, on ItemUpdated. Ok, if the user uploads a document, and does not rename the document during the ...
0
votes
1answer
338 views

EventReceivers not firing at all

I wrote some code to do some things before and after an item is added to some lists. The solution is sandboxed. I have checked and confirmed, through power shell, that the event receivers are bound ...