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

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
11 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
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) { ...
-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 ...
-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
22 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
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
41 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
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
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
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
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
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
61 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 ...
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
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 ...
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
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 ...
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 ...
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
85 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
38 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 ...
0
votes
1answer
16 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 ...
1
vote
0answers
20 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 ...
0
votes
0answers
14 views

Rendering Template apply only on second deploy

SP2013. I have a custom rendering template for a Content Type in CONTROLTEMPLATES folder. Problem is that when I deploy solution by VS on a development machine this template doesn't show up on a form. ...
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
1answer
59 views

HttpContext in EventReceiver constructor is null

I'm trying to use SPUtility.Redirect in ItemAdding EventReceiver. And I'm trying to get HttpContext.Current in Event Receiver constructor, but it's null public class MyClass : SPItemEventReceiver ...
0
votes
0answers
37 views

Task list event handler not firing

I have created a project with two event receivers, one pointing to a custom list (id 100) and one pointing to a task list (id 107). The custom list handler runs perfectly but the task list doesn't ...
0
votes
2answers
24 views

Understanding ItemAdding event

I am trying to understand as to when this ItemAdding event fires. Does it fire when user has clicked "new document" button to upload a document library? Or Does it fire when user uploads document ...
0
votes
2answers
65 views

Event receiver CancelWithError

I need to show an error message during in the ItemAdding event from a SP2013 event receiver. I used this code in case of error: properties.Status = SPEventReceiverStatus.CancelWithError; ...
0
votes
2answers
100 views

ItemUpdated not changing field values

I have a document library that should replace the Name column with the value from an Employee column. Code: public override void ItemUpdated(SPItemEventProperties properties) { ...
0
votes
1answer
14 views

How to automatically change the permissions of a document when is published?

I have a document library with document versions enable on a SharePoint 2013 site. In the library each document have its own independent permissions. Usually the permissions are 2 owners and 3 or more ...
-1
votes
1answer
50 views

Check if user changed list item permission in event receiver?

I need log changed permission action using an event receiver, how do I do that?
1
vote
1answer
35 views

How to define the ID for an EventReceiver in elements.xml?

I'm developing a custom SPWebEventReceiver for SP2013 the declarative way using the following elements.xml file: <?xml version="1.0" encoding="utf-8"?> <Elements ...
2
votes
1answer
135 views

Office 365 use Visual Studio for Event Receiver or Timer Job

I'm using Office 365 small and want to know if I can use Visual Studio for Event Receiver or Timer Job?
0
votes
1answer
151 views

How to create SPQuery by filtering date interval

I have a custom aspx form where I retrieve list items by filtering two values EventDate and EndDate. I have a realization but it returns nothing: DateTime eventDate = ...
2
votes
1answer
48 views

Sandbox Solution filling up Resource Quota (SharePoint 2013)

So, I created a very simple Event Receiver that triggers on the ItemUpdating Event for Document Libraries. All it does is get the original file modified date and changes the SharePoint file modified ...
1
vote
1answer
27 views

EventReceiver is working on local site where code is written.But when I deploy its wsp on another site it is not working?

I have written Event Receiver for a list on my local site on its item added event in that event receiver it creates subsite under a top level site. And updates a url in the list. This functionality is ...
1
vote
0answers
27 views

Event Receiver Update List

I have a list (A) which contains these fields: Software, Quantity, Used, and Available. Fields Used and Available are hidden fields. Then I have another list (B) which contains a lookup field ...
1
vote
1answer
25 views

Updating + SystemUpdate()

I need to execute the SystemUpdate(true) in the event "UPDATING" to get the new item version field value. How can I do that without receive the message of conflict? public override void ...
1
vote
1answer
38 views

Event Receiver isn't being registered

I am trying to add an ItemAdded event receiver in a FeatureActivated event receiver (because it's a site scoped feature and apparently that means SharePoint will ignore anything I tell it and apply it ...
0
votes
0answers
18 views

How to open created item when completed workflow?

I have two list: Order and OrderDetailA, and OrderDetailB; and two manually start workflow which is used to copy item from Order to OrderDetailA or copy to OrderDetailB. When I created new item in ...
0
votes
0answers
28 views

sharepoint alert filter not working on first alert only then filtering is ok

have a strange behaviour with alerts on my sharepoint site. I have a document library where i want to add alerts to specific users when adding,updating,deleting folders or documents. Alerts must not ...