Tagged Questions
1
vote
1answer
78 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 ...
2
votes
1answer
290 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 ...
5
votes
1answer
138 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
123 views
Deleting SPListItem in event receiver - very long time
I have an event reciever with ItemDeleting action, in which i try to delete an item from another list (I cant realy use cascade delet behavior here, I need to do some stuff that requires the ...
1
vote
1answer
33 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
141 views
Library ItemUpdating - distinction between versioning of existing files, and changing metadata of existing files
I am currently facing challenges in distinction between updating an item, and creating a new version of same item.
The ItemUpdating eventreceiver is hit in both cases.
Requirements for the library ...
1
vote
0answers
610 views
List ItemUpdated Event not firing when updating item from code
I have a problem with my eventreceiver. It is set to fire on updating item from a list, and works very good when I update that item from Sharepoint's web UI. However I have some code that goes through ...
1
vote
1answer
99 views
How to push a specific SPListItem through a workflow with code?
I would like to push a specific SPListItem to the final step in a State workflow, skipping all the intermediate steps (if a certain checkbox is checked).
Currently, I have an event receiver hooked ...
1
vote
3answers
931 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
1answer
459 views
Best way to check if SPListItem have been publish, on an ItemUpdate EventReceiver
I have an EventReceiver associated to DocLib template id, triggered at every ItemUpdate.
Everytime an SPListItem is publish I want to execute my code.
(Required check out and Content approval are ...
