Symptoms
How to check-in K2 form on behalf of another user?
Diagnoses
Usually this happens when a user leaves the company or goes on vacation for a long period and the developers are stuck with a checked out/in form and they cant access it.
You can change this with the K2 DB with the correct scripts.
Resolution
In SQL Management Studio, you can run this SQL query to find the Form that has been checked out:
SELECT * FROM [K2].[Form].AuditLog
For example, let's say I have a Form that has been checked out by Bob on 06-02-2014 at 12:47, then please copy the following:
UserID = K2:DENALLIXBob
ID = 4E04425C-58A1-4AB0-95AF-7D219235F381
In your K2 Database, browse to K2 -> Programmability -> Stored Procedures
If you want to Check In the Form *with* the changes that Bob has made, find the Proc named Form.aCheckInForm
If you want to Check In the Form *without* the changes that Bob has made, find the Proc named Form.aUndoFormCheckOut
Right click -> Execute Stored Procedure
Pass the values you copied above to the fields in question.
UserID = K2:DENALLIXBob
ID = '4E04425C-58A1-4AB0-95AF-7D219235F381'
* Please make sure* you use the single quotes before and after the ID (see above)
If everything goes well, the Form should be Checked In and you can refresh your K2 Designer to reflect the results.
As always, please test this in a Test Environment first.