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
0answers
7 views

Unable to access a list while website provision in SP2013

In WebProvisioned event receiver i was able to set the web.EnableMinimalDownload = false But I am not able to access the list PList AssetLibraryList = web.Lists["SiteAssets"]; Is it feasible ...
0
votes
1answer
27 views

Assign permissions to folder in document library from person lookup - SharePoint 2010

Let me first preface by saying that I am new to programming with the SharePoint Object Model... I have a requirement where after a list item is created, which indicates 2 individuals in a person ...
0
votes
1answer
29 views

SharePoint document library event receiver and WebPart showing items from document library

Preface: I am trying to develop a wWebPart for displaying items from a document library and let users modify each items metadata. When user updates any documents metadata it will raise an event ...
0
votes
0answers
12 views

Rename attachment of InfoPath through Event Receiver for Office365

I am having a Document Library named TestForm in my Office365 site.I have created InfoPath Form for that library that contains FileAttachment control. Now my requirement is to rename the attachment ...
1
vote
5answers
41 views

Break the permission and assign new ones in itemadding event

I am trying to break the inheritance of the current item and assign the new ones . I tried it using ItemAdded and it worked but the problem was it was taking time to assign the new permissions to the ...
0
votes
0answers
15 views

Error : WebProvisioned method in Sandbox solution

I want the Url and Title of newly created site in WebProvisioned(SPWebEventProperties properties) method in sandboxed solution. But I am getting an error Object Reference is not set to an ...
1
vote
1answer
26 views

Redirect search from My site to Intranet

We are using SP 2013 on-prem. We have an Intranet and a MySite. When searching from MySite, I want the search to redirect to the search center at Intranet so the search results can be displayed at a ...
0
votes
1answer
7 views

File Path of Old Version of DLL Error Message

I am working on an Event Receiver and recently after doing a deployment to the farm. My Event Receiver just starts outputting a message to my log list that is the file path of the old version of my ...
1
vote
2answers
21 views

Event Receiver SharePoint list- Is there something like properties.AfterProperties to use for text coulmns?

I tried using properties.AfterProperties in event receiver that I am using for sending updates in SharePoint list to specific e-mail addresses. So far I found that it's working well with yes/no ...
0
votes
0answers
21 views

Event Receiver attached to a blog post list is not fired

I've created an event receiver for a blog post. Unfortunately it's not fired. What I've noticed is: ItemAdded is not executed ItemAdded is executed for a custom list but not for my post list. My ...
0
votes
0answers
10 views

Security exception when trying to use JavaScriptSerializer

I am trying to use the JavaScriptSerializer class in an event receiver which is part of a sandbox solution. When trying to use the class, I get a System.MethodAccessException with the following ...
1
vote
0answers
28 views

EventFiringEnabled will it affect all list and all webapplications?

We are using Event-receivers in SharePoint 2013. Whenever we are updating an item in a list event-receiver, the receiver will be triggered again and again. To avoid this we are using ...
0
votes
1answer
44 views

Console application triggering event receiver

I have console application collecting data from SQL and either creates or updates the item in a SP list. I have added an event receiver to that list, this triggers if an item has been updated and ...
0
votes
0answers
25 views

Office 365 call site event Receiver but did not work event Receiver

Office 365 Solutions upload then site event Receiver call & Feature activated, did not work Event Receiver.. Below Code And Error Image Code For Site EventReceiver public class ...
1
vote
2answers
36 views

SPWeb.Exists returns true for web don't exists

Below snippet returns true for invalid web URL: using (SPSite site = new SPSite(url)) { using (SPWeb web = site.OpenWeb()) { return web.Exists; } } Web was created and deleted ...
0
votes
0answers
48 views

Event receiver to update attachments in SharePoint calendar list

I'm using event receiver to create/update/delete calendar event from a custom list (this is because of our business process). If I create new item with attachments (from custom list), a new calendar ...
0
votes
1answer
40 views

How to get inline attachments in SPEmailMessage

I tried to build an EmailEventReceiver in SharePoint2013 onpremise to handle Mails to a custom list. It works like expected. But in the UAT I found out, that there could be mailmessages which contain ...
0
votes
0answers
20 views

Loading and running the event receiver class X from assembly Y failed. Could not load file or assembly '3rdParty.dll' or one of its dependencies.

I am trying deploy an event receiver that references a 3rd party dll. I have tried manually deploy the dll to GAC and include it in the Package of the solution to no avail. I keep getting the error ...
0
votes
1answer
28 views

make Event Reciever to complete execution faster in sharepoint list ItemAdded event

In my sharepoint 2013 list , I have an event reciever . This reciever on ItemAdded event breaks the inheritance and grant the permission according to our requirement to the users on that site. So when ...
0
votes
0answers
54 views

Unable to update/access the field ItemAdded EventReceiver

am using itemadded event receiver to updatea field when end user uplaods a document in the document library. i have associated content types as well with the doc.lib.Now when i am trying to access ...
1
vote
1answer
22 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); } ...
0
votes
1answer
74 views

Process DateTime field value in SharePoint List Edit form

I am working on a Item Update event receiver in a SharePoint document library. One of the fields in this library is a Date and Time (Date only format) field. When a user selects a date and clicks on ...
2
votes
1answer
38 views

Breaking Item Item level permission under SPSecurity.RunWithElevatedPrivileges

In my event receiver, I am trying to break item permission. Following is my code. SPSecurity.RunWithElevatedPrivileges(delegate() { if (properties.List.Title == "Validation Draft") { if ...
0
votes
1answer
26 views

Should I use CSOM in event receivers?

As far as I have worked with them, event receivers come with a properties object through which you could directly get the SPWeb and SPList objects. However, if I used CSOM instead and implemented my ...
3
votes
3answers
170 views

When to use Server side event receivers Versus using Remote event receivers?

I read a long article about two types of event receivers inside SharePoint server 2013:- Server side event receivers (available inside SP 2013 & SP 2010) Remote event receivers(available inside ...
0
votes
0answers
24 views

Inline error messages with DataFormWebPart

We are using custom new, edit and display forms to have controll over the layout of the fields and need to do a few checks of user inputs on the new and edit form. To check inputs we use event ...
0
votes
1answer
26 views

CreateLabel throws “insufficient permissions” error but CreateTerm does not

I have an event receiver attached to a list in SharePoint 2010. It is a solution built in C# in Visual Studio 2012. By adding items to the list from the browser, the user can add new Managed Metadata ...
0
votes
2answers
40 views

RWEP in Event Receiver Item Added

Any idea why the follow code is not working in item added? Error: <nativehr>0x80070005</nativehr><nativestack></nativestack>Access denied. The code: SPSite site = new ...
0
votes
1answer
17 views

Event on: Create Document Library

After the creation of a Document Library I need to execute some things, like: add a Content Type add a Workflow to the library may be other stuff These things should be executed automatically. I ...
0
votes
2answers
95 views

ItemUpdated event not firing on Document Library

I am programmatically trying to update an item in Document library. And I have an Event Receiver on Document library on ItemUpdated event. But somehow it is not firing. Below is my code: using ...
0
votes
1answer
28 views

Event Handler - Unauthorised access error

So, on my ItemAdded receiver, I am looking to update a list item field. Now, if the user adding the item to the list, has sufficient permissions/privileges, this all runs smoothly. If not, the code ...
0
votes
0answers
20 views

Event Receiver not firing because of content of “Mulitple lines of text” field

I have a list item for which my Item-Updated Event Receiver won't fire. It has one multi-line-text column, which contains a text with following properties: type: Enhanced rich text (Rich text ...
1
vote
1answer
40 views

Unable to get user field value on AfterProperties EventReceiver

I am not able to get user field on AfterProperties in EventReceiver. I am using ItemUpdating event as I want to compare old value and new value. But I am getting error while fetching user field using ...
2
votes
1answer
41 views

SharePoint 2013 - Set regional settings for subsite - Web Event Receiver

We are trying to set Regional Settings for new subsite in WebProvisioned event. Scenario is, we have two Variations site created, one for English and second for Arabic. We need to set Regional ...
1
vote
0answers
18 views

Event Receiver deploying to multiple form libreries

I have three infopath form libreries: lib-2015, lib-2015,lib-2016. I inherited an event receiver that has been deployed to 2014, 2015 library, now I am trying to deploy it to 2016 library. Changing ...
1
vote
2answers
68 views

Approval with Event Receiver

Is it possible to do an approval with event receiver? I tried to do this with sharepoint designer but when I put a lot of file (more than 200) on approbation, my workflow crash randomly. So I want to ...
0
votes
0answers
18 views

Why alert Events trigger twice

I have a custom Alert dll that send custom email messages. But everytime the alert event triggers, it does twice and send two Mail message. Another strange problem is that, often the runtime jump some ...
2
votes
2answers
47 views

Error with site collection daily resource usage quota

Recently I've added an event receiver to a sandbox feature, but since I added it, whenever I try to deploy the feature, I always get the message Error occurred in deployment step 'Add Solution': ...
1
vote
1answer
29 views

Custom Alert does not trigger

Has anyone successfully implemented IAlertUpdateHandler on SP 2010? When I try to add a new alert on a document Library following this tutorial, everithing seems to be fine. But when I try to insert ...
0
votes
1answer
17 views

SPOnline: Sandox event receiver inconsistent behavior

I have following 3 components: Provider hosted App having full control on web and using App only permissions (App) List-A: This custom list has a sandbox event receiver on item creation. App creates ...
0
votes
1answer
17 views

List Subcription EventHandler

I'm trying to built a custom code that should run on Subscription event. As we know, When people Subscribe to a Sp List, you receive a Mail Message on your Box. I Should intercept that Event. I've ...
0
votes
0answers
22 views

incoming emails are stuck in the drop folder

I created one incoming email event receiver in SharePoint 2013 to send the emails to a list. It works fine in the development server but in the testing server it doesn't. The emails are stuck at the ...
1
vote
1answer
38 views

Location for an Event Receiver on Visual Studio solution

I have a feature that deploys a site in a folder in the root of the parent site. When we want to uninstall this feature, the only way to remove the files it deploys is by programmaticaly remove them ...
4
votes
0answers
62 views

Workflow doesn't fire when new item is created through Event receiver

When new item is added through event receiver in a list, I have OOTB workflow on item created on that list. But unfortunately it doesn't works. Any help would be appreciated. Thanks
1
vote
1answer
21 views

Append several columns to another SharePoint list using event receiver

I am working on two SharePoint list:List 1 is overview of servers including: Server Name, Purpose, status etc.. List 2 is change log on each server, it got an lookup column that connects to Server ...
2
votes
1answer
49 views

How to disable renaming a Document Library item using “Open with Explorer”

As you can see here, rename event of list item via Windows Explorer is handler by ItemFileMoved event. So, I was trying to prevent this edit by the usual way of preventing ItemUpdating: ...
2
votes
0answers
64 views

Content Type Event Receiver in SharePoint 2013 Content Type Hub / Subscriber scenario

I have a SharePoint 2013 site with Multi Tenancy configured. I have a Managed Metadata Service also configured in Partitioned Mode since it is a multi tenant environment. I have a Visual Studio ...
0
votes
2answers
46 views

List item validation in OnItemUpdating: Save conflict

I'm developing an application with Sharepoint 2010. I've got a custom list. Every item of the list has, among others, the following fields: StartDate EndDate Status (enum with values like "In ...
1
vote
0answers
63 views

Event receiver on item with drag and drop

I'm writing an event receiver on a document library. My issue is event itemupdating ou itemupdated are not fire when i drag and drop a document. if i log my event it only passes in itemadding and ...
1
vote
1answer
156 views

SharePoint Event Receiver does not fire after deployment

I have created a simple SharePoint 2013 solution and added event receiver. When I am in visual studio, i hit F5, solution is deployed and event receiver works. However, when I publish the solution ...