Question : Sharepoint 2007 - Workflows and Custom Event Handlers

Hello,

I have an event handler on a document library and also an approval workflow. What I want happen is when a document gets approved, the event handler will fire. What I'm stuck with is that ItemUpdated doesn't get triggered when a document is 'In Progress' or 'Approved'. I guess because the list item itself didn't change, but it did change from 'In Progress' to 'Approved'.

Essentially, I want something to happen after a document is approved. Another approach might be to use a custom workflow but I want to see if event handlers will work or not.

Thanks!

Answer : Sharepoint 2007 - Workflows and Custom Event Handlers


Hi,

I expect that you make the following scenario; i think that you are getting on to the item then click workflows and run the approval workflow , if you make such scenario , the event wont be catched because it doesnt change the real approval status of the item ...

the right scenario , you must allow from the list settings the content approval option and that by going to versioning settings and then check allow content approval , then you can associate the approval workflow or not( you can use content approval without associating the approval workflow ) and after that on content approval the event of item updated will be fired..

Other reason might be, that your eventhandler is firing and you are checking the wrong status. Please debug the eventhandler to verify the same.

Please let me know, if still your events are not firing.

I hope it helps.

Cheers....
Rajendra Shekhawat

Random Solutions  
 
programming4us programming4us