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
17 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
26 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
1answer
55 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
26 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
27 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
27 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
58 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
18 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
47 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
21 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
23 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
45 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
47 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
59 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
34 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
15 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
36 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
39 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
24 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
33 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
47 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
17 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
78 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
36 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
51 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
40 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
32 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
49 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
39 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
40 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 ...
1
vote
1answer
134 views

Do event receivers fire when list items are added or updated using REST or CSOM

I want to know if an event reciever fires when a list item is added or updated using REST or CSOM. Can anyone help me with this and give me a correct direction and an example so that I can get my ...
0
votes
0answers
15 views

Update list B when an update occurs in list A using event receiver

I have a Last A as Master list and List B as Slave List. Slave list is kind of back up list for List A. Whenever we add item to List A, the same item is added to List B, I achieved this action by ...
0
votes
2answers
93 views

How can I call a custom JavaScript function after a form has validated?

I have a form for submitting events to our calendar. What I want is to call a function once the form has validated. Something like this: User edits item User clicks save button Form validates ...
0
votes
1answer
33 views

How to determine if event receiver runs in Workflow 2013 context

I've got an event receiver handling ItemUpdating; now, I'd like to know if the update was triggered from a SharePoint 2013 workflow (setting the workflow status for example) or directly by a user ...
0
votes
1answer
28 views

Manage Multiple ItemUpdating Event Receivers On List

I have a requirement to multiple Event Receivers targeting Custom List (100) that fire on the ItemUpdating method. For one of the Event Receivers the requirement is to check that there are no related ...
0
votes
2answers
130 views

Remove attachment from SPEmailMessage

I've written an Event Receiver (SPEmailEventReceiver) which is used to populate metadata based on the email message contents. The Event Receiver saves the Attachments in the same Document Library as ...
0
votes
0answers
6 views

Check If An Set of Related Child Item Status Is Open On Update Of Another Parent Item

In SharePoint 2010 I have two lists with a parent-child relationship. Both list's items have a status column. There is a foreign key ID field on the child from the parent. When the parent item is ...
1
vote
2answers
43 views

Not getting latest (Major) version SPFile in ItemUpdated

I have a Document Library with versioning enabled. After someone has approved a document, the word document gets converted to a pdf with Muhimbi and gets copied to the intranet (other site ...
0
votes
0answers
16 views

SPEmailEventReceiver - Date Sent

I'm developing an event receiver for a SharePoint 2010 that will fire when an email arrives in a document library. The event receiver extracts the header data from the email and populate it in the ...
1
vote
0answers
20 views

Document Set in event receiver

I've a document library with a content type that inherit from "Document Set". I'd like to know how can i retrieve the metas when i upload or delete a file. (itemupdated and itemdeleting). The ...
2
votes
0answers
32 views

Set permission on ListItem level. Issue with usernames with Norwegian letters

I have created an EventReceiver that is setting permissions on ListItem level. I am having some problems with users having norwegian letters (æøå) in their username. For other users it works. Under ...