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

1
vote
5answers
35 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 ...
-1
votes
1answer
610 views

ItemUpdated Event Receiver how to change element from one list to secound list

I have got two lists. I must do synchronize this list, but one have got only 3 columns, and secound list have got 3 columns too, but have got more columns with hidden value. I done synchronizing ...
0
votes
1answer
751 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 ...
0
votes
0answers
12 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
2answers
20 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
1answer
2k views

Item Adding / Item Added Event Receiver for Document Library, Change Content Type

I have an issue regarding Content Types,I want to set a particular Content Type for each document set within a library, however SharePoint 2013 defaults to the library's default CT. The issue is ...
1
vote
1answer
24 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
6 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 ...
0
votes
1answer
36 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
17 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 ...
1
vote
1answer
667 views

SPListItem.Update() not firing ItemUpdating

I'm updating item in SPListItemCollection using SPListItem.Upadte() but my event receiver is not receiving ItemUpdating/ItemUpdated events (breakpoints are not hit on either handlers). Sample code ...
1
vote
1answer
620 views

SharePoint event receiver ItemUpdating event behaves differently when a list item is updated through Workflow

I am having a SharePoint custom list which is having a designer workflow and event receiver attached to it. In the event receiver on ItemUpdating event I am having the below code to check if a ...
0
votes
1answer
41 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 ...
1
vote
0answers
26 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 ...
3
votes
2answers
3k 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
7 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
1answer
1k views

Event Receiver on Publishing Page Library

I created a new event receiver and hooked it onto the Pages library for my publishing site. I attached each one of the events exposed, but I cannot get any of them to fire. elements xml: ...
0
votes
0answers
24 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
1answer
806 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 = ...
4
votes
4answers
7k views

Get list of event receivers registered for a list created from a list definition

I created a list definition created from visual studio. I also have an event receiver specified along with the listtemplate feature. The idea was to have event receiver registered for all lists ...
1
vote
2answers
35 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 ...
1
vote
1answer
935 views

Task List ItemAdded Receiver doesn't work for workflow created tasks

Why doesn't the ItemAdded Receiver get called when a task was created by a workflow, but when a user created a task it does? I tried setting the Receivers ListUrl to my list URL and tried using the ...
0
votes
0answers
36 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
0answers
42 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 ...
0
votes
2answers
62 views

How to get the current logged in user in the Modified By column in ItemAdded EventReceiver

public override void ItemAdded(SPItemEventProperties properties) { try { base.ItemAdded(properties); EventFiringEnabled = false; SPListItem ...
0
votes
1answer
24 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
17 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 ...
3
votes
3answers
159 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 ...
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
594 views

Save Conflict error While Saving

I have one sharepoint 2010 application, in which i have to add the item to the list followed by 2 more updates within the same list item. These are the items that I have to do while saving. I need ...
0
votes
1answer
54 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
36 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 ...
1
vote
4answers
1k views

iTextSharp and SharePoint

I have a requirement to save incoming email details in pdf format when a document library received an email. So in the EmailReceived event receiver I created the code to retrieve all the email details ...
3
votes
2answers
3k 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 ...
0
votes
1answer
25 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 ...
0
votes
0answers
19 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
24 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
36 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
133 views

Item added in Document Library

I am trying to update a document library column when adding a document. When I press "Take the published document, but create a draft to work on" after this time I want to update a column in my ...
2
votes
2answers
44 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
218 views

Use one event receiver on two lists in different site collections

This is my scenario: I have one Web application with 2 site collections. Then I have 2 lists ('list1' and 'list2' are in different site collections). The two lists however are identical (with the ...
0
votes
1answer
16 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
85 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
17 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
32 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
38 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
58 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
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 ...