Event Receivers are triggered by certain events on either a SPWeb, SPList or SPListItem.
1
vote
1answer
508 views
Change name in ItemAdding event receiver or create a new Item
I have several custom folder types such as Year Folder or Quarter Folder. When the user creates a folder of this type he enters the name and selects an item from a dropdown (year etc.). 90% of the ...
1
vote
1answer
70 views
Event Handler before the item add screen pops up for updating choice list
I have a list person with items and one of those items is of the type "choice".
For example:
Name (text), City (text), Favorite Artists(choice list).
Well I want to bind the title values of every ...
1
vote
2answers
650 views
Add Event Receiver on two custom lists?
So I have a question:
I have an event receiver, that should be hired for a specific list.
So I changed the ListUrl property on the elements.xml of the event receiver.
But now I need the same event ...
6
votes
1answer
199 views
Is Calling base.ItemUpdating(properties); necessary?
In an event receiver, is it necessary to call base.ItemAdding(properties);, base.ItemUpdating(properties);, etc. at the beginning of your event handler?
I've seen people arguing that it isn't ...
1
vote
1answer
266 views
Recurring Events in SharePoint 2010 - Incorrect “Duration”
Background:
The company I work for has a regular SharePoint list with a custom ContentType (that does not inherit from a calendar list item) that it uses for Events. It then shows these using a ...
0
votes
1answer
105 views
Why Item Updated and Item Added trigger together when we add a item to list (document library)
I have gone through hundred of articles over months but never understood as what could be the reason Item Updated and Item Added trigger together when we upload a item, even though if you try ...
1
vote
1answer
121 views
Remote Event Receivers Troubles
So I've been working with the remote event receivers for Sharepoint 2013. I'm working with having them connect to a local IIS server to accept the inbound events as the Visual Studio tools make it ...
0
votes
0answers
134 views
In MOSS 2007, what does event ID 6644 means?
In SharePoint 2010, 6644 refers to error related to Event Receiver. In MOSS 2007, is this the same? MSDN doesn't specified what type of error this event id refers to.
In the event log, I got the ...
0
votes
1answer
118 views
Move files to a folder using event receiver
Hi I have an Infopath form Library and i want to add the forms that are being submitted to a folder in the same library according to the information
I need to do this using an event receiver.
Can ...
0
votes
1answer
26 views
A Complex Permission Structure and A Question
Suppose that i have two lists
OFFICES [COLUMNS: OFFICE NAME (Text), OFFICE MANAGER (User), AND OTHER OFFICE DETAILS ETC...]
EMPLOYEES [COLUMNS: EMPLOYEE NAME(Text), EMPLOYEE OFFICE (Lookup), AND ...
0
votes
0answers
121 views
There was no endpoint listening - AppEventReceiver
I'm developing provider-hosted SharePoint 2013 App with Windows Azure as a backend. I created an app event receiver to fire when app is installed. When i publish my Web App (.NET MVC4) to Azure, ...
1
vote
1answer
105 views
Possible to attach an event receiver to the list of user alerts?
There's seemingly loads of ways of overriding the OOTB e-mail notifications for creation and deletion of user alerts - can't you just attach an event receiver to the alerts 'list' (is it an SPList?) ...
0
votes
2answers
166 views
Setting Taxonomy value during itemadding
How can i set an taxonomyfield during an itemAdding event?
i've got a TaxonomyFieldValue created from my propertybag.
public override void ItemAdding(SPItemEventProperties properties)
{
//Get ...
2
votes
2answers
393 views
SPListItem.SystemUpdate(false) is still triggering alerts
Environment: SP2010 Enterprise, VS2012, c#, full server access
Simple question...
I'm using a console app to create sub-folders in a document library based on user input, then calling ...
1
vote
1answer
192 views
Event manager error after upgrading my WSP via Update-SPSolution
So I just deployed this .wsp to production and I've identified a tiny bit of logic that needs tweaking in an event receiver. I'm considering compiling a new .wsp package, and then running an ...
1
vote
1answer
204 views
Choice field event handler
I have a drop-down choice field in a custom list
I'd like to add an event handler that fires when a value is selected from the drop down.
I'd originally attached to the itemupdating event but ...
1
vote
0answers
44 views
Distinguish Event Receiver Firing From Web UI or From Code
Think of some event receiver methods like ItemAdded, ItemDeleted etc.
How can I detect in my event receiver code if the item adding/deleting is being triggered from the web UI or from the object ...
1
vote
1answer
78 views
How do I get the current Editor of an Listitem while ItemUpdating?
How can I get the current Editor of an list Item in SharePoint 2010 during ItemUpdating?
Problem is properties.AfterProperties["Editor"].ToString() throws and Exception cause it's null. This ...
1
vote
2answers
122 views
Recycle bin - documents deleted
I have recycle on my site collection. There is also and event receiver which deletes some documents from library in ElevatedPrivileges block ( as System account). OnItemDeleting it's searching for ...
1
vote
1answer
314 views
Event Receiver on SharePoint-hosted Apps
Is it possible to create event receiver or workflow on SharePoint-hosted apps in SharePoint 2013? I have not much knowledge about SharePoint apps. If yes then how to create it...
Can we use Remote ...
0
votes
0answers
39 views
Choice field editable from CQWP
I have a list which includes a choice field that has values displayed in a drop down. I have added an event handler to the list item so that when a value is selected from the drop down an alert is ...
3
votes
1answer
48 views
Document in library: newly created from template OR uploaded?
Can I programmatically detect if a document in a library is uploaded or created with the "new document" button?
When a user uses the "new document" button, my ItemUpdated event receiver doesnt fire, ...
0
votes
1answer
191 views
Detected use of SPRequest for previously closed SPWeb object
I've got an event receiver that fails, seemingly inconsistently. I've checked the ULS logs and I can see the 90hv Detected use of SPRequest for previously closed SPWeb object. Please close SPWeb ...
1
vote
1answer
56 views
Adding EventRecevier in SandBox Sharepoint2010
This is Sample of my Code
SPList list = new SPSite(siteURL).OpenWeb().Lists[listName];
SPEventReceiverDefinitionCollection eventReceivers = list.EventReceivers;
SPEventReceiverDefinition ...
4
votes
2answers
246 views
Instantiating SPListItems in Event Receivers - Best Practices
In the MSDN article Best Practices with Event Receivers it is clearly stated:
Do not instantiate an SPWeb, SPSite, SPList, or SPListItem object within an event receiver.
The article goes on to ...
0
votes
2answers
66 views
Can we find out in Event Receiver group Users like in a CS file
In CS file I used this code and it's worked:
SPWeb site = SPContext.Current.Web;
int managerGroup = site.Groups["Właściciele witryny Main"].ID;
if ...
1
vote
1answer
87 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
28 views
InfoPath Services - form changed event
We are using InfoPath services in our project. Sometimes there is need to change form schema, and it's done via InfoPath Designer. Form is also published from InfoPath Designer to SharePoint. When ...
0
votes
1answer
1k views
Feature activation error: System.InvalidOperationException: Operation is not valid due to the current state of the object
i have taken one List Email event receiver(Type is EmailReceived) and that event receiver attach with document library. when i am activate that feature got error.
i have check on ULS Viewer. error ...
2
votes
1answer
292 views
How to update SPListItem in ItemFileMoved?
I have a document library. In ItemUpdated I move the file to a different location (based on date) and I want to add some metadata in ItemFileMoved to the file's new columns (which I added). The ...
0
votes
0answers
35 views
InfoPath sending a Values from Event Receiver to the InfoPath
I want to send a Values from Event Receiver of Vebpart to the Infopath form. How could I send Values and data from Event Receiver of Items Adding to the Infopath form which are on the site in this ...
1
vote
1answer
89 views
InfoPath, and Calling a instation of Template InfoPath from Event Receiver
I want to call a form of InfoPath from Event Receiver. How Could I set a field infopath a Values, from Event Receivers to sets a Values on infopath fields which could I Validate and show or hide a ...
0
votes
1answer
39 views
Connecting infopath with the data from the list
When I creating a infopath conected with list in creator from Microsoft InfoPath Designer the bookmark which called developer is hinding, and I can't editing or writing any of code. How could I ...
0
votes
1answer
67 views
How Could I edit InfoPath in Visual Studio
If I add infoPath from Infopath Designer its blocked me all the Modal Dialog fired from Event Receiver. I want to edit InfoPath form to don't block My Sharepoint Modal Dialog. Now no one dialog boxed ...
0
votes
1answer
232 views
Sharepoint modal popup don't shown when the Infopath form are on the site
I tried to add Infopath form on my project, but when I add the Infopath form some of PopUp which are corelated with Infopath and shows errors od data didn't shown What should I do to shown A Modal ...
0
votes
0answers
159 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
2answers
232 views
Event Receiver redirect to Visual web part
Here is my Event Receiver to redirected to my visual web part:
public override void ItemAdding(SPItemEventProperties properties)
{
base.ItemAdding(properties);
properties.Cancel ...
1
vote
0answers
70 views
Email not received in Document Library when Event receiver Added [closed]
Email not received in document library when Email event receiver is added to this library..
2
votes
1answer
414 views
Event Receivers not added when installing wsp
I have a set of event receivers for a SharePoint 2010 content type and Library. Previously, these would install and automatically be activated when I ran a script to install the wsp solution. I dug ...
5
votes
1answer
139 views
How can I tell if a document is 'being published'?
I need to use the relevant event receiver to tell if a document is being published, is this possible? I will settle for has 'just been published' - i.e. I have no preference between itemupdating and ...
1
vote
1answer
123 views
Deleting SPListItem in event receiver - very long time
I have an event reciever with ItemDeleting action, in which i try to delete an item from another list (I cant realy use cascade delet behavior here, I need to do some stuff that requires the ...
0
votes
1answer
51 views
Adding EventReceiver to Dynamic List
I am trying to add a Event Receiver to a list that is dynamically created (by code).
So i cannot add a event receiver on the list directly.
I found a way to attach a Event Receiver to the list by ...
0
votes
0answers
35 views
How to compare previous and next value of multiline textbox in event receiver?
I have attached event receiver on update to my list.
I'm not changing value of multiline textbox...
so it is same before and after update...
when i comparing previous value(before updation) and next ...
1
vote
0answers
437 views
sharepoint 2010 list groups from event receiver to form or dialog box?
How can I get a list of groups in a form or dialog box to select one or more groups, and then assign permissions to the document?
Here in this code:
using System;
using System.Security.Permissions;
...
0
votes
1answer
36 views
Userfeedback after file was uploaded to library
I need to print out a feedback after a file was uploaded to a DocLib. I tried several things over the event receiver (add statusbar as a control or a clientscript) but everything faild.
I´m a bit ...
2
votes
2answers
588 views
Using the ItemAdding EventReceiver to update multiple fields based on values from one field
I have a custom SharePoint 2010 SPfield of type SPFieldMultiColumn. The data in this column is stored in a delimited string, which is parsed and rendered in a readable format in most areas (list view, ...
0
votes
0answers
103 views
Set Record Declaration Settings programmatically
I created a feature receiver whereby on activation will activate and set certain features and its properties. One of that feature is InPlaceRecords. Below is my code in the FeatureActivated method:-
...
1
vote
1answer
33 views
An event to be fired on editing a file
As title says, I need an event to fire when a listitems file has been edited.
I appreciate this isn't as simple as it having it's own event, which is why I've tried to make use of the itemupdating ...
1
vote
2answers
117 views
Can the ItemAdding event be used in a Sandbox?
Can the ItemAdding event be used in a Sandbox?
I need to perform a task when a Item is a added/adding, it has to be synchronous (item added is async so i cant use that).
If i cant use the ...
1
vote
2answers
368 views
Best way of getting SPWeb in Event Receiver [Best Practices]
what would be the best way of getting SPWeb and List in context below, specially when list title can be different for different cultural websites,
private bool ...



