ConfigLabs

April 9, 2008

SharePoint Designer Default Workflow Actions

Filed under: SharePoint 2007, SharePoint Designer, WSS 3.0, workflow — Jag @ 7:00 am

With Microsoft Office SharePoint Designer 2007, you can design workflows that add application logic to your site or application without having to write custom code. Using the Workflow Designer, you create rules that associate conditions and actions with items in Microsoft SharePoint lists and libraries, so that changes to items in lists or libraries trigger actions in the workflow.

By default SPD (SharePoint Designer) comes with a bunch workflow actions we can leverage to build custom ‘No-Code’ workflows straight away. It is important to know the default workflow actions before hand during the design time. This will save you lot of time in the designing the right process model. With workflows, it is always important to get the PROCESS RIGHT.

Workflow Actions

 

Description

 

Send an Email Sends an Email.
Need to specify the To, Subject, Body fields.
Collect Data from a user The Collect Data action will you to assign a task to a user that includes custom form fields.
Values Submitted by the user are stored in the Tasks list and can be referenced later in the workflow. Until this task completes, the workflow will remain paused
Set Workflow Variable Assign a value to workflow variable.
Log to History List Log a message to the workflow history list.
Update List Item Update a list Item in ANY list within the site.
Copy List Item Copy List Item from one List to any other List within the Site. 
Assign a TODO Item This action will add a to-do item to the Tasks list for each user specified.
Until all of the to-do items are completed, the workflow will remain paused.
Set Field in Current Item Assign a value to any field in the current list item.
Add Time to Date Add X Minutes(or Hours, Days Months, Years) to Date.
Assign a Form to Group This action allows you to assign a survey form to a group of people.
Values submitted will be stored in the Tasks list. Until all of the survey forms are completed, the workflow will remain paused.
Build Dynamic String Store dynamic string in a variable (field).
Check In Item Check In Item with comment(optional) in any Document Library in the Site.
Check Out Item Check Out Item in any Document Library in the Site.
Create List Item Create a list Item in ANY list within the site.
Delete Item Delete a list Item in ANY list within the site
Discard Check Out Item Discard check out of Item in ANY list/Document library in the Site.
Do Calculation Perform basic arithmetic calculation and Output data to a variable.
Pause for Duration Workflow pauses for defined time duration.
Pause Until Date Workflow pauses for defined time/date.
Set Content Approval Status Assign comments to content approval status.
Set Time portion of Date/Time Field Set time for Date field
Stop Workflow Stop the workflow and log a message.
Wait for Field Change in Current Item Wait for any field in the current item to change to certain specified value

 

Along with the default actions, you can create custom actions to suit your business needs. Here are few resources to help you in creating your own workflow activities/actions.

1. Add Your Own Custom Workflow Activities to SharePoint Designer 2007

2. Microsoft SharePoint Developer Documentation Team Blog

3. Useful SharePoint Designer Custom Workflow Activities

32 Comments »

  1. Jag – Very nicely done. I have been meaning to document this and the reporting tools, but I’ll just point people over here.

    One of the other requests I get all the time is to document a case study for each of the default web parts in MOSS. I would like to do that with screencasts, but the way you have the table display setup will suffice until I have more time on my hands.

    Again, very nicely done.

    Regards,
    Mark
    EndUserSharePoint.com

    Comment by Mark Miller — April 10, 2008 @ 2:06 am

  2. I found your site a couple of weeks back and have been checking it every few days now. What a great deal to have a post on something that I have been struggling with!

    So I may be a little bit of a sharepoint newbie here. I just cannot get SPD 2007 to do workflows. Nor can I get VS to work for me well either, but is just another story with my win2k3 box not knowing that VS 2005 is installed… even when I am using it.. oh well haha.

    Anyways, so I open the site in SPD, and I go to File>New. There is no option for workflow. Is there a step I missed between getting WSS3 running, installing SPD, opening the site in SPD and trying to create a workflow?

    I am usually able to figure out situations like this, but this one has me stumped.

    Thanks in advance!

    Comment by Alex Carroll — April 12, 2008 @ 1:45 am

  3. Hey Alex,

    Thanks for following my mate. I see no missing step in the process you described. Did u turn on Client Integration in Central Admin..

    Jag

    Comment by Jag — April 12, 2008 @ 7:08 pm

  4. [...] SharePoint Designer Default Workflow Actions [...]

    Pingback by SharePoint, SharePoint and stuff : SharePoint Kaffeetasse #56 — April 14, 2008 @ 6:58 pm

  5. SPD requires .Net 3.0 to be installed on the client that is running SPD to use the Workflow wizard.

    Comment by Ian Morrish — April 14, 2008 @ 8:02 pm

  6. And a big list of Workflow resources including articles, downloads, training and KB’s – http://www.wssdemo.com/Pages/technologyresources.aspx?View={4F7FE54C-0C1D-458C-84FD-6150B68AFCEB}&SelectedID=5

    Comment by Ian Morrish — April 14, 2008 @ 8:05 pm

  7. Hi Ian,

    Thanks for the Workflow resources.

    Jag

    Comment by Jag — April 15, 2008 @ 12:15 pm

  8. Hi Alex,

    As Ian mentioned, you need to install .NET 3.0 Framework on your client machine.

    Ciao
    Jag

    Comment by Jag — April 15, 2008 @ 12:16 pm

  9. Hey guys,
    Client integration is turned on, and I have .NET 3.5 installed on all of my machines here. There is probably something very obvious that I am missing here that I am not thinking about. Thanks for all the help!

    Comment by Alex Carroll — April 15, 2008 @ 11:53 pm

  10. Hi Jag

    I go through your blog, its seems very interesting, tht is your so good in sharepoint. So I have some question about sharepoint. I’m doing web project using sharepoint. Its about managing image database. User can seach using search engine and download the image builtin sharepoint features. Now the problem is, when i search the result comes out but I select it the images doesn’t go to download page. I dono how to pass the parameter to the download page.

    Comment by komathi — April 29, 2008 @ 1:07 pm

  11. Hey Komathi,

    Thanks for reading my blog mate. Sorry for delay in answering your question. May be you already found an answer to it!

    Anyway, better solution to you problem is creating a custom search webpart and return the search results using FullTextSqlQuery class in Search API.

    Have a look into its members

    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.search.query.fulltextsqlquery_members.aspx

    Cheers,
    Jag

    Comment by Jag — May 3, 2008 @ 2:26 pm

  12. I am writing a very simple workflow to copy list items from one list to another list. It works except the copy action does not copy all data from the initial list. Some of the columns in the initial list are look up columns and choice columns. That is the data that is not being copied. Is it prohibited to copy data from those types of columns? The columns in the second list are set exactly the same as the first list.

    Comment by Jo Arnspiger — May 30, 2008 @ 9:13 am

  13. Hi,

    I am making a sharepoint based portal for my enterprise.

    Now, we need to use group approval workflow so that one service request can go to multiple people for approval.

    Now the catch here is that we want to set the approvers name dynamically depends on the HR manager and reporting manager of the specific User.This information exists in our Active directory and the user profile imported in the MOSS.

    Please let me know as whether i can use out of box workflow with the above dynamic assignation of managers(HR ,reporting).

    If yes, any links or way to achieve this will be of great help.

    Comment by mnaji — June 25, 2008 @ 11:28 pm

  14. Hi Mnaji,

    Thanks for reading my bog.

    Unfortunately you can’t achieve this using the OOTB workflows or the default WF actions I discussed above.

    You have to go with third party WF tools like K2’s BlackPoint.

    Jag

    Comment by Jag — June 26, 2008 @ 10:44 am

  15. hI
    can you explain me what is the diff between spd workflow , VS workflow and Moss2007 in bulit workfolws.
    And also please tell me some real time workfolws.

    Comment by sampath reddy — July 30, 2008 @ 5:28 pm

  16. How to assign a task to multiple users using ” Collect Data From Users Action ” .The users should be picked from workflow data.

    Comment by sireesh — August 27, 2008 @ 7:10 pm

  17. An alternative to using the workflow capabilities in MOSS is to consider using a more flexible and rosbust solution like that from PNMsoft. It is called SEQUENCE.

    http://www.pnmsoft.com
    http://bpmfundamentals.wordpress.com/bpm-resources/

    Comment by Ian Louw — September 3, 2008 @ 7:45 am

  18. Hi,
    I am creating a reminder wrokflow using SharePoint Designer, and when i using “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” under Workflow History but it doesn’t take specified action).
    I have created it many times but found same problem.
    I have done some googling for that in last some 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.
    If anyone have any solution regarding this then please reply me at saurabhsinghmca@gmail.com
    Thank you,
    Saurabh Kumar Singh

    Comment by Saurabh Kumar Singh — October 3, 2008 @ 6:36 am

  19. Hi jag,
    Is there any of spliting the newform.aspx in to three and providing next button in each and every page which navigates to the next page and in final page having a submit button which will save the entire data as single item in a particular list…..
    As we have around 200 columns in the list facing some performance issues while loading the page with the whole no of column in a single page. Can you please help me out in redesigning this…….

    Thank you
    Sireesh

    Comment by Sireesh — February 3, 2009 @ 10:55 pm

    • Hi Sireesh,

      Unfortunately, there is no way you can split the newform.aspx. This is not supported. I recommend using InfoPath 2007 for this.

      Jag

      Comment by Jag — February 4, 2009 @ 1:10 pm

  20. Hi Jag
    Thanks for the reply……
    Do you have any materials that teach you how to build an internet website in sharepoint (it would be better if it includes complete process in step – by – step mode)…….

    As well as i want to do microsoft certification in sharepoint.I need information on this also, its great if you provide me the complete details.

    Thanks
    Sireesh

    Comment by Sireesh — February 5, 2009 @ 6:28 pm

  21. Hi Jag,
    We developed an application in which workflows are used for approvals which runs on item change event, now we want to make few changes in the workflow.Here my doubt is how can we assign the new workflow to the already created items which infact are associated to earlier version of the workflow.Is there any way to associate the new workflow to the items that are created already and associated to earlier versions.

    Please help me out in solving this..

    Thanks
    Sireesh

    Comment by Sireesh — February 5, 2009 @ 6:40 pm

    • Hi Sireesh,

      If I understand your question right. You want to associate a new WF to existing items in SharePoint List/Document Library. Correct me if I am wrong. Yes you can assign as many workflows as possible. If your new workflow is recent version of the existing workflow, list items are attached to most recent workflow.

      Jag

      Comment by Jag — February 6, 2009 @ 11:58 am

  22. Hi Jag

    Any oppurtunities for sharepoint programers in SDM..

    Thanks
    Sireesh

    Comment by Sireesh — February 12, 2009 @ 8:00 pm

    • Hi Sireesh,

      I no longer work for SDM. If you are interested I have some contracting oppurtunites elsewhere. contact me on jagades.srk(at)gmail.com(nospam)

      Thank You,
      Jag

      Comment by Jag — February 13, 2009 @ 11:26 am

  23. Hi Jag

    Iam facing an intesting issue sometimes, we have a page in which three list webparts are connected some times Iam not able to see the data in the two connected webparts…. But we are able to see the data when we go and look in to the list. we are implenting item level security. We came across the same issue a month back and was resolved but we did nothing to resolve.Now we are again facing the same issue.

    Do you have any idea on this, it would be helpful if you provide some feedback on this issue.

    Thank You
    Sireesh

    Comment by Sireesh — February 13, 2009 @ 11:59 pm

  24. Hi Jag,

    Read your post, and its really nicely one too…
    Am just an year old in MOSS and find it quite mysterious yet…am currently facing this new problem, that am not too sure if its a Microsoft bug, or its bug with my server or am doing something wrong. I have a picture library, and I associate a workflow with that. As soon as I associate the workflow, it starts to show a java script error on the click of ECB menu of the image. It happens with the images that were even uploaded before the workflow was associated. But after this happens, there is no way to get rid of this error. Nor disassociating it with the workflow solves it out. Instead I have to delete the library, and create new one.

    First I was having a cusotom workflow developed in VS 2008, but then, I tried it with in built workflow like approval, and the same thing happens, so I don’t doubt my workflow anymore.

    Have you seen anything this strange, or any ideas on this??

    Priyanka

    Comment by Priyanka — May 8, 2009 @ 4:40 pm

  25. Jag,

    My project entails having a main Form that gets filed out , then some of the main form data gets populated to other forms data information. – Form data flowing to 30 other forms.
    My thought is to use infopath 2007 with MOSS 2007 – however with reading the above should the forms be created in designer instead of info path – I need to write and read data to a databases.
    InfoPath seems to be giving me error messages on code issues when trying the change compatibility. Not sure how to fix. So I must need to but into Central Admin the form then to sharepoint – Can’t seem to get a visual of the flow.
    Any thoughts.
    Thanks
    Mike

    Comment by Mike — June 5, 2009 @ 7:08 am

  26. Hi jag,
    i am new to share point am working on workflow. i found an issue in running the default work flow “Approval”. when i run it it throws an error

    “The form cannot be displayed because session state is not available. ”

    i am unable to find solution to resolve it.

    can u help me.

    Thanks,
    mahi

    Comment by mahendra — October 22, 2009 @ 10:03 pm


RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.