Questions tagged [event-receivers]

Event Receivers are a piece of managed code that responds to SharePoint events when specific triggering actions occur on a SharePoint object.

Filter by
Sorted by
Tagged with
1
vote
0answers
172 views

When to use Event Receivers and when to use Workflow to implement a business scenario

I want to implement a business scenario for our custom list inside sharepoint enterprise server 2013, to manage our project management projects. The business scenario is as follow:- Contributor users ...
0
votes
2answers
647 views

Event Receiver ListUrl, to a list name with a Space in the URL

Event Receiver not firing when the list have a space within the name: <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> ...
0
votes
1answer
253 views

Unable to use LocalCustomProperties[“_Sys_Nav_TargetUrl”] inside my event receiver . Exception “The given key was not present in the dictionary. ”

I am working on an Enterprise wiki site collection inside SharePoint Server 2016. and i wrote the following event receiver which get fired when an item is updated, here is part of my event receiver ...
1
vote
2answers
1k views

Unable to debug SPListEventReceiver

Running VS and SharePoint on the same server, but I am unable to debug my simple Event Receiver to see why it is not firing. Here is the snipp: public class EventReceiver1 : SPListEventReceiver { ...
0
votes
2answers
129 views

If i have an Event Receiver inside my SharePoint 2013 ,, is it suppose to work in sharepoint 2016 as-is

I am created many Event Receivers inside SharePoint server on-premise 2013. using the following technologies: visual studio 2012. the event receivers mainly got executed when list items are updated, ...
1
vote
1answer
1k views

Alternative to using (Event Receivers & Server-side object model) when working with Office 365 sharepoint

I have being working with on-premise sharepoint 2013. and a lot of functionalities i have been doing were implemented inside Event Receivers when item added/updated. Where inside Visual Studio 2012 ...
1
vote
0answers
69 views

Event Receiver Fails (UnauthorzedAccessException) when item updated from using ElevatedPrivileges

I have small console application with this code: SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite site = new SPSite(args[0])) { using (SPWeb web = site.OpenWeb()) ...
0
votes
2answers
103 views

SharePoint Sandbox solution on subsite

I try add sandbox solution to SharePoint 2013 on subsite with event reciver on list, and don't work ;( On Root Web is O.K. event fired and do something what I wont, but when I activate feature on ...
0
votes
1answer
757 views

Handling events for all event receivers fired more than once in code

Within an item-adding event, suppose if we write code that creates new item, then item adding will fire twice. Same is true for item-added, item-updating, item-updated, etc. In such cases how can ...
2
votes
1answer
236 views

Is it possible to develop Event Receivers for sharepoint 2016 using MS Visual Studio Professional 2012

I have installed a new version of visual studio 2012 professional. and inside it i am able to create solutions for sharepoint 2010 only, as follow:- so can anyone adivce what i need to install to be ...
1
vote
0answers
38 views

ItemUpdated event receiver will always get fired inside my enterprise wiki site collection

I added a new ItemUpdated Event Receiver inside my enterprise wiki site collection inside sharepoint server 2013. and i defined the following:- event reciever will get fired when and item was updated....
0
votes
1answer
57 views

Event Handlers Item Added event is not working in sharepoint library 2010

How can I troubleshoot the issue of Item Added event is not firing up. I checked sharepoint logs, but couldn't find any clue there. Any help much appreciated.
0
votes
1answer
70 views

Set SPWorkflowStatus to InProgress in SPWorkflowEventReceiver OnCompleted Event

I created a WorkflowCompleted Event Receiver to perform some operations when status is 16 (Approved). This article helped me with this: Workflow Event Receiver. The custom code executes when ...
0
votes
0answers
47 views

create new page and bind created term with event receiver in SP 2016

I am using this(http://softlanding.ca/blog/Friendly-URLs-for-SharePoint-List-Items) event receiver to create new friendlyurl for each created Item in custom list.It works fine. As you see in blod it ...
2
votes
2answers
5k views

Cancel event while ItemAdding

I am just trying to cancel the default behavior of event when adding Item public override void ItemAdding(SPItemEventProperties properties) { try { //my code ...
1
vote
3answers
6k views

Cannot associate event receiver with a particular document library

I am trying to develop an Event Receiver for a document library titled Temporary. I have modified the Elements.xml document to look like this: <?xml version="1.0" encoding="utf-8"?> <...
1
vote
1answer
86 views

C#: Check if a site and web feature is enabled?

I have created a custom MasterPage and added a feature event receiver to deploy it to my farm to be able to enable it using PowerShell. I have followed this excellent blog post on how to create the ...
1
vote
0answers
80 views

Event Receiver Error Message in Word

I have created an Event Receiver for ensuring users enter comments when checking in a document. It works fine when the user checks in the document in Sharepoint but if the user tries to check in the ...
0
votes
1answer
1k views

base class for event receivers in sharepoint 2010 & 2013

What is the name of Base Class of event receiver in SP 2010 & 2013? Are the Base classes same? How to use those? I have gone through the article on MSDN but not clear the things. Can anyone help ...
2
votes
2answers
7k views

Find out user who deleted an item in SharePoint 2013 Document Library or List

Let's say a user deletes few items from a document library. Is there a way we can find out the user name of the person who deleted those. I looked into alerts which does let one know which item was ...
1
vote
1answer
222 views

RefreshToken is null on ItemAdded, works fine on ItemUpdated

I have an EventReceiver that is subscribed to both the ItemAdded and ItemUpdated event on a SharePoint list. I'm using the TokenHelper provided in the sample files, and have also tried the version ...
1
vote
0answers
148 views

Item Added Event receiver Issue in quick Edit

I have Created item added event receiver which is bind with the custom generic list. Using the values of field in list i am creating new sub site by specific custom template definition. When i am add ...
1
vote
0answers
18 views

Could not load type 'FUP.ER.XMLGeneratorER from assembly FUP.ER

I have created a SharePoint 2007 feature with a List Item event receiver. However, I am getting the following error: Could not load type 'FUP.ER.XMLGeneratorER from assembly FUP.ER - I have added ...
0
votes
0answers
921 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 ...
1
vote
2answers
196 views

Trigger a workflow when an item is added and apply Permissions using ItemEvent receiver simultaneously

Scenario:As per my requirement I need to create a projectrequest form with NEW/Edit/Display. when I click on the add new item ,the new custom input form which is created using the SP DESIGNER 2013 - ...
1
vote
1answer
84 views

Making sure all Updates are finished

I have written a program that writes multiple files into a SharePoint-List using CSOM: foreach (file in myFiles) { UploadFileToSharePoint(file.dataq, context, url+ file.name); } ...
1
vote
0answers
37 views

What is the best approach I can follow to read list items which represent a setting list for our event receivers

I am working on building many event receivers inside my SharePoint 2013 enterprise server. and i created a list to store all the settings and variables that will be used inside the event receivers. ...
1
vote
2answers
284 views

how i can search my Term Store inside my Event Reciever based on the term Label

I am working on an event receiver inside sharepoint server 2013. the event receiver will fire when a user added a new item inside a custom list. Now i am trying to do the following :- 1- get the ...
0
votes
1answer
245 views

Wiki Page name cannot contain special characters when created using UI, but can contain special charterers when created using code

I am facing this strange problem inside my enterprise wiki site collection inside sharepoint enterprise server 2013. now when i try to create a new wiki page using the UI , and i enter some special ...
1
vote
2answers
139 views

Inside my event receiver how i can find a specific wiki page and get its HTML source for my enterprise wiki site collection

I am working on an event receiver inside my Enterprise wiki site collection inside SharePoint 2013. Now inside my event receiver I am trying to do the following:- Find specific wiki page (by title, ...
0
votes
1answer
71 views

How i can get the current PublishingSite & PublishingWeb from SPItemEventProperties inside my Event Recevier

I have an publishing site collection using the enterprise wiki site collection template inside my sharepoint server 2013. And inside the root site of my site collection i added a custom list named "...
0
votes
1answer
27 views

incorrect documentation about the SPItemEventProperties.OpenWeb() method inside visual studio 2012

I have the following event receiver which will get fired when a custom list item is created, and the event receiver is scoped at the site level.:- public override void ItemAdded(...
1
vote
1answer
193 views

Differences between using properties.OpenWeb() and using properties.Web inside my event receiver

I am building an event receiver inside my sharepoint 2013 . the event receiver will fire when an item is updated. here is the related code:- public override void ItemUpdated(SPItemEventProperties ...
4
votes
1answer
544 views

properties.ListItem.Url inside an event receiver is working well for discussion board items, while it fails for custom list (url will end with _.000 )

I am working on an event receiver inside my sharepoint server 2013. now inside the event receiver i use the following html code to build a link to the current item which cause the event receiver to ...
0
votes
2answers
284 views

unable to send emails inside my ItemAdded() Event reciever using c# MailMessage()

I have an event receiver which get fired when a new discussion board item is added. inside the event receiver i am sending email to certain users group, as follow:- public override void ItemAdded(...
0
votes
0answers
100 views

issues in setting item level permissions in itemupdated - modified by -system account - check in enabled

i am using the below code to set permissions for different folders within a document library in my sp 2013 publishing site collection. the issue i am facing, is for a particular folder , say "...
0
votes
1answer
461 views

Can i get the current user whose action caused the ItemUpdated event receiver to fire

I have the following event receiver inside my sharepoint server 2013, the event recevier get fired when an item is updated and i am running it with Elevated Privileges :- public override void ...
1
vote
2answers
2k views

Does my ItemUpdated event receiver execute Synchronous OR Asynchronous if i did not define a <Synchronization> inside the element.xml

I have the following inside my sharepoint 2013 enterprise server:- 1- using Visual Studio professional 2012 i created a new ItemUpdated Event receiver. 2- the event receiver will fire after a list ...
0
votes
2answers
65 views

Creating a New User Group inside my item update Event Reciever

I am working on a SharePoint server 2013, and using the UI i can do the following:- Inside the site collection >>site settings >> site permission >>Create Group >> give it a name >> keep the owner as ...
2
votes
2answers
152 views

Update Column using ItemUpdated(EventReceiver)

I have a list "Table" this list has associated OOTB Approval Workflow. This list also has two columns "Approval 2010" and "Request Status". When an item is added to the list the workflow starts the ...
1
vote
3answers
358 views

site.RootWeb.RoleDefinitions.GetByType(SPRoleType.None) is raising the following error:- “Value does not fall within the expected range.”

i have the following code , where i am trying to create a new user Group inside my RootSite, and do not assign any permission for it (as i am going to use it inside some sub-sites which have unique ...
2
votes
1answer
210 views

Sharepoint event handler refresh page

I have an event handler that updates an list item on checkedin. However the user doesn't see the updated list until you refresh the page. How would I go about fixing this issue? code in c# Code as ...
0
votes
2answers
5k views

Error occurred in deployment step 'Activate Features' while trying to deploy an event receiver?

I cant seem to figure out what the issue is while I try to deploy my event receiver targeted at a particular list on my site. All I am trying to do in the event receiver is to check (on itemUpdating)...
0
votes
1answer
164 views

Setting web.Navigation.UseShared in WebProvisioned()

I'm trying to configure a team site to "Use Links from Parent" in the "Top Link Bar" whenever a site (web) is created, regardless of what the user chooses on the New SharePoint Site page (gonna hide ...
0
votes
1answer
209 views

the best overloaded method match for ScriptManager.RegisterStartupScript has some invalid arguments c#

namespace SXPSetDisposalDate.SetDisposalDate { public class SetDisposalDate : SPItemEventReceiver{ /// <summary> /// An item is being checked in. /// </...
1
vote
1answer
60 views

modify my sub-site Quick Launch link title from “Home” to be equal to the Sub-site title, inside my event receiver

I am working on a sharepoint 2013 enterprise server. and i have the following case:- 1.I created an event receiver which will get fired when an item is updated for the first time. 2.the event ...
0
votes
1answer
405 views

Programmatically change Document Library ListItem Name and metadata at the same time

Goal: Using an event receiver, change the name of a document in a document library during the ItemUpdated event when a user edits a docuement with other meta data fields. I'm using an event receiver ...
5
votes
4answers
6k views

How to add event receivers to all the lists in a site collection?

What is the best practice around adding event receivers across all the lists in a Site Collection?
0
votes
1answer
298 views

How i can check if the (SPItemEventProperties properties) contain a specific ListItem or not

I am building an event receiver inside my sharepoint 2013, which get fired when items are updated and the ListTemplateId="100". as follow:- public override void ItemUpdated(SPItemEventProperties ...
0
votes
1answer
99 views

New version creating new file in SharePoint document library

I have SharePoint Document library in which there is InfoPath form. There is one event receiver which works on Item Added event. Version setting for the library is "Create a major version". When I ...