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
8 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
42 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
13 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
18 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
13 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
29 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
41 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
54 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
32 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
14 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
35 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
30 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
12 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
20 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
22 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
28 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
26 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
28 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
41 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
15 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
55 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
30 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
votes
0answers
8 views

I need to do an event receiver for sharepoint inactive/active employees

I need build a drop down event that for active employee. To make all documents inactive for an employee when he/she becomes inactive.
1
vote
0answers
38 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
36 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
31 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
36 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
33 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
108 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
84 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
32 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
24 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
128 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
42 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
18 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
31 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 ...
1
vote
0answers
10 views

Content Type event reciever inheritance

I have a number of content types with Document as a base. Each of these content types has their own unique behavior and therefore each one has an event receiver. This works perfectly fine except for ...
0
votes
0answers
45 views

How to register a webhook, for REST document library events (java web mvc)

How to register a webhook, so that i can get the REST document library events delivered to my server (provider-hosted) app
0
votes
3answers
102 views

How to disable list event firing from SharePoint 2013 workflow?

I have a list with an ItemUpdating event receiver that blocks all item updates. I have a workflow where I want to update an item in this list. Is there any way to disable the event receiver from the ...
0
votes
1answer
60 views

Event Receivers for Calling Web service

I am having SharePoint 2010 with 1 Application Server and 1 Front End Web Server I want to call a Web Service to send SMS (SOAP 1.2) whenever an item is added to a Custom List. I tested a Event ...
1
vote
1answer
27 views

Item Field returning value with hash character in Itemupdate

I am trying to get value of item field from the list. The field is a lookup field with integer value. When I am trying get the value it is coming like 9;#9 (shown below). But I need only 9. ...
-1
votes
1answer
67 views

event receiver not firing event after multiple documents uploaded into document library in item updated event

I have an event receiver.On item updated event i am firing email.condition is like this: I have an document library with two Yes/No columns(i.e Notification & IsActive).If both these conditions ...
1
vote
0answers
23 views

Datetime AfterProperties value changed on save

I have written an EventRechiver that results in some strange behavior. I reacths to an Item beeing added to a list. This is done by both users trough UI and by a timer job. The ER sets some custom ...