<?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>Office and Business Productivity &#187; SharePoint Designer 2007</title>
	<atom:link href="http://www.officeandbusiness.be/nl/tag/sharepoint-designer-2007/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.officeandbusiness.be</link>
	<description>SharePoint, GTD and beyond</description>
	<lastBuildDate>Sun, 05 Feb 2012 23:31:25 +0000</lastBuildDate>
	<language>nl</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Creating an unique approval number in a workflow</title>
		<link>http://www.officeandbusiness.be/nl/2011/03/14/creating-an-unique-approval-number-in-a-workflow/</link>
		<comments>http://www.officeandbusiness.be/nl/2011/03/14/creating-an-unique-approval-number-in-a-workflow/#comments</comments>
		<pubDate>Mon, 14 Mar 2011 10:44:47 +0000</pubDate>
		<dc:creator>Patrick Sledz</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Nintex]]></category>
		<category><![CDATA[SharePoint Designer 2007]]></category>
		<category><![CDATA[workflow]]></category>

		<guid isPermaLink="false">http://www.officeandbusiness.be/nl/?p=578</guid>
		<description><![CDATA[I was working on a workflow that assigns a unique approval number to an approved item. Despite the fact I made this workflow using Nintex, it is possible to create this workflow with SharePoint Designer (using the calculate function) Requirements: We have a list, where users can fill in a request to increase the quota [...]]]></description>
			<content:encoded><![CDATA[<p>I was working on a workflow that assigns a unique approval number to an approved item. Despite the fact I made this workflow using <a href="http://bit.ly/nintex">Nintex</a>, <span style="text-decoration: underline;">it is possible to create this workflow with SharePoint Designer </span>(using the calculate function)</p>
<p><strong>Requirements</strong>:<br />
We have a list, where users can fill in a request to increase the quota of their site. The governance has decided that the IT department is responsible for the capacity, hence they need to be the approver of this request.<br />
When a request has been approved, it should receive a unique approval number. The rest of the process is not relevant for this blog post.</p>
<p><strong>Solution</strong>:<br />
By using a combination of the &#8216;created date&#8217; and the list item ID we can create a unique number. It was not required to use sequential number (was even preferred not to do this)</p>
<p><strong>Setup</strong>:<br />
In the custom list there are a lot of columns, but these are the once I have used to calculate a unique value for the approval number</p>
<div>
<table style="border-collapse: collapse;" border="0">
<colgroup>
<col style="width: 161px;"></col>
<col style="width: 477px;"></col>
</colgroup>
<tbody>
<tr style="background: #4bacc6;">
<td style="padding-left: 7px; padding-right: 7px; border-top: solid #4bacc6 1.0pt; border-left: solid #4bacc6 1.0pt; border-bottom: solid #4bacc6 1.0pt;">
<p style="text-align: center;"><span style="color: white;"><strong>Column name</strong></span></p>
</td>
<td style="padding-left: 7px; padding-right: 7px; border-top: solid #4bacc6 1.0pt; border-bottom: solid #4bacc6 1.0pt; border-right: solid #4bacc6 1.0pt;">
<p style="text-align: center;"><span style="color: white;"><strong>Type</strong></span></p>
</td>
</tr>
<tr>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #4bacc6 1.0pt; border-bottom: solid #4bacc6 1.0pt;">Year</td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-bottom: solid #4bacc6 1.0pt; border-right: solid #4bacc6 1.0pt;">Calculated value :  =TEXT((Created),&#8221;yyyy&#8221;)</td>
</tr>
<tr>
<td style="padding-left: 7px; padding-right: 7px; border-left: solid #4bacc6 1.0pt; border-bottom: solid #4bacc6 1.0pt;"><strong>Month</strong></td>
<td style="padding-left: 7px; padding-right: 7px; border-bottom: solid #4bacc6 1.0pt; border-right: solid #4bacc6 1.0pt;">Calculated value :  =TEXT((Created),&#8221;mm&#8221;)</td>
</tr>
<tr>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-left: solid #4bacc6 1.0pt; border-bottom: solid #4bacc6 1.0pt;"><strong>Day</strong></td>
<td style="padding-left: 7px; padding-right: 7px; border-top: none; border-bottom: solid #4bacc6 1.0pt; border-right: solid #4bacc6 1.0pt;">Calculated value :  =TEXT((Created),&#8221;dd&#8221;)</td>
</tr>
<tr>
<td style="padding-left: 7px; padding-right: 7px; border-left: solid #4bacc6 1.0pt; border-bottom: solid #4bacc6 1.0pt;"><strong>ApprovalPart1</strong></td>
<td style="padding-left: 7px; padding-right: 7px; border-bottom: solid #4bacc6 1.0pt; border-right: solid #4bacc6 1.0pt;">Calculated value:  =<a href="http://office.microsoft.com/en-us/sharepoint-server-help/date-function-HA001160980.aspx" target="_blank">DATE</a>(Year,Month,Day)</td>
</tr>
</tbody>
</table>
</div>
<p><strong>Workflow variables</strong>:</p>
<p>ApprovalCalc : Text<br />
ApprovalNumber: Number</p>
<p><strong>Actions</strong></p>
<p>In <a href="http://bit.ly/nintex">Nintex</a> I created a <em>Math Operation</em>. It is configured to do &#8220;(Listlookup Current Item Approvalpart1) + (Listlookup Current Item ID)&#8221;.<br />
This will result in having a number that is formed by  the number of days of the creation date (based on December 31 1899 being value 1) added with the itemID.<br />
This value will be stored in the ApprovalCalc variable.<br />
Then we have a build dynamic string action that build a string &#8220;STS- {WorkflowVariable:ApprovalCalc} and stored this value in the ApprovalNumber variable. (IT people wanted to have a prefix STS-).<br />
The next action updates a list item called Approval_Number with the value of the ApprovalNumber variable and then other actions like sending emails and creating tasks is executed.</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Creating an unique approval number in a workflow on Office and Business Productivity',url: 'http://www.officeandbusiness.be/nl/2011/03/14/creating-an-unique-approval-number-in-a-workflow/',contentID: 'post-578',code: 'STS_6826',suggestTags: 'Nintex,SharePoint Designer 2007,workflow',providerName: 'Office and Business Productivity',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.officeandbusiness.be/nl/2011/03/14/creating-an-unique-approval-number-in-a-workflow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint Workflow Status: how to use the workflow status in a workflow (or a view)?</title>
		<link>http://www.officeandbusiness.be/nl/2010/05/17/sharepoint-workflow-status-how-to-use-the-workflow-status-in-a-workflow-or-a-view/</link>
		<comments>http://www.officeandbusiness.be/nl/2010/05/17/sharepoint-workflow-status-how-to-use-the-workflow-status-in-a-workflow-or-a-view/#comments</comments>
		<pubDate>Mon, 17 May 2010 19:34:12 +0000</pubDate>
		<dc:creator>Patrick Sledz</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint Designer 2007]]></category>
		<category><![CDATA[workflow]]></category>

		<guid isPermaLink="false">http://www.officeandbusiness.be/nl/2010/05/17/sharepoint-workflow-status-how-to-use-the-workflow-status-in-a-workflow-or-a-view/</guid>
		<description><![CDATA[Recently I had to configure a SharePoint workflow where an item had to be copied to another list when the Approval Workflow status is approved. It was ok to start the workflow manually. The workflow had to be created in SharePoint Designer 2007, since no other specialized workflow software is/was available. The problem I had [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I had to configure a SharePoint workflow where an item had to be copied to another list when the Approval Workflow status is <strong>approved. </strong>It was ok to start the workflow manually. The workflow had to be created in SharePoint Designer 2007, since no other specialized workflow software is/was available.</p>
<p>The problem I had was that when I assigned a condition that would check if the <b>Approval Status</b> equals Approved. But this doesn’t work when you use this condition, it will be skipped, because internally SharePoint uses a number for the workflow status.</p>
<p>Also, if you Edit in Datasheet (your list or Library) you can see the numbers is stead of the text.</p>
<p>Here is an overview:</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="319">
<p><b><font size="3">Status</font></b></p>
</td>
<td valign="top" width="64">
<p><b><font size="3">Value</font></b></p>
</td>
</tr>
<tr>
<td valign="top" width="319">
<p>Not Started</p>
</td>
<td valign="top" width="64">
<p><b>0</b></p>
</td>
</tr>
<tr>
<td valign="top" width="319">
<p>Failed on Start</p>
</td>
<td valign="top" width="64">
<p><b>1</b></p>
</td>
</tr>
<tr>
<td valign="top" width="319">
<p>In Progress</p>
</td>
<td valign="top" width="64">
<p><b>2</b></p>
</td>
</tr>
<tr>
<td valign="top" width="319">
<p>Error Occurred</p>
</td>
<td valign="top" width="64">
<p><b>3</b></p>
</td>
</tr>
<tr>
<td valign="top" width="319">
<p>Canceled </p>
</td>
<td valign="top" width="64">
<p><b>4</b></p>
</td>
</tr>
<tr>
<td valign="top" width="319">
<p>Completed</p>
</td>
<td valign="top" width="64">
<p><b>5</b></p>
</td>
</tr>
<tr>
<td valign="top" width="319">
<p>Failed on Start(Retrying)</p>
</td>
<td valign="top" width="64">
<p><b>6</b></p>
</td>
</tr>
<tr>
<td valign="top" width="319">
<p>Error Occurred (Retrying)</p>
</td>
<td valign="top" width="64">
<p><b>7</b></p>
</td>
</tr>
<tr>
<td valign="top" width="319">
<p>Canceled</p>
</td>
<td valign="top" width="64">
<p><b>15</b></p>
</td>
</tr>
<tr>
<td valign="top" width="319">
<p>Approved</p>
</td>
<td valign="top" width="64">
<p><b>16</b></p>
</td>
</tr>
<tr>
<td valign="top" width="319">
<p>Rejected</p>
</td>
<td valign="top" width="64">
<p><b>17</b></p>
</td>
</tr>
</tbody>
</table>
<p><b></b></p>
<p>So, I need to modify my workflow like : If Approval Status Equals 16, ….</p>
<p>The same policy applies when you would like to have a view where you display items based on their Approval Workflow Status.</p>
<p>This list is partially copied from <a href="http://vspug.com/dwise/2006/12/11/howto-filter-a-view-based-on-workflow-status/">David Wise blog</a></p>
</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:eea1f897-4985-4561-bdc0-8557e160e3da" class="wlWriterEditableSmartContent">Technorati Tags: <a href="http://technorati.com/tags/SharePoint" rel="tag">SharePoint</a>,<a href="http://technorati.com/tags/Workflow" rel="tag">Workflow</a>,<a href="http://technorati.com/tags/SharePoint+Designer" rel="tag">SharePoint Designer</a>,<a href="http://technorati.com/tags/SharePoint+Designer+2007" rel="tag">SharePoint Designer 2007</a></div>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'SharePoint Workflow Status: how to use the workflow status in a workflow (or a view)? on Office and Business Productivity',url: 'http://www.officeandbusiness.be/nl/2010/05/17/sharepoint-workflow-status-how-to-use-the-workflow-status-in-a-workflow-or-a-view/',contentID: 'post-388',code: 'STS_6826',suggestTags: 'SharePoint,SharePoint Designer 2007,workflow',providerName: 'Office and Business Productivity',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.officeandbusiness.be/nl/2010/05/17/sharepoint-workflow-status-how-to-use-the-workflow-status-in-a-workflow-or-a-view/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

