I'm sending an email to various people asking to approve a form. I'm beginning with Set Variable:Formlink to [%Workflow Context:Current Site URL%]/_layouts/FormServer.aspx?XmlLocation=[%Workflow Context:current Item URL%]&Source=[%Workflow Context:Current Site URL%]&DefaultItemOpen=1. I add [%Variable: Formlink%] (using the 'Add or Change Lookup] feature and the email gets sent with the link to the form in the body. The problem is that if there are any spaces in the SharePoint library name or the id of the item, the hyperlink created is not correct the hyperlink is ended at the first space. See the body of the resultant email below:
______________________________________________________________________________________________________________________________________________________________________________________
Please review the form below for approval.
http://xxxxxxxxxxxx/sites/labs/_layouts/FormServer.aspx?XmlLocation=http://tst-oss-0251/sites/labs/DJP BP Request Library/Sirius America 2012-03-14.xml&Source=http://tst-oss-0251/sites/labs&DefaultItemOpen=1
______________________________________________________________________________________________________________________________________________________________________________________
Any ideas on how I can display the hyperlink correctly (other than to say "no spaces")?
Thanks,
Doug