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

Perform an Update from the webfrontend by Eventreceiver

i have an Eventreceiver. Now I change some data from other list items with this receiver. I display the items with a gantt view, butw when I update the elements, only the single edited item is ...
0
votes
0answers
19 views

Call of “DocumentSet ” class causes Exception (untrusted call)

I've attached an event receiver to a list, the listener gets fired when a new item is added. I have to create new document sets, but when I try to create an new instance of the DocumentSet class, the ...
1
vote
0answers
52 views

Storing incoming email - access denied error when emails arrive simultaneously

I have created a SPEmailEventReceiver to parse and to process incoming emails. before I try to parse a email I store this email as eml-file in a document library. Everything works fine until two or ...
4
votes
1answer
408 views

Farm scope Event Receiver

For some security reasons on one of our farm level solutions, we need to limit some actions using Event Receiver-FileMoving event. However, as known, event receivers can be deployed only by Site or ...
1
vote
1answer
49 views

Update User Profile Property When User First Visits Site

Is there a way to automatically set the value of a User Profile property right when the user first visits a SharePoint site -regardless of what page they load first? I'm kind of looking for the ...
0
votes
3answers
728 views

Getting file name being upoloaded in ItemAdding

How to get the name of the file being uploaded if the listitem is not created yet? public override void ItemAdding(SPItemEventProperties properties) { SPWeb TargetWeb = properties.OpenWeb(); ...
0
votes
1answer
48 views

What would be the best approach for assigning permission for the document in library?

I working on a requirement in which there are contributor list for each document in sharepoint library. The contributor may be unique set of users for each document. I wanted to know what would be the ...
1
vote
2answers
402 views

How to retrieve email address from user ID?

I'm developing an Event Receiver in C# and I would like to retrieve the email address from a user ID. How can I do that? Thanks
2
votes
2answers
440 views

SPQuery - Which fields (ViewFields) are required to Update the list item?

In an SPQuery, which fields are required to update a list item? SPQuery query = new SPQuery(); query.Query = @" <OrderBy> <FieldRef Name='ID' Ascending='true' /> ...
0
votes
0answers
103 views

Event Receiver to intercept event modify with drag and drop

I've created my custom Event Receiver that works well and works on ItemAdding and ItemUpdating. But if an user try to modify a calendar event using drag 'n drop, I'm not able to intercept that ...
2
votes
1answer
194 views

Event Receiver on SharePoint 2010 - How to query DB and display an error message

I'm an absolute beginner of SharePoint development. I would like to create my first Event Receiver and I'm doing with VS2010 (because I'm on SP 2010). I would like to check if adding a new event in ...
0
votes
1answer
796 views

Unable to get event receiver to work with Document Library

I have created a Document Library named Attachments Library. In the library I have created an additional mandatory column of File Details. I intened to use this field to capture some metadata about ...
3
votes
1answer
867 views

Unable to find Event Receiver template in Visual Studio 2012

This would probably be right under my nose but I am having a hard time finding it. I am trying to create an event receiver in Visual Studio 2012. From this video in YouTube I gather that in Visual ...
1
vote
1answer
93 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
124 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
142 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
280 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
1answer
37 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
255 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
44 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
139 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
104 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
3k 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
145 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
1k 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 ...
1
vote
2answers
404 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
147 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
520 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
59 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
79 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
70 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
90 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 ...
3
votes
1answer
710 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
179 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
54 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
1k 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
25 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
3k 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
162 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 ...
1
vote
3answers
309 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
584 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
161 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
2k 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: ...
2
votes
1answer
955 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
1k 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
145 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
2k 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
2k 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 ...
1
vote
0answers
212 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
112 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 ...