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
24 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
3 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
13 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
24 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
20 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) { ...
0
votes
0answers
12 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 ...
2
votes
1answer
521 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 ...
-1
votes
1answer
27 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 ...
0
votes
1answer
589 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 ...
0
votes
1answer
685 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
447 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 ...
2
votes
1answer
410 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 ...
-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
27 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
21 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
1answer
44 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
2answers
26 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
30 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
1answer
374 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
435 views

SP2013 : Generate an autoincrement identifier (YYYYMMDD9999) based on creation date for a document

I need to generate a record id for a document, with format YYYYMMDD9999 where 9999 is a autoincrement number per day. This id must of course be unique, but i have no idea how to be sure to avoid ...
0
votes
0answers
30 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
1answer
1k views

Try to add a user to a multiple user field in the itemUpdating eventreceiver: The field you are trying to update may be read only

I am using Sharepoint 2013. I have created a custom list. This custom list is using a custom contentype. In this custom contenttype I have a custom column. This column is a people picker. It is ...
1
vote
1answer
124 views

Copy File Name to Title Field in Asset Library

I need to put together an Event Receiver on Asset Libraries which copies the File Name of the asset being uploaded to the Title Field of the list. I am currently using the following code. The ...
0
votes
0answers
15 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 ...
0
votes
0answers
19 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
2answers
342 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 ...
1
vote
1answer
466 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 ...
1
vote
1answer
71 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
1answer
54 views

webprovisioned activatedfeature save conflict

I am having an issue when creating a WebProvisioned eventreceiver that activates a feature. However I am getting the "Save conflict - Your changes conflict with those made concurrently by another ...
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
113 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 ...
2
votes
3answers
4k views

event receivers and execution order

I am using some of these such as ItemAdded and ItemUpdated and I had altered the elements file to make this synchronous. I'm just curious as to what the order of execution is for all these handlers. ...
0
votes
2answers
64 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
27 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 ...
1
vote
2answers
37 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 ...
3
votes
1answer
92 views

SharePoint 2013 app uninstalling behaviour

I have been seeing change of behavior on O365 when app is uninstalled. Not sure if anybody experienced the same. Let me explain, App Uninstall behavior before: When app is uninstalled, SharePoint ...
0
votes
1answer
17 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
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 ...
0
votes
1answer
377 views

EventReceivers not firing at all

I wrote some code to do some things before and after an item is added to some lists. The solution is sandboxed. I have checked and confirmed, through PowerShell, that the event receivers are bound to ...
1
vote
0answers
17 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
30 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
29 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
86 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
39 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 ...
2
votes
3answers
110 views

Why is my app's UninstallingEventEndpoint never invoked during app removal?

I have a provider-hosted sharepoint app with an appmanifest.xml that looks something like this: <Properties> <Title>My app title</Title> <StartPage> ...
0
votes
2answers
315 views

ItemAdded Event Receiver on Explorer View Firing Multiple Instances when Moving Item

I have an event receiver which works fine (triggering only once) when I drag and drop a file to a document library. It also works fine using the upload button, it will trigger twice as there are two ...
0
votes
1answer
17 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
53 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 ...