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
13 views

Sharepoint Item Changed or Event Receiver

I have a requirement where certain actions take place after status change.Status list contains 10 items.Which will be the best and efficient way to implement if loop in SharePoint designer workflow(...
0
votes
0answers
12 views

SP2010 Foundation Error Event ID 6875 !! An item with the same key has already been added

I've been trying to figure out this error that keeps coming up on my SP2010 Foundation server event viewer 6875: Error loading and running event receiver Microsoft.ReportingServices.SharePoint....
1
vote
1answer
639 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
0answers
24 views

How to Create Folder with permission while feature activation?

I have created feature with event receiver.When the feature is activated one folder should be created in this path (C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15) when i was ...
1
vote
2answers
910 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 = Convert.ToDateTime(properties....
1
vote
1answer
971 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
19 views

Task locking Event Receiver Execution

I have an event receiver that creates 2 tasks. The task should be created immediately on ItemAdded but there is a delay for some reason. The first task is created immeditately as expected but then ...
0
votes
2answers
52 views

SP2013: Already attached EventReceiver not firing

I want to programmatically add an EventReceiver to some lists. I have a signed assembly named Customer.Services.Sharepoint where my TestSPItemEventReceiver resides. For debug purpose, it only shows a ...
0
votes
0answers
20 views

Multiline text field content is missing in display form

I have created ItemAdded event. It will add multiple users in users and group column of custom list. After complete this event, when i open display form, multiline text column value is missing. ...
0
votes
2answers
182 views

list template copy code-behind is not working

My goal here is to create a list template with code-behind on my server and copy it to a completely different Sharepoint server. The problem is that my server has Visual Studio 2010 while the other ...
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
757 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
18 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
3k 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
695 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
31 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
276 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
35 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
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
143 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
418 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 ...
1
vote
0answers
18 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
356 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> ~remoteAppUrl/home/...
0
votes
2answers
44 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
216 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
112 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 collection)....
1
vote
0answers
305 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
139 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 = TokenHelper....
1
vote
1answer
108 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
1k 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
5answers
47 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
696 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
19 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
24 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
28 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
9 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
50 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
23 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
48 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
29 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 this....
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
16 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
26 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
38 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
66 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
78 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
69 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 ...