calendar item automatically delete upon request rejected.
hye,
i got an issue where i've created a workflow and attached it to a calendar so the workflow will starts when new item is created. if the PIC reject the item can MOSS delete the item from calendar once the PIC reject it?
thanks.
October 27th, 2010 2:32am
YES. You can either extend your workflow to check for the approval status and then delete the item, or alternatively, you can create an Event Receiver and bind it to the calendar. The Event Receiver would implement the ItemUpdated() asynchronous
method and check for a rejected status. If a rejected status is found, it would simply delete the item.
To get started with the event receiver, start here:
http://www.wrox.com/WileyCDA/Section/Programming-Event-Handling-in-Windows-SharePoint-Services.id-306329.html
I trust that answers your question...
Thanks
C
http://www.cjvandyk.com/blog
Free Windows Admin Tool Kit Click here and download it now
October 27th, 2010 6:21am
is this using visual studio?
November 1st, 2010 5:05am