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
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 ...
0
votes
1answer
2k 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 ...
0
votes
1answer
141 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 ...
0
votes
1answer
222 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 ...
0
votes
2answers
812 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) ...
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 ...
0
votes
1answer
742 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
638 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. ...
0
votes
1answer
895 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 ...
0
votes
1answer
305 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..
0
votes
1answer
276 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 ...
0
votes
1answer
46 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?
0
votes
0answers
9 views

Document library Item update even receivers are not firing when update item from code but working fine manually updated

I have been pleased with the results that I had setting up an ItemEventReceiver for a document library. The event receiver fires every time I update a doc record by hand (using Item Added event). ...
0
votes
0answers
18 views

Use Event Receiver to Start SPD Workflow when Item is Updated

I've searched all day for guidance about how to create an event receiver that will start a SharePoint Designer workflow when a library item is updated, but haven't been able to find much. I'm very new ...
0
votes
2answers
33 views

javascript event when a row is updated/changed in a Datasheet view?

Is there any way to catch update/changes in the Datasheet view of a list in JavaScript in SharePoint 2010? I see their are event receivers but nothing in Javascript.
0
votes
0answers
22 views

event receiver is not firing in posts list of SP2013 blog site

I have made an event receiver to insert the blog posts into another blog list using ItemAdded Event receiver and ItemAdding event receiver. It's working fine for simple/custom list but not working ...
0
votes
3answers
23 views

Associating Event Receiver with Multiple Lists

How can I add single event receiver to multiple Lists?
0
votes
1answer
26 views

What gets trigged fist List Workflow item added or List Event Receiver ItemAdded.? [duplicate]

Workflow Vs Event Receiver I have a list in a site collection called projects. I have a workflow on Item Added and now currently in the process of creating Event Receiver. I would like to know which ...
0
votes
1answer
103 views

Item Adding / Item Added Event Receiver for Document Library, Change Content Type

I have an issue regarding Content Types,I want to set a particular Content Type for each document set within a library, however SharePoint 2013 defaults to the library's default CT. The issue is ...
0
votes
1answer
15 views

SP 2013: How to reload page in event receiver on ribbon delete?

I have an event receiver associates to a list that it is executed when an item is deleted from list by ribbon. Is there, in sharpeoint 2013, a way to reload the page that contains the list? My list ...
0
votes
1answer
35 views

Event handlers not triggering when attached to custom list (2013 on-premises)

I have a three 2010 event handlers installed on-premises on 2013 foundation that are all part of the same solution (added, updating, updated), none of which are triggering when they are attached to ...
0
votes
0answers
20 views

ItemDeleting event receiver is not triggered for files when folder is deleted

I have item deleting event receiver on document library. I have folders and files in library. When I delete file event is triggered. When i delete folder event is triggered for folder but not for ...
0
votes
0answers
10 views

Event receiver to update enterprise wiki page's Title once its Name is changed

I need to automatically update the wiki page title when its wiki page name get updated , currently i am doing this using workflow as follow:- so i am checking if the Name != Title, and update the ...
0
votes
1answer
85 views

SharePoint 2013 CSOM: How to attach an event receiver to a list

A list has a (C#) event receiver. I would like to attach this (existing) event receiver to another list (actually multiple lists) using the SharePoint client object model (CSOM). Is this possible and ...
0
votes
1answer
24 views

How to set Receiver url to list

how could i set receiver list url? I dont have like this List/myList, i have a drafts url? <?xml version="1.0" encoding="utf-8"?> <Receiver> ...
0
votes
0answers
35 views

Item added in Document Library

I am trying to update a document library column when adding a document. When I press "Take the published document, but create a draft to work on" after this time I want to update a column in my ...
0
votes
1answer
40 views

How to identify that new file is updated?

I have created an event receiver with ItemUpdated properties. I want to update some field if new document is uploaded. But whenever the any field is updated, ItemUpdated is fired. I want to check that ...
0
votes
1answer
19 views

Email enabled list item added

I am currently developing an event receiver for an email enabled list and I'm confused as to how to correctly handle the item being added to the list. On one hand I have the ItemAdded event and on ...
0
votes
0answers
20 views

Find more information about an Event Reciver

I am trying to debug a customized SharePoint 2010 which I did not design/install. It is not doing what it is suppose to when a list item is added. I have installed SharePoint Manager, and found ...
0
votes
1answer
31 views

Event receiver, unpublish

Hi how could i use a event receiver based on a document library, to se if the user has unpublished a dokument in the library, in the mean time also i want to update a field in the document library ...
0
votes
0answers
16 views

Issue in production environment using EventReceiver with HttpRunTime

I am using below code in my EventReceiver using-HttpRunTime.Cache-and this code works in my dev.environment and my test environment.But this code fails in my production environment where i am having ...
0
votes
0answers
23 views

AfterProperties and BeforeProperties of Site Column returns Null in ItemUpdating Event Receiver

I am getting the AfterProperties and BeforeProperties of a people picker column for my document library as NULL within ItemUpdating method. My site column name is Read Access.and in my document ...
0
votes
1answer
42 views

Get the BeforeProperties and AfterProperties in ItemCheckedIn

I am currently trying to develop an event receiver that uses properties.AfterProperties object in updating and ItemUpdated and ItemUpdating event, so can I get the BeforeProperties and AfterProperties ...
0
votes
0answers
12 views

Renaming a file with Event Receiver [duplicate]

I need to rename a file in a document library with an event receiver, so that the URL will not have %20's. Basically the File name or File path needs to be stripped of spaces. The problem I'm having ...
0
votes
0answers
13 views

Event Receiver Infopath

How to reference and update a field in InfoPath using the event receiver in the form library in which the form is submitted to? How do you reference InfoPath document and a get a value(update it) in ...
0
votes
2answers
45 views

What is the best way to CRUD data in SQL database into SharePoint?

In Sharepoint site, I have a list, it will display data from the table in SQL database. When user insert, update or delete item in this list, the SQL database will be changed too. The change is one ...
0
votes
0answers
50 views

Renaming a file with ItemAdded Event Receiver

I am using an Event Receiver to rename a file in a document library. For some reason this doesn't seem to work. public class EventReceiver1 : SPItemEventReceiver { /// <summary> /// An ...
0
votes
1answer
22 views

How to set start Value on Event Receiver

I must set a Value in Items Adding, it should be start Value of element. How could I set a Value. Like Default Value But that will be number User1, User2, User3 To Unical identyfy User. I have got ...
0
votes
1answer
41 views

Event Receiver Infopath Submission

I have a request that the permissions inheritance(library to item) in the InfoPath form library should NOT to be broken. So what I am looking for is that the submitter group that has a read access ...
0
votes
1answer
53 views

Event Receiver and Infopath based coloumns

An event receiver on an InfoPath library works only when updating columns that are not created by propagating values from Infopath(). In code below "change" is a regular lib. column and ...
0
votes
0answers
14 views

event receiver preventing column updates in a content type during bulk upload

I am bulk uploading files to a library. In the bulk upload, i will be able to specify content type of the file and values of all other fields for that content type. When i upload files, the file ...
0
votes
1answer
25 views

Event Receiver Does Not Cancel In Explorer View

I have a document library with a ItemAdding event receiver registered to it that looks for whether a folder has been added and if so, cancels the folder creation. This works fine in the GUI. However, ...
0
votes
0answers
10 views

Using Npgsql within an eventreceiver

within an eventreceiver I need to update a postgresql table. At first I tried to go Quick&dirty by using Npgsql.dll, but the thing fails at creating the NpgsqlConnection with an "unhandled ...
0
votes
0answers
12 views

Event Receiver deployed as a sandbox solution throws exceptions

I have deployed an event receiver as a sandbox solution to production. This is event receiver executes on ItemUpdated event. The code runs well in development server as a sandbox solution but throws ...
0
votes
1answer
34 views

How to get the current logged in user in the Modified By column in ItemAdded EventReceiver

public override void ItemAdded(SPItemEventProperties properties) { try { base.ItemAdded(properties); EventFiringEnabled = false; SPListItem ...
0
votes
1answer
28 views

Can I change the path of file to be uploaded in item adding event reciever?

I want to change the file path that is uploaded by user. What I am doing is user will upload a file and I am doing some changes to that file in itemadding event. So, for that I am creating another ...
0
votes
0answers
74 views

Time zone shift problem for dates in AfterProperties of list item event receiver for events from Outlook

I need to analyze the "EndDate" of events inside SharePoint 2013 standard calendar items from a list item event receiver and cancel some modifications based on time of this date. I have this code for ...
0
votes
1answer
28 views

Document asking to be checked out after checking out

I'm updating a file that contains versioning and previously it stated that the document requires checking out to edit so I run the following code that results with the same error: if ...
0
votes
2answers
51 views

Need privileges to break inheritance

Idea is that inside an ItemAdded event receiver in a sandboxed solution (SharePoint Online) I want to set permissions on the item, which requires privileges that the user should not have on the list. ...
0
votes
1answer
84 views

Moving item on ItemAdded gives Error

IN my event receiver, on Item Added event I have placed my custom method to move document based on a rule. The issue is when a document is uploaded in the Upload dialog I get an error saying item not ...