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
1answer
25 views

Content type eventhandlers gets bound to list

I have a custom parent content-type on which I apply 6 event-handlers. I then have 24 content-types based off of the parent content-type - thus inheriting the 6 event-handlers. - All defined in XML I ...
0
votes
1answer
34 views

Event receiver Causes Problem while adding items to a list

I have created Visual Web Part which adds items to a X list.But while adding item to it, I am getting the following error once Item.update() hits in Visual studio . is it because of Event Receiver ...
1
vote
1answer
28 views

under which account does event receiver code run?

I would like to know under which account does event receiver code run? Also suppose event receiver is ran on item added event that creates an item in another list. Then what will be the created by ...
0
votes
1answer
25 views

Task List ItemAdded Receiver doesn't work for workflow created tasks

Why doesn't the ItemAdded Receiver get called when a task was created by a workflow, but when a user created a task it does? I tried setting the Receivers ListUrl to my list URL and tried using the ...
0
votes
1answer
31 views

Eventreceiver when item added through Office

I have a weird problem. I created a content type in Visual Studio 2012 for SharePoint 2013 with some metadata fields, a document template (word) and deployed it to the content type hub. The content ...
1
vote
1answer
16 views

Remote event receiver setting LastModifiedBy to “SharePoint Program”

I have a remote event receiver, on a list, that fires every time an item is updated, and it works fine. However the "Last modified by"-field on the item is set to "SharePoint program". I have tried ...
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 ...
2
votes
1answer
45 views

Does the ItemCheckedIn event fire when item is updated?

I can't find any documentation on exactly when the ItemCheckedIn fires. I know it does when a user explicitly checkes it in, but I thought it would also fire when an item was added, or updated, since ...
0
votes
1answer
33 views

How to deploy ItemAdded event receiver to the entire farm? [duplicate]

I have created an ItemAdded event receiver that is supposed to process new documents/files after they've been added to any document library in the farm - i.e., I'd like the event receiver to ...
0
votes
1answer
31 views

Security trim list-items based on a session variable

I have created a session variable. And have created a site column that sets a flag that corresponds to that session variable. I would like to hide/show list items across any list utilizing this site ...
2
votes
1answer
35 views

Handling itemupdated calling itemupdating

I have a custom list (not document library) that i have attached 2 event receivers to. These are itemupdating and itemupdated. My itemupdating event receiver sets a value in a field and my ...
0
votes
4answers
53 views

Deploy event receiver without associating with any list

I have an event receiver I developed with Visual Studio that I want to deploy. But in this case I want to deploy it without associating it with any list. (I add the event receiver to a specific list ...
2
votes
1answer
50 views

How can I tell in a Sharepoint 2010 event receiver if the list item was added in datasheet view or not?

I'm a novice Sharepoint developer, so please forgive what is probably a very simple question. I have an event receiver on a custom list in Sharepoint 2010. I need to be able to display custom error ...
0
votes
2answers
56 views

sp2013: error: Your changes conflict with those made concurrently by another user

I have an sp2013 portal. I have a custom contenttype and a custom list. I have an eventreceiver (ItemUpdating) which is updating a column in the current listitem. Sometimes I get this error. I think I ...
1
vote
1answer
16 views

Attaching Remote Event Receiver to Content Type

Looking through the SharePoint Client API I see no property which allows the attachmentment of a content type. I was hoping to attach a remote event receiver to a custom content type on the ...
0
votes
1answer
44 views

Unable to get user field value in event receiver's afterproperties

I have a document library in which there is one field approver (multi - value). There is an event receiver for item updating of the document library that I want to validate user while changing the ...
0
votes
2answers
46 views

Insert data in a List without fireing the event receiver

I have this Situation: I've made a list and added an event receiver to it. This event receiver changes some fields and adds new data(automatically filled date etc.). The Problem: The client wants ...
0
votes
2answers
29 views

Concurrency and SharePoint - Sequence Number Generation

I have a dev question related to concurrency. Here's the problem: I need to generate a sequential reference number for each document uploaded to a specific document library. The numbers basicaly look ...
0
votes
1answer
46 views

Coding best practice display name vs internal name in itemUpdated event receiver

In an itemupdated event receiver, when referring to list fields, is it better to use the field's internal name, or its display name? Is there a clear guideline or best practice, or is this 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 ...
5
votes
1answer
53 views

Does Updated event always fire after Added event?

I have an interesting question about event receivers. I have long running ItemAdded event. But as soon as item is saved, another or the same user can edit it, even before async event finished. The ...
1
vote
2answers
92 views

Is it possible to, using an event receiver, change a filename before it is uploaded?

I was using a workflow to change file names to some text and the SP ID, but this has caused issues because the workflows can often take several minutes to complete. I would like to do this during ...
0
votes
2answers
63 views

Sandbox Event Receiver Not Working on SharePoint Online

I build an SharePoint 2013 Sandbox Event Receiver which works in my local on-prem dev environment. However, when pushing it up to my SharePoint Online tenant it does not work nor even fire at all. I ...
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
1answer
35 views

During ItemAdding of parent list, assign lookup field of a child list

I'm attempting to create a projects/tasks lists. When a user creates "ProjectA", I want to create a list of tasks based on the template that was selected for that project. In general, everything is ...
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 ...
1
vote
1answer
62 views

Call event after document library created

I have kofax export connector which will create document library in run time. I have create my Document set pro-grammatically. I wanted to add my document set to the document library which is created ...
1
vote
1answer
17 views

Fire a workflow on item fetching

Is there a way to fire a workflow or event receiver for every item before its fetched from a list automatically? I need to update columns on every item every time a user enter the list or open a form. ...
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 ...
1
vote
1answer
44 views

SP ProcessBatchData inside the Event Receiver, slow performance issue

I am writing an Event Receiver on a Document Library to create a new list from the uploaded excel file. it runs on ItemAdded() and ItemUpdated() event. Before calling a method to add new Items to ...
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 ...
0
votes
1answer
34 views

Event Receiver with NAPA

Is there any way to create and deploy an event receiver onto a sharepoint site using only the NAPA development tools and an O365 development site? If not, is there any way to create and deploy an ...
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
2answers
92 views

Library event receiver - Object reference not set to an instance of an object

Yesterday I asked, where custom columns can come from. You helped me and told me that maybe it's event receiver. I created new event receiver and I added that try catch part: (Of course I change ...
0
votes
1answer
29 views

Sharepoint online event receiver: No options for the event source item field

I'm trying to create a basic event receiver that will force version comments on check-in of documents. I've opened a blank SP2013 project in VS2013. I clicked project>add new item and selected event ...
1
vote
1answer
27 views

How to create an Excel Document when adding a Library Item?

Hope you can help me with this question: I have a SP Library, where the user should type info into some fields (Text, Publishing HTML, Datetime). So, I'm wondering if it's possible to use that info ...
0
votes
1answer
17 views

Download image from Imagelibrary

I have an event receiver that should download images from an imagelibrary, and do some stuff with that copy. There will be several images with the same customid that i want to grab, so I loop over all ...
0
votes
1answer
47 views

How can I differentiate an user from a workflow while in an ItemUpdating Event

Is there a way to differentiate an user from a workflow while in an ItemUpdating Event? To show the my problem here's the ItemUpdating method: public override void ...
1
vote
2answers
44 views

How to activate features on deployment

I have a package with several features all scoped at the web level. I would like to have all of these features activated once the solution is deployed. I see feature receivers, but don't see an ...
2
votes
1answer
29 views

Can I trigger event receiver when webpart is added?

Is there such an event receiver, that would fire when user adds webpart to a page? If yes, how can I create such receiver?
0
votes
1answer
40 views

Get last item by caml in an ItemAdding event receiver?

I have a custom list in sp2013. On this list I have created in vs a eventreceiver on ItemAdding. In this event receiver I would like to get the last item from the list and get some value of a field ...
1
vote
1answer
63 views

Custom error page not opening as model dialog box

I have created a customErrorPage for event receiver on ItemDeleting public override void ItemDeleting(SPItemEventProperties properties) { base.ItemDeleting(properties); properties.Cancel = ...
1
vote
1answer
44 views

Add Content Type to existing List when associating Workflow

Using Visual Studio I have created a package for SharePoint 2010 that deploys a Workflow that creates Tasks of a custom Content Type Id. When I first deployed it, I noticed that Tasks were being ...
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 ...
0
votes
0answers
44 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
1answer
32 views

Increase fieldvalue (unique enforced values enabled) in a ItemAdding eventreceiver

I am using sp 2013 onpremise. I have some custom list with a custom column "VolgNummer". This is a text field. When I add a new item on this list this number needs to increase with 1. I enabled ...
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
18 views

migration sharepoint 2010 to sharepoint 2013 [duplicate]

I'm stuck migrate my application in sharepoint 2010 to sharepoint 2013. Because SPEmailEventReceiver. i'm deploy wsp sharepoint 2010 to sharepoint 2013 success. but i'm testing email eventreceiver ...
2
votes
2answers
96 views

SPEmailEventReceiver in sharepoint 2013

I'm stuck in use of SPEmailEventReceiver in sharepoint 2013. this my code: public class EREmail : SPEmailEventReceiver // this error because namespace can't found { public override void ...
0
votes
1answer
37 views

Event receiver to iterate folder

I want to be able to set all items within a sharepoint folder when someone edit the metadata of any document in the library. The code below partially works but it only sets the item being updated and ...