0
votes
2answers
33 views

How to detect when a new item version is added in an event receiver?

Is there a way to detect (in C#) if a new item version was added in either ItemAdded or ItemUpdated event? I would only like to execute some code when either new item is added, or a new version of the ...
0
votes
0answers
99 views

ItemUpdated Event Receiver firing twice

I am having problems with an Event Receiver made to target Picture Libraries (ListTemplateId="109" in Elements.xml). I have tried to follow the advice I have found online to no avail. Check out is ...
1
vote
2answers
80 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
198 views

refresh page after event receiver item updated

I'm trying to refresh the page after the event itemupdated is fired. I've tried at the end of itemupdated without success properties.Status = SPEventReceiverStatus.CancelWithRedirectUrl; ...
2
votes
1answer
70 views

Recursive call for SPListItem Update method when called from a event receiver ItemUpdated

I have fallen in a serious problem about the SPListItem Update method. When I make a event receiver to intercept SPListItem change or update with SPItemEventReceiver ItemUpdated method, the event is ...
3
votes
1answer
316 views

Event Receiver - Cannot access item from Document Library if the user changed the name

I have a library, that has versioning enabled. On that library is an event receiver that does stuff, on ItemUpdated. Ok, if the user uploads a document, and does not rename the document during the ...
3
votes
3answers
1k 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 ...
2
votes
1answer
788 views

How to update SPListItem in ItemFileMoved?

I have a document library. In ItemUpdated I move the file to a different location (based on date) and I want to add some metadata in ItemFileMoved to the file's new columns (which I added). The ...
7
votes
1answer
257 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 ...