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
172 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
109 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
66 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
638 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
434 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
231 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
352 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
134 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
14 views

Datetime AfterProperties value changed on save

I have written an EventRechiver that results in some strange behavior. I reacths to an Item beeing added to a list. This is done by both users trough UI and by a timer job. The ER sets some custom ...
1
vote
0answers
24 views

Event Receiver Update List

I have a list (A) which contains these fields: Software, Quantity, Used, and Available. Fields Used and Available are hidden fields. Then I have another list (B) which contains a lookup field ...
1
vote
0answers
57 views

Does changing Item-Level-Permission trigger ItemUpdated/ItemUpdating in Event Receiver?

First of all: I know that setting item-level-permissions are bad :) I just wonder: When I created an Event-Receiver that set per-item-Permissions on the ItemAdding-Event: Will this trigger the ...
1
vote
0answers
94 views

Event receiver not firing when item added by workflow

event receiver not firing when item is added by workflow. Its working perfectly when we manually add item to list. I am using SP Designer 2013. When we add item through workflow, it shows that item is ...
1
vote
0answers
33 views

how to move a file in itemupdating

Like described in the title i'd like moving my file in itemupdating in place of itemupdated. Like this the list is refreshed and file doesn't display anymore. I use this that works and move correctly ...
1
vote
0answers
92 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
40 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
41 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
24 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
52 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
44 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
59 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
212 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> ...
1
vote
0answers
112 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
96 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
85 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
58 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
162 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
273 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
374 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
67 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
546 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
413 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
200 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
104 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
153 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

Strange Datetime behaivour

I have a problem with an Event Rechiver. During ItemAdding() i set some datetime afterproperties. This is triggered in 2 ways. 1: When a user create a new list item. 2: When a scheduled job created ...
0
votes
0answers
5 views

Rendering Template apply only on second deploy

SP2013. I have a custom rendering template for a Content Type in CONTROLTEMPLATES folder. Problem is that when I deploy solution by VS on a development machine this template doesn't show up on a form. ...
0
votes
0answers
22 views

Task list event handler not firing

I have created a project with two event receivers, one pointing to a custom list (id 100) and one pointing to a task list (id 107). The custom list handler runs perfectly but the task list doesn't ...
0
votes
0answers
9 views

How to open created item when completed workflow?

I have two list: Order and OrderDetailA, and OrderDetailB; and two manually start workflow which is used to copy item from Order to OrderDetailA or copy to OrderDetailB. When I created new item in ...
0
votes
0answers
23 views

sharepoint alert filter not working on first alert only then filtering is ok

have a strange behaviour with alerts on my sharepoint site. I have a document library where i want to add alerts to specific users when adding,updating,deleting folders or documents. Alerts must not ...
0
votes
0answers
41 views

Renaming document gives file not found on uploaded documents

Im trying to do a seamingly simple task in SP 2013. when the user either Creates a new doc (Ribbon>Files>New Document) or Uploads a File i want them renamed to for example ...
0
votes
0answers
46 views

Event Receiver and workflow error

I have an event receiver that checks out the document when an item is added, updated or checked in. The items require content approval so I am using a workflow for this. The receiver works when the ...
0
votes
0answers
7 views

Strange ListItemCollection behavior

I made a feature with an ItemAdded eventreceiver. The feature creates two lists and adds a list item to one of the lists. After I activated the feature I looked at the lists and the one list that ...
0
votes
0answers
15 views

List Synchronization in Sharepoint

I'm running Visual Studio 2010 with SP 2010. I was tasked with creating a setting page (within Site Action dropdowns). On that page I will select 2 different lists and allow them to synchronize with ...
0
votes
0answers
39 views

Sharepoint Designer 2013 object reference not set to an instance of an object

I have an event receiver in two list: - List A: ItemAdding, ItemAdded, ItemDeleting, ItemUpdating - List B: ItemAdding, ItemAdded, ItemUpdating In case, the event feature not active, we can edit 2 ...
0
votes
0answers
55 views

List item event receiver firing when list is modified

If I have an event receiver that handles the item added event, it fires whenever the list is modified. While debugging the event we see that it is firing over a non-existim item (properties.ListItem ...
0
votes
0answers
20 views

How to add color to calender in programatically using event receiver?

When ever an item is added into the calender using event receiver 2012. It need to check category column values based on selecting category color should change in sharepoint2013. Example:-If ...
0
votes
0answers
24 views

Before ItemCheckingIn

I am trying to force users to tag their documents so I have created a custom content type with a required managed metadata field (department). I would like to trap the check in even so I can prompt ...
0
votes
0answers
131 views

Event receiver not firing Document Library

I have a local development environment in my VM.(SharePoint server 2013 SP1,Visual Studio Ultimate 2013-update3). I'm trying to add an event receiver to a document library on ItemDeleting. Deleting a ...
0
votes
0answers
13 views

Not able to debug events

I am trying to download file / items when they are uploaded / added by an external application to SharePoint Document library. I am able to debug ItemAdding Event, depending on condition ItemAdded ...
0
votes
0answers
35 views

why file.move fires itemadded event in an event receiver and creates a new file if I click on save button two times?

I have an event receiver where I change the name of the file,it works right but If I click two times the record button (this is used in an infopath form) a new item is created and an itemAdded event ...