SharePoint Designer Workflow Limitations 

Tags:

SharePoint Designer workflows are have some great benefits: they are relatively easy to create, don't require any code, and can be created and maintained by power users, not just developers.  However, there are several limitations to SharePoint Designer workflows and you can hit these edges relatively quickly.  Before deciding to go down the SharePoint Designer workflow path, you might want to understand these edges as you may have to do more work to create the solution.  Nearly all of these limitations listed further below can be solved through one or more of the following techniques:
  • Create a Visual Studio 2005 workflow instead and connect it to the SharePoint list.
  • Create a SharePoint list event and handle all of the needs within the event.
  • Create a SharePoint list event and initiate a worklfow from the event.  See Starting Workflows from SharePoint Events.
  • Create custom SharePoint Designer Actions or Conditions.
Limitations   The limitations below are listed in relative priority with the most important or most likely to be encountered towards the top.
  • You cannot access the previous value of a field.  This means that you cannot check to see if a field changed.  There is an action that waits for a field to change, but you must provide the value that it changes to.  Alternatively you can compare it to another field, but not the previous value of that field.  If the field didn't change at all but met the condition implied by the action, this wait action likely wouldn't wait at all and move on the next step in the workflow.
    • Workaround: Use a SharePoint list event to track "ItemUpdating" and pass in the "After" value for a field (the current value will be the old value in a synchronous updating event).  If you decide to also start this workflow from any asynchronous event (e.g., "ItemAdded" and/or "ItemUpdated"), you will need to pass in the event trigger (e.g., "Add", "Updating", "Updated") so the workflow can differentiate between them (the current item in the workflow will be the old item for synchronous events, but it will be the new value for asynchronous events).  For an example of this, see: Starting Workflows from SharePoint Events.
  • You cannot loop.  If you want to perform an action on say all items in a list or all child items for a parent, you simply cannot do it unless you know how to lookup each item in the list at design time and have an action for each of those items.
    • Workaround: Use Events or a Visual Studio 2005 workflow.
  • You cannot lookup an item using two keys.  If one key does not uniquely identify an item, you are stuck.  You can try to just use one field, but the workflow will act on the first item it finds.  You cannot use two fields to identify it.
    • Workaround: Use Events or a Visual Studio 2005 workflow.
  • You cannot copy the contents of one email action to use it within the same or another email action.  This is true if there are any lookups within the email contents.
    • Workaround: Copy by hand (re-write the contents) or after saving the .xoml file, open it with an XML editor (right click the .xoml file and choose Open With -> SharePoint Designer (Open as XML)), then copy/paste the appropriate data.
  • You cannot put lookup information in the subject of an email.
    • Workaround: The easiest workaround is to put the lookup information in the email body.  More complex solutions involve creating a custom SharePoint Designer workflow action, use a Visual Studio 2005 workflow, or sending the email from an event.
  • You cannot group logical conditions within a step by using parenthesis.
  • You cannot easily log a value with context information to the workflow history list.
    • Workaround: Use the Build Dynamic String action to store your log into a workflow variable then use the Log to History List action to log the workflow variable to the history list.
  • You can run actions in parallel, but you cannot run steps in parallel.
    • Workaround: Use a Visual Studio 2005 workflow.

Tips

Other than the workaround tips mentioned above, there are some things buried in SharePoint Designer workflows that are possible, but not obvious.

  • You can relate to lists once or more removed from the current list.  For example, you can use the current item and lookup to a related list and use that item to lookup to another list (or maybe a different item in the original list).
  • You can build dynamic strings or calculated values and put them into workflow variables then use those variables to set list items.  Note that the calculations are simple: plus, minus, multiply by, divide by, mod.
 
Posted by Kirk Liemohn on 22-Mar-07
31 Comments  |  Trackback Url  |  Link to this post | Bookmark this post with:        
 

Links to this post

Comments


Another Possible Limitation commented on Thursday, 11-Oct-2007
I created a two steps in a workflow step: Step 1) I used the "collect data from user" and created a choice menu (radio buttons) with (approved, declined, pending) inside this task and set the List ID variable. step 2) I compare the "choice" value and execute certain actions if the value is "Pending, Approved, or Declined. Neither one of the actions are executed because the "choice" value comes back as "?????" Any ideas


Re: Another Possible Limitation commented on Thursday, 18-Oct-2007
I'll have to give this a try myself. A little slammed at the moment...


Workflow doesn't appear to fire commented on Thursday, 8-Nov-2007
I have read till my eyes bleed and watched countless videos on creating WF's with SPD. It all looks great except that I can't get any of my custom WF's to fire. My Document List Library indicates that the WF was completed successfully. However, when I look at the WF History page for my custom WF it displays no history for the WF. Although at the top of the history page it indicates that it completed successfully. So my questions are: How can I get some information on just exactly what my WF is doing? Is there a way to confirm from the CA whether or not there is a problem? Any help would be greatly appreciated. Sincerely, Tim


Re: Workflow doesn't appear to fire commented on Monday, 12-Nov-2007
Tim, the easiest way to see what your workflow is doing is to log to the history list. You will have to do this yourself. In one of your actions choose "More Actions..." then the "Log to History List" action. You can put in a literal string or have one pre-built using the Build Dynamic String action referenced above in this blog.


Workflow limitations commented on Wednesday, 21-Nov-2007
What are other out-of-the-box limitations of workflow in sharepoint? tnx:), jem


Re: Workflow limitations commented on Wednesday, 21-Nov-2007
I'd love to hear from others as well... Note that this is discussing SharePoint Designer workflow limitations. These do not apply to Visual Studio Workflows for SharePoint.


Variable operation commented on Wednesday, 5-Dec-2007
I have four variables:v1="a1",v2="a2",v3="a3",v4 Action:set workflow variable v4=v1+v2+v3 How to implement v1+v2+v3. Sincerely, Sunny


Workflow seems to be looping commented on Wednesday, 5-Dec-2007
1st I have two workflows on one list. One is when a new item is created and the other is when an item is changed. My first issue is the second workflow is executing even though it is a new item. 2nd my workflow seems to be executing some of the steps repeatedly. I have a step that creates a task in a list and it executes repeatedly. Any suggestions. Courtney


Re: Workflow seems to be looping commented on Wednesday, 12-Dec-2007
Courtney, If your first workflow changes the item or another item in the same list, then it could cause the second workflow to run. If your second workflow changes the item or another item in the same list, it could get into an infinite loop. I have not witnessed this on SharePoint Designer workflows, but I have on SharePoint events and it seems reasonable that it would happen in SPD WFs. In code you can disable events and re-enable them when doing something like this, but it doesn't apepar that there is a SPD WF action that exists for this. Sorry that I don't have a solution, but this may be your problem. If you want to tell me what you goal is for the workflow I might be able to suggest workarounds. P.S. I noticed that you had two comments with the same information. I deleted the extra comment, but was wondering if you did that because you were given an error message on the first comment and didn't realize that it actually went through. Someone else has commented on a different posting on this site about having a similar problem, but I hadn't been told that anyone had the problem with our site.


Re: Variable operation commented on Thursday, 13-Dec-2007
Sunny, Have you tried the "Do Calculation" action? To do: v4=v1+v2+v3 You may have to have two of these together such that v5=v1+v2 v4=v5+v3 Pretty ugly, but that should do the trick. Let me know if this does not work for you.


Send Email with List Item attachments using Sharepoing Designer commented on Wednesday, 26-Dec-2007
Can someone please let me know how I can send an email in a workflow with the attachments from the list item attached to the email? Thanks!!!!!


Looking up a List Item to update, based on two fields commented on Wednesday, 16-Jan-2008
I have a workflow in which I need to update another item. Now I'm trying to figure out a way to perform a lookup based on two fields. How may I do that as the "Update List Item" action only allows a lookup based on one critera. Thank you


Copy Document from one library to another commented on Monday, 28-Jan-2008
So far I can't find an easy example of how to copy the document from one library (say Current) to another (say archive). All I want to do is move doc A from Library 1 to Library 2 when a certain date occurs. Can anyone please point me to an example? Thank you. Tim


Action: Build Dynamic String commented on Tuesday, 29-Jan-2008
Hey, first i would like to thank u for this article which points out the limitations of SharePoint Designer. I would like to add something about the 2 following points: - u cant copy lookup contents from emails. - u cant add lookup to the email subject. both problems have an easier workaround imo. u can use the action called Build Dynamic String. this string let u do pretty much the same as u would do in de email body. in it u can combine workflow data and tekst and save it in a variable. later u can call this variable to use in the email subject or body. HTH bob


Re: SharePoint Designer Workflow Limitations commented on Tuesday, 29-Jan-2008
Tim, the problem is 'when a centain data occurs' because u cant let the workflow wait untill the value changes (as far as i know.. maybe u could play a bit with comparing any value and add time to date action) what u can do, when u want an item to be removed after lets say a week is 'pause untill date' action. make that data the item.created + 7 days (u can do this with add time to date) copying a list item should be rather simple. use the 'copy list item' and fill in the lists and compare the ID field from the list with currentItem.ID hth bob


I need to do this as well. Any ideas? commented on Thursday, 28-Feb-2008
Send Email with List Item attachments using Sharepoint Designer. Can someone please let me know how I can send an email in a workflow with the attachments from the list item attached to the email? Thanks!!!!!


Send Email with List Item attachments using Sharepoint Designer commented on Friday, 29-Feb-2008
I'm not certain, but the likely answer is that you'll have to dive into code to make this happen. There are 2 options here: 1. Create a Visual Studio Workflow. These can be very powerful in that VS WFs within SharePoint have several places a user can tailor the workflow to their needs. VS WFs in SP can have an association form, initiation form, modification form, and task edit form. 2. Create a custom action that shows up in SharePoint designer. I have not done this before, but here is a link that might get you started: http://sharepointbergen.blogspot.com/2007/04/creating-custom-actions.html.


Kandy commented on Friday, 25-Apr-2008
Please Help! I am having huge problems with the "Set a variable in current item" and "Update List Item" Actions in Workflow Designer! Everytime I use these actions, I have what seems to be an endless loop of workflow instances occuring whether automatically or manually started on A list item. Have anyone ever had this this problem? Is so, how did you solve it?


dario commented on Wednesday, 7-May-2008
I also have the same problem as Kandy. has anyone found a solution for it?


joule commented on Tuesday, 13-May-2008
thx for you explanation. right now i just new with sharepoint hope you could help me too :) thx


Lauren commented on Wednesday, 20-Aug-2008
I have 6 workflows established on one list on my site. I am attempting to run mulitple workflows on another list on the same site and the only workflow that it is keeping is the last one saved. Is there some reason why I can have 6 workflows on one list but the other is only keeping 1?


Marilyn commented on Wednesday, 10-Sep-2008
Regarding Looping workflow questions. If you use are updating fields in the current item in your workflow AND the start options are set to automatically trigger the workflow when an item is changed it will loop continuously. Open your workflow and click the Back button to change.


MK2008 commented on Friday, 24-Oct-2008
I have a issue i recently face. I have a wrkflow created in SPD 2007. & i have a list which is extracted from excel. so the problem i am facing is problem that the workflow runs wen i manually create the item of the list but does not run or gets connected to the item when it comes from the excel pls help!!!!


nq316 commented on Saturday, 1-Nov-2008

情趣用品 commented on Tuesday, 18-Nov-2008
情趣用品,情趣用品,情趣用品,情趣用品,情趣,情趣,情趣,情趣,按摩棒,跳蛋,充氣娃娃,免費A片,AV女優,美女視訊,情色交友,免費AV,色情網站,辣妹視訊,美女交友,色情影片,成人影片,成人網站,A片,H漫,18成人,成人圖片,成人漫畫,情色網,日本A片,免費A片下載,性愛,A片,色情,成人,做愛,情色文學,A片下載,色情遊戲,色情影片,色情聊天室,情色電影,免費視訊,免費視訊聊天,免費視訊聊天室,一葉情貼圖片區,情色,情色視訊,免費成人影片,視訊交友,視訊聊天,視訊聊天室,言情小說,愛情小說,AIO,AV片,A漫,av dvd,聊天室,自拍,情色論壇,視訊美女,AV成人網,色情A片,情趣用品,A片,免費A片,AV女優,美女視訊,情色交友,色情網站,免費AV,辣妹視訊,美女交友,色情影片,成人網站,H漫,18成人,成人圖片,成人漫畫,成人影片,情色網,sex,情趣用品,A片,免費A片,日本A片,A片下載,線上A片,成人電影,嘟嘟成人網,成人,成人貼圖,成人交友,成人圖片,18成人,成人小說,成人圖片區,微風成人區,成人文章,成人影城,情色,情色貼圖,色情聊天室,情色視訊,情色文學,色情小說,情色小說,臺灣情色網,色情,情色電影,色情遊戲,嘟嘟情人色網,麗的色遊戲,情色論壇,色情網站,一葉情貼圖片區,做愛,性愛,美女視訊,辣妹視訊,視訊聊天室,視訊交友網,免費視訊聊天,美女交友,做愛影片,情境坊歡愉用品,情趣用品,情人節禮物,情惑用品性易購,av,情趣用品,a片,成人電影,微風成人,嘟嘟成人網,成人,成人貼圖,成人交友,成人圖片,18成人,成人小說,成人圖片區,成人文章,成人影城,愛情公寓,情色,情色貼圖,色情聊天室,情色視訊,情色文學,色情小說,情色小說,色情,寄情築園小遊戲,情色電影,aio,av女優,AV,免費A片,日本a片,美女視訊,辣妹視訊,聊天室,美女交友,成人光碟


warhammer commented on Thursday, 27-Nov-2008

inwowgold commented on Monday, 8-Dec-2008
WoW Accountbuy wow gold,wow power leveling,Cheap WoW Accountwow gold,Hudson, Dunn declare free agencyworld of warcraft gold,cheap wow gold,world of warcraft power leveling,world of warcraft gold,buy wow gold,Buy WoW Accountbuy wow gold,wow power leveling,ffxi gil,ffxi gil,world of warcraft power leveling,World of Warcraft Account,sell wow gold,wow power level,wow gold for sale,power leveling,,wow power level,WoW Accounts for Sale, faith and creditwow gold for sale,power levelingwow power level,buy cheap wow gold.Gold


mota commented on Saturday, 20-Dec-2008

car wash commented on Monday, 29-Dec-2008
Pursestock supplier provides the best Gucci replica,Chanel replica,Louis Vuitton replica; show you every detail of photos of replica handbags. Do you think it is hard to believe that we have such a high-quality wholesale replica handbags,Hermes birkinand Hermes kelly? Let me tell you, when you have our Gucci replica purses, you will understand why Chinese manufacturing industry and replicas products are so well-developed. The authentic Gucci replica, you can buy for collections. But the genuine high prices are outrageous, how many collections you can buy with such a high price,if you like Monogram Canvas,speedy 30,chanel 2.55 bag ? Jadeshow’s replica Tiffany Jewelry and Replica Bvlgari Jewelery looks just like the real thing. Why pay more for a single piece of Tiffany Replica jewelry,Bvlgari Replica Jewelry when you can treat yourself to a number of replica pieces for the same price or less? Be simply spectacular with contemporary Tiffany-inspired jewelry!Jadwshow delights in the opportunity to offer our customers fine Tiffany Bracelets, Tiffany Necklaces, Tiffany Earrings, Tiffany Rings, Tiffany Bangles,Gucci jewelry replica, all at remarkably low prices.


car wash commented on Monday, 29-Dec-2008
Name:
URL:
Email:
Comments:

CAPTCHA Image Validation