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
13 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
7 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
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 ...
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 ...
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 ...
1
vote
1answer
64 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
2answers
32 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
34 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 ...
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
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
59 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
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 ...
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 ...
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
51 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 ...
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: ...
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
41 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 ...
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 ...
2
votes
1answer
36 views

I want to fire the event whenver i add new document to Shared Doc Library

I have created event receiver, and now i want to add the event whenever the new document is added to shared document library. Which event should i write?(ItemAdded or ItemUpdated) Thanks. ...
0
votes
1answer
48 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); ...
0
votes
0answers
19 views

Change selected value of dropdown with SPItemEventProperties

Whenever i add an item to a document library this event reciever is fired. public override void ItemAdding(SPItemEventProperties properties) { } Inside that method i want to change ...
0
votes
1answer
89 views

Change selected value in combobox through c#

I have an event reciever that fires when ever an item attachment is added. public override void ItemAttachmentAdded(SPItemEventProperties properties) { ...
-1
votes
1answer
37 views

Cannot resolve symbol 'GetFile'

I have just created an event receiver to ensure that my colour palette is activated on my 2013 Web application. The below code is what I have inside public class ...
1
vote
0answers
64 views

Error occurred in deployment step 'Activate Feature': Could not load file or assembly

I have an itemAdding event that I am trying to add to a custom content type (inherits from Document). During activation I get the following error: Error occurred in deployment step 'Activate ...
1
vote
0answers
45 views

Sandbox Solution failing to load

Okay I think I'm missing something when I'm trying to build an Event Receiver. I'm new to this so please excuse my ignorance. But when I try to deploy an Event Receiver I always get a Could not load ...
0
votes
1answer
29 views

EventReciever as SandBox Solution

I am having an Event receiver as sandbox solution to perform certain action on item Added to the list. Basically it is creating a sub-site on item added using custom template. Problem i am facing is ...
0
votes
2answers
36 views

OnDelete Event Receiver delete associated item

I have 2 lists. List A creates a record in List B on the creation of a record in List A. So, I'd like to complete the circle by deleting the the item in List B when the record is deleted in List A. ...
0
votes
1answer
52 views

Redirecting user after uploading a single document

I would like to redirect a user after uploading a document instead of letting them update the document's title. So i want user never be able to see update document title form. How can this done ?
0
votes
1answer
41 views

How can I set the content type during itemadding event

I am trying to set the content type programmatically using an itemadding eventreceiver so that when the user adds a document to a library the content type is pre-selected. I have two content types: ...
0
votes
0answers
44 views

BeforeProperties and AfterProperties to check Folder name changed

What field do I need in an ItemUpdating event receiver to check whether a folder's name was changed? I have tried: var before1 = properties.BeforeProperties["Name"]; var after1 = ...
0
votes
0answers
20 views

Sharepoint event reciever is working in one document library but not in another

I have two document libraries, when I add an item the event receiver item added fires for one document library , but it does not for the other. Event receiver class. public override void ...