2
votes
1answer
24 views

Content type eventhandlers gets bound to list

I have a custom parent content-type on which I apply 6 event-handlers. I then have 24 content-types based off of the parent content-type - thus inheriting the 6 event-handlers. - All defined in XML I ...
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 ...
0
votes
1answer
130 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. ...
0
votes
1answer
249 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!
1
vote
1answer
309 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" ...
0
votes
0answers
21 views

Accès refusé lors de la création d"une collection de site

I am trying to create a site collection in ItemUpdated according to my Event Handler. SPSecurity.RunWithElevatedPrivileges ( delegate () { using (SPSite oSPSite = new SPSite ...
0
votes
0answers
45 views

What are the events that are fired when a user updates a task on Project Server?

If for example I want to add an event handler when a new project is created on Project Server I create a class that is derived from ProjectEventReceiver class and I override the OnCreated method. But ...
1
vote
0answers
61 views

Notifying a webservice about list update events

I have a custom webservice hosted in SharePoint that caches data from a certain list. It needs to update the cache every time the list is updated. It seems to me there are 3 ways this could happen: ...
0
votes
2answers
711 views

How to update calendar item created by an other list?

Appreciate any thoughts on this: A user edits an existing list item to pick a date to select a project deadline. A custom workflow, initiated by that item change, takes that date and project title ...
1
vote
1answer
203 views

remote event receiver on sharepoint 2013 online does not working

Hello i recently started to developing sharepoint 2013 to my office365 account. The problem is that remote event receivers which I attach to deploying application do not work. I mean that they should ...
2
votes
0answers
248 views

List event receivers not triggered after quick editing/grid editing

I have a custom Sharepoint 2013 list with event receivers attached to it (adding, updating, deleting). However, it looks like the event receivers are not triggered when the user is adding/editing in ...
1
vote
2answers
302 views

Change displayname of a List with event receiver

I need to change the displayname of a list using "ItemUpdating". The source of the new name is the "Title"-field of the item which fires the event. Is this possible? I tried it with: if ...
2
votes
3answers
858 views

Event Reciever ItemAdded fired twice

I'm trying to do some treatement after creating an item but the treatement is done twice because in my code after creating the item, I'm updating it , so the event reciever get fired twice: first when ...
0
votes
1answer
261 views

ItemUpdating event not firing on folder rename w/ Windows Explorer

I have an Item Updating event receiver that needs to fire when a document library folder is renamed. Everything works perfect when a user renames the folder with the SharePoint UI. However, if ...
1
vote
1answer
249 views

Possible to attach an event receiver to the list of user alerts?

There's seemingly loads of ways of overriding the OOTB e-mail notifications for creation and deletion of user alerts - can't you just attach an event receiver to the alerts 'list' (is it an SPList?) ...
0
votes
1answer
3k views

Feature activation error: System.InvalidOperationException: Operation is not valid due to the current state of the object

i have taken one List Email event receiver(Type is EmailReceived) and that event receiver attach with document library. when i am activate that feature got error. i have check on ULS Viewer. error ...
1
vote
0answers
84 views

Email not received in Document Library when Event receiver Added [closed]

Email not received in document library when Email event receiver is added to this library..
5
votes
1answer
503 views

How can I tell if a document is 'being published'?

I need to use the relevant event receiver to tell if a document is being published, is this possible? I will settle for has 'just been published' - i.e. I have no preference between itemupdating and ...
1
vote
1answer
40 views

An event to be fired on editing a file

As title says, I need an event to fire when a listitems file has been edited. I appreciate this isn't as simple as it having it's own event, which is why I've tried to make use of the itemupdating ...
1
vote
1answer
167 views

How to prevent document editing and properties updating

I need to be able to prevent the document in document library to be edited and it's properties updated when the custom document property DocState has a value Reviewed. Should I use document library ...
7
votes
1answer
238 views

How to know if another event / user is running on an SPListItem (Sharepoint 2010)

I have a Sharepoint 2010 farm in which is deployed my solution. This solution provides some "data mantain" of some content types. Let me explain: Suppose I add a file in a document library: when I ...
0
votes
2answers
2k views

SharePoint 2010 - How to remove Event Receivers from Content Types

I have a Content Database that contains Event Receivers referring to a Solution / Feature that was incorrectly removed. These Event Receivers are embedded in every Content Type in my Site Collection ...
0
votes
2answers
1k views

New EventReceiver events not firing

I have an event receiver written by someone else. It originally came with events for ItemCheckingIn and ItemCheckedIn, but we needed something to handle simple metadata updates, too. Since those ...
0
votes
3answers
618 views

Prevent Item Overwrite Event Receiver

I want to prevent users from overwriting items that have the same name. When users add items to a library there is a checkbox indicating files should be overwritten if they have the same name. In ...
0
votes
1answer
526 views

“Detected use of SPRequest for previously closed SPWeb object” within Event receiver but no error when run in test harness

I have a very strange issue which I cannot explain. We have and event receiver and within this we instantiate our own class that does all the work we need it to do. As part of this we pass in an SPWEB ...
0
votes
1answer
227 views

Reporting Services Subscriptions doesn't fire Event Receivers

I have a SPItemEventReceiver on a SharePoint library which renames added files. Normally this works fine (Upload from website / WebDav). There is also a report server subscription which drops pdf's ...
0
votes
1answer
450 views

Help with Blog EventReceiver, not firing

Ok so I have a blog site and I need to change the name of the author of each post to 'Anonymous' after he saves the post. I created an EventReceiver project in Visual Studio and gave the URL ...
0
votes
1answer
538 views

How to enable an Event Handler to intercept upload from email in document library

I have a Document Library with an email associated with the OOTB feature. When I send to the library an email with some attachments, every attachment is stored with one of the OOTB methods (divided in ...
1
vote
2answers
143 views

Is there anyway I can find out if user uploaded multiple items in ItemAdded Event

I have a "ItemAdded" event, I want to check Number of documents uploaded if a user uses "Upload Multiple Documents" for uploading. Normally what happens is when a user adds a item they are taken to ...
1
vote
2answers
711 views

Attach an event receiver to profile property update

Do someone know if it's possible to attach an event receiver to profile updates? The goal would be to update an external system (such as a CRM) when a user is updating his profile.
0
votes
2answers
434 views

deploy a list with specific item-level permissions in ListAdded event receiver method

I have a certain type of custom list I have designed in my 'solution.wsp', that, whenever an instance of it is instantiated, it should have at the outset a specific Item-Level permission. To further ...
1
vote
4answers
1k views

How to delete an item on ItemAdding

I want to performe some Action on ItemAdding. I have a Custom List that reacts on Item Creation. In particular on Item Adding performs some action using the After Properties.. If, at this level, i ...
0
votes
3answers
2k views

Debugging sandboxed ItemUpdated event receiver - breakpoints not hit

I'm trying to debug an ItemUpdated event receiver in SharePoint 2010. I add breakpoints to the code, and hit F5 in Visual Studio 2010. I click Attach when I'm prompted to attach to the process. Then, ...
1
vote
3answers
1k views

Add item to list anonymously (not as anonymous user)?

I have a requirement that authenticated users should be able to anonymously add items to a list, i.e. they are authenticated but the Created By/Modified By field should not display their name. I could ...
0
votes
2answers
2k views

ItemAdding event not firing when submitting InfoPath form to form library

I created an event receiver in Visual Studio to handle three events in a form library: ItemAdding, ItemUpdating, and ItemDeleting. ItemUpdating and ItemDeleting work as expected when debugging, but ...
2
votes
2answers
1k views

Move a document from library after adding it

I am using the ItemAdded event to fill in a metadata field. In the ItemUpdated event (after submitting the file properties diagog) - I want to move the file elsewhere. However, I get an error saying ...
1
vote
2answers
3k views

event receivers and execution order

I am using some of these such as ItemAdded and ItemUpdated and I had altered the elements file to make this synchronous. I'm just curious as to what the order of execution is for all these handlers. ...
0
votes
2answers
488 views

Managed Client Object Model in Event Receiver - Event is not firing at all

When I use ClientContext context = new ClientContext("SITEURL"); in my event receiver, the event doesn't trigger at all. So my question is can I use managed client object model in event receivers. ...
0
votes
2answers
275 views

How To attach an Event Reciever to a Specific List in SP2007

I'm having trouble binding my event receiver (ItemAdding) event to a specific list. I created a Feature Receiver and tried both the GUID and Name. But, I have another list that uses the same column ...
4
votes
1answer
4k views

How to get a field value of the item in ItemDeleted event handler?

I need to get the value of ListItem field in ItemDeleted event handler. Only value of one numeric field. But properties.ListItem == null. And AfterProperties, BeforeProperties also do not work. Is ...
2
votes
2answers
599 views

Sharepoint development without Visual Studio on server machine

Till now I was doing Sharepoint development with Sharepoint server and Visual Studio on same machine. Now there is a Sharepoint 2010 installed on my client machine with no Visual Studio installed. I ...
5
votes
2answers
285 views

How to add style library event receivers?

how can I add an event receiver to the style library ? (can't find any templateid) thank you ;)