Well, I’ve fixed the problem with checking for locks, the SPListItem has a reference to the underlying SPFile object. This permits you to use SPFile.CheckOutStatus to check. I have written a long post about how to use this, but for some reaosn the code in it upsets WordPress, so I’ll get a new code add-in …
November 2007 archive
Nov 08
Conundrum:- Checking item lock status
One of the problems that has reared it’s head recently is workflows dying during an update due to an item being locked. This happens from time to time when the workflow tries to update the item that it’s running on. The upshot of this is, that if I haven’t handled the error with a Try/Catch, …