I have a situation where I don't want to trigger the ItemAdded event if an item is added to a list via a workflow. Is it possible not to trigger this event?
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
|
Might want to take a look at this article http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.speventreceiverbase.disableeventfiring(v=office.12).aspx Basically, what your looking for is something like this
|
|||
|
|
|
Following Caesar answer I knew what to google for. The nicest thing I have seen is from Adrian Henke's blog
You can then call your code in:
The nice thing is that if anything goes wrong events will be turned back on automatically. |
||||
|
|
|
Could always have the workflow update a hidden column and the event receiver looks to see if there is any data in that column. If yes, do nothing, if no, process. |
|||
|
|