开发者

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

开发者 https://www.devze.com 2022-12-10 23:05 出处:网络
I开发者_StackOverflow社区 am trying to create a SharePoint designer workflow which should be triggered every time a document is checked in.

I开发者_StackOverflow社区 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.


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
}
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号