2

I need to run a workflow when a item is read/opened in a list. Just wondering if that can be done via SP Designer or Visual Studio.

Thanks

MS

1

Try with this:

http://sergeluca.wordpress.com/2011/01/06/step-by-step-tutorial-creating-workflows-for-sharepoint-2010-step-115/

1
  • 1
    There is no way OOB to launch a workflow simply by opening an item. – Robert Kaucher Nov 6 '12 at 18:21
1

By Code I don't think there is a Event Receiver when item is in read/opened mode so either you use Item Updating or Updated or any available event receiver to kick off workflow pragmatically or create custom list item viewer as mentioned by above by Arsalan.

0

The only way that I could imagine doing this is via the SharePoint web services ( http://msdn.microsoft.com/en-us/library/cc296356(office.12).aspx ) and some JavaScript (I'd use jQuery - http://weblogs.asp.net/jan/archive/2009/04/09/calling-the-sharepoint-web-services-with-jquery.aspx).

You would need to customize the DispForm.aspx ( http://chanakyajayabalan.wordpress.com/2009/11/27/creating-a-custom-sharepoint-list-form/ ).

I would suggest a very high degree of caution when doing this as the potential impact on server performance is dramatic.

0
0

This is not possible out-of-the-box, and I hope you have already figured it out...

I would suggest to add a Visual Web Part on the display form, and on the PageLoad of the web part check if the Workflow is already initiated or completed, if not that means the item is opened for the first time and you need to start the workflow, for starting a workflow programmatically follow this: http://www.sharepointkings.com/2008/09/how-to-start-workflow-programmatically.html

This will save a lot of performance issues... I hope this helps!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.