Question

I wish to intentionally lock a workflow task in SharePoint 2010 for an infopath form.

I have a solution to solve a lock in place. I just want to be able to intentionally set a lock so I can test my unlocking solution.

I hope this makes sense.

Thanks

Était-ce utile?

La solution

Assuming that you're talking about "The file is locked for exclusive use by...", the easiest way is to have another user open the file. I'm not aware of how this type of lock can affect workflow-created tasks, since they're lists and not libraries. Maybe have them open it for editing? You could also invoke the SPFile.Lock() method. Here is an unlocking application whose code you might be able to modify to suit your needs.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top