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

How to AddItem with certain ContentTypeID using PowerShell

I am using PowerShell to add 100 items which need to be of a specific ContentType. (requirement) Test my custom events receiver using powershell. The test is to create a list with a custom content ...
0
votes
2answers
68 views

SharePoint Recurring event - Delete a single occurrence

I created a event receiver on Item-deleting to send email when a listitems in the calendar is being deleted. However, item-deleting is not triggered when a single occurrence of a recurring event is ...
0
votes
1answer
93 views

Sharepoint 2010 itemadded eventreceiver datetime parseexact fails (sometimes)

I have an event-receiver set up for sharepoint that runs a query against Oracle and then parses the returned date string. The SQL SELECT statement is built like this : TO_CHAR (TRUNC (dateinfo), ...
0
votes
1answer
164 views

How to insert new line in the SharePoint error message?

I have written a code in event receiver which validates the user entered. My code is complete but the message I want to pass comes in the sinle line. I want to display the message in multiple lines. ...
0
votes
0answers
126 views

Document Library Event Receiver ItemAdded does not fire uploaded file metadata properties

I want to break security inheritance for document library item in order to read file of their own and to provide access to only their manager. I chose event handler option to break the inheritance ...
0
votes
1answer
32 views

Best approach for a custom workflow

My team will soon be building a workflow for a list in SP2013. The OOB approval workflow provides most of the needed functionality, but we need the approval flow set dynamically based on names ...
0
votes
1answer
173 views

Why ItemUpdating is calling after ItemAdded event in Sharepoint-2010?

I am developing Sharepoint 2010 application where I have been using SPItemEvent to deal with ItemAdded event. One thing surprised me that ItemUpdating event is calling after ItemAdded event in List. ...
1
vote
0answers
38 views

UnitTest for SharePoint.EventListener with TaxonomyField

Recently, I tried to write a unit test for my new SharePoint project. The Project contains EventListener which checks a TaxonomyField in a special list, and fill it, if field is empty. Code looks ...
0
votes
1answer
121 views

Is it possible to find how many times event receiver fired in code behind (SP 2013)?

Is it possible to extract information how many times did event-receiver fired on list per "action"*. Let say I have list with ten list items on it. User wants to delete three of them. What I'd like ...
0
votes
1answer
76 views

OWSTimer caching assembly? SP 2010 dll issues

I have a phantom / cached .dll that I cannot get rid of in my SP Farm. I'm making updates to Example.dll, which contains an Email Event Receiver that I made changes to. Redeploying to the GAC and ...
0
votes
2answers
2k views

Change item during ItemAdding [not an error]

I'm trying to update SiteUrl field during ItemAdding event. The field is Type="URL". I use this code in Event Receiver, but after user added new item, the field is still empty. (User cannot set this ...
0
votes
1answer
78 views

Serializable Exception while retrieving Taxonomy term in Event Receiver

I am trying to get value from Managed Metadata Column in an Item Added event receiver. SPListItem item = list.Items.GetItemById(itemId); TaxonomyFieldValueCollection str = item["colName"] as ...
2
votes
2answers
750 views

Event Receiver not triggered by Approval Workflow

I have a simple workflow that approves a List Item. I have an ItemUpdated Event Receiver that is supposed to compute some fields and update another List Item. My event receiver gets triggered when I ...
0
votes
0answers
14 views

Issue installing an Event Receiver Sharepoint 2007

I've generated a event receiver with WSPBuilder and used the addsolution and installsolution on stadm successfully. The solution is showed up on Site Features, I activated and didn't work. So, I used ...
1
vote
2answers
308 views

Cannot add or use assembly in GAC?

I cannot add an Additional Assembly (DLL) via my Event Receiver Package settings. When I attempt to deploy, I get the following error: 3> Deploying solution 'EventReceiver.wsp'... 3>Error ...
1
vote
1answer
104 views

Save conflict error when handling user deletion from group programmatically

I have a site in which unique permission group are there. I want to update the list item as per the changes made in the user group in site, i.e. if user is removed from the site user group then the ...
0
votes
3answers
344 views

Create Subsite in OFFICE 365

I want to create Subsites based on some custom list in OFFICE 365. It is one time job. I am planning to have one customlist which will contain title,template,inherit permision flag,inherit master page ...
1
vote
0answers
54 views

Can I access the Sharepoint 2013 event model without enabling application sideloading?

Note: originally posted on stackoverflow, just registered here. My goal is to initiate some custom processing external to our Sharepoint 2013 installation when a document is added to a specific ...
1
vote
1answer
67 views

How to post to sharepoint newsfeed using remote event reciever?

I tried to post to Sharepoint newsfeed via remote event receiver. public void ProcessOneWayEvent(SPRemoteEventProperties properties) { ClientContext context = ...
0
votes
0answers
58 views

Event Receiver issue with updating Splistitem fields only when i save as a document from Office Word?

I have a problem with updating Splistitem fields only when i save as via Office Word a document to Sharepoint in my Event receiver. it's works when i add the document from Sharepoint. here is my ...
0
votes
0answers
82 views

Cant get items from external list

I have an External list based on an External Content Type that is connected to Dynamics CRM. In an event receiver (C#), I successfully get an SPList instance that is able to print the 'Title' and ...
0
votes
0answers
20 views

Reassign an OOB WF Task via Code

We have a legacy WF that is running on SP 2010 system and I am attempting to add some new features to it without completely migrating it to a VS WF. I cannot seem to figure out how to reassign the ...
3
votes
1answer
356 views

Event manager error: Could not load file or assembly - Solution has been retracted

I have a wsp which basically contains a Workflow and an Event Receiver (Item Updating). I deployed it, and then had to retract the solution. Now I'm getting an error every time I try to update an ...
0
votes
1answer
122 views

Set lookupfield value on document upload through event receiver

I have a custom list, where when I create a new item, I assign a custom id to that element through an event receiver. After the item is created, I create a file that I upload to a document library. ...
0
votes
0answers
50 views

Event Reciever Object Disposal Issues

I am getting this error after adding a document to a library that has a custom event receiver associated with it: An SPRequest object was not disposed before the end of this thread. To avoid ...
1
vote
2answers
746 views

Debuging Event Receiver- Sharepoint 2013

I am trying to create ER for a document library, eg http://server.com/sites/dev I wanted to monitor document library for add and remove item. I created Empty SharePoint 2013 project ( Not sandboxed) ...
0
votes
1answer
24 views

Issue generating an Event Receiver Sharepoint 2007

I'm new in Sharepoint and I'm generating an Event Receiver. I've created a new sharepoint blak project, added an event receiver, created the hierarchy(12/TEMPLATE/Features/MyEvent/elements.xml and ...
2
votes
2answers
2k views

Event Receiver, Before and After properties

In an event receiver, Item Was Updated. I want to Compare the Moderation status on ListItems to perform some functionality.This is just some of the code. SPList list = web.Lists["DocLib"]; SPListItem ...
0
votes
2answers
139 views

strange ItemAdded listener behavior for a newbie

This is the first time I add a listener (or eventReceiver) to a sharepoint list and I see some really strange behavior though I think the code is OK. As you see in my code, I want to add a custom ID ...
0
votes
0answers
114 views

Event Receiver causing error on subsite

I have a document library on a site called "Guidelines" on all the subsites are document libraries also called "Guidelines" and on their subsites are more libraries called "Guidelines". All these ...
1
vote
3answers
174 views

can a sharepoint site have more than one DOMAIN e.i. DOMAIN\\UserName

I am very confused about the DOMAIN of username Which is actually the HostName(computer name). Is it will be same after hosting sharepoint site to some other remote server or it will get change. And ...
0
votes
1answer
478 views

Sharepoint 2010 | SPItemEventReceiver is not firing programatically

I have a SPItemEventReciever that works perfectly when I update a list item via the sharepoint web interface but does not fire when updated via the object model. The event reciever is deployed via a ...
1
vote
1answer
121 views

Field ShowInNewForm=“FALSE” Cannot Be Accessed In Code

I have a field for a custom document library, that must only be updated from code (event receiver) not from UI. So i set this field ShowInNewForm=“FALSE” and ShowInEditForm=“FALSE”. But this time, in ...
0
votes
5answers
1k views

Unable to get values in Item Added event receiver

I have created an event receiver which will be executing after the item is added to the list. I want to make the sub site based on the values entered in the list. My event receiver code is: ...
0
votes
1answer
667 views

Event receiver not firing on item added via email

I have a list that have been configure to receive incoming email. I also create event receiver for that list (on itemAdded and on itemAdding). The problem is, my event receiver not executed when ...
0
votes
1answer
765 views

Try to add a user to a multiple user field in the itemUpdating eventreceiver: The field you are trying to update may be read only

I am using Sharepoint 2013. I have created a custom list. This custom list is using a custom contentype. In this custom contenttype I have a custom column. This column is a people picker. It is ...
0
votes
0answers
105 views

Lock error when updating new document in ItemAdded

I'm trying to update an item when it is added to a document library. I have an EventReceiver on my document library and I am using the ItemAdded event. I am using the New Document button to create a ...
0
votes
3answers
1k views

How to redirect to another page using an event receiver?

I want to redirect to another page after an item is added to the list. I have referred many links and found the same alternative that is SPUtility.Redirect("https://www.google.co.in/", ...
0
votes
1answer
1k views

Error occurred in deployment step 'Activate Features' while trying to deploy an event receiver?

I cant seem to figure out what the issue is while I try to deploy my event receiver targeted at a particular list on my site. All I am trying to do in the event receiver is to check (on ...
0
votes
0answers
154 views

ListAdding is not firing, but ListDeleting yes

I have an SPListEventReceiver on Custom List Definition in SharePoint 2013 that handles the ListAdding and ListDeleting events. <Receivers ListTemplateId="10002" > <Receiver> ...
1
vote
0answers
92 views

Copy File Name to Title Field in Asset Library

I need to put together an Event Receiver on Asset Libraries which copies the File Name of the asset being uploaded to the Title Field of the list. I am currently using the following code. The ...
0
votes
1answer
405 views

Can Event Receiver be used in Sharepoint Client Object Model 2010?

I need to e.g detect in a console application any updates that affect items in a SP list. Thanks!
0
votes
1answer
71 views

event handler properties call

I was reading this nice article about basic event handling in sharepoint http://karinebosch.wordpress.com/walkthroughs/event-receivers-walkthrough1/ but while doing the exercise a question arised: Why ...
0
votes
1answer
852 views

How to get and set term store field in the ItemUpdated event receiver

I am using sharepoint 2010. I have a document library which is using some custom content type. This content type has 2 custom fields which are termstore fields. These are the names of the fields: ...
2
votes
0answers
54 views

Change logic for event receivers in an already deployed solution

I have a sandbox solution that has list schemas, visual web parts, custom pages and actions, workflows and a couple event receivers. Yes, one big mess of a thing, but I needed to pack everything up in ...
0
votes
2answers
19 views

Remove annoucement for a specific user

Does anyone know how can I remove a list item for a current user when a checkbox is set to 'yes'? I have an announcement list and I want to hide a read announcement from the list, whenever the user ...
0
votes
1answer
129 views

SPWeb permissions inside RunWithElevatedPrivileges

Please consider following scenario: public override void ItemUpdated(SPItemEventProperties properties) { SPSecurity.RunWithElevatedPrivileges(delegate() { SPWeb web1 = properties.Web; ...
0
votes
1answer
355 views

(Solved) How to create an event receiver for RoleAssignments on file in sharepoint 2013

I'm trying for like 5 days to achieve this event and i got to this but still not even close to what i want. I need to change permissions on file added in library like: user which added file to have ...
1
vote
1answer
423 views

SPContext.Current.FormContext.OnSaveHandler Not Firing from Custom Field Type Control

I am having the exact same problem described here. Unfortunately because I don't have 50 points yet I can't comment on it so I have to create a new duplicate question. I mean it's not "100% EXACTLY" ...
4
votes
4answers
653 views

Event Receiver called multiple times

I attached an event handler for ItemAdded to a content type A in the xml (using XmlDocuments). I have 4 other content types A1, A2, A3 and A4 that inherit from content type A (in their xml definition ...