<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5089349049043503854</id><updated>2024-12-18T21:04:27.362-08:00</updated><category term="SharePoint"/><category term="File Types"/><category term="Looping"/><category term="PDF"/><category term="Search"/><category term="SharePoint Workflows"/><category term="Tips and Tricks"/><category term="Workflows"/><category term="iFilter"/><category term="icons"/><title type='text'>Stumbling Through SharePoint</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://stumblingthroughsharepoint.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5089349049043503854/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://stumblingthroughsharepoint.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Pete Scheuering</name><uri>http://www.blogger.com/profile/04109364283259375103</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7k4ivlLTCnYjFUB5SYCJVOGVqNiplsSmPzXHS-kWjpwXuEziCh3Y4XFb9oQ-b9karPpLQWxpPudnpvdTr7j3EPnsGX4zfNjVMkqR1DsAodNm0I46XOXQsevWFHewQtAY/s220/PeteScheuering.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5089349049043503854.post-6717160918104283719</id><published>2012-08-14T17:13:00.001-07:00</published><updated>2012-08-14T17:13:14.393-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="File Types"/><category scheme="http://www.blogger.com/atom/ns#" term="icons"/><category scheme="http://www.blogger.com/atom/ns#" term="iFilter"/><category scheme="http://www.blogger.com/atom/ns#" term="PDF"/><category scheme="http://www.blogger.com/atom/ns#" term="Search"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint"/><title type='text'>PDF Files and SharePoint 2010</title><content type='html'>&lt;b&gt;Background&lt;/b&gt;&lt;br /&gt;
SharePoint does not inherently handle PDF files as a known file type by default. Not a big deal but for a better end user experience there are a few server configurations you can apply to have SharePoint work with PDF files.&lt;br /&gt;
&lt;br /&gt;
Here are things that SharePoint does not do by default with PDF files that I will talk about.&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Search content in PDF files&lt;/li&gt;
&lt;li&gt;Display an icon for PDF file types&lt;/li&gt;
&lt;li&gt;Open PDF files (it forces you to save them locally)&lt;/li&gt;
&lt;li&gt;Open PDF files in a new browser tab&lt;/li&gt;
&lt;/ul&gt;
My goal with this post is to explain how I address these issues in one spot since I often find myself searching on the web for solutions to these issues.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Search Content in PDF Files&lt;/b&gt;&lt;br /&gt;
SharePoint by default does not search the content of PDF files like it does for Microsoft Office documents. To resolve this you need to install and configure the Adobe PDF iFilter 9.&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Download and install the &lt;b&gt;Adobe PDF iFilter for 64-bit platforms&lt;/b&gt; &lt;a href=&quot;http://www.adobe.com/support/downloads/detail.jsp?ftpID=4025&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Open the SharePoint &lt;b&gt;Central Administration&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Under Application Management click the &lt;b&gt;Manage service applications&lt;/b&gt; link&lt;/li&gt;
&lt;li&gt;Click the &lt;b&gt;Search Service Application&lt;/b&gt; link&lt;/li&gt;
&lt;li&gt;In left navigation menu click the &lt;b&gt;File Types&lt;/b&gt; link&lt;/li&gt;
&lt;li&gt;Click the &lt;b&gt;New File Type&lt;/b&gt; link&lt;/li&gt;
&lt;li&gt;In the File extension text box enter &lt;b&gt;pdf&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Click the &lt;b&gt;OK &lt;/b&gt;button&lt;/li&gt;
&lt;li&gt;Open the &lt;b&gt;Registry Editor&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Navigate to the following location: &lt;b&gt;\\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\14.0\Search\Setup\ContentIndexCommon\Filters\Extension&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Right Click &lt;b&gt;Extension&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Choose &lt;b&gt;New-&amp;gt;Key&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Name the new key &lt;b&gt;.pdf&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Open the &lt;b&gt;(Default)&lt;/b&gt; value for the .pdf extension&lt;/li&gt;
&lt;li&gt;In the Value data field enter &lt;b&gt;{E8978DA6-047F-4E3D-9C78-CDBE46041603}&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Click the &lt;b&gt;OK&lt;/b&gt; button&lt;/li&gt;
&lt;li&gt;Restart the &lt;b&gt;SharePoint Server Search 14&lt;/b&gt; service&lt;/li&gt;
&lt;li&gt;In SharePoint Central Administration perform an &lt;b&gt;full crawl&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;Display an Icon for PDF File Types&lt;/b&gt;&lt;br /&gt;
Not a big deal but I often found it frustrating when I add a PDF file to a SharePoint document library and it does not display the icon telling me what type of file it is. To fix this you need to install add the PDF icon to the 14 hive and update the DOCICON.xml file.&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Download the &lt;b&gt;PDF icon&lt;/b&gt; &lt;a href=&quot;http://www.mossgurus.com/adnan/Documents/pdf16.gif&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt; &lt;/li&gt;
&lt;li&gt;Copy the PDF icon to the following location &lt;b&gt;C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IMAGES\&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;In Windows Explorer, navigate to &lt;b&gt;C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Right click on the &lt;b&gt;DOCICON&lt;/b&gt; file and choose &lt;b&gt;Edit&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;In the ByExtension section add the following text &lt;b&gt;&amp;lt;Mapping Key=&quot;pdf&quot; Value=&quot;pdficon.gif&quot;/&amp;gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Save and close the file&lt;/li&gt;
&lt;li&gt;Restart &lt;b&gt;IIS&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;Opening PDF Files&lt;/b&gt;&lt;br /&gt;
So after you install the iFilter and try to open a PDF file you get a prompt to Save the file rather than opening them from the browser. Contrary to Microsoft’s resolution to the issue this is not an education problem. It is a problem with an inconsistent UI. Microsoft Office documents do not prompt you to save them when you open them from SharePoint so why do PDF files? To fix this issue you need to adjust how the browser handles files.&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Open the SharePoint &lt;b&gt;Central Administration&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Under Application Management click the &lt;b&gt;Manage web applications&lt;/b&gt; link&lt;/li&gt;
&lt;li&gt;In the Web Application list click the name of the &lt;b&gt;web application&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;From the ribbon click the &lt;b&gt;General Settings&lt;/b&gt; icon&lt;/li&gt;
&lt;li&gt;Scroll to the &lt;b&gt;Browser File Handling&lt;/b&gt; section&lt;/li&gt;
&lt;li&gt;Select &lt;b&gt;Permissive&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Scroll down and click the &lt;b&gt;OK &lt;/b&gt;button&lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;Note&lt;/b&gt;: &lt;span style=&quot;color: red;&quot;&gt;This changes the Browser Handling setting for the entire web application which could be a security risk. A better but more tedious way to address this is to enable permissive browser handling for the document library that needs it.&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Open a &lt;b&gt;SharePoint Management Shell&lt;/b&gt; window&lt;/li&gt;
&lt;li&gt;Type &lt;b&gt;$site = Get-SPSite(“http://mysubsitecollectionurl”)&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Press the &lt;b&gt;Enter &lt;/b&gt;key&lt;/li&gt;
&lt;li&gt;Type &lt;b&gt;$web = $site.OpenWeb()&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Press the &lt;b&gt;Enter &lt;/b&gt;key&lt;/li&gt;
&lt;li&gt;Type &lt;b&gt;$list = $web.GetList(“http://mysubsitecollectionurl/List”);&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Press the &lt;b&gt;Enter &lt;/b&gt;key&lt;/li&gt;
&lt;li&gt;Type &lt;b&gt;$list.browserfilehandling&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Press the &lt;b&gt;Enter &lt;/b&gt;key&lt;/li&gt;
&lt;li&gt;Type &lt;b&gt;$list.browserfilehandling = “Permissive” ; $list.update();&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Press the &lt;b&gt;Enter &lt;/b&gt;key&lt;/li&gt;
&lt;li&gt;Type &lt;b&gt;$list.browserfilehandling&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Press the &lt;b&gt;Enter &lt;/b&gt;key&lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;Open PDF Files in a New Browser Tab&lt;/b&gt;&lt;br /&gt;
The last thing I found to improve the user experience is to open PDF files in a new tab instead of the current window. Yes I could press the ctrl key and click the link and it will open in a new tab but not every user knows that. I found many solutions that say use a content editor web part with javascript to fix the issue but the thought of adding it to every page that would needs it is maddening. An even easier way is to add the javascript to your master page.&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Download the latest version of &lt;b&gt;jQuery &lt;/b&gt;(I used version 1.7.2 for this example) &lt;/li&gt;
&lt;li&gt;Upload the jQuery file to a &lt;b&gt;document library&lt;/b&gt; within the site collection &lt;/li&gt;
&lt;li&gt;Make sure all users have&lt;b&gt; read access&lt;/b&gt; to the document library&lt;/li&gt;
&lt;li&gt;Add the following code with your Master Page’s body tag&lt;/li&gt;
&lt;/ul&gt;
&amp;lt;script src=&quot;http:// mysubsitecollectionurl /javascript/jquery-1.7.2.min.js&quot;type=&quot;text/javascript&quot;&amp;gt;&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script&amp;gt;&lt;br /&gt;
$(&quot;a[href$=&#39;.pdf&#39;]&quot;).removeAttr(&#39;onclick&#39;).attr(&quot;target&quot;,&quot;_blank&quot;);&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;ul style=&quot;margin-left: 40px;&quot;&gt;





&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;Save and publish your master page&lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;References and Related Articles&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/82546/How-to-configure-PDF-iFilter-for-SharePoint-Server&quot; target=&quot;_blank&quot;&gt;How to configure PDF iFilter for SharePoint Server 2010 or Search Server 2010&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://en.hugon.ws/articles/sharepoint-2010/install-the-pdf-ifilter/&quot; target=&quot;_blank&quot;&gt;Install the PDF iFilter&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.sharepointedutech.com/2010/02/17/changing-file-associations-icons-in-sharepoint-2010/&quot; target=&quot;_blank&quot;&gt;Changing File Associations Icons in SharePoint 2010&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://en.hugon.ws/articles/sharepoint-2010/add-icons-to-document-types/&quot; target=&quot;_blank&quot;&gt;Add Icons to Document Types&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.sharepointedutech.com/2010/05/05/opening-pdfs-in-sharepoint-2010/&quot; target=&quot;_blank&quot;&gt;Opening PDFs in SharePoint 2010&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.freakingsharepoint.com/2010/08/sp2010-forces-users-to-save-pdfs.html&quot; target=&quot;_blank&quot;&gt;SharePoint 2010 forces users to save PDFs – Solution Found!&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://stumblingthroughsharepoint.blogspot.com/feeds/6717160918104283719/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stumblingthroughsharepoint.blogspot.com/2012/08/pdf-files-and-sharepoint-2010_14.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5089349049043503854/posts/default/6717160918104283719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5089349049043503854/posts/default/6717160918104283719'/><link rel='alternate' type='text/html' href='http://stumblingthroughsharepoint.blogspot.com/2012/08/pdf-files-and-sharepoint-2010_14.html' title='PDF Files and SharePoint 2010'/><author><name>Pete Scheuering</name><uri>http://www.blogger.com/profile/04109364283259375103</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7k4ivlLTCnYjFUB5SYCJVOGVqNiplsSmPzXHS-kWjpwXuEziCh3Y4XFb9oQ-b9karPpLQWxpPudnpvdTr7j3EPnsGX4zfNjVMkqR1DsAodNm0I46XOXQsevWFHewQtAY/s220/PeteScheuering.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5089349049043503854.post-1043494464978786749</id><published>2011-03-11T10:13:00.000-08:00</published><updated>2011-03-11T10:13:01.293-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Looping"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint Workflows"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips and Tricks"/><category scheme="http://www.blogger.com/atom/ns#" term="Workflows"/><title type='text'>Looping Workflow Through All List Items</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgBgORjWSZ7TnTQE29WCs2RpVJoS8MZvdHicHDCn6Qhebjk4tAuTHUe6jJpXO2oXSsmztKJCW9dPjOTNE3XxV4PWH7HmLCkdUYPCLGMSeJzqj9MgpckM8m2x2yMqYYWlPsLnQ6pYn3wqI/s1600/27.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiL00-FTod8wrCmP3lUcshrh2dgpz0qThwDfKge2Rms_-PWDg5VhqVpAFN45lc0I1oeaZt-oDHdepxZ1N5a3pkZSuvl9rGBJ3Fx30SJX_nyixAhhk5K4gAPX12H43RXMs29GLQgqcqEUtM/s1600/01.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg664k3V85GqCjt0S6rFHZJq1nANb3tGiwZliEgs86EnNiWhkqLEF2Awd-2u8Nttvtho93O7clWU5rtpPoxouNWHwf1kmH0Am4dNajl4NXmJ88zcJA0nDWAv-6pewxX922rr2VUxdVsJ5I/s1600/18.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcQJpiRzXSgx4AsMz6SHveU9RWqa0VpsGHWJQQHEYNuTAxEBw77MZqFFqI00eCOr07X31y9uGXjrsbioThk6d4jYTWPMRrCgrV-RSUECq412h0OUvHsGpMPkkxeeV7INKHdu38c6bnQUI/s1600/09.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Background&lt;/span&gt;&lt;br /&gt;
I came across this solution because I was trying to calculate the number of days an item in a list was in a specific state and to send an alert to the creator of the item after the number of days was exceeded. I started  by using the “Today” trick. Although the today trick worked to find the difference between dates I still needed a way to cycle through all the list items and send an alert when the date difference exceeded. Since you cannot easily calculate the difference between two dates using [Today] I decided to use the workflow Action “Find Interval Between Dates”. I came across few postings on the web that talked about using two lists to do this but I didn’t want to use two lists so I came up with this solution.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;How to Create a Looping Workflow&lt;/span&gt;&lt;br /&gt;
Create a Custom List called &lt;b&gt;Looping&lt;/b&gt;&lt;br /&gt;
Create a column called &lt;b&gt;DueDate&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Type: &lt;span style=&quot;font-weight: bold;&quot;&gt;Date and Time&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;Create a column called &lt;b&gt;DaysUntilDue&lt;/b&gt;  &lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Type:  &lt;b&gt;Number&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Decimal Places: &lt;span style=&quot;font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;Create a column called &lt;b&gt;CountDaysUntilDue&lt;/b&gt;  &lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Type: &lt;b&gt;Choice&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Choices: &lt;b&gt;Yes&lt;/b&gt; and &lt;b&gt;No&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;Create a List Workflow called &lt;b&gt;Loop Through Items&lt;/b&gt;      &lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Initiation Settings: &lt;b&gt;Allow this workflow to be manually started&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;Set Workflow Variable&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Workflow variable: &lt;b&gt;idCurrentItem&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Value:&lt;/li&gt;
&lt;li&gt;Data source: &lt;b&gt;Looping&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Field from source: &lt;b&gt;ID&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Field: &lt;b&gt;CountDaysUntilDue&lt;/b&gt;Value: &lt;b&gt;Yes&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcQJpiRzXSgx4AsMz6SHveU9RWqa0VpsGHWJQQHEYNuTAxEBw77MZqFFqI00eCOr07X31y9uGXjrsbioThk6d4jYTWPMRrCgrV-RSUECq412h0OUvHsGpMPkkxeeV7INKHdu38c6bnQUI/s1600/09.JPG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;214&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcQJpiRzXSgx4AsMz6SHveU9RWqa0VpsGHWJQQHEYNuTAxEBw77MZqFFqI00eCOr07X31y9uGXjrsbioThk6d4jYTWPMRrCgrV-RSUECq412h0OUvHsGpMPkkxeeV7INKHdu38c6bnQUI/s320/09.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
Find Interval Between Dates&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt; &lt;/span&gt;Difference Type: &lt;b&gt;Days&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Date: &lt;b&gt;Current Date&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqwZMI2ZuxGBFvw8b5q3ctfsKszqXI0raHz-VS-7MqTley0Czff6fGBLD9jeG8WYw3yQ7-OgYpFIGmqykQL7RLp0qDVav_KWwInF1iehRUR-uhMdXvtVIEH4kCNdVKllcjQWu6tIB-zlo/s1600/12.JPG&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5581526825867393714&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqwZMI2ZuxGBFvw8b5q3ctfsKszqXI0raHz-VS-7MqTley0Czff6fGBLD9jeG8WYw3yQ7-OgYpFIGmqykQL7RLp0qDVav_KWwInF1iehRUR-uhMdXvtVIEH4kCNdVKllcjQWu6tIB-zlo/s320/12.JPG&quot; style=&quot;height: 146px; width: 320px;&quot; /&gt;&lt;/a&gt;    &lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Date: &lt;b&gt;DueDate&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Variable: &lt;b&gt;numDaysUntilDue&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;Update List Item&lt;br /&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin-left: 1in; text-indent: -0.25in;&quot;&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;Field: &lt;b&gt;DaysUntilDue&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Value: &lt;b&gt;numDaysUntilDue&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Field: &lt;b&gt;CountDaysUntilDue&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Value: &lt;b&gt;No&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg664k3V85GqCjt0S6rFHZJq1nANb3tGiwZliEgs86EnNiWhkqLEF2Awd-2u8Nttvtho93O7clWU5rtpPoxouNWHwf1kmH0Am4dNajl4NXmJ88zcJA0nDWAv-6pewxX922rr2VUxdVsJ5I/s1600/18.JPG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;190&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg664k3V85GqCjt0S6rFHZJq1nANb3tGiwZliEgs86EnNiWhkqLEF2Awd-2u8Nttvtho93O7clWU5rtpPoxouNWHwf1kmH0Am4dNajl4NXmJ88zcJA0nDWAv-6pewxX922rr2VUxdVsJ5I/s320/18.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
Start another workflow&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;This item:&lt;/li&gt;
&lt;li&gt;List: &lt;b&gt;Looping&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Field: &lt;b&gt;CountDaysUntilDue&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Value: &lt;b&gt;Yes&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhT-8Cz7LivBUy2ARCaMUxO1SE9OkUvRFf7B7C8vG9gXinmlpRIrcpDEMfFVaEs_Rp5-Ga2d32zp437ehNw9nqNiJbd5lhyphenhyphenHjXHFSfgQFyZiI5ug0nUNJ6huDf0ju7wMrIePs7tLSlJPMk/s1600/20.JPG&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5581524116328864402&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhT-8Cz7LivBUy2ARCaMUxO1SE9OkUvRFf7B7C8vG9gXinmlpRIrcpDEMfFVaEs_Rp5-Ga2d32zp437ehNw9nqNiJbd5lhyphenhyphenHjXHFSfgQFyZiI5ug0nUNJ6huDf0ju7wMrIePs7tLSlJPMk/s320/20.JPG&quot; style=&quot;cursor: pointer; height: 189px; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;This: &lt;b&gt;Loop Through Items&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;Save and Publish the workflow&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;For each item in the list that you want the workflow to process set the CountDaysUntilDue to yes.&lt;/li&gt;
&lt;/ul&gt;&amp;nbsp;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiL00-FTod8wrCmP3lUcshrh2dgpz0qThwDfKge2Rms_-PWDg5VhqVpAFN45lc0I1oeaZt-oDHdepxZ1N5a3pkZSuvl9rGBJ3Fx30SJX_nyixAhhk5K4gAPX12H43RXMs29GLQgqcqEUtM/s1600/01.JPG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;51&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiL00-FTod8wrCmP3lUcshrh2dgpz0qThwDfKge2Rms_-PWDg5VhqVpAFN45lc0I1oeaZt-oDHdepxZ1N5a3pkZSuvl9rGBJ3Fx30SJX_nyixAhhk5K4gAPX12H43RXMs29GLQgqcqEUtM/s320/01.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
Manually start the workflow for the first item on the list.&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;It may take time to for the next workflow to change from Starting to In Progress to Complete.&lt;/li&gt;
&lt;/ul&gt;&amp;nbsp;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgBgORjWSZ7TnTQE29WCs2RpVJoS8MZvdHicHDCn6Qhebjk4tAuTHUe6jJpXO2oXSsmztKJCW9dPjOTNE3XxV4PWH7HmLCkdUYPCLGMSeJzqj9MgpckM8m2x2yMqYYWlPsLnQ6pYn3wqI/s1600/27.JPG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;51&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgBgORjWSZ7TnTQE29WCs2RpVJoS8MZvdHicHDCn6Qhebjk4tAuTHUe6jJpXO2oXSsmztKJCW9dPjOTNE3XxV4PWH7HmLCkdUYPCLGMSeJzqj9MgpckM8m2x2yMqYYWlPsLnQ6pYn3wqI/s320/27.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEji27lp8eaLkpJpqvZqA6cBKi6wb25KFUG7G9_0EsuXpvOeIaWZINecBeXothBGsdnIrH48B1qAPZ-zZlfERDe5b65w7crIqsEdQ9SYDwozoes9mBOPqo3F9b95gIguKpjVy3NLgeY9fzk/s1600/27.JPG&quot;&gt;&lt;span id=&quot;goog_501611487&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span id=&quot;goog_501611488&quot;&gt;&lt;/span&gt;&lt;/a&gt;After the workflow updates the last item on the list it returns an Error Occurred result because there is not another item on the list to execute. So in order to run the workflow again on the last item on the list you need to terminate the workflow on that item.&lt;/div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEB5yk6t3Q5ajb6h705BtN8pHpsMapPoin01EXUgYTfeu8gLaNZPCN97r10MJqzHedtx9yt2-2ZANoRKRlENnTHEBcU96wV2HTrsm_TZo7Mn2OgXXjsWnlrFbEK-NM7LCh9wRCDidtKBg/s1600/28.JPG&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5581527142406241682&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEB5yk6t3Q5ajb6h705BtN8pHpsMapPoin01EXUgYTfeu8gLaNZPCN97r10MJqzHedtx9yt2-2ZANoRKRlENnTHEBcU96wV2HTrsm_TZo7Mn2OgXXjsWnlrFbEK-NM7LCh9wRCDidtKBg/s320/28.JPG&quot; style=&quot;height: 51px; width: 320px;&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Notes&lt;/span&gt;&lt;br /&gt;
I’m still trying to figure out how to get the workflow to complete the last item cleanly until I figure out how to do that you need to&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Related Articles&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://abstractspaces.wordpress.com/2008/05/19/use-today-and-me-in-calculated-column/&quot;&gt;Use [Today] and [Me] in Calculated Column&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://blog-sharepoint.blogspot.com/2010/01/sharepoint-looping-workflow-how-to-loop.html&quot;&gt;SharePoint Looping Workflow - How to: Loop through and process all items in a list&lt;/a&gt;&lt;/li&gt;
&lt;li&gt; &lt;a href=&quot;http://www.dmcinfo.com/blog.aspx/articleType/ArticleView/articleId/68/SharePoint-Workflow-Looping.aspx&quot;&gt;SharePoint Workflow Looping&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stumblingthroughsharepoint.blogspot.com/feeds/1043494464978786749/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stumblingthroughsharepoint.blogspot.com/2011/03/looping-workflow-through-all-list-items.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5089349049043503854/posts/default/1043494464978786749'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5089349049043503854/posts/default/1043494464978786749'/><link rel='alternate' type='text/html' href='http://stumblingthroughsharepoint.blogspot.com/2011/03/looping-workflow-through-all-list-items.html' title='Looping Workflow Through All List Items'/><author><name>Pete Scheuering</name><uri>http://www.blogger.com/profile/04109364283259375103</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7k4ivlLTCnYjFUB5SYCJVOGVqNiplsSmPzXHS-kWjpwXuEziCh3Y4XFb9oQ-b9karPpLQWxpPudnpvdTr7j3EPnsGX4zfNjVMkqR1DsAodNm0I46XOXQsevWFHewQtAY/s220/PeteScheuering.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcQJpiRzXSgx4AsMz6SHveU9RWqa0VpsGHWJQQHEYNuTAxEBw77MZqFFqI00eCOr07X31y9uGXjrsbioThk6d4jYTWPMRrCgrV-RSUECq412h0OUvHsGpMPkkxeeV7INKHdu38c6bnQUI/s72-c/09.JPG" height="72" width="72"/><thr:total>0</thr:total></entry></feed>