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

1
vote
1answer
222 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
144 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
86 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
25 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
90 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
121 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
36 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
90 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
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
2answers
519 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
63 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
111 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
23 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
77 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
67 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
76 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
266 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
160 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
244 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
22 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
100 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
77 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
61 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
19 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
164 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
63 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 ...
0
votes
1answer
171 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
45 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
31 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
14 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
18 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 ...
1
vote
0answers
49 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 ...
4
votes
1answer
345 views

Farm scope Event Receiver

For some security reasons on one of our farm level solutions, we need to limit some actions using Event Receiver-FileMoving event. However, as known, event receivers can be deployed only by Site or ...
1
vote
1answer
42 views

Update User Profile Property When User First Visits Site

Is there a way to automatically set the value of a User Profile property right when the user first visits a SharePoint site -regardless of what page they load first? I'm kind of looking for the ...
0
votes
3answers
563 views

Getting file name being upoloaded in ItemAdding

How to get the name of the file being uploaded if the listitem is not created yet? public override void ItemAdding(SPItemEventProperties properties) { SPWeb TargetWeb = properties.OpenWeb(); ...
0
votes
1answer
46 views

What would be the best approach for assigning permission for the document in library?

I working on a requirement in which there are contributor list for each document in sharepoint library. The contributor may be unique set of users for each document. I wanted to know what would be the ...
1
vote
2answers
257 views

How to retrieve email address from user ID?

I'm developing an Event Receiver in C# and I would like to retrieve the email address from a user ID. How can I do that? Thanks
2
votes
2answers
373 views

SPQuery - Which fields (ViewFields) are required to Update the list item?

In an SPQuery, which fields are required to update a list item? SPQuery query = new SPQuery(); query.Query = @" <OrderBy> <FieldRef Name='ID' Ascending='true' /> ...
0
votes
0answers
92 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 ...
2
votes
1answer
187 views

Event Receiver on SharePoint 2010 - How to query DB and display an error message

I'm an absolute beginner of SharePoint development. I would like to create my first Event Receiver and I'm doing with VS2010 (because I'm on SP 2010). I would like to check if adding a new event in ...
0
votes
1answer
665 views

Unable to get event receiver to work with Document Library

I have created a Document Library named Attachments Library. In the library I have created an additional mandatory column of File Details. I intened to use this field to capture some metadata about ...
3
votes
1answer
697 views

Unable to find Event Receiver template in Visual Studio 2012

This would probably be right under my nose but I am having a hard time finding it. I am trying to create an event receiver in Visual Studio 2012. From this video in YouTube I gather that in Visual ...
1
vote
1answer
86 views

How to AddItem with certain ContentTypeID using PowerShell

I am using PowerShell to add 100 items which need to be of a specific ContentType. (requirement) Test my custom events receiver using powershell. The test is to create a list with a custom content ...
0
votes
2answers
105 views

SharePoint Recurring event - Delete a single occurrence

I created a event receiver on Item-deleting to send email when a listitems in the calendar is being deleted. However, item-deleting is not triggered when a single occurrence of a recurring event is ...
0
votes
1answer
127 views

Sharepoint 2010 itemadded eventreceiver datetime parseexact fails (sometimes)

I have an event-receiver set up for sharepoint that runs a query against Oracle and then parses the returned date string. The SQL SELECT statement is built like this : TO_CHAR (TRUNC (dateinfo), ...
0
votes
1answer
239 views

How to insert new line in the SharePoint error message?

I have written a code in event receiver which validates the user entered. My code is complete but the message I want to pass comes in the sinle line. I want to display the message in multiple lines. ...
0
votes
0answers
131 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
1answer
37 views

Best approach for a custom workflow

My team will soon be building a workflow for a list in SP2013. The OOB approval workflow provides most of the needed functionality, but we need the approval flow set dynamically based on names ...
0
votes
1answer
241 views

Why ItemUpdating is calling after ItemAdded event in Sharepoint-2010?

I am developing Sharepoint 2010 application where I have been using SPItemEvent to deal with ItemAdded event. One thing surprised me that ItemUpdating event is calling after ItemAdded event in List. ...
1
vote
0answers
41 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 ...