Skip to main content

Questions tagged [event-receivers]

Event Receivers are a piece of managed code that responds to SharePoint events when specific triggering actions occur on a SharePoint object.

Filter by
Sorted by
Tagged with
0 votes
2 answers
1k 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 ...
RHM's user avatar
  • 543
3 votes
2 answers
547 views

Detect SystemUpdate() in an event receiver

Is it possible to detect whether SystemUpdate() or Update() has been invoked in an event receiver?
Strid's user avatar
  • 33
0 votes
1 answer
1k 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 ...
IanCian's user avatar
  • 256
1 vote
2 answers
3k 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 ...
Dr.Denis McCracleJizz's user avatar
0 votes
1 answer
350 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..
SandeshR's user avatar
  • 1,992
1 vote
4 answers
1k 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 ...
Agamand The True's user avatar
0 votes
1 answer
382 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 ...
DrZ's user avatar
  • 171
2 votes
1 answer
469 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 ...
Ruben Herman's user avatar
  • 2,744
2 votes
1 answer
1k 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, ...
Janne Louw's user avatar
1 vote
1 answer
267 views

Sharepoint 2010 event reciever item adding

is it possible to retrieve the "Modified" date column in item adding event reciever?
SandeshR's user avatar
  • 1,992
11 votes
1 answer
4k 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 ...
danbord's user avatar
  • 309
2 votes
4 answers
3k 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?
SandeshR's user avatar
  • 1,992
2 votes
2 answers
368 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 ...
SandeshR's user avatar
  • 1,992
1 vote
1 answer
948 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 ...
Josh's user avatar
  • 11
1 vote
3 answers
5k 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 : ...
SaguiItay's user avatar
  • 111
0 votes
3 answers
431 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 ...
Bismarck's user avatar
  • 1,021
1 vote
1 answer
868 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 ...
SandeshR's user avatar
  • 1,992
0 votes
5 answers
4k 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 ...
SandeshR's user avatar
  • 1,992
3 votes
1 answer
770 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 ...
Dennis G's user avatar
  • 4,775
2 votes
1 answer
2k 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 ...
SandeshR's user avatar
  • 1,992
1 vote
1 answer
113 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 ...
SandeshR's user avatar
  • 1,992
2 votes
4 answers
6k 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 ...
SandeshR's user avatar
  • 1,992
1 vote
0 answers
1k 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 ...
SandeshR's user avatar
  • 1,992
1 vote
3 answers
3k 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) {...
SandeshR's user avatar
  • 1,992
0 votes
2 answers
306 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)
SandeshR's user avatar
  • 1,992
3 votes
6 answers
2k views

Logged in user name in SharePoint 2010

I am trying to retrieve the display name('firstname lastname') of a user who logs in the SharePoint site. When I log into my SharePoint site I could see at the top right --'domain/user name'. So when ...
SandeshR's user avatar
  • 1,992
3 votes
2 answers
5k views

Event Reciever run with elevated previledges

I created one event receiver and deployed it, but only users who are site collection admins are able to view this web part. I have included the SPSecurity.RunWithElevatedPrivileges but the same thing. ...
SandeshR's user avatar
  • 1,992
3 votes
2 answers
1k views

Event Reciever on specific list in SharePoint 2010 working in dev environment but not in production

I have created an event receiver (on item adding) using VS2010 in SharePoint 2010 targeted to specific custom list which is a globally deployed in the production environment. This event receiver ...
SandeshR's user avatar
  • 1,992
0 votes
2 answers
1k views

Deploying Event Reciever on the production environment

I want to deploy the event receiver created in SharePoint 2010 to the production environment. This is a farm solution, but I have a question regarding the deployment in the production environment. ...
SandeshR's user avatar
  • 1,992
0 votes
1 answer
50 views

Interaction between custom forms and event recievers

How can we interect with custom forms and event recievers? How can we talk to custom fields (asp controls) within the custom form from an event recievers?
Luis Valencia's user avatar
4 votes
1 answer
2k views

How to remove duplicate EventReceiver entries

Lately i had a bug that time-to-time added duplicate event receiver entries in SPEventReceiverDefinitionCollection. So how do i easily enumerate and remove these duplicate entries?
Janis Veinbergs's user avatar
6 votes
1 answer
9k views

How to get a field value of the item in ItemDeleted event handler?

I need to get the value of ListItem field in ItemDeleted event handler. Only value of one numeric field. But properties.ListItem == null. And AfterProperties, BeforeProperties also do not work. Is ...
SDG's user avatar
  • 61
7 votes
2 answers
2k views

Programmatically determine when Approval workflow has completed

I have a list with 2x declarative approval workflows associated with it (the workflows themselves are copies of the OOTB Approval workflow and were built in SharePoint Designer 2010). FYI: The ...
user avatar
0 votes
2 answers
2k views

Getting the value from the dropdownbox Event Reciever sharepoint 2010

I have an event reciever for item adding. I'm using: dropdwnvalue = web.Lists[properties.ListId].Fields["Names"].InternalName; string selectedValue = properties.AfterProperties[dropdwnvalue]....
SandeshR's user avatar
  • 1,992
1 vote
1 answer
1k views

passing parameter values to the event reciver sharepoint 2010

is there any way we can pass parameter value(selected form field value(drop down box) from newform.aspx)to the event receiver(itemadding) from newform.aspx()in sharepoint 2010, so that they can be ...
SandeshR's user avatar
  • 1,992
10 votes
2 answers
3k views

Event Reciever on specific list in sharepoint 2010

I am working on creating event reciever for a custom list in sharepoint 2010 using visual studio..how can this event reciever be targeted to a specific custom list ..in my case its customEmpList?
SandeshR's user avatar
  • 1,992
1 vote
1 answer
266 views

Event Reciever on Item created

I am working on creating a event reciever on a custom list .. my senario: I have a customizes newform.aspx and this form has a field called ticketID as hidden ..in the newform..so when a user creates ...
SandeshR's user avatar
  • 1,992
1 vote
2 answers
1k views

Error while creating event reciever in SharePoint 2010

I am working on creating the event receiver in SharePoint 2010. When I create a new--> project--> event receiver, I choose the sandbox solution and hit ok. I am getting the following error "...
SandeshR's user avatar
  • 1,992
3 votes
1 answer
341 views

Event receiver in SharePoint 2010

I am working on creating an event receiver. Does SharePoint have a stipulation that the event receiver should be a farm solution or a sandbox solution?
SandeshR's user avatar
  • 1,992
2 votes
2 answers
1k views

Sharepoint development without Visual Studio on server machine

Till now I was doing Sharepoint development with Sharepoint server and Visual Studio on same machine. Now there is a Sharepoint 2010 installed on my client machine with no Visual Studio installed. I ...
Mohit's user avatar
  • 810
5 votes
2 answers
339 views

How to add style library event receivers?

how can I add an event receiver to the style library ? (can't find any templateid)
user9289's user avatar
  • 235
11 votes
4 answers
18k views

Creating a Site collection programmatically throws exception <nativehr>0x80070005</nativehr>

I'm migrating a SharePoint customization from MOSS 2007 to SharePoint Server 2010 (Win 2008), which creates the Site Collection programmatically. Problem is I'm unable to create the Site Collection ...
Falak Mahmood's user avatar
7 votes
4 answers
11k views

Race condition in SPListEventReceiver.ListAdded - Save Conflict

I am currently developing an Event Handler for SharePoint 2010 which sets defaults for Document Libraries on creation (content types, version settings etc). I am having a problem with Save Conflicts ...
Daniel Symonds-Lloyd's user avatar

1
14 15 16 17
18