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

How do I run Microsoft Open XML code to extract data from a Word document in SharePoint 2010

I have a need to extract arbitrary data from a Word document (docx) that has been uploaded into a SharePoint document library and place it into a column in the document's list record. As far as data ...
1
vote
1answer
6k views

Change name in ItemAdding event receiver or create a new Item

I have several custom folder types such as Year Folder or Quarter Folder. When the user creates a folder of this type he enters the name and selects an item from a dropdown (year etc.). 90% of the ...
1
vote
1answer
422 views

Remote Event Receivers Troubles

So I've been working with the remote event receivers for Sharepoint 2013. I'm working with having them connect to a local IIS server to accept the inbound events as the Visual Studio tools make it ...
1
vote
1answer
932 views

Event manager error after upgrading my WSP via Update-SPSolution

So I just deployed this .wsp to production and I've identified a tiny bit of logic that needs tweaking in an event receiver. I'm considering compiling a new .wsp package, and then running an ...
1
vote
1answer
305 views

How do I get the current Editor of an Listitem while ItemUpdating?

How can I get the current Editor of an list Item in SharePoint 2010 during ItemUpdating? Problem is properties.AfterProperties["Editor"].ToString() throws and Exception cause it's null. This ...
1
vote
1answer
501 views

SP2013 : Generate an autoincrement identifier (YYYYMMDD9999) based on creation date for a document

I need to generate a record id for a document, with format YYYYMMDD9999 where 9999 is a autoincrement number per day. This id must of course be unique, but i have no idea how to be sure to avoid ...
1
vote
2answers
564 views

Event Receiver redirect to Visual web part

Here is my Event Receiver to redirected to my visual web part: public override void ItemAdding(SPItemEventProperties properties) { base.ItemAdding(properties); properties.Cancel ...
1
vote
1answer
848 views

WebProvisioned Event Is Not Firing When Creating SPWebs Programmatically

I have a WebProvisioned event receiver and i do some work in this event receiver. When i create new webs from a console application programmatically, it seems the event receiver does not fire? Is this ...
1
vote
1answer
203 views

MOSS 2007 Event Receiver and Exchange Web Services API

My goal is to use Event Receiver to add Outlook Calendar Appointements when a ListItem is adding. My Sharepoint Server is Moss 2007 and it is on a Win2008 R2. I got and installed the Exchange ...
1
vote
2answers
249 views

Detecting item is updated through service or UI

I have having a situation where I have an event receiver that uses ItemUpdated event to automatically start workflow. This is causing problem when user clicks on Edit in Excel and check in items from ...
1
vote
2answers
567 views

ItemAdded event not firing after document conversion in drop off library

I'm trying to build events for a drop off library in a records centre in order to convert Word docs to PDF using the Word automation service. The conversion event files on ItemCheckedIn, and works ...
1
vote
1answer
142 views

Access exceptions when trying to add a content type to list

In the following method, 'list' is simply an SPList ("Documents"). I'm attempting to add ContentTypes to the list and then update it. This code is found in the FeatureActivated event of an event ...
1
vote
1answer
665 views

Add solution from within event receiver - how to sort out “access denied” errors?

I'm handling the WebProvisioned event in order to add and deploy a solution that's relevant to the site being created. The solution is being created dynamically based on parameters of the site but for ...
1
vote
1answer
242 views

Staple onto MyContent

I made my farm level stapler and my site level staple features, for SPSPER#0 it fires on MySite creation, so I presumed SPSMSITEHOST#0 would be MyContent, but nothing gets fires at all. I set the ...
1
vote
1answer
198 views

Is it possible to check if a page is scheduled for publishing?

I can create a ScheduledItem in an event receiver, but how do I check if a list item is scheduled? What I've tried: IsScheduledItem method (ScheduledItem class) - but this method: "...confirms that ...
1
vote
3answers
535 views

an event receiver does not allow to add item that already exists

i want an event handler for document library (itemadding and itemChekingIn) that does not allow to add a file to that document library that already been in there.does anyone can give me hint for ...
1
vote
1answer
370 views

Setting an alert in WebProvisioned event

I want to set alerts for all users whenever a new subsite is created under the root site. I am using the WebProvisioned event, but when I attempt to Update() my new alert I get an error: "There is no ...
1
vote
1answer
68 views

SharePoint 2010 Restrict List Types by Role

We have a requirement that members of a specific group should only be allowed to create discussion forums while administrators should be able to create any type of list/library. Any advice on how to ...
1
vote
2answers
2k views

Event receiver not working properly?

I created an Event Receiver for a feature, my problem is when I deploy the solution, the feature is deployed as active but never goes through my FeatureActivated() inside my Event Receiver. It also ...
1
vote
2answers
823 views

iTextSharp and SharePoint

I have a requirement to save incoming email details in pdf format when a document library received an email. So in the EmailReceived event receiver I created the code to retrieve all the email details ...
1
vote
1answer
103 views

Event reciever(email generation functionality not working on production) but working on dev

i have an event receiver(which has item adding,added events) based on a condition i have set the email to get generated in item added event, the email is getting generated on my dev machine but when ...
1
vote
1answer
203 views

Event Reciever on Item created

I am working on creating a event reciever on a custom list .. my senario: I have a customizes newform.aspx and this form has a field called ticketID as hidden ..in the newform..so when a user creates ...
1
vote
2answers
58 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
10 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
35 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
14 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
1answer
47 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
1
vote
1answer
27 views

How to create an multipurpose event receiver

I want to create an event receiver that I'll attach it to content types across 4 site collections. The content type is being made programmatically, so no XML definition. Also, I want to create an ...
1
vote
1answer
114 views

Get string value of AfterProperties Look up Field

I'm having trouble getting the value of a look up field after a list item is submitted. The XML for the look up field looks like this: <Elements ...
1
vote
2answers
33 views

Change permissions on Document Library

We want to create document libaries from previously stored templates or from new. When a library is created in a site it inherits the permissions. Is it possible to break inheritance when library is ...
1
vote
0answers
127 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 ...
1
vote
0answers
76 views

Sandbox Solution failing to load

Okay I think I'm missing something when I'm trying to build an Event Receiver. I'm new to this so please excuse my ignorance. But when I try to deploy an Event Receiver I always get a Could not load ...
1
vote
2answers
50 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 ...
1
vote
0answers
36 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 ...
1
vote
0answers
13 views

Content Type event reciever inheritance

I have a number of content types with Document as a base. Each of these content types has their own unique behavior and therefore each one has an event receiver. This works perfectly fine except for ...
1
vote
0answers
25 views

Datetime AfterProperties value changed on save

I have written an EventRechiver that results in some strange behavior. I reacths to an Item beeing added to a list. This is done by both users trough UI and by a timer job. The ER sets some custom ...
1
vote
0answers
32 views

Event Receiver Update List

I have a list (A) which contains these fields: Software, Quantity, Used, and Available. Fields Used and Available are hidden fields. Then I have another list (B) which contains a lookup field ...
1
vote
1answer
32 views

Updating + SystemUpdate()

I need to execute the SystemUpdate(true) in the event "UPDATING" to get the new item version field value. How can I do that without receive the message of conflict? public override void ...
1
vote
1answer
52 views

Event Receiver isn't being registered

I am trying to add an ItemAdded event receiver in a FeatureActivated event receiver (because it's a site scoped feature and apparently that means SharePoint will ignore anything I tell it and apply it ...
1
vote
0answers
106 views

Renaming document gives file not found on uploaded documents

Im trying to do a seamingly simple task in SP 2013. when the user either Creates a new doc (Ribbon>Files>New Document) or Uploads a File i want them renamed to for example ...
1
vote
0answers
85 views

Does changing Item-Level-Permission trigger ItemUpdated/ItemUpdating in Event Receiver?

First of all: I know that setting item-level-permissions are bad :) I just wonder: When I created an Event-Receiver that set per-item-Permissions on the ItemAdding-Event: Will this trigger the ...
1
vote
2answers
173 views

AppInstall remote event is called multiple times

When developing provider hosted apps and testing in SharePoint Online, I've noticed that my AppInstalled remote event is often triggered 4 times when installing the app in site content. Here is an ...
1
vote
0answers
107 views

Event receiver not firing when item added by workflow

event receiver not firing when item is added by workflow. Its working perfectly when we manually add item to list. I am using SP Designer 2013. When we add item through workflow, it shows that item is ...
1
vote
0answers
57 views

how to move a file in itemupdating

Like described in the title i'd like moving my file in itemupdating in place of itemupdated. Like this the list is refreshed and file doesn't display anymore. I use this that works and move correctly ...
1
vote
1answer
69 views

List Item sending an email on ItemUpdated previous confirmation

I'm working on a Sharepoint 2010 List trying to send an email with a custom Even Receiver, on Item Updated. The List Item has to send an email when some fields are filled, other email when other ...
1
vote
0answers
20 views

How to display error message on the same page even with attachment [duplicate]

I have been trying to figure this out for days with no luck. I am working on Sharepoint 2013 application. In my application, the fields will be validated and display the error if the input is wrong. ...
1
vote
2answers
511 views

ItemUpdated not firing when document is added to non-default document library

I have an item receiver that implements ItemUpdated() to process an item after it has been uploaded to a document library. Everything works fine if I add documents to the default "Shared Documents" ...
1
vote
1answer
610 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
83 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
1answer
117 views

Attaching Remote Event Receiver to Content Type

Looking through the SharePoint Client API I see no property which allows the attachmentment of a content type. I was hoping to attach a remote event receiver to a custom content type on the ...