<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SharePoint DIY &#187; Workflow</title>
	<atom:link href="http://www.sharepointdiy.com/tag/workflow/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sharepointdiy.com</link>
	<description>Tutorials and how to&#039;s for Microsoft SharePoint</description>
	<lastBuildDate>Wed, 24 Jun 2009 23:28:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Create a nicer looking hyperlink instead of the full URL using simple HTML</title>
		<link>http://www.sharepointdiy.com/271/creating-a-nicer-looking-hyperlink-instead-of-the-full-url?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=creating-a-nicer-looking-hyperlink-instead-of-the-full-url</link>
		<comments>http://www.sharepointdiy.com/271/creating-a-nicer-looking-hyperlink-instead-of-the-full-url#comments</comments>
		<pubDate>Wed, 24 Jun 2009 23:28:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Workflow]]></category>

		<guid isPermaLink="false">http://www.sharepointdiy.com/?p=271</guid>
		<description><![CDATA[Perhaps it is just basic HTML, but I&#8217;m positive that this will benefit someone while formatting for example a workflow email. Instead of having that ugly long URL inside the body of the email, we would like to have some text that says &#8220;Click here&#8221; to link to the appropriate document / list item etc. A &#8230;]]></description>
			<content:encoded><![CDATA[<p>Perhaps it is just basic HTML, but I&#8217;m positive that this will benefit someone while formatting for example a workflow email.</p>
<p>Instead of having that ugly long URL inside the body of the email, we would like to have some text that says &#8220;Click here&#8221; to link to the appropriate document / list item etc.</p>
<p>A hyperlink is simply created by typing the following code in  the body of your email:<br />
&lt;a href=&#8221;http://MyServerName/&#8221;&gt;Click here&lt;/a&gt;</p>
<p>Replace the http://MyServerName for some item you would like to link to.</p>
<p>Pretty much all email clients will read the html code and convert it into a nice looking link.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointdiy.com/271/creating-a-nicer-looking-hyperlink-instead-of-the-full-url/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Making the &#8220;Encoded absolute URL&#8221; work with a list in SharePoint</title>
		<link>http://www.sharepointdiy.com/246/encoded-absolute-url-doesnt-work-with-a-list-in-sharepoint?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=encoded-absolute-url-doesnt-work-with-a-list-in-sharepoint</link>
		<comments>http://www.sharepointdiy.com/246/encoded-absolute-url-doesnt-work-with-a-list-in-sharepoint#comments</comments>
		<pubDate>Tue, 23 Jun 2009 20:28:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[SharePoint Designer]]></category>
		<category><![CDATA[Workflow]]></category>

		<guid isPermaLink="false">http://www.sharepointdiy.com/?p=246</guid>
		<description><![CDATA[You&#8217;ve probably noticed that when trying to use the &#8220;Encoded Absolute URL&#8221; in for example an email that gets sent out from a workflow on a SharePoint list, returns a strange link that doesn&#8217;t work when clicking on it. The URL that gets created when using the &#8220;Encoded Absolute URL&#8221; looks something like: http://litwaredemo/Project/Lists/Projects/14 .000. The catch with &#8230;]]></description>
			<content:encoded><![CDATA[<p>You&#8217;ve probably noticed that when trying to use the &#8220;Encoded Absolute URL&#8221; in for example an email that gets sent out from a workflow on a SharePoint list, returns a strange link that doesn&#8217;t work when clicking on it.</p>
<p>The URL that gets created when using the &#8220;Encoded Absolute URL&#8221; looks something like: http://litwaredemo/Project/Lists/Projects/14 .000.</p>
<p>The catch with the &#8220;Encoded Absolute URL&#8221; parameter is that it only works with Document Libraries &#8211; not with any other lists in SharePoint.</p>
<p>There are a couple of easy way around this by changing the URL a bit.</p>
<ul>
<li>Option 1 is the best approach, however you will have to hardcode the server name and this could cause the workflow or other to break when you move servers / domains (not very likely to happen very often though).</li>
<li>Option 2 is a straight forward approach which doesnt&#8217; make it necessary to hardcode the server name however has the downside that it will NOT work when using folders inside the list where list items are located.</li>
</ul>
<h2>Option 1: Hard coded server name &#8211; best option</h2>
<p>When you created a workflow and as an action kick off an email, you can use the &#8220;Add Lookup to Body&#8221; functionality to compile the link.</p>
<p>In the body of the email type in:</p>
<p>http://YOURSITENAME/</p>
<ul>
<li>Click the &#8220;Add Lookup to Body&#8221; button</li>
<li>For the drop down list &#8220;Source&#8221; select &#8220;Current Item&#8221;</li>
<li>For the drop downlist &#8220;Field&#8221; select &#8220;Path&#8221;</li>
<li>Click &#8220;OK&#8221;</li>
</ul>
<div class="mceTemp">
<div id="attachment_253" class="wp-caption alignnone" style="width: 310px"><a href="http://www.sharepointdiy.com/wp-content/uploads/2009/06/urlencode11.png"><img class="size-medium wp-image-253" title="Current Item &gt; Path" src="http://www.sharepointdiy.com/wp-content/uploads/2009/06/urlencode11-300x271.png" alt="Current Item &gt; Path" width="300" height="271" /></a>
<p class="wp-caption-text">Current Item &gt; Path</p>
</div>
</div>
<p>Now the URL in the email body will look like:</p>
<p>http://YOURSITENAME/[%Tasks:Path%]</p>
<ul>
<li>Enter the text &#8221;/DispForm.aspx?ID=&#8221; behind the just inserted parameter</li>
<li>Click the &#8220;Add Lookup to Body&#8221; button again</li>
<li>For the drop down list &#8220;Source&#8221; select &#8220;Current Item&#8221;</li>
<li>For the drop downlist &#8220;Field&#8221; select &#8220;ID&#8221;</li>
<li>Click &#8220;OK&#8221;</li>
</ul>
<div class="mceTemp">
<div id="attachment_254" class="wp-caption alignnone" style="width: 310px"><a href="http://www.sharepointdiy.com/wp-content/uploads/2009/06/urlencode21.png"><img class="size-medium wp-image-254" title="Current Item &gt; ID" src="http://www.sharepointdiy.com/wp-content/uploads/2009/06/urlencode21-300x271.png" alt="Current Item &gt; ID" width="300" height="271" /></a>
<p class="wp-caption-text">Current Item &gt; ID</p>
</div>
</div>
<p>Now the URL in the email body will look like:</p>
<p>http://YOURSITENAME/[%Tasks:Path%]/DispForm.aspx?ID=[%Tasks:ID%]</p>
<div id="attachment_255" class="wp-caption alignnone" style="width: 310px"><a href="http://www.sharepointdiy.com/wp-content/uploads/2009/06/urlencode3.png"><img class="size-medium wp-image-255" title="Proper path to SharePoint list item" src="http://www.sharepointdiy.com/wp-content/uploads/2009/06/urlencode3-300x271.png" alt="Proper path to SharePoint list item" width="300" height="271" /></a>
<p class="wp-caption-text">Proper path to SharePoint list item</p>
</div>
<p> The email that will send out when the workflow is triggered will now look like:</p>
<div id="attachment_256" class="wp-caption alignnone" style="width: 310px"><a href="http://www.sharepointdiy.com/wp-content/uploads/2009/06/urlencode4.png"><img class="size-medium wp-image-256" title="Email with link to list item" src="http://www.sharepointdiy.com/wp-content/uploads/2009/06/urlencode4-300x269.png" alt="Email with link to list item" width="300" height="269" /></a>
<p class="wp-caption-text">Email with link to list item</p>
</div>
<h2>Option 2: Using [%Tasks:Encoded Absolute URL%]</h2>
<p>When you created a workflow and as an action kick off an email, you can use the &#8220;Add Lookup to Body&#8221; functionality to compile the link.</p>
<p>In the body of the email:</p>
<ul>
<li>Click the &#8220;Add Lookup to Body&#8221; button</li>
<li>For the drop down list &#8220;Source&#8221; select &#8220;Current Item&#8221;</li>
<li>For the drop downlist &#8220;Field&#8221; select &#8220;Encoded Absolute URL&#8221;</li>
<li>Click &#8220;OK&#8221;</li>
</ul>
<p>Now the following parameter in the email body will look like:<br />
[%Tasks:Encoded Absolute URL%]</p>
<li>In order to get a working link we will have to add &#8220;/../DispForm.aspx?ID=&#8221; behind the just inserted parameter</li>
<li>Click the &#8220;Add Lookup to Body&#8221; button again</li>
<li>For the drop down list &#8220;Source&#8221; select &#8220;Current Item&#8221;</li>
<li>For the drop downlist &#8220;Field&#8221; select &#8220;ID&#8221;</li>
<li>Click &#8220;OK&#8221;</li>
<p>Now the link in the email body is complete and will look like:<br />
[%Tasks:Encoded Absolute URL%]/../DispForm.aspx?ID=[%Tasks:ID%]</p>
<p>The trick is the /../ between the &#8220;[%Tasks:Encoded Absolute URL%]&#8221; and the &#8220;DispForm.aspx?ID=[%Tasks:ID%]&#8221; in the link. The &#8220;/../&#8221; tells the server to go up one level in the folder hierarchy. The problem with this approach is that when you have folders inside your list where you store list items the path to the needs to go up even more levels depending on how deep you nested the list items.</p>
<p>I recommend using option 1 &#8211; but if you are absolutely certain folders will never be used or you will always keep all tasks organized on one specific folder level &#8211; this option will be &#8216;ok&#8217;.</p>
<p>And we are done!</p>
<p>See our <a href="http://www.sharepointdiy.com/articles/creating-a-nicer-looking-hyperlink-instead-of-the-full-url">follow up post </a>about creating a nicer looking hyperlink instead of the url.</p>
<p>Hope this helps!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointdiy.com/246/encoded-absolute-url-doesnt-work-with-a-list-in-sharepoint/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

