SharePoint - SPD bug ? - extra space (% 20 ) added to doc links in workflow

Asked By SreejithRa on 21-May-07 11:32 AM
I am using Sharepoint Designer to create a workflow. I have a workflow
attached to the TASKS to send an email to the assignee with link to the
document (that triggered workflow) and a direct edit link for the users to
click and comlete the task.

I am using - [%Tasks:Link%] propery to disply a link to the original
document. This always adds an extra space char (% 20) , if there is already
some space in the URL.

For example
http://homesite/test%20site/Shared%20Docs/WSS_Doc%20%20review%20Solutions.xls

The 2 %20 in  'WSS_Doc%20%20review' is the problem ... There is only 1 space
in the actaul filename.

If there is no space in filename , it adds extra space to the Library
name(Shared Docs) or Site name ( test site)

This is obviosly a bug. Any one know of any work arounds? Please help..
Thanks in advance.


sreejith.ra replied on 24-May-07 11:39 AM
I do not see [%Tasks:Link%]  working. But a work around to get a good
link to the original document is to use EncodedAbsoluteURL property of
the document library. You could map to the right document by matching
document ID to the WorkFlow Item ID property of the task.