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
19 views

Default download dialog box not appearing on click of a document link in a document library?

I am using the code given in this link to watermark my documents. Here the author has used IHttpHandler to watermark document whenever a user clicks on a pdf document. Whenever I click on a document ...
0
votes
1answer
20 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
1answer
28 views

Weird behaviour of event recievers

When I try to implement itemadded or itemadding event receiver and put this watermarking code below base.ItemAdding(properties) then the event are not getting triggered. As soon as I remove this ...
0
votes
0answers
28 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
2answers
20 views

Is it possible to call JS file in Event Receiver?

Is it possible to call JavaScript file in any of the events in event receiver in SharePoint 2013.
0
votes
1answer
18 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
1answer
19 views

Event handler triggered multiple times in close succession on doc lib causing issues

I'm using an ItemUpdating event with a Document Library to run a Task generation procedure. After stepping through, it's causing issues when I check out the document which I'm forced to do after ...
0
votes
1answer
26 views

Search List B for matching object property in List A Event Receiver

Need help understanding how Event Receivers work while referencing multiple lists. I have a document library, called 'Emails'. On an Email object, I have a lookup field called 'Candidate'. I have ...
0
votes
2answers
842 views

SharePoint 2013 Before and After Properties ALWAYS null

I'm unable to get properties.AfterProperties and properties.BeforeProperties. public override void ItemUpdating(SPItemEventProperties properties) { Validate(properties); ...
1
vote
1answer
16 views

ItemAdded not firing with REST

I have an ItemAdded on a list which creates a Document Library for each item added, and updates some fields of the item. It fires perfectly when items are entered manually. It doesn't fire when ...
0
votes
1answer
20 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
2answers
23 views

Fields not filled with DefaultValues

As of a previous question, whenever an item is added in a list, I create a document library based on a template, and set defaultvalues for some of its fields. In Sharepoint Manager I see defaultvalues ...
1
vote
1answer
37 views

Setting custom field default value within ItemAdded event

my aim is to use a Sharepoint 2013 Foundation this way: define a template Document Library, ProjectTemplate define a list of projects, with a "category" column an itemAdded event receiver on the ...
1
vote
1answer
65 views

Event Receiver AfterProperties not setting when item adding in code

I have an event receiver that sets a value of a field using properties.AfterProperties within ItemAdding. This works fine when adding a folder (with a custom content type) within the browser (the ...
0
votes
1answer
23 views

Get Members Group for discussion list

I am trying to develop custom alerts for a SharePoint Discussion List(in Community sub-site), I want to mail these alerts only to people in Members group of the Community (only those who have Joined ...
0
votes
1answer
33 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 ...
0
votes
2answers
33 views

Update boolean field in ItemAdding receiver

I want to update a SP boolean column on an ItemAdding event receiver. I want to set the "Hide physical URLs from search" column (PublishingIsFurlPage) to Yes. My code look like this : public ...
0
votes
2answers
35 views

Redirect at the end of event itemupdated

I'd like to know if there are a way to make a redirection in an event receiver of a list itemUpdated and not updating. I need this because in my event, i create a file in a folder and of a document ...
2
votes
1answer
486 views

SharePoint event receiver ItemUpdating event behaves differently when a list item is updated through Workflow

I am having a SharePoint custom list which is having a designer workflow and event receiver attached to it. In the event receiver on ItemUpdating event I am having the below code to check if a ...
3
votes
1answer
540 views

ApplyWebConfigModifications caching issue

Doing some testing of adding multiple configuration settings during a feature activation. One of my trials caused an error with a setting, specifically around preCondition statement for ...
0
votes
0answers
28 views

Set welcome page when site created

I have a custom site definition. When site created I have an event receiver it will activate related features. After features have been activated I set my welcome page. public override void ...
0
votes
1answer
60 views

How to display event receiver error inline not in error page

I have a problem with displaying error messages inline, but sharepoint displays that ugly yellow page. Yes the error message is correct, it's the one I defined but I need to display errors like the ...
0
votes
1answer
615 views

WebProvisioned Event Receiver Firing Twice

I am creating sites and subsites with object model from a console app. And what i realized is, it fires twice for every newly created subsite. I checked from Sharepoint Manager if the event receiver ...
1
vote
2answers
360 views

Remote event receiver on sharepoint 2013 online does not work

I recently started to develop Sharepoint 2013 on my office 365 account. The problem is that remote event receivers which I attach to deploying application do not work. I mean that they should listen ...
0
votes
0answers
28 views

Change masterpage of a sub-site automatically, for multiple site collections

I am working in an environment which has more than 1000 site collections. My requirement is that when I create a new subsite in any of the site collection, it should automatically inherit masterpage ...
0
votes
1answer
733 views

Event Receiver on Publishing Page Library

I created a new event receiver and hooked it onto the Pages library for my publishing site. I attached each one of the events exposed, but I cannot get any of them to fire. elements xml: ...
1
vote
1answer
523 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
20 views

On library ItemUpdating the Name column's AfterProperty is null

I have an EventReceiver for one of my document libraries which compares some specific columns and their Before and After properties in the ItemUpdating event. When I try to compare the Name column ...
2
votes
1answer
437 views

SPListItem.Update() not firing ItemUpdating

I'm updating item in SPListItemCollection using SPListItem.Upadte() but my event receiver is not receiving ItemUpdating/ItemUpdated events (breakpoints are not hit on either handlers). Sample code ...
0
votes
1answer
48 views

How to rename an SPFolder

In an event receiver, in itemcreated and not creating, i need to rename the spfolder created. I've tried with meta FileLeafRef, it works bu url are not updated. SPFolder.item["FileLeafRef"] = "new ...
0
votes
1answer
403 views

Can't use SPItemEventProperties ListItem on ItemAdded in Event Receiver

I'm using event receivers to modify some of the inputs in a SharePoint 2013 site. They are fairly straight forward, here is a simple example public override void ItemAdded(SPItemEventProperties ...
1
vote
1answer
22 views

Use of properties.InvalidateListItem()

I am not getting relevant resources which would explain the use of properties.InvalidateListItem(). Even MSDN has no definition for it. Can someone throw light on it
0
votes
0answers
26 views

Workflow “Pause Until Date” and Event Receiver

Currently I am using SP2013 and I have met with this problem : I have a workflow created by using SPD. All it does is waits until a specific date and then ends. I also have an ItemAdded Event ...
0
votes
1answer
17 views

Setting Masterpage and Theme in the same Web iteration

I have an interesting issue within a Branding Feature. I'm iterating through all Webs and setting the Theme and the MasterPage. Setting the master page works by itself: foreach(SPWeb web in ...
0
votes
1answer
37 views

Can't make remote requests from Sharepoint 2013 event receiver

I have an event receiver in SharePoint and this needs to communicate with Dynamics CRM 2013. It basically checks that user owns the record and if it doesn't creates a task for the record owner. The ...
0
votes
1answer
54 views

Copy list data from one location to another in the same site collection SharePoint 2013 Online

I have a custom list for 'Products' in my top site collection, and I have two sub sites where I need to display the same information. I have copied the Products list as a list template into b oth sub ...
0
votes
1answer
49 views

Get user login name by email address even if the user is still not ensured

Is there a way to get the user name or the SPUser object by passing the mail address for a user, which is not already known by the site? I know I can get the SPUser by using ...
2
votes
2answers
60 views

Access denied while creating content database from event receiver

I have created one timer job which will add SharePoint content database. When I am running timer job manually from central admin, Content database is being created successfully. Now I have one list ...
1
vote
1answer
35 views

How to compare a SharePoint list and a c# list

I have a SharePoint calender list which contains columns like orderID, orderdesc etc. The data into calender list is updated from a CSV file in item added and item updated event. I am facing an ...
3
votes
2answers
5k views

Event Receiver, Before and After properties

In an event receiver, Item Was Updated. I want to Compare the Moderation status on ListItems to perform some functionality.This is just some of the code. SPList list = web.Lists["DocLib"]; SPListItem ...
0
votes
0answers
17 views

Event Receiver- Email sending

I have a requirement from my customer. i.e, user send an email to sharepoint document library and the data in that email should populate the respective SPLibrary columns as well as a list. Note: ...
4
votes
1answer
243 views

ItemUpdating method for an item event reciever is called three times

I've created an asset library for holding pictures and I've created an event reciever for the ItemUpdating event. When the item is updated, the method is called three times. I've noticed that two of ...
0
votes
1answer
38 views

Better Way To Find A String In A SubString In SharePoint EventReceiver

I am trying to create an EventReceiver that works for more than one Content Type. When new Content Types are added in future I need the EventReceiver to still keep working. My content types will ...
0
votes
1answer
42 views

Calendar - How can I expand the recurrences of a recurring item in ItemAdding event receiver?

When a user add a new recurrence event to a calendar I want to check if any of the recurrences overlap with events already in the calendar. I saw the property Recurrences Data and its XML but I didn't ...
0
votes
0answers
15 views

The 'ListTemplateId' attribute is invalid - The value '100' is invalid according to its datatype

The XML for my EventReceiver is as follows: <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <Receivers ListTemplateId="100"> ...
1
vote
1answer
21 views

How to create an multipurpose event receiver

I want to create an event receiver that I'll attach it to content types across 4 site collections. The content type is being made programmatically, so no XML definition. Also, I want to create an ...
0
votes
0answers
26 views

Calendar - How to know if an item being added is recurring

I have an event receiver in a calendar list in SharePoint 2013 where I'm trying to avoid bookings to overlap each other. So far I managed to avoid: a simple item overlapping another a simple item ...
1
vote
1answer
36 views

Get string value of AfterProperties Look up Field

I'm having trouble getting the value of a look up field after a list item is submitted. The XML for the look up field looks like this: <Elements ...
0
votes
1answer
49 views

Update list item with itemadded event receivers sp2013

I have an itemadded event receivers for a List, my ItemAdded function here: public override void ItemAdded(SPItemEventProperties properties) { base.ItemAdded(properties); ...
1
vote
2answers
28 views

Change permissions on Document Library

We want to create document libaries from previously stored templates or from new. When a library is created in a site it inherits the permissions. Is it possible to break inheritance when library is ...