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
6 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. ...
0
votes
0answers
18 views

Strange Datetime behaivour

I have a problem with an Event Rechiver. During ItemAdding() i set some datetime afterproperties. This is triggered in 2 ways. 1: When a user create a new list item. 2: When a scheduled job created ...
0
votes
1answer
16 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
13 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
5 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. ...
1
vote
2answers
48 views
+50

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
18 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
21 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
23 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
24 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
63 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
12 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
27 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
24 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
73 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
65 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
34 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
25 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
24 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
20 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
31 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
9 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
23 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 ...
0
votes
1answer
20 views

How do I know whether an Event Handler has already been attached to a SharePoint O365 list?

I have a SharePoint O365 site which has a custom list named ReportMetadata. There is an event receiver for this list for ItemAdded event which will take the image from the attachment column of the ...
0
votes
0answers
40 views

Renaming document gives file not found on uploaded documents

Im trying to do a seamingly simple task in SP 2013. when the user either Creates a new doc (Ribbon>Files>New Document) or Uploads a File i want them renamed to for example ...
1
vote
0answers
55 views

Does changing Item-Level-Permission trigger ItemUpdated/ItemUpdating in Event Receiver?

First of all: I know that setting item-level-permissions are bad :) I just wonder: When I created an Event-Receiver that set per-item-Permissions on the ItemAdding-Event: Will this trigger the ...
0
votes
0answers
44 views

Event Receiver and workflow error

I have an event receiver that checks out the document when an item is added, updated or checked in. The items require content approval so I am using a workflow for this. The receiver works when the ...
1
vote
2answers
77 views

AppInstall remote event is called multiple times

When developing provider hosted apps and testing in SharePoint Online, I've noticed that my AppInstalled remote event is often triggered 4 times when installing the app in site content. Here is an ...
0
votes
0answers
7 views

Strange ListItemCollection behavior

I made a feature with an ItemAdded eventreceiver. The feature creates two lists and adds a list item to one of the lists. After I activated the feature I looked at the lists and the one list that ...
0
votes
0answers
15 views

List Synchronization in Sharepoint

I'm running Visual Studio 2010 with SP 2010. I was tasked with creating a setting page (within Site Action dropdowns). On that page I will select 2 different lists and allow them to synchronize with ...
0
votes
0answers
39 views

Sharepoint Designer 2013 object reference not set to an instance of an object

I have an event receiver in two list: - List A: ItemAdding, ItemAdded, ItemDeleting, ItemUpdating - List B: ItemAdding, ItemAdded, ItemUpdating In case, the event feature not active, we can edit 2 ...
0
votes
0answers
55 views

List item event receiver firing when list is modified

If I have an event receiver that handles the item added event, it fires whenever the list is modified. While debugging the event we see that it is firing over a non-existim item (properties.ListItem ...
0
votes
1answer
37 views

Event receiver on user log in

I'm trying to make a feature to assist with user provisioning. Our users don't exist in our domain until they register, at which point they're sent directly to SharePoint. I'm trying to populate ...
0
votes
1answer
67 views

how to execute PowerShell script inside an event receiver from sharepoint online

I want to execute a powershell script from an event receiver. The event receiver is triggered whenever an new item is added to my custom list in sharepoint online site.
0
votes
0answers
19 views

How to add color to calender in programatically using event receiver?

When ever an item is added into the calender using event receiver 2012. It need to check category column values based on selecting category color should change in sharepoint2013. Example:-If ...
0
votes
2answers
37 views

Event Receiver Timing?

I have an event receiver that listens on three lists. When I save Data in my applications, about 7 elements are changed, so the event receiver has to start 7 times. Inside the ULS-log I can see the ...
0
votes
1answer
56 views

Event Receiver for custom List and Document Library

What is the difference between Event Receivers for custom lists and a document libraries? The Document library Events are firing even when we select a custom list event receiver. What exactly is the ...
0
votes
2answers
47 views

SharePoint Folder name and item count in SharePoint Folder in Event Receiver SharePoint 2013

I have few SharePoint Folders under Document library(not SharePoint List) in SharePoint 2013. When i added document(Event Receiver) in SharePoint folder, i require few values called SharePoint Folder ...
0
votes
2answers
38 views

Event reciever on item updated do not start when item is updated trough a workflow

When an item is updated maually the event reciever starts and work as expected. But when the item is updated through a SharePoint Designer Workflow, nothing happens. There is nothing about this in the ...
0
votes
1answer
98 views

How to get absolute previous url in event receiver?

I have a root site list which I am displaying on several sub-sites using CQWP based on a custom filter and entering the list values frm sub-sites itself to the root site list. So I am trying to ...
0
votes
0answers
24 views

Before ItemCheckingIn

I am trying to force users to tag their documents so I have created a custom content type with a required managed metadata field (department). I would like to trap the check in even so I can prompt ...
1
vote
3answers
100 views

which one is better considering performance, workflow or event receiver?

Using events like ItemAdded, ItemUpdated which one has the good performance on custom list. What can be preferred considering there are large lists?
0
votes
0answers
130 views

Event receiver not firing Document Library

I have a local development environment in my VM.(SharePoint server 2013 SP1,Visual Studio Ultimate 2013-update3). I'm trying to add an event receiver to a document library on ItemDeleting. Deleting a ...
1
vote
1answer
17 views

How to handle DeleteItem in external list

We have an external list bound to data source by the WCF service. It displays a metadata of "tasks", and for every "tasks" we have in another document Library a special folder. When user selects ...
0
votes
0answers
13 views

Not able to debug events

I am trying to download file / items when they are uploaded / added by an external application to SharePoint Document library. I am able to debug ItemAdding Event, depending on condition ItemAdded ...
0
votes
2answers
160 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
0answers
34 views

why file.move fires itemadded event in an event receiver and creates a new file if I click on save button two times?

I have an event receiver where I change the name of the file,it works right but If I click two times the record button (this is used in an infopath form) a new item is created and an itemAdded event ...
2
votes
1answer
110 views

SharePoint Document Library document delete

Please suggest your solution for the following scenario: A user deletes the document from document library and an e-mail has to be triggered to the admin notifying the information about the document ...
0
votes
0answers
36 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
2answers
88 views

item adding event receiver failes to trigger in bulk items inserting

Currently am developing an item adding event in event receiver for a custom list. The list is updated using datasheet view, usually by adding bulk items (ex : 50 items ) to list using datasheet view. ...