Creating Custom Workflows with SharePoint Designer 2007

Microsoft just published another Visual How To, Creating a Custom Approval Workflow for SharePoint Server 2007 Using SharePoint Designer 2007, written by yours truly. This Visual How To explains how to build a SharePoint Designer approval workflow for the sample expense report form template that comes with InfoPath 2007. The article and video show how to modify and then publish the form template to a SharePoint document library, define a new workflow and attach it to that document library, and add conditional logic within the workflow designer. This codeless approach to building an expense report workflow is an alternative to working in Visual Studio 2008, which fellow 3Sharp developer Mike Rand describes in the Visual How To titled Building an Expense Report Approval Workflow for SharePoint Server 2007 Using Visual Studio 2008.

Print | posted on Friday, June 06, 2008 10:11 AM

Feedback

# re: Creating Custom Workflows with SharePoint Designer 2007

Left by Alicia at 9/10/2008 11:27 AM
Gravatar I have created a task list in Sharepoint 3.0 to manage a large number of action items (100) for my office. I'm not a programmer or a developer. Now I want to create a custom workflow to send reminders periodically BEFORE an action is due and also periodically AFTER the items are OVERDUE. The 3-state workflow that comes with Sharepoint does NOT meet our needs at all. I was told that the type of workflow I need is called an "escalation" workflow--is that correct? Can this be done using Sharepoint Designer? I do not have Visual Studio. I have never used Designer nor have I had any training yet. I have used Sharepoint for a couple of years.

Other questions:
- We do not want our task list populated with any workflow progress items ("workflow initiated", etc.) Is there a way to have those go somewhere else? a different list? a different view?
- Does sharepoint know when to start each stage of a workflow automatically once you set up the workflow, or will we have to manually change the status of an action item to initiate each stage (open, reminder, overdue...)?

What we would like the workflow to do is:
- at the halfway point between the date the action was assigned and the due date, generate the first email reminder automatically to the "assignee".
- auto-generate the 2nd reminder approx. one week before due date
- auto-generate 1st Overdue reminder the day after the due date passes
- auto-generate 2nd Overdue reminder 2 weeks later
- auto-generate subsequent Overdue reminders every 2-3 weeks until the action is closed.

I would greatly appreciate any help/advice you can give me.

# re: Creating Custom Workflows with SharePoint Designer 2007

Left by David Gerhardt at 9/10/2008 12:39 PM
Gravatar Hi, Alicia.

I recommend you look closely at the "Pause For Duration" and "Pause Until Date" actions of SharePoint Designer workflows. These actions can address many of the milestone requirements that you have. I offered an example of the "Pause For Duration" action in this post...

http://blogs.3sharp.com/davidg/archive/2007/10/18/3785.aspx

I hope this is helpful.

Regards,
David

# re: Creating Custom Workflows with SharePoint Designer 2007

Left by Ed at 9/29/2008 1:08 PM
Gravatar David,

There seems to be a hack to create a column as a single value, then change it to multiple value after it has been added in the SharePoint designer to allow sending to multiple email recipients. I get all that, I even get ways to manipulate and store the email list, separate all the values, etc.

What I want to know is if I can somehow collect the email addresses using SharePoint designer either from the initiation form or through the collect data as the first action in the workflow.

The behavior I want to mimic is that of the default approval workflow where a user can just specify anybody from the address book (active directory lookup?) as an approver. Or is there someway to edit the default approval workflow in SharePoint designer?

Thank you for any assistance you can give on this topic.

# re: Creating Custom Workflows with SharePoint Designer 2007

Left by David Gerhardt at 9/30/2008 8:52 AM
Gravatar Hi, Ed.

With a SharePoint Designer workflow, you cannot define an initiation parameter that is of type "Person or Group". However, you can define a "Single line of text" (string) initiation parameter and then have users provide email addresses that are separated by semicolons. Of course, with this approach, you do not get address book capabilities.

I hope this helps...

Regards,
David

# re: Creating Custom Workflows with SharePoint Designer 2007

Left by Saurabh Kumar Singh at 9/30/2008 11:17 PM
Gravatar Hi to all,
I am creating a reminder workflow using SharePoint Designer, and when I use "Pause Until Date" activity. It doesn't resume and Workflow status does not change from "In Progress".
(i.e. it displays "Pausing for 0 minutes" only, under Workflow History but it doesn't take any specified action).
I have done some googling for that in last 4 days, and from there I had got a hot fix – KB 932394 and installed it but still I am in same trouble with “Pause Until Date” Activity.
I have also changed “job-workflow” time duration using stsadm command from 5 minutes to 1 minute as below:

stsadm -o setproperty -propertyname "job-workflow" -propertyvalue "every 1 minutes between 0 and 59" -url http://localhost

but found same problem.
What should I do for this?
Please suggest me why "Pause Until Date" doesn't resume and Workflow status does not change from "In Progress" in my workflow.

# re: Creating Custom Workflows with SharePoint Designer 2007

Left by Alicia at 10/2/2008 11:54 AM
Gravatar David,
I'm slowly making progress on the workflow I asked you about earlier. However, I'm stuck again on a really weird problem:

I've started creating a workflow to include an action to send an email message (a reminder) to the "assigned to" for a task. I've created a workflow lookup to look up the information in the "assigned to" column and send an email reminder--this step works.

When I created this step (Email this message), I clicked on "this message" and it brings up "define email message".
In the "to" line, I clicked the "addressbook" icon
In the "select users" box, I clicked "workflow lookup..."
In "define workflow lookup" I selected "current item" as the source, and "assigned to" as the field
The action looked like this: Email test:Assigned To ("test" is the name of the task list)

I created subsequent email reminder steps and saved the workflow (it indicated no errors).

When I reopened the workflow later and wanted to create another email reminder action, I followed the same steps, but when I got to "define workflow lookup" and selected "current item" as the source, when I went to select "assigned to" for the field, it is not there among the options that can be selected.

Do you have any idea why this would happen?? I even tried creating an entirely new workflow attached to the same list ("test") but the same thing happens...

HELP!

Alicia

# re: Creating Custom Workflows with SharePoint Designer 2007

Left by David Gerhardt at 10/2/2008 2:30 PM
Gravatar Hi, Saurabh.

When setting the Pause Until Date action, don't forget that there is a time element involved. So, if you are testing a solution and the Pause Until Date action is set to today, technically the date/time will have already passed (at 12am). You might want to consider running your tests with tomorrow's date as the value for your Pause Until Date action.

I hope this helps...

Regards,
David

# re: Creating Custom Workflows with SharePoint Designer 2007

Left by David Gerhardt at 10/2/2008 2:40 PM
Gravatar Hi, Alicia.

You should check to make sure that the data type for your "assigned to" field has not been changed. Columns for certain data types will not appear in the "Field" list of the Define Workflow Lookup dialog box, including Date and Time, Currency, and (I believe) Lookup.

I hope this helps...

Regards,
David

# re: Creating Custom Workflows with SharePoint Designer 2007

Left by Mark at 10/7/2008 6:10 AM
Gravatar Hi David,

I have a SPD workflow that copies an initial single task from a (master) list "A" to another defined list "B" based on a define column value within list A. In the next step a user updates a column in list B which then initiates the process to copy a number of additional task from list A to list B using COPY LIST ITEM based on a value defined in list A.

The problem is that as the SPD workflow ACTIONS name suggest, it only copies a single item from list A to list B. What do I need to do in order for the process to copy all of the task that is defined to be copied to list B?

Thanks & Regards,
Mark.

# re: Creating Custom Workflows with SharePoint Designer 2007

Left by David Gerhardt at 10/7/2008 8:03 AM
Gravatar Hi, Mark.

There are no "looping" capabilities in the SPD Workflow Designer that allows you to iterate through a list and copy multiple items. You would need a Visual Studio workflow to copy multiple items from one list to another.

Regards,
David

# re: Creating Custom Workflows with SharePoint Designer 2007

Left by Ellen at 10/13/2008 11:57 PM
Gravatar I am trying to create a business process in which

1. A user uploads a document to the 'Request Document Approval' document library

2. The new document activates a workflow which creates a task (for the submitter) to provide additional information via a 'Collect Data from a User' action

3. Once the provide additional information task is complete, a list item is created in a custom list named 'verify new submission'

4. As soon as the new item is created in the 'verify new submission' list, I want to automatically activate the next workflow. The new workflow requires a different user to verify that the uploaded document - as well as the additional information provided by the submitter - is ready to be processed further.

This where my troubles begin. I want to provide the user who is supposed to verify the information with a) a link to the uploaded document, b) most of the information collected in the 'provide information' task in view-only format, and c) a task/action to indicate whether they accept the submission (document + additional information collected) or they reject the submission.

How do I provide the data I have already collected earlier in the workflow to the person verifying the submission? And how do continue to collect smaller pieces of information in the form of tasks while displaying some pieces of the information already collected in the process?

Thanks in advance for your input!

# re: Creating Custom Workflows with SharePoint Designer 2007

Left by Terry at 10/28/2008 11:17 AM
Gravatar Hi David,

I have a questions.

I have created a SPD workflow and would like to have a tasks view set up so users can only see the tasks that are assigned to them and also tasks that are assigned to their groups? Is there any way to create 1 view for that?

# re: Creating Custom Workflows with SharePoint Designer 2007

Left by David Gerhardt at 10/28/2008 12:12 PM
Gravatar Hi, Terry.

By default, task lists should have "My Tasks" and "By My Groups" views. You can go into List Settings (for the task list) to change which of these views gets displayed by default, or you can create a new view depending on your needs.

Regards,
David

# re: Creating Custom Workflows with SharePoint Designer 2007

Left by Terry at 10/28/2008 1:01 PM
Gravatar Thank you so much for responding so quickly. I have a issues tracking task and for some reason the By My Groups does not show as a view? But If I just create a regular task list the By My Groups does show up but not under the Issues tracking? How can I create this view? Also, Is it possible to have the My tasks & My groups be in the same view so users can have one view with all of their task shown? I know the My tasks is set up in the filer section like this: Assigned to is equal to [ME]. Can the next filter be Assigned to is equal to [group] or something like that. I hope that makes sense?

# re: Creating Custom Workflows with SharePoint Designer 2007

Left by David Gerhardt at 10/28/2008 1:37 PM
Gravatar The "By My Groups" view just sorts by "Assigned To" and "Status" and groups by "Assigned To". You can easily combine those settings with the filter setting of the "My Tasks" view.

# re: Creating Custom Workflows with SharePoint Designer 2007

Left by Terry at 11/4/2008 7:20 AM
Gravatar Hi again
OK...so I must be doing something very wrong and maybe you can walk me through it. When I create an Issues Task list, it has 3 views (all issues/my issues/active issues) There is no By My group view. Can you tell me how to create the my issues & By My Group in one view? I know I click create view. Then click on Standard View, then name it, click on public view. I am assuming under the filter options I select Assigned to is equal to [ME] but the next filter I dont know what to add to get the By My Groups.

# re: Creating Custom Workflows with SharePoint Designer 2007

Left by David Gerhardt at 11/4/2008 7:46 AM
Gravatar Terry:

I think we are talking about two different list types. The "Issue Tracking" list has "All Issues", "Active Issues", and "My Issues" views. The "Tasks" list has "All Tasks", "Active Tasks", "By Assigned To", "By My Groups", "Due Today", and "My Tasks" views.

Regards,
David

# re: Creating Custom Workflows with SharePoint Designer 2007

Left by Terry at 11/4/2008 8:00 AM
Gravatar yes...I am talking about about Issues Tracking. I need to use that one because you cannot connect to outlook with the Issues Tracking list. When you connect to outlook, outlook brings in ALL tasks. Our Management want users to only see their own tasks. So that would be tasks that are in the My tasks and task that are assigned to their groups (distribution lists).

# re: Creating Custom Workflows with SharePoint Designer 2007

Left by Terry at 11/5/2008 5:49 AM
Gravatar Hi
Do you know if this can this not be done with the Issues Tracking Task list?

# re: Creating Custom Workflows with SharePoint Designer 2007

Left by David Gerhardt at 11/5/2008 7:31 AM
Gravatar Terry:

The SharePoint "Tasks" list allows you to connect to Outlook, but will bring in all tasks, regardless of whether you change the default view or not. As you already pointed out, the SharePoint "Issue Tracking" list does not allow you to connect to Outlook. If you need more than that, it will require custom code...

Regards,
David

# re: Creating Custom Workflows with SharePoint Designer 2007

Left by Alex at 11/16/2008 4:34 PM
Gravatar Hi David,

Just picking up around your post:

# re: Creating Custom Workflows with SharePoint Designer 2007
Left by David Gerhardt at 10/2/2008 2:40 PM

It seems strange that you can select the 'Modified By' field in a list which is of data type 'People or Group', but if you create your own field which is also of type 'People or Group' it does not appear in the list of fields available to define workflow lookup.

Is there a workaround beyond putting a static and hard-coded email address?

Many thanks.

# re: Creating Custom Workflows with SharePoint Designer 2007

Left by David Gerhardt at 11/17/2008 8:42 AM
Gravatar Alex:

If you define a 'People or Group' column, it will appear in the 'Field' list in the 'Define Workflow Lookup' dialog box.

Regards,
David

# re: Creating Custom Workflows with SharePoint Designer 2007

Left by Alex at 11/20/2008 1:13 PM
Gravatar Hi there David - I'm trying to select the person or group held within a column within a list.

The 'People or Group' columns do appear in the Field list of the 'Find List Item' section, but surprising not in the 'Lookup Details' section just above it.

Any idea why this may be?

Thanks,

Alex

# re: Creating Custom Workflows with SharePoint Designer 2007

Left by David Gerhardt at 11/20/2008 1:42 PM
Gravatar Hi, Alex.

If your 'People or Group' column allows for multiple selections, then it will not show up as an option in the lookup details. However, it will show up if the column does not allow for multiple selections.

I hope this helps...

Regards,
David

Your comment:





 
Please add 4 and 8 and type the answer here:

Copyright © David Gerhardt

Design by Bartosz Brzezinski

Design by Phil Haack Based On A Design By Bartosz Brzezinski