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

2
votes
0answers
36 views

Sandbox ItemAdded Event Receiver on “Document Library”

I have a Document library whose only content type allowed is my own custom "Document Set" Content Type. My custom Document Set content type creates a number of sub-folders and and deploys files as ...
2
votes
0answers
30 views

Is there a way programmatically I can check if the user wants to upload a file as new version?

We have a document library and we added an event receiver to move the files out of the root folder accordingly to our business requirements. I am having issues now because I am trying to check if the ...
2
votes
0answers
49 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 ...
2
votes
0answers
390 views

Event Receiver update document content on ItemUpdating

I am trying to update a document in the item updating event receiver, but I keep getting the error: "The file IOF/This is a.docx has been modified by ....." I have the following code in my SP 2013 ...
2
votes
0answers
246 views

List event receivers not triggered after quick editing/grid editing

I have a custom Sharepoint 2013 list with event receivers attached to it (adding, updating, deleting). However, it looks like the event receivers are not triggered when the user is adding/editing in ...
2
votes
0answers
189 views

custom email event receiver doesn't accept .msg file attachments

Environment is Sharepoint 2010. The issue I'm running into is essentially the one that occurred here: ...
2
votes
0answers
282 views

Start SharePoint 2010 Designer Workflow using Visual Studio Event Receiver

I have created one send email workflow using SPD 2010 for my custom list (like Licnese Management). Now, I need to start that workflow only on specific condition like, If Deactivation Date / Valid ...
2
votes
0answers
122 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 ...
1
vote
0answers
40 views

Event Receiver ItemAdded not firing when uploading file via CopyIntoItems method of Copy.asmx web service

When I manually copy and paste the file into the library, the event receiver ItemAdded runs normally. But when the file is uploaded via web service it does not run. Any ideas? My code: public ...
1
vote
0answers
18 views

Enforcing check in comments with a pre-formatted comment template

I'm looking for a way to force users to enter a comment when checking in a document to a specific library, I'd also like to auto populate the comment window with some content in order to guide users ...
1
vote
0answers
17 views

Prevent Metadata from copying when using “Send To” feature

I have an event receiver to handle items being added to a document library that sets the item's metadata based on various parameters. When in a Document Library I select an item and use "Send To > ...
1
vote
0answers
14 views

Copy file and metadata to library having event handler timing problem

Using SP2010, I have a custom workflow (Visual Studio) that copies an Approved file from library A to library B (within the same site collection). I found that I must do the copy in two steps to ...
1
vote
0answers
39 views

Storing incoming email - access denied error when emails arrive simultaneously

I have created a SPEmailEventReceiver to parse and to process incoming emails. before I try to parse a email I store this email as eml-file in a document library. Everything works fine until two or ...
1
vote
0answers
38 views

UnitTest for SharePoint.EventListener with TaxonomyField

Recently, I tried to write a unit test for my new SharePoint project. The Project contains EventListener which checks a TaxonomyField in a special list, and fill it, if field is empty. Code looks ...
1
vote
0answers
44 views

Can I access the Sharepoint 2013 event model without enabling application sideloading?

Note: originally posted on stackoverflow, just registered here. My goal is to initiate some custom processing external to our Sharepoint 2013 installation when a document is added to a specific ...
1
vote
0answers
73 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 ...
1
vote
0answers
73 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
0answers
61 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
0answers
55 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 ...
1
vote
0answers
100 views

Using the SocialFeedManager object in remote event receiver

I'm trying to create a remote event receiver that will update the social feed of a user when ever he adds an item to a list on SharePoint Online. I've initiated the client context object using the ...
1
vote
0answers
173 views

Content type inheritance and event receiver

I have defined in a VS project a custom content type "Parent". I want to let the user create (from the ui) child content type of this content type, while benefiting some shared behavior (auto filling ...
1
vote
0answers
253 views

There was no endpoint listening - AppEventReceiver

I'm developing provider-hosted SharePoint 2013 App with Windows Azure as a backend. I created an app event receiver to fire when app is installed. When i publish my Web App (.NET MVC4) to Azure, ...
1
vote
0answers
62 views

Distinguish Event Receiver Firing From Web UI or From Code

Think of some event receiver methods like ItemAdded, ItemDeleted etc. How can I detect in my event receiver code if the item adding/deleting is being triggered from the web UI or from the object ...
1
vote
0answers
509 views

sharepoint 2010 list groups from event receiver to form or dialog box?

How can I get a list of groups in a form or dialog box to select one or more groups, and then assign permissions to the document? Here in this code: using System; using System.Security.Permissions; ...
1
vote
0answers
261 views

Set Record Declaration Settings programmatically

I created a feature receiver whereby on activation will activate and set certain features and its properties. One of that feature is InPlaceRecords. Below is my code in the FeatureActivated method:- ...
1
vote
0answers
157 views

Publishing page is firing ItemUpdated event twice the first time it is edited

I have a custom SharePoint solution that creates an enterprise wiki site based on a word document of a particular format. I have an ItemUpdated event receiver attached to the Pages library for some ...
1
vote
0answers
100 views

How do I prevent Office applications to update one of my SPListItem properties?

I have a document library in SharePoint whith a custom content type. There is one custom field that is set by an item added event receiver each time a new document is uploaded. My problem occurs when ...
1
vote
0answers
853 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 ...
1
vote
0answers
144 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 ...
0
votes
0answers
18 views

add object to farm properties from an event receiver

Can you add an object to farm properties from an event receiver on a list in a root site or a site collection? I have tried but even if im logged in as a farm admin it always errors out with a ...
0
votes
0answers
19 views

Stop NewDocSet.aspx from redirecting on cancelwitherror

Is there a feature/flag/something that can cause newdocset.aspx for a document set to force redirect on itemadding/itemupdating over to an error page with my custom error messages? I'm not trying to ...
0
votes
0answers
43 views

SPD13 Workflow - Only site admin can start it

I've put together a mildly complex workflow that is supposed to be able to be started by the average user making a change to a list item. However, my admin account seems to be the only one that can ...
0
votes
0answers
33 views

Update Parent Document Set

I have an item in a document set, when the item metadata is edited I need some of the metadata to be copied to the Document Set (Parent) metadata. I’m using an event receiver to capture the change and ...
0
votes
0answers
52 views

“Feature has conflicting event reciever settings” error

I am new to SharePoint so I apologize if this is not phrased properly, but I created a BDC to a SQL database in Visual Studio 2012. I am trying to have the list created programmatically through an ...
0
votes
0answers
21 views

Sharepoint 2010 Workflow Document Approval

I have workflow created in SharePoint 2010 designer. Workflow is attached to list which is called bid list. In that site there is also a document library related to bid list(lookup of bid title in ...
0
votes
0answers
17 views

Duplicate alerts

When I first built a 2010 document-housing site and tested alert functionality on it I found that when you set multiple daily alerts (one in the morning, noon and evening) on a document and a change ...
0
votes
0answers
13 views

Perform an Update from the webfrontend by Eventreceiver

i have an Eventreceiver. Now I change some data from other list items with this receiver. I display the items with a gantt view, butw when I update the elements, only the single edited item is ...
0
votes
0answers
17 views

Call of “DocumentSet ” class causes Exception (untrusted call)

I've attached an event receiver to a list, the listener gets fired when a new item is added. I have to create new document sets, but when I try to create an new instance of the DocumentSet class, the ...
0
votes
0answers
42 views

Event Receiver to intercept event modify with drag and drop

I've created my custom Event Receiver that works well and works on ItemAdding and ItemUpdating. But if an user try to modify a calendar event using drag 'n drop, I'm not able to intercept that ...
0
votes
0answers
112 views

Document Library Event Receiver ItemAdded does not fire uploaded file metadata properties

I want to break security inheritance for document library item in order to read file of their own and to provide access to only their manager. I chose event handler option to break the inheritance ...
0
votes
0answers
13 views

Issue installing an Event Receiver Sharepoint 2007

I've generated a event receiver with WSPBuilder and used the addsolution and installsolution on stadm successfully. The solution is showed up on Site Features, I activated and didn't work. So, I used ...
0
votes
0answers
47 views

Event Receiver issue with updating Splistitem fields only when i save as a document from Office Word?

I have a problem with updating Splistitem fields only when i save as via Office Word a document to Sharepoint in my Event receiver. it's works when i add the document from Sharepoint. here is my ...
0
votes
0answers
67 views

Cant get items from external list

I have an External list based on an External Content Type that is connected to Dynamics CRM. In an event receiver (C#), I successfully get an SPList instance that is able to print the 'Title' and ...
0
votes
0answers
16 views

Reassign an OOB WF Task via Code

We have a legacy WF that is running on SP 2010 system and I am attempting to add some new features to it without completely migrating it to a VS WF. I cannot seem to figure out how to reassign the ...
0
votes
0answers
47 views

Event Reciever Object Disposal Issues

I am getting this error after adding a document to a library that has a custom event receiver associated with it: An SPRequest object was not disposed before the end of this thread. To avoid ...
0
votes
0answers
92 views

Event Receiver causing error on subsite

I have a document library on a site called "Guidelines" on all the subsites are document libraries also called "Guidelines" and on their subsites are more libraries called "Guidelines". All these ...
0
votes
0answers
81 views

Lock error when updating new document in ItemAdded

I'm trying to update an item when it is added to a document library. I have an EventReceiver on my document library and I am using the ItemAdded event. I am using the New Document button to create a ...
0
votes
0answers
127 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> ...
0
votes
0answers
21 views

Accès refusé lors de la création d"une collection de site

I am trying to create a site collection in ItemUpdated according to my Event Handler. SPSecurity.RunWithElevatedPrivileges ( delegate () { using (SPSite oSPSite = new SPSite ...
0
votes
0answers
45 views

What are the events that are fired when a user updates a task on Project Server?

If for example I want to add an event handler when a new project is created on Project Server I create a class that is derived from ProjectEventReceiver class and I override the OnCreated method. But ...