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

“Feature has conflicting event reciever settings” error

I am new to SharePoint so I apologize if this is not phrased properly, but I created a BDC to a SQL database in Visual Studio 2012. I am trying to have the list created programmatically through an ...
0
votes
0answers
21 views

Sharepoint 2010 Workflow Document Approval

I have workflow created in SharePoint 2010 designer. Workflow is attached to list which is called bid list. In that site there is also a document library related to bid list(lookup of bid title in ...
0
votes
0answers
17 views

Duplicate alerts

When I first built a 2010 document-housing site and tested alert functionality on it I found that when you set multiple daily alerts (one in the morning, noon and evening) on a document and a change ...
0
votes
0answers
13 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
17 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
39 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
141 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
29 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
100 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
42 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
72 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
123 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
42 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
67 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
227 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
193 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
72 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
41 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
60 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
101 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
112 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
27 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
131 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
93 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
66 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
727 views

Change item during ItemAdding

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
67 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
406 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
13 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
1answer
248 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
77 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
203 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
45 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
50 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
47 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
67 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
16 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 ...
2
votes
1answer
187 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
103 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
47 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
443 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
20 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
824 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
128 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
92 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
119 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
435 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
92 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
844 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: ...