This works, except everytime I use it the first two words generated by the [Server Relative URL] workflow lookup are squished together into one word. Subsequent words in the string that have spaces between them get "%20"s between them. This only happens when I wrap the link in an <a> tag.
Here are the details:
What I made in SharePoint Designer's Workflow Designer using Server Relative URL:
http://portal/forms/_layouts/FormServer.aspx?XmlLocation=[%Information Technology Help Request:Server Relative URL%]&Source=http%3A%2F%2Fportal%2Fforms%2Fdefault%2Easpx&DefaultItemOpen=1
What appears in the e-mail (Note the bold was added here for your reference, see the "%20" between the words):
http://portal/forms/_layouts/FormServer.aspx?XmlLocation=/forms/Information%20Technology%20Help%20Request/Boone_%20Bryan-2010-07-27T08_38_29.xml&Source=http%3A%2F%2Fportal%2Fforms%2Fdefault%2Easpx&DefaultItemOpen=1
This worked every time so I decided to wrap the URL string in an <a> so the link as viewed in Outlook didn't break on the spaces and would then open with a click. All I did is add the necessary HTML and this is when I ran into a problem.
For example I can create something like this in SharePoint Designer's Workflow Designer:
<a href="http://portal/forms/_layouts/FormServer.aspx?XmlLocation=[%Information Technology Help Request:Server Relative URL%]&Source=http%3A%2F%2Fportal%2Fforms%2Fdefault%2Easpx&DefaultItemOpen=1">Using Server Relative URL</a>
When this opens in a browser however the URL opens like this (Note the bold was added here for your reference, see the lack of a "%20" between the words and that they have collapsed together):
http://portal/forms/_layouts/FormServer.aspx?XmlLocation=/forms/InformationTechnology%20Help%20Request/Boone_%20Bryan-2010-07-27T08_38_29.xml&Source=http%3A%2F%2Fportal%2Fforms%2Fdefault%2Easpx&DefaultItemOpen=1
Compare that with the example without the <a> tag and you will notice the space between "Information" and "Technology" is missing, while the other spaces, such as the ones between "Technology" and "Help" have been replaced by "%20" and are alright. I bolded those sections of each example to help identify them. This version of the URL goes nowhere and I of course get a "The form has been closed." error.
It is always rendered correctly without the <a> tag and always incorrectly when using the <a>. I'm only using the <a> tags because of the spaces in the first place as Outlook cuts off the URL when it first encounters the space in the URL string.
If anyone has any insite into this issue I would greatly appreciate your input. I'm fairly new to Workflows, so I could be making a simple mistake, but I've checked this over on such articles as this one: http://office.microsoft.com/en-us/sharepoint-designer-help/send-e-mail-in-a-workflow-HA010239042.aspx
Cheers,
Bryan
This is also posted on http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/63fa1722-6165-4294-be14-71ab6267aa20