Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am trying to save an item to an audit list prior to deleting it. How is this done in SPD 2010?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

If you have SharePoint Server (not Foundation) you can turn on auditing on the list and set SharePoint to log an audit when an item is deleted from that list.

If you have Foundation, I believe your only option is going to be to use Visual Studio to write an event receiver to write an audit entry in the ItemDeleting event.

I wish I could tell you that you can use a SPD workflow that fires when an item is deleted, but unfortunately you can only fire one when an item is added or modified. Visual Studio is going to be the only way to pull this off.

share|improve this answer
    
Thank you Rob. I had a difficult time with the event receiver because I am not familiar with vs. Here is an alternative that was very helpful to me. endusersharepoint.com/2010/08/12/… Thank you for your help! –  Anonymous Sep 23 '10 at 21:06
    
Gotta use what's best for you! Glad you found a solution you could work with. I know you like to use SPD when you can. Thanks for sharing. Jim Bob writes some great pieces. –  Rob Wilson Sep 24 '10 at 0:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.