Workflow does not start on Document Checkout


Badge +1

I want to create a workflow in Nintex Workflow that reminds users of checked out files. Since I didn't find a column in Sharepoint itself where the date of the checkout is stored, I created a library workflow which should start with "New Elements" and "On Changes". This workflow "SetCheckOutDate" only writes the current date into the empty column "CheckOutDate".

Furthermore there is a Site Workflow "CheckCheckOutDate", which checks daily at 09:00 o' clock whether there are still checked out documents and if the date "CheckOutDate" is older than 24h. If this is the case, a reminder will be sent to the user who has checked out the document and will then be terminated, if it is less than 24h, no reminder will be sent.

Unfortunately, "SetCheckOutDate" does not start automatically when I check out a document in the library. How else can I set the date when a document is checked out?


2 replies

Badge +7

It seems there's an internal property for CheckedOutDate :

SPListItem item=web.lists[].items[];

string checkedOutDate= item.File.CheckedOutDate.ToString();

BUT whatever you do, NINTEX workflow starts when item modified....meaning "Modified" field is change...what doesn't occur on a simple check out action.... 

You'll probably have to go by code to request checkedout items, then querying their checkedoutdate...then send your reminder.

Badge +1

Too bad, I can't use Nintex for that. I am only a site admin and have no access to insert code somewhere. I can only create new library Workflows or site workflows. Then my options are exhausted. I have to try and find another way. Anyhow, many thx for your response.

Reply