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
3answers
479 views

Event Receiver which tries to create a Prefix will throw Security Exception

I'm trying to use an Event Receiver on a List to create a Managed Path with Wildcard-inclusion in the parent WebApplication. I tried to handle it with the following code (reduced to show the idea) ...
2
votes
1answer
198 views

Will feature receiver get activate if user has no permissions to a site?

Here's what I need...User does not have access to a site (http://myserver/sites/MySite). When user tries to access they are redirected to ugly AccessDenied.aspx. I was researching and found that ...
0
votes
1answer
135 views

Using Sharepoint UI is there a way of knowing what event receiver is installed against a library

Using Sharepoint UI is there a way of knowing what event receiver is installed against a library? I have a event receiver that adds installed against document library and all it does is to set item ...
0
votes
3answers
452 views

an event receiver does not allow to add item that already exists

i want an event handler for document library (itemadding and itemChekingIn) that does not allow to add a file to that document library that already been in there.does anyone can give me hint for ...
0
votes
2answers
530 views

Differentiate in ItemUpdated (ER) if file was edited or overwritted

I've an ItemUpdated Event Receiver, and I need to make different operations depending if the file was updated throw UI or overwritted. Is there any internal field that reflects this 2 different ...
0
votes
1answer
1k views

ItemAdded event running with user permissions (SharePoint 2010)

My understanding is/was that by default asynchronous event receivers ran under system permissions, while synchronous event receivers run under user permissions -- and that ItemAdding is synchronous, ...
0
votes
1answer
272 views

List versioning detect field level changes

I need to detect changes with each on each item update, )but i don't want to use the before, after properties ) My question is: If i enable list versioning can i diff 2 versions to detect changes, ...
1
vote
4answers
1k views

Single line of text field validation in Sharepoint 2010 list

I have single line of text field in a Sharepoint 2010 list. I need to validate the particular field. The user will enter the number by starting with I or F. How do I validate the field if the user ...
0
votes
1answer
332 views

Event Receivers on Add/Remove Users

I need some design ideas for a requirement to audit when uses are added/removed from an object. I need to collect the user doing the add/remove, date time, and reason for adding. I need to do this to ...
1
vote
0answers
974 views

List ItemUpdated Event not firing when updating item from code

I have a problem with my eventreceiver. It is set to fire on updating item from a list, and works very good when I update that item from Sharepoint's web UI. However I have some code that goes through ...
3
votes
3answers
419 views

Add file watermark as it's uploaded

I've been trying to add a watermark to files as they are uploaded to SharePoint. I tried using several events: ItemAdding, ItemUpdating, ItemCheckedIn. In ItemUpdating and ItemCheckedIn the file is ...
0
votes
1answer
357 views

Event Receiver Item Added for Multiple Files uploaded

I am trying to add few details for a item that is added to a list to SQL database table using a stored procedure, it works perfectly but when I upload multiple files it adds all of the items into the ...
0
votes
1answer
1k views

Event receiver for a custom List

I created a custom Event Receiver using WSP builder, and in elements.xml file i have given the ID of list which i find in elements.xml of List definition of particular list. I also activated the ...
1
vote
1answer
282 views

Is it possible to have the round robin logic in the sharePoint list 2010?

Is it possible to have the round robin logic in the sharePoint list? I have two lists in SharePoint 2010. In List A i have Assigned to field column(people or user group). In List B i have two fields ...
0
votes
1answer
1k views

How to assign a particular column values of sharepoint List A 2010 from sharepoint ListB 2010

I have two list in sharepoint 2010. In List A i have Assigned to field column(people or user group). In List B i have two fields Name and Email id column. I need the email id values of List B should ...
2
votes
1answer
2k views

ItemUpdating not saving field values

A user has a list that has a couple fields that are often updated. He wants to store the prior values in some other fields on the item when the item is updated (yes, I know versioning would be ...
0
votes
1answer
138 views

Visual Studio 2010 opens “Create New Site” page in browser when I run “Start Debugging” instead of the site I am trying to debug

I am an Office 365 user and fairly new to Sharepoint. I am trying to write a sandboxed solution for SharePoint online. To do this, I have setup a local developer environment and am currently trying ...
1
vote
1answer
735 views

Why does my Event Receiver (sandboxed) not work on Sharepoint Online, but works perfect on premise

using System; using System.Security.Permissions; using Microsoft.SharePoint; using Microsoft.SharePoint.Security; using Microsoft.SharePoint.Utilities; using Microsoft.SharePoint.Workflow; namespace ...
0
votes
1answer
181 views

Using an event receiver to validate a page

I need to evaluate certain properties of a page whenever it's being saved/published as part of a custom validation I need to implement. I notice properties has both Cancel and ErrorMessage properties ...
2
votes
2answers
814 views

Attach an event receiver to profile property update

Do someone know if it's possible to attach an event receiver to profile updates? The goal would be to update an external system (such as a CRM) when a user is updating his profile.
1
vote
0answers
148 views

How to trigger event receiver on library when adding items to library through silverlight control?

I created an event receiver which triggers when an item added to the library.And it is working fine when i am adding items at library level(By clicking upload in ribbon controller of library).But the ...
2
votes
2answers
862 views

Dispose of SPItemEventProperties at the end of an event receiver?

Is there any need to call properties.Dispose(); at the end of an event receiver? Would this prevent memory leaks? Is this unnecessary? Is it best practice?
2
votes
0answers
129 views

Site is Provisioned but Content Type List is still empty

I have this feature that I am trying to run in order to configure a site, this feature among other things creates pages based on content types, etc. The problem I am facing is that everytime i am ...
0
votes
2answers
191 views

How do I pass value to list event receiver?

I have a document library that have a column named "Region", after some user uploads a doc to the library, I want to update this column based on this user's region property. for example, if this ...
2
votes
1answer
456 views

Have External Lists And / Or Event Receivers?

I am fairly new to Sharepoint. I am in the early stages of developing a SP2010 LOB app that will finally have like 50 lists which are quite interrelated with each other. I am asking for your help ...
1
vote
2answers
85 views

Deployment Issue Event Reciver

i built a event receiver it works 100%. when i deploy it manually using power shell it deploys with no error i then used Get-SPSolution to see if it has been deployed and it returns true when i go ...
6
votes
4answers
18k views

Error occurred in deployment step 'Activate Features': <nativehr>0x80070002</nativehr><nativestack></nativestack>

I have a feature. On the FeatureActivated event I am creating a list if it is not there. I also have an EventReceiver that in the elements.xml on the Receivers node has the attribute ListUrl. This is ...
1
vote
2answers
934 views

EventReceiver firing for list created in other solutions

I have build an event receiver that perform some job when a new item is created. The event should be fired on a specific list type which is defined in the same solution. However, the event receiver ...
1
vote
1answer
1k views

EventReciever to change permissions

I am trying to create an event reciever on a document library that on creation it removes all permissions and gives the author contribute writes. All other users get nothing. I have the following ...
0
votes
2answers
476 views

deploy a list with specific item-level permissions in ListAdded event receiver method

I have a certain type of custom list I have designed in my 'solution.wsp', that, whenever an instance of it is instantiated, it should have at the outset a specific Item-Level permission. To further ...
1
vote
1answer
124 views

How to push a specific SPListItem through a workflow with code?

I would like to push a specific SPListItem to the final step in a State workflow, skipping all the intermediate steps (if a certain checkbox is checked). Currently, I have an event receiver hooked ...
0
votes
2answers
67 views

Cyclic calling of event receivers

I have a Deleting Event Receiver, say, on list A. Also I have other Deleting Event Receiver on list B. There is a deleting method in both receivers, which deletes items of each other. So, when an item ...
1
vote
4answers
2k views

How to delete an item on ItemAdding

I want to performe some Action on ItemAdding. I have a Custom List that reacts on Item Creation. In particular on Item Adding performs some action using the After Properties.. If, at this level, i ...
0
votes
3answers
2k views

Debugging sandboxed ItemUpdated event receiver - breakpoints not hit

I'm trying to debug an ItemUpdated event receiver in SharePoint 2010. I add breakpoints to the code, and hit F5 in Visual Studio 2010. I click Attach when I'm prompted to attach to the process. Then, ...
0
votes
1answer
647 views

Stop EditForm.aspx redirecting to deleted list item

Scenario: Adding a document to document library, then copying it to another doc lib and then deleting it using the ItemUpdated event receiver. Problem: The popup window (EditForm.aspx) usually closes ...
0
votes
2answers
707 views

Event receiver not populating list as expected

I have created an event receiver that does two things: 1) Pulls information from a selected user's profile and populates a column with that information (BC Champion ID). <-- This part works 2) ...
4
votes
3answers
3k views

How to add event receivers to all the lists in a site collection?

What is the best practice around adding event receivers across all the lists in a Site Collection?
2
votes
2answers
1k views

ItemAdding not firing when “Overwrite existing files” is checked for SharePoint Document library

I need to copy Existing file to A folder("Archive") while another file is uploaded with same file name to the document library. Ex I already have a filename "example.txt" in a document library. Now ...
9
votes
2answers
2k views

What is the difference between properties.OpenWeb() and properties.Web?

I am developing an event receiver, using the ItemUpdating event, and I noticed that the properties parameter has an "OpenWeb" method, with this description: Retrieves the Web site that is ...
0
votes
3answers
349 views

How to: Create an Event Handler Feature

I was testing the code provided in below MSDN Link: http://msdn.microsoft.com/en-us/library/ms453149.aspx But I got compile time error as "Error1Error occurred in deployment step 'Retract Solution': ...
1
vote
3answers
2k views

Add item to list anonymously (not as anonymous user)?

I have a requirement that authenticated users should be able to anonymously add items to a list, i.e. they are authenticated but the Created By/Modified By field should not display their name. I could ...
2
votes
2answers
951 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
687 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
3k 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
217 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
630 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
340 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 ...