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

Set Value in Event Receiver Items Adding

I must set a Value in Items Adding, it should be start Value of element. How could I set a Value. Like Default Value But that will be number User1, User2, User3 To Unical identyfy User.
-1
votes
1answer
40 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
19 views

Event Receiver Item Updated how find element to update

How to find by code elements to update in Event Receiver ItemUpdated and to update them ? Please help.
0
votes
3answers
20 views

Problem with Item Added Event Receiver firing five times, not one

I am using an Event Receiver, which should synchronize two Lists, But it is firing five times instead of one, and makes 5 records, not one. Why is it firing 5 times? public override void ...
0
votes
1answer
21 views

SharePoint Online: Provider hosted App - Deployment Eventreceiver

I created a provider-hosted app, with a MVC webapplication. Inside my SharePoint project, I created fields, contenttypes and lists. But now I need a solution for this. 1) I need to create ...
2
votes
1answer
29 views

Event receiver on newly created site

I need the steps on how to attach event receiver whenever any new site is created. I have not tried this before. I need the detailed step on creating event receiver on site creation
2
votes
1answer
22 views

Add-SPSolution Error An object in the SharePoint administrative framework, "SPSolutionLanguagePack Name=0

When I tried to add my wsp solution I am getting the error, An object in the SharePoint administrative framework, "SPSolutionLanguagePack Name=0 Parent=SPSolution Name=myeventreceiver.wsp", ...
0
votes
1answer
12 views

Event Receiver Infopath Submission

I have a request that the permissions inheritance(library to item) in the InfoPath form library should NOT to be broken. So what I am looking for is that the submitter group that has a read access ...
2
votes
1answer
42 views

Item still deleted when click on OK in ItemDeleting event CancelWithError

public override void ItemDeleting(SPItemEventProperties properties) { try { properties.Status = SPEventReceiverStatus.CancelWithError; ...
0
votes
1answer
20 views

Event Receiver and Infopath based coloumns

An event receiver on an InfoPath library works only when updating columns that are not created by propagating values from Infopath(). In code below "change" is a regular lib. column and ...
2
votes
1answer
21 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 ...
3
votes
1answer
17 views

Accessing Web application on a NLB Environment having Session values

I am having a multi server production environment with 2 WFEs ,2 Index Servers, 2 SQL Server boxes. I have deployed my wsp on these 2 WFEs. The issue I am facing is when the NLB switches from one IP ...
0
votes
0answers
8 views

event receiver preventing column updates in a content type during bulk upload

I am bulk uploading files to a library. In the bulk upload, i will be able to specify content type of the file and values of all other fields for that content type. When i upload files, the file ...
0
votes
1answer
17 views

Event Receiver Does Not Cancel In Explorer View

I have a document library with a ItemAdding event receiver registered to it that looks for whether a folder has been added and if so, cancels the folder creation. This works fine in the GUI. However, ...
1
vote
2answers
40 views

Javascript Disable event receiver firing

Are there any ways to disable event receiver firing by javascript for a list during updating data?
1
vote
0answers
9 views

How to get the Created By and Current Logged In user in itemcheckedin event receiver

I need to get the Created By and Current Logged-In user in my ItemCheckedIn event receiver. Is there any way I can access values.
1
vote
1answer
30 views

ItemAdded not firing until an item is added via web interface

I'm inserting items into a List via REST (authenticated with the SP Administration login). The list has an ItemAdded, correctly attached (I checked with SP Manager) The event starts firing only ...
1
vote
0answers
11 views

Debug EventReceiver on multi Server Farm environment using Visual Studio

I am having a multi server environment having 2 WFEs & one SQL Server DB box.I have installed office developer tools for VS 2012 .But I am unable to debug my item added event receiver like my ...
1
vote
2answers
29 views

disable event receiver in sharepoint list

Can anyone tell me that how can i disable an event receiver on one SharePoint list while adding an item in other? For example i want to disable event receiver on list B while i add item in list A. I ...
0
votes
0answers
7 views

Using Npgsql within an eventreceiver

within an eventreceiver I need to update a postgresql table. At first I tried to go Quick&dirty by using Npgsql.dll, but the thing fails at creating the NpgsqlConnection with an "unhandled ...
0
votes
0answers
11 views

Event Receiver deployed as a sandbox solution throws exceptions

I have deployed an event receiver as a sandbox solution to production. This is event receiver executes on ItemUpdated event. The code runs well in development server as a sandbox solution but throws ...
1
vote
1answer
24 views

SPList.GetItemById and Checked Out Items

It seems I cannot use SPList.GetItemById(int) or SPList.GetItemByUniqueId(Guid) or Web.GetListItem(string) to get an item that is checked out. I have tried all three and all three result in a "File ...
0
votes
1answer
28 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 ...
2
votes
1answer
14 views

Disable Event Receiver on Datasheet Editing

I have an ItemUpdated Event bound to a list and do not want it to fire when the List item is edited in Datasheet view. Is there a way to detect if the User is editing through the Datasheet?
0
votes
1answer
27 views

Default download dialog box not appearing on click of a document link in a document library?

I am using the code given in this link to watermark my documents. Here the author has used IHttpHandler to watermark document whenever a user clicks on a pdf document. Whenever I click on a document ...
0
votes
1answer
29 views

Weird behaviour of event recievers

When I try to implement itemadded or itemadding event receiver and put this watermarking code below base.ItemAdding(properties) then the event are not getting triggered. As soon as I remove this ...
0
votes
1answer
22 views

Can I change the path of file to be uploaded in item adding event reciever?

I want to change the file path that is uploaded by user. What I am doing is user will upload a file and I am doing some changes to that file in itemadding event. So, for that I am creating another ...
0
votes
0answers
40 views

Time zone shift problem for dates in AfterProperties of list item event receiver for events from Outlook

I need to analyze the "EndDate" of events inside SharePoint 2013 standard calendar items from a list item event receiver and cancel some modifications based on time of this date. I have this code for ...
1
vote
2answers
44 views

Is it possible to call JS file in Event Receiver?

Is it possible to call JavaScript file in any of the events in event receiver in SharePoint 2013.
0
votes
1answer
22 views

Document asking to be checked out after checking out

I'm updating a file that contains versioning and previously it stated that the document requires checking out to edit so I run the following code that results with the same error: if ...
0
votes
1answer
24 views

Event handler triggered multiple times in close succession on doc lib causing issues

I'm using an ItemUpdating event with a Document Library to run a Task generation procedure. After stepping through, it's causing issues when I check out the document which I'm forced to do after ...
0
votes
1answer
27 views

Search List B for matching object property in List A Event Receiver

Need help understanding how Event Receivers work while referencing multiple lists. I have a document library, called 'Emails'. On an Email object, I have a lookup field called 'Candidate'. I have ...
1
vote
1answer
27 views

ItemAdded not firing with REST

I have an ItemAdded on a list which creates a Document Library for each item added, and updates some fields of the item. It fires perfectly when items are entered manually. It doesn't fire when ...
0
votes
2answers
30 views

Need privileges to break inheritance

Idea is that inside an ItemAdded event receiver in a sandboxed solution (SharePoint Online) I want to set permissions on the item, which requires privileges that the user should not have on the list. ...
0
votes
2answers
24 views

Fields not filled with DefaultValues

As of a previous question, whenever an item is added in a list, I create a document library based on a template, and set defaultvalues for some of its fields. In Sharepoint Manager I see defaultvalues ...
1
vote
1answer
56 views

Setting custom field default value within ItemAdded event

my aim is to use a Sharepoint 2013 Foundation this way: define a template Document Library, ProjectTemplate define a list of projects, with a "category" column an itemAdded event receiver on the ...
0
votes
1answer
29 views

Get Members Group for discussion list

I am trying to develop custom alerts for a SharePoint Discussion List(in Community sub-site), I want to mail these alerts only to people in Members group of the Community (only those who have Joined ...
0
votes
1answer
42 views

Moving item on ItemAdded gives Error

IN my event receiver, on Item Added event I have placed my custom method to move document based on a rule. The issue is when a document is uploaded in the Upload dialog I get an error saying item not ...
1
vote
1answer
74 views

Event Receiver AfterProperties not setting when item adding in code

I have an event receiver that sets a value of a field using properties.AfterProperties within ItemAdding. This works fine when adding a folder (with a custom content type) within the browser (the ...
0
votes
2answers
41 views

Update boolean field in ItemAdding receiver

I want to update a SP boolean column on an ItemAdding event receiver. I want to set the "Hide physical URLs from search" column (PublishingIsFurlPage) to Yes. My code look like this : public ...
0
votes
2answers
46 views

Redirect at the end of event itemupdated

I'd like to know if there are a way to make a redirection in an event receiver of a list itemUpdated and not updating. I need this because in my event, i create a file in a folder and of a document ...
0
votes
0answers
36 views

Set welcome page when site created

I have a custom site definition. When site created I have an event receiver it will activate related features. After features have been activated I set my welcome page. public override void ...
0
votes
0answers
28 views

Change masterpage of a sub-site automatically, for multiple site collections

I am working in an environment which has more than 1000 site collections. My requirement is that when I create a new subsite in any of the site collection, it should automatically inherit masterpage ...
0
votes
1answer
70 views

How to display event receiver error inline not in error page

I have a problem with displaying error messages inline, but sharepoint displays that ugly yellow page. Yes the error message is correct, it's the one I defined but I need to display errors like the ...
0
votes
1answer
22 views

On library ItemUpdating the Name column's AfterProperty is null

I have an EventReceiver for one of my document libraries which compares some specific columns and their Before and After properties in the ItemUpdating event. When I try to compare the Name column ...
0
votes
1answer
52 views

How to rename an SPFolder

In an event receiver, in itemcreated and not creating, i need to rename the spfolder created. I've tried with meta FileLeafRef, it works bu url are not updated. SPFolder.item["FileLeafRef"] = "new ...
1
vote
1answer
34 views

Use of properties.InvalidateListItem()

I am not getting relevant resources which would explain the use of properties.InvalidateListItem(). Even MSDN has no definition for it. Can someone throw light on it
0
votes
0answers
28 views

Workflow “Pause Until Date” and Event Receiver

Currently I am using SP2013 and I have met with this problem : I have a workflow created by using SPD. All it does is waits until a specific date and then ends. I also have an ItemAdded Event ...
0
votes
1answer
19 views

Setting Masterpage and Theme in the same Web iteration

I have an interesting issue within a Branding Feature. I'm iterating through all Webs and setting the Theme and the MasterPage. Setting the master page works by itself: foreach(SPWeb web in ...
0
votes
1answer
40 views

Can't make remote requests from Sharepoint 2013 event receiver

I have an event receiver in SharePoint and this needs to communicate with Dynamics CRM 2013. It basically checks that user owns the record and if it doesn't creates a task for the record owner. The ...