SharePoint Designer 2010 workflows will remove back slashes in dynamics strings if the Workflow Actions uses lookup data and static text when the workflow executes.

Article translations Article translations
Close Close
Article ID: 2529610 - View products that this article applies to.
Expand all | Collapse all

SYMPTOMS

Microsoft SharePoint Designer 2010 Workflow that contain an Action that combines static text with lookup, which is called a dynamic string, will remove backslashes that have been entered into the dynamic string.

For example:
  1. You enter a 'set field in current item' action to your Workflow,
  2. click on 'Field' and select 'Title',
  3. click 'Value' followed by '...' and enter (without the quotes) "There should be a backslash after this: \ and two after this: \\" and
  4. add a lookup value by clicking the "Add or Change Lookup" button; for the 'Data Source' keep it on "Current Item" and in 'Field From Source' select "Modified by" (or any other lookup item)
When the Workflow is executed the result in the Title field will look like:
"There should be a backslash after this: and two after this: \ domain\alias"

RESOLUTION

If you are creating a dynamic string with one or more back slash characters you need to duplicate each backslash. To get one back slash, two back slash characters have to be specified in the Workflow definition. To get two back slashes, four back slashes have to be specified, etc.

For the existing example the dynamic string for the Workflow action has to be specified as:
"There should be a backslash after this: \\ and two after this: \\\\"

MORE INFORMATION

Please note that this duplication of back slash characters is only needed if you have a dynamic string with lookups. If you have a pure static string without any lookups then back slashes don't have to be duplicated.
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Properties

Article ID: 2529610 - Last Review: June 7, 2011 - Revision: 2.0
APPLIES TO
  • Microsoft SharePoint Designer 2010
Keywords: 
KB2529610

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com