Event Receivers are triggered by certain events on either a SPWeb, SPList or SPListItem.
0
votes
2answers
139 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
253 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
79 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 ...
3
votes
4answers
7k 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
695 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
570 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
292 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
99 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
60 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
3answers
931 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
899 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
444 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
489 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
1k 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
726 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 ...
8
votes
2answers
761 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
303 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
825 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
513 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
1k 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
442 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
165 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
443 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
259 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
1k 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
912 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
1k 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
2k 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
413 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
260 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
344 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
675 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
502 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?
2
votes
1answer
971 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 = ...
2
votes
1answer
379 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
459 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
2k 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
42 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
402 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
453 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
1answer
3k 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
521 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
225 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
534 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
990 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
220 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
320 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
155 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 ...

