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
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
1answer
755 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
16 views

Event Receiver causing issue for Designer Workflows

Below is my scenario and I need some assistance as to how to create a workaround. I have a site called Framework. The client has an Event Receiver that sets unique Item Level Permissions. How it ...
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 ...
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 ...
1
vote
1answer
677 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 ...
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 ...
1
vote
0answers
266 views

Error occurred in deployment step 'Activate Feature': Could not load file or assembly

I have an ItemAdding event that I am trying to add to a custom content type (inherits from Document). During activation I get the following error: Error occurred in deployment step 'Activate ...
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 ...
1
vote
1answer
628 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
2answers
3k views

ItemAdding event not firing when submitting InfoPath form to form library

I created an event receiver in Visual Studio to handle three events in a form library: ItemAdding, ItemUpdating, and ItemDeleting. ItemUpdating and ItemDeleting work as expected when debugging, but ...
2
votes
0answers
140 views

Site is Provisioned but Content Type List is still empty

I have this feature that I am trying to run in order to configure a site, this feature among other things creates pages based on content types, etc. The problem I am facing is that every time i am ...
0
votes
1answer
413 views

Delete feature using event receiver on a farm feature

There is a farm feature and there is a web-scoped feature. Web feature does stuff on multiple sites. If ever i want to get rid of the feature on all sites, I have a farm feature that has on ...
0
votes
0answers
13 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 ...
3
votes
3answers
345 views

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
2answers
43 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 ...
1
vote
0answers
198 views

Document Set in event receiver

I've a Document Library with a Content Type that inherit from Document Set. I'd like to know how can i retrieve the metas when i upload or delete a file. (ItemUpdated and ItemDeleting). The ...
2
votes
2answers
104 views

Not getting latest (Major) version SPFile in ItemUpdated

I have a Document Library with versioning enabled. After someone has approved a document, the word document gets converted to a pdf with Muhimbi and gets copied to the intranet (other site ...
1
vote
0answers
298 views

Using the SocialFeedManager object in Remote Event Receiver

I'm trying to create a Remote Event Receiver that will update the social feed of a user when ever he adds an item to a list on SharePoint Online. I've initiated the client context object using the ...
1
vote
1answer
134 views

How to post to SharePoint NewsFeed using Remote Event Receiver?

I tried to post to SharePoint NewsFeed via Remote Event Receiver. public void ProcessOneWayEvent(SPRemoteEventProperties properties) { ClientContext context = ...
1
vote
1answer
106 views

Remote event receiver setting LastModifiedBy to “SharePoint Program”

I have a Remote Event Receiver, on a list, that fires every time an item is updated, and it works fine. However the Last modified by-field on the item is set to SharePoint program. I have tried ...
1
vote
3answers
997 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 from sub-sites itself to the root site list. So I am trying to ...
1
vote
1answer
952 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 ...
1
vote
1answer
854 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 = ...
1
vote
5answers
42 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
644 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
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
2answers
23 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 ...
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 ...
0
votes
1answer
42 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
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
1answer
45 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
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 ...
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
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 ...
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 ...
4
votes
4answers
8k 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
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
49 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
59 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
65 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
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
21 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
172 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
613 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
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 ...
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 ...