ashwnacharya
ashwnacharya

Reputation: 14871

How to check if a document is checked in, in SharePoint Designer Workflow?

I am trying to create a SharePoint designer workflow which should be triggered every time a document is checked in.

How do I pause till the document is checked in? Will the condition

Wait For "Checked Out To" "To Be Empty" work fine?

Some posts on MSDN and CodePlex indicate that this might throw an error.

Upvotes: 2

Views: 4226

Answers (1)

Colin
Colin

Reputation: 10638

Do you have the possibilty to create (and more importantly, deploy) your own Workflow activities using Visual Studio? I.e. Are you allowed to use custom dll's in your sharepoint farm environment?

If so you could create an activity that uses the following code:

if (SPListItemFromWorkflowListItemProperty.File.CheckOutStatus != SPFile.SPCheckOutStatus.None)
{
  // do your stuff here, like pause the workflow
}

Upvotes: 2

Related Questions