Skip to main content

Posts

Showing posts with the label Sharepoint Workflow

Visio 2013 Preview - creating workflows for SharePoint2013

I really enjoy creating workflows and help businesses to automate their processes. That's why  I was excited with the ability of Visio 2010 Premium to create workflow diagrams for SharePoint and then import them to SharePoint Designer for further modification.  You can read about my experience with Visio 2010 here  http://wyldesharepoint.blogspot.com/2010/01/mighty-sharepoint-2010-workflows-part-1.html Here's what we have got in Visio 2013. In #Visio2013 Select a Microsoft SharePoint 2013 Workflow diagram type from Software section: Here you go: I have quickly come up with some simple workflow design: Checked the diagram:  Tried to export to SharePoint:  and got an error "This doesn't seem to be a SharePoint 2010 Workflow diagram...": Well, I expected to create and export #SharePoint2013 workflow diagram.  Not now.

Mighty SharePoint 2010 Workflows - Part 2 - Using SharePoint Designer 2010 to manage workflows

In the previous post - Mighty SharePoint 2010 Workflows - Part 1 - Using Visio 2010 to create workflows - I created a workflow model in Visio 2010. Now I'd like to implement my workflow in action. 1. Open SharePoint Designer 2010, open the Web site and choose Workflows navigation item on the left and then click "Import from Visio" button on the ribbon: 2. Choose the workflow file exported previously from Visio and then choose Next: 3. SharePoint Designer asks for some initial parameters - Workflow name and would it be a list workflow or a site level reusable workflow. I will choose list workflow for now and select a list to which my workflow will be assigned: 4. Here we go: 5. I will set up my workflow so it will do something useful and then I'm able to extend my workflow by adding some functionality. There is a very nice feature in SharePointe Designer 2010 - when you are adding some action to workflow system allows you to type in the name of activity and provides y...

SharePoint 2007 Integration With Dynamics CRM - Solution - Part 1

The Scenario An organization has relationships with third-parties. Accounts, customers, members, suppliers etc. The organization has a SharePoint Web site and Dynamics CRM where the information about third-parties is processed. As the current business process dictates, large number of external clients - agents in this sample - needs to contact organization via email, fax, regular mail or in person in order to submit important business information - applications in this scenario. We will create a public SharePoint Web site where agents can submit applications and then those applications will be copied automatically to Dynamics CRM and when their processing in CRM is finished some feedback will be published back to the SharePoint Web site and agents will be able to see the status of the application in CRM online on the SharePoint Web site. We defined the solution design as below: In order to get the solution we defined the following tasks: 1. Develop a custom SharePoint Workflow which w...

Mighty SharePoint Workflows - part 3 - workflow history and audit solutions

I came across the limitation of the workflow history in SharePoint the other day. After 60 days the history is cleaned up. Technically it's the right way of doing things in SharePoint, because workflow history is a list and if we have more than 2000 records in the list we have performance issues. There are some blog posts about that issue. The main one: Huge MOSS Workflow Issue... What is Microsoft Thinking!!!! The other linked to the issue: SPWorkflowAssociation.AutoCleanupDays I worked with several clients on custom workflows for SharePoint and we created the separate audit database where all the SharePoint workflow activity information and list/library item information is stored. For guys who have already created workflows in SharePoint or use standard SharePoint workflows - like Approval etc. - and they are not sure what to do the solution is to develop or purchase a tool to migrate their workflow history to separate database on a regular basis. I can help with that...

Mighty SharePoint Workflows - part 2 - workflow statistics, workflow tasks, workflow history

The task 1. Get links to workflow statistics. 2. Get workflow tasks programmatically. 3. Get workflow history programmatically Solution 1. Links to workflow statistics: foreach (SPWorkflow wf in list_item.Workflows) { string sLink = string.Format("{0}/_layouts/WrkStat.aspx?List={1}&WorkflowInstanceID={2}", web.Url, wf.ListId, wf.InstanceId) } web.Url above is the Url property of SPWeb instance. 2. Workflow tasks: foreach (SPWorkflowTask wt in wf.Tasks) { // get any information you like about the wt object, i.e. in this scenario we will output link to the task string sLink = string.Format("{0}/Lists/{1}/DispForm.aspx?ID={2}", web.Url, SPEncode.UrlEncode(wt.ParentList.Title), wt["ID"]) ... } 3. Workflow history: Class SPWorkflow has a member HistoryList which represents history list for the workflow. Let's assume that we are using the SPWorkflow object - wf - from above. 3.1. First we have to make a query to extract history list item ...

Mighty SharePoint Workflows - part 1 - workflow association, workflow instance

The task Display SharePoint lists or libraries with active workflow associations. Display item that have running or completed workflow instances and workflow status for this item. In our scenario we have a document library with associated Disposition Approval workflow started on the document: Solution 1. Get Workflow Association data for the certain list or library. SPList list = ...; // Initialize your list instance here if (list.WorkflowAssociations.Count != 0) { foreach (SPWorkflowAssociation workflowAssociation in list.WorkflowAssociations) { Guid gId = workflowAssociation.Id; string sName = workflowAssociation.Name; ... // output the values you have got // in our scenario we add them to Hashtable object hashtable.Add(gId, sName); } } 2. Get workflow instance data for the certain list item or document. We can access workflow instance data from the Workflows property of SPListItem object: foreach (SPListItem item in list.Items) {...

Working with SharePoint Workflows

SharePoint 2007 out-of-the-box provides ability to associate workflows - simple pre-installed like Approval, Disposition Approval, Three-state etc. and custom workflows - with SharePoint lists or libraries. What is missing - at least in this version of SharePoint - is the ability to monitor running and/or completed workflows across the whole SharePoint Web site. As a step forward I have developed a Web part which allows people to monitor workflows across the Web site and sub-sites. I have also developed numerous custom workflows for SharePoint using Visual Studio. This post is the first in series of articles about working with SharePoint workflows programmatically. In the coming posts I will show you how to manage workflows programmatically in SharePoint. Stay tuned. :) Update: Below are the links to articles. Mighty SharePoint Workflows - part 1 - workflow association, workflow instance Mighty SharePoint Workflows - part 2 - workflow statistics, workflow tasks, workflow history Mighty...