<?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 Tutorials Archives - Mear Technology</title>
	<atom:link href="https://www.meartechnology.co.uk/category/tutorials/sharepoint-tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>https://w2.meartechnology.co.uk/category/tutorials/sharepoint-tutorials/</link>
	<description>Providing IT support and solution to small and medium businesses. Servicing Edinburgh, Livingston, Fife and surrounding areas.  Responsive, Flexible, Professional and friendly local support.</description>
	<lastBuildDate>Tue, 24 Jan 2023 12:59:23 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.3</generator>

<image>
	<url>https://www.meartechnology.co.uk/wp-content/uploads/2021/04/cropped-Logo-512x512-1-32x32.png</url>
	<title>SharePoint Tutorials Archives - Mear Technology</title>
	<link>https://w2.meartechnology.co.uk/category/tutorials/sharepoint-tutorials/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Company Sharepoints not Syncing via OneDrive</title>
		<link>https://www.meartechnology.co.uk/2023/01/24/company-sharepoints-not-syncing-via-onedrive/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 24 Jan 2023 12:35:26 +0000</pubDate>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Office 365]]></category>
		<category><![CDATA[Office 365 Tutorials]]></category>
		<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[SharePoint Tutorials]]></category>
		<category><![CDATA[Tech tip]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Add shortcut to My Files]]></category>
		<category><![CDATA[SharePoint]]></category>
		<guid isPermaLink="false">https://www.meartechnology.co.uk/?p=12916</guid>

					<description><![CDATA[<p>There is an annoying issue with customers who normally access Sharepoint via OneDrive and file explorer. This issue prevents users from getting the same experience as their colleagues. While there are a few reasons why users can not synchronise their company Sharpoint via OneDrive, we will discuss one particular reason here assuming you have completed&#8230; <br /> <a class="read-more" href="https://www.meartechnology.co.uk/2023/01/24/company-sharepoints-not-syncing-via-onedrive/">Read more</a></p>
<p>The post <a href="https://www.meartechnology.co.uk/2023/01/24/company-sharepoints-not-syncing-via-onedrive/">Company Sharepoints not Syncing via OneDrive</a> appeared first on <a href="https://www.meartechnology.co.uk">Mear Technology</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">There is an annoying issue with customers who normally access Sharepoint via OneDrive and file explorer.</p>



<p class="wp-block-paragraph">This issue prevents users from getting the same experience as their colleagues. While there are a few reasons why users can not synchronise their company Sharpoint via OneDrive, we will discuss one particular reason here assuming you have completed general troubleshooting such as ensuring the user has permission to access the Sharepoint Document Library.  </p>



<p class="wp-block-paragraph">This issue is typically caused by a user&#8217;s action.  When they open SharePoint in the web interface they sometimes click <img decoding="async" width="194" height="31" class="wp-image-12917 no-lazyload" src="https://www.meartechnology.co.uk/wp-content/uploads/2023/01/image.png" alt=""> &#8220;<strong>Add shortcut to My Files</strong>&#8221; this creates a shortcut link in the user&#8217;s OneDrive but also breaks the synchronisation. </p>



<h2 class="wp-block-heading" id="h-symptoms">Symptoms</h2>



<p class="wp-block-paragraph">One Drive is synced and the user has access to their own Documents in OneDrive but does not see the One Drive Sharepoint Icon or does not see some Folders within this.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="185" height="35" src="https://www.meartechnology.co.uk/wp-content/uploads/2023/01/image-1.png" alt="" class="wp-image-12918 no-lazyload"/></figure>



<h2 class="wp-block-heading">Fix</h2>



<p class="wp-block-paragraph">This is identifiable with this icon <img decoding="async" width="60" height="44" class="wp-image-12919 no-lazyload" style="width: 60px;" src="https://www.meartechnology.co.uk/wp-content/uploads/2023/01/image-2.png" alt=""> to resolve the syncing feature simply delete this shortcut by clicking &#8220;Remove&#8221; either by selecting the link and using the icon at the top of the page (A) or selecting the <img decoding="async" width="12" height="23" class="wp-image-12921 no-lazyload" src="https://www.meartechnology.co.uk/wp-content/uploads/2023/01/image-4.png" alt=""> in-line with the shortcuts you want to remove. Removing the shortcut does not delete the data</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="397" src="https://www.meartechnology.co.uk/wp-content/uploads/2023/01/image-3-1024x397.png" alt="" class="wp-image-12920 no-lazyload" srcset="https://www.meartechnology.co.uk/wp-content/uploads/2023/01/image-3-1024x397.png 1024w, https://www.meartechnology.co.uk/wp-content/uploads/2023/01/image-3-300x116.png 300w, https://www.meartechnology.co.uk/wp-content/uploads/2023/01/image-3-768x298.png 768w, https://www.meartechnology.co.uk/wp-content/uploads/2023/01/image-3.png 1099w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading">For Administrators <br>How to Disable &#8220;Add shortcut to My Files&#8221; for your company</h3>



<p class="wp-block-paragraph">If you have SharePoint admin access you can disable this feature for all your users. If you are a Mear Technology Support customer you can simply contact our helpdesk and we will action this for you.  </p>



<style>
div.mtCodeblock {line-height: 1rem; Font-family: Consolas,Monaco,"Courier New",monospace; background: #f8f8f8; padding:10px;}
span.comment {color: #008200 !important;}
span.codeurl {color:blue;}
span.codevariable {color #aa7700 !important}
</style>
<div class="mtCodeblock">
<p>
<span class="comment">#Enter your Sharpoint URL</span><br>
<span class="code"><span class="codevariable">$SharepointURL</span> = &#8220;<span class="codeurl">https://YOURCOMPANYHERE.sharepoint.com/</span>&#8220;</span><br>
</p>

<p>
<span class="comment">#Format the Sharepointn URL to the Amdin variable</span><br>
<span class="code"><span class="codevariable">$SharepointURL</span> = $SharepointURL.replace(&#8220;.sharepoint.com&#8221;,&#8221;-admin.sharepoint.com&#8221;)</span>
</p>

<p>
<span class="comment">#install to SharePoint Online Module (uncomment below line ot install)</span><br>
<span class="comment">#Install-Module -Name Microsoft.Online.SharePoint.PowerShell</span><br>
</p>

<p>
<span class="comment">#Connect to SharePoint Online</span><br>
<span class="code">Connect-SPOService&nbsp;-URL <span class="codevariable">$SharepointURL</span></span><br>
</p>

<p>
<span class="comment">#Disable &#8220;Add Shortcut to OneDrive&#8221;</span><br>
<span class="code">Set-SPOTenant -DisableAddShortCutsToOneDrive $True</span><br>
</p>
</div>
<p>The post <a href="https://www.meartechnology.co.uk/2023/01/24/company-sharepoints-not-syncing-via-onedrive/">Company Sharepoints not Syncing via OneDrive</a> appeared first on <a href="https://www.meartechnology.co.uk">Mear Technology</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Microsoft Power Automate working for you with Office 365 and SharePoint</title>
		<link>https://www.meartechnology.co.uk/2017/07/05/microsoft-flow-office-365-sharepoint/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 05 Jul 2017 19:30:37 +0000</pubDate>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Office 365]]></category>
		<category><![CDATA[Office 365 Tutorials]]></category>
		<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[SharePoint Tutorials]]></category>
		<guid isPermaLink="false">http://w2.meartechnology.co.uk/blog/?p=523</guid>

					<description><![CDATA[<p>Microsoft SharePoint is a great platform for collaboration on your company. Any business regardless of is size depend on processes. These processes can be something simple as an approval process for holidays of your employers or complicated processes that integrates multiple applications with multiple conditions depending on the content. Historically if you wanted to create&#8230; <br /> <a class="read-more" href="https://www.meartechnology.co.uk/2017/07/05/microsoft-flow-office-365-sharepoint/">Read more</a></p>
<p>The post <a href="https://www.meartechnology.co.uk/2017/07/05/microsoft-flow-office-365-sharepoint/">Microsoft Power Automate working for you with Office 365 and SharePoint</a> appeared first on <a href="https://www.meartechnology.co.uk">Mear Technology</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Microsoft SharePoint is a great platform for collaboration on your company. Any business regardless of is size depend on processes.</p>
<p>These processes can be something simple as an approval process for holidays of your employers or complicated processes that integrates multiple applications with multiple conditions depending on the content.</p>
<p>Historically if you wanted to create a workflow in SharePoint you had to use SharePoint Designer or 3rd party tools in certain situations you also had to learn how to code and sometimes not finding integration with other platforms.</p>
<p>However, Microsoft now has a new tool that you need to pay attention to, Microsoft Power Automate.</p>
<p><strong>What is Microsoft Power Automate?</strong></p>
<p>Just like any other new products from Microsoft, Power Automate was know as Flow is part of Office 365 suite. It is included in most of Office 365 subscriptions. It allows you to automate business processes by building workflows on certain triggers and actions.</p>
<p><strong>What is the difference between Microsoft Power Automate and SharePoint Designer?</strong></p>
<p>SharePoint Designer is a tool built specifically for SharePoint, it will allow you to build workflows based on your SharePoint data but there is no easy way of interact with different applications/platforms. Also, creating a SharePoint Workflow is not something you can do without any knowledge of the platform and you may need to learn syntax and spend hours debugging your code and testing your solution.</p>
<p>Microsoft Power Automate, on the other hand, will allow you easily build workflows based on already existing templates, or if you prefer to create a new blank workflow. Microsoft Flow is unique because you can interact your workflow with other applications such as Dropbox, Gmail, Facebook, SharePoint, OneDrive, SQL Server, FTP, etc&#8230; The options are endless and new platforms are been added.</p>
<p><img decoding="async" class="size-medium wp-image-12698 aligncenter no-lazyload" src="https://www.meartechnology.co.uk/wp-content/uploads/2017/07/powerautomate-246x300.png" alt="" width="246" height="300" srcset="https://www.meartechnology.co.uk/wp-content/uploads/2017/07/powerautomate-246x300.png 246w, https://www.meartechnology.co.uk/wp-content/uploads/2017/07/powerautomate.png 307w" sizes="(max-width: 246px) 100vw, 246px" /></p>
<p><strong>How can I try Microsoft Power Automate?</strong></p>
<p>Via web browser by clicking the <a href="https://make.powerautomate.com/">Power Automate tile on your Office365 account</a></p>
<p>The post <a href="https://www.meartechnology.co.uk/2017/07/05/microsoft-flow-office-365-sharepoint/">Microsoft Power Automate working for you with Office 365 and SharePoint</a> appeared first on <a href="https://www.meartechnology.co.uk">Mear Technology</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SharePoint site continuously refreshing on Microsoft Edge</title>
		<link>https://www.meartechnology.co.uk/2017/04/12/sharepoint-continuously-refreshing-edge/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 12 Apr 2017 11:58:29 +0000</pubDate>
				<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[SharePoint Tutorials]]></category>
		<guid isPermaLink="false">http://w2.meartechnology.co.uk/blog/?p=419</guid>

					<description><![CDATA[<p>Recently one of our customers had a weird issue. When accessing their company SharePoint site using Microsoft Edge, the site was continuously refreshing and not allowing access any to any of the contents. Fixing the issue Step 1 &#8211; Close all open Microsoft Edge windows, Open file Explorer and navigate to &#8220;%localappdata%\Packages&#8220; You will find a&#8230; <br /> <a class="read-more" href="https://www.meartechnology.co.uk/2017/04/12/sharepoint-continuously-refreshing-edge/">Read more</a></p>
<p>The post <a href="https://www.meartechnology.co.uk/2017/04/12/sharepoint-continuously-refreshing-edge/">SharePoint site continuously refreshing on Microsoft Edge</a> appeared first on <a href="https://www.meartechnology.co.uk">Mear Technology</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Recently one of our customers had a weird issue.</p>
<p>When accessing their company SharePoint site using Microsoft Edge, the site was continuously refreshing and not allowing access any to any of the contents.</p>
<p>Fixing the issue</p>
<p>Step 1 &#8211;</p>
<ol>
<li>Close all open Microsoft Edge windows,</li>
<li>Open file Explorer and navigate to &#8220;<strong>%localappdata%</strong><em><strong>\Packages</strong></em>&#8220;</li>
<li>You will find a folder called &#8220;<em><strong>Microsoft.MicrosoftEdge_8wekyb3d8bbwe</strong></em>&#8220;, right-click on it, click properties and remove the check from &#8220;<em><strong>Read-Only</strong></em>&#8220;. Click &#8220;<em><strong>Apply</strong></em>&#8221; and then &#8220;<em><strong>OK</strong></em>&#8220;.</li>
<li>Now, right click again on the same folder, and select &#8220;<em><strong>Delete</strong></em>&#8220;, if you get any &#8220;<em><strong>Access Denied</strong></em>&#8221; prompt, click &#8220;<em><strong>Continue</strong></em>&#8221; and &#8220;<em><strong>Skip</strong></em>&#8221; any files you can not delete for now.</li>
<li>Navigate inside the folder, and try to delete any of the contents (You might not be able to delete the folder &#8220;<em><strong>AC</strong></em>&#8220;</li>
<li>Restart your machine,</li>
</ol>
<p>Step 2 &#8211;</p>
<p>Now we will need to obtain and register the Microsoft Edge package.</p>
<ol>
<li>Open PowerShell as Administrator</li>
<li>Now type the following command<br />
<blockquote><p><code class="powershell functions">Get-AppXPackage</code> <code class="powershell color1">-AllUsers</code> <code class="powershell color1">-Name</code> <code class="powershell plain">Microsoft.MicrosoftEdge | </code><code class="powershell keyword">Foreach</code> <code class="powershell plain">{</code><code class="powershell functions">Add-AppxPackage</code> <code class="powershell color1">-DisableDevelopmentMode</code> <code class="powershell color1">-Register</code> <code class="powershell string">"$($_.InstallLocation)\AppXManifest.xml"</code> <code class="powershell color1">-Verbose</code><code class="powershell plain">}</code></p></blockquote>
</li>
</ol>
<p>&nbsp;</p>
<p>If successful, you will not see any red output.</p>
<p>Now, reboot your machine again and try to access your SharePoint site. It should now work fine.</p>
<p>The post <a href="https://www.meartechnology.co.uk/2017/04/12/sharepoint-continuously-refreshing-edge/">SharePoint site continuously refreshing on Microsoft Edge</a> appeared first on <a href="https://www.meartechnology.co.uk">Mear Technology</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>InfoPath: Calculate business days between 2 dates including leap year</title>
		<link>https://www.meartechnology.co.uk/2016/09/16/infopath-calculate-business-days-between-2-dates-including-leap-year/</link>
		
		<dc:creator><![CDATA[Stephen]]></dc:creator>
		<pubDate>Fri, 16 Sep 2016 10:55:06 +0000</pubDate>
				<category><![CDATA[InfoPath]]></category>
		<category><![CDATA[SharePoint Tutorials]]></category>
		<category><![CDATA[Tech tip]]></category>
		<guid isPermaLink="false">http://w2.meartechnology.co.uk/blog/?p=268</guid>

					<description><![CDATA[<p>The following articles describes the process to allow InfoPath to calculate difference between 2 dates. Required Fields: StartDate EndDate StartDateFirstDayOfYear StartDateLastDayOfYear EndDateFirstDayOfYear EndDateLastDayOfYear TotalDaysYearStartDate TotalDaysYearEndDate StartDateDayOfYear EndDateDayOfYear StartDateWeekOfYear EndDateWeekOfYear WeeksDifference DifferenceDays WeekendDays Businessdays Step 1 &#8211; Calculate First Day of Year Add new rule to &#8220;StartDate&#8221; Condition: None Rule type: Action Run action: Set field&#8217;s&#8230; <br /> <a class="read-more" href="https://www.meartechnology.co.uk/2016/09/16/infopath-calculate-business-days-between-2-dates-including-leap-year/">Read more</a></p>
<p>The post <a href="https://www.meartechnology.co.uk/2016/09/16/infopath-calculate-business-days-between-2-dates-including-leap-year/">InfoPath: Calculate business days between 2 dates including leap year</a> appeared first on <a href="https://www.meartechnology.co.uk">Mear Technology</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>The following articles describes the process to allow InfoPath to calculate difference between 2 dates.</p>
<p><strong>Required Fields</strong>:</p>
<p style="padding-left: 30px;">StartDate<br />
EndDate<br />
StartDateFirstDayOfYear<br />
StartDateLastDayOfYear<br />
EndDateFirstDayOfYear<br />
EndDateLastDayOfYear<br />
TotalDaysYearStartDate<br />
TotalDaysYearEndDate<br />
StartDateDayOfYear<br />
EndDateDayOfYear<br />
StartDateWeekOfYear<br />
EndDateWeekOfYear<br />
WeeksDifference<br />
DifferenceDays<br />
WeekendDays<br />
Businessdays</p>
<p><strong>Step 1 &#8211; Calculate First Day of Year</strong></p>
<p style="padding-left: 30px;">Add new rule to &#8220;StartDate&#8221;<br />
Condition: None<br />
Rule type: Action<br />
Run action:<br />
Set field&#8217;s value: StartDateFirstDayOfYear<br />
Set To:</p>
<pre><code>concat(substring-before(StartDate, "-"), "-01-01")</code></pre>
<p style="padding-left: 30px;">Add new rule to &#8220;EndDate&#8221;<br />
Condition: None<br />
Rule type: Action<br />
Run action:<br />
Set field&#8217;s value: EndDateFirstDayOfYear<br />
Set To:</p>
<pre><code>concat(substring-before(EndDate, "-"), "-01-01")</code></pre>
<p><strong>Step 2 &#8211; Calculate Last day of Year</strong></p>
<p style="padding-left: 30px;">Add new rule to &#8220;StartDate&#8221;<br />
Condition: None<br />
Rule type: Action<br />
Run action:<br />
Set field&#8217;s value: StartDateFirstDayOfYear<br />
Set To:</p>
<pre><code>concat(substring-before(StartDate, "-"), "-12-31")</code></pre>
<p style="padding-left: 30px;">Add new rule to &#8220;EndDate&#8221;<br />
Condition: None<br />
Rule type: Action<br />
Run action:<br />
Set field&#8217;s value: EndDateFirstDayOfYear<br />
Set To:</p>
<pre><code>concat(substring-before(EndDate, "-"), "-12-31")</code></pre>
<p><strong>Step 3 &#8211; Calculate the total days for the year so we can check if this is a leap year</strong></p>
<p style="padding-left: 30px;">Add new rule to &#8220;StartDate&#8221;<br />
Condition: None<br />
Rule type: Action<br />
Run action:<br />
Set field&#8217;s value: StartDateFirstDayOfYear<br />
Set To:</p>
<pre><code>((number(substring(StartDateLastDayOfYear, 9, 2)) + floor((153 * (number(substring(StartDateLastDayOfYear, 6, 2)) + 12 * (floor((14 - number(substring(StartDateLastDayOfYear, 6, 2))) / 12)) - 3) + 2) / 5) + (number(substring(StartDateLastDayOfYear, 1, 4)) + 4800 - (floor((14 - number(substring(StartDateLastDayOfYear, 6, 2))) / 12))) * 365 + floor((number(substring(StartDateLastDayOfYear, 1, 4)) + 4800 - (floor((14 - number(substring(StartDateLastDayOfYear, 6, 2))) / 12))) / 4) - floor((number(substring(StartDateLastDayOfYear, 1, 4)) + 4800 - (floor((14 - number(substring(StartDateLastDayOfYear, 6, 2))) / 12))) / 100) + floor((number(substring(StartDateLastDayOfYear, 1, 4)) + 4800 - (floor((14 - number(substring(StartDateLastDayOfYear, 6, 2))) / 12))) / 400) - 32045) - (number(substring(StartDateFirstDayOfYear, 9, 2)) + floor((153 * (number(substring(StartDateFirstDayOfYear, 6, 2)) + 12 * (floor((14 - number(substring(StartDateFirstDayOfYear, 6, 2))) / 12)) - 3) + 2) / 5) + (number(substring(StartDateFirstDayOfYear, 1, 4)) + 4800 - (floor((14 - number(substring(StartDateFirstDayOfYear, 6, 2))) / 12))) * 365 + floor((number(substring(StartDateFirstDayOfYear, 1, 4)) + 4800 - (floor((14 - number(substring(StartDateFirstDayOfYear, 6, 2))) / 12))) / 4) - floor((number(substring(StartDateFirstDayOfYear, 1, 4)) + 4800 - (floor((14 - number(substring(StartDateFirstDayOfYear, 6, 2))) / 12))) / 100) + floor((number(substring(StartDateFirstDayOfYear, 1, 4)) + 4800 - (floor((14 - number(substring(StartDateFirstDayOfYear, 6, 2))) / 12))) / 400) - 32045)) + 1</code></pre>
<p style="padding-left: 30px;">Add new rule to &#8220;EndDate&#8221;<br />
Condition: None<br />
Rule type: Action<br />
Run action:<br />
Set field&#8217;s value: EndDateFirstDayOfYear<br />
Set To:</p>
<pre><code>((number(substring(EndDateLastDayOfYear, 9, 2)) + floor((153 * (number(substring(EndDateLastDayOfYear, 6, 2)) + 12 * (floor((14 - number(substring(EndDateLastDayOfYear, 6, 2))) / 12)) - 3) + 2) / 5) + (number(substring(EndDateLastDayOfYear, 1, 4)) + 4800 - (floor((14 - number(substring(EndDateLastDayOfYear, 6, 2))) / 12))) * 365 + floor((number(substring(EndDateLastDayOfYear, 1, 4)) + 4800 - (floor((14 - number(substring(EndDateLastDayOfYear, 6, 2))) / 12))) / 4) - floor((number(substring(EndDateLastDayOfYear, 1, 4)) + 4800 - (floor((14 - number(substring(EndDateLastDayOfYear, 6, 2))) / 12))) / 100) + floor((number(substring(EndDateLastDayOfYear, 1, 4)) + 4800 - (floor((14 - number(substring(EndDateLastDayOfYear, 6, 2))) / 12))) / 400) - 32045) - (number(substring(EndDateFirstDayOfYear, 9, 2)) + floor((153 * (number(substring(EndDateFirstDayOfYear, 6, 2)) + 12 * (floor((14 - number(substring(EndDateFirstDayOfYear, 6, 2))) / 12)) - 3) + 2) / 5) + (number(substring(EndDateFirstDayOfYear, 1, 4)) + 4800 - (floor((14 - number(substring(EndDateFirstDayOfYear, 6, 2))) / 12))) * 365 + floor((number(substring(EndDateFirstDayOfYear, 1, 4)) + 4800 - (floor((14 - number(substring(EndDateFirstDayOfYear, 6, 2))) / 12))) / 4) - floor((number(substring(EndDateFirstDayOfYear, 1, 4)) + 4800 - (floor((14 - number(substring(EndDateFirstDayOfYear, 6, 2))) / 12))) / 100) + floor((number(substring(EndDateFirstDayOfYear, 1, 4)) + 4800 - (floor((14 - number(substring(EndDateFirstDayOfYear, 6, 2))) / 12))) / 400) - 32045)) + 1</code></pre>
<p><strong>Step 4 &#8211; Get the day of the year</strong></p>
<p style="padding-left: 30px;">Add new rule to &#8220;StartDate&#8221;<br />
Condition: TotalDaysYearStartDate = &#8220;366&#8221;<br />
Rule type: Action<br />
Run action:<br />
Set field&#8217;s value: StartDateDayOfYear<br />
Set To:</p>
<pre><code>((number(substring(StartDate, 9, 2)) + floor((153 * (number(substring(StartDate, 6, 2)) + 12 * floor((14 - number(substring(StartDate, 6, 2))) / 12) - 3) + 2) / 5) + (number(substring(StartDate, 1, 4)) + 4800 - floor((14 - number(substring(StartDate, 6, 2))) / 12)) * 365 + floor((number(substring(StartDate, 1, 4)) + 4800 - floor((14 - number(substring(StartDate, 6, 2))) / 12)) / 4) - floor((number(substring(StartDate, 1, 4)) + 4800 - floor((14 - number(substring(StartDate, 6, 2))) / 12)) / 100) + floor((number(substring(StartDate, 1, 4)) + 4800 - floor((14 - number(substring(StartDate, 6, 2))) / 12)) / 400) - 32045 - (number(substring(StartDateFirstDayYear, 9, 2)) + floor((153 * (number(substring(StartDateFirstDayOfYear, 6, 2)) + 12 * floor((14 - number(substring(StartDateFirstDayOfYear, 6, 2))) / 12) - 3) + 2) / 5) + (number(substring(StartDateFirstDayOfYear, 1, 4)) + 4800 - floor((14 - number(substring(StartDateFirstDayOfYear, 6, 2))) / 12)) * 365 + floor((number(substring(StartDateFirstDayOfYear, 1, 4)) + 4800 - floor((14 - number(substring(StartDateFirstDayOfYear, 6, 2))) / 12)) / 4) - floor((number(substring(StartDateFirstDayOfYear, 1, 4)) + 4800 - floor((14 - number(substring(StartDateFirstDayOfYear, 6, 2))) / 12)) / 100) + floor((number(substring(StartDateFirstDayOfYear, 1, 4)) + 4800 - floor((14 - number(substring(StartDateFirstDayOfYear, 6, 2))) / 12)) / 400) - 32045) + 1</code></pre>
<p style="padding-left: 30px;">Add new rule to &#8220;StartDate&#8221;<br />
Condition: TotalDaysYearStartDate = &#8220;365&#8221;<br />
Rule type: Action<br />
Run action:<br />
Set field&#8217;s value: StartDateDayOfYear<br />
Set To:</p>
<pre><code>((number(substring(StartDate, 9, 2)) + floor((153 * (number(substring(StartDate, 6, 2)) + 12 * floor((14 - number(substring(StartDate, 6, 2))) / 12) - 3) + 2) / 5) + (number(substring(StartDate, 1, 4)) + 4800 - floor((14 - number(substring(StartDate, 6, 2))) / 12)) * 365 + floor((number(substring(StartDate, 1, 4)) + 4800 - floor((14 - number(substring(StartDate, 6, 2))) / 12)) / 4) - floor((number(substring(StartDate, 1, 4)) + 4800 - floor((14 - number(substring(StartDate, 6, 2))) / 12)) / 100) + floor((number(substring(StartDate, 1, 4)) + 4800 - floor((14 - number(substring(StartDate, 6, 2))) / 12)) / 400) - 32045 - (number(substring(StartDateFirstDayYear, 9, 2)) + floor((153 * (number(substring(StartDateFirstDayOfYear, 6, 2)) + 12 * floor((14 - number(substring(StartDateFirstDayOfYear, 6, 2))) / 12) - 3) + 2) / 5) + (number(substring(StartDateFirstDayOfYear, 1, 4)) + 4800 - floor((14 - number(substring(StartDateFirstDayOfYear, 6, 2))) / 12)) * 365 + floor((number(substring(StartDateFirstDayOfYear, 1, 4)) + 4800 - floor((14 - number(substring(StartDateFirstDayOfYear, 6, 2))) / 12)) / 4) - floor((number(substring(StartDateFirstDayOfYear, 1, 4)) + 4800 - floor((14 - number(substring(StartDateFirstDayOfYear, 6, 2))) / 12)) / 100) + floor((number(substring(StartDateFirstDayOfYear, 1, 4)) + 4800 - floor((14 - number(substring(StartDateFirstDayOfYear, 6, 2))) / 12)) / 400) - 32045) + 5</code></pre>
<p style="padding-left: 30px;">Add new rule to &#8220;EndDate&#8221;<br />
Condition: TotalDaysYearEndDate = &#8220;366&#8221;<br />
Rule type: Action<br />
Run action:<br />
Set field&#8217;s value: EndDateDayOfYear<br />
Set To:</p>
<pre><code>((number(substring(EndDate, 9, 2)) + floor((153 * (number(substring(EndDate, 6, 2)) + 12 * (floor((14 - number(substring(EndDate, 6, 2))) / 12)) - 3) + 2) / 5) + (number(substring(EndDate, 1, 4)) + 4800 - (floor((14 - number(substring(EndDate, 6, 2))) / 12))) * 365 + floor((number(substring(EndDate, 1, 4)) + 4800 - (floor((14 - number(substring(EndDate, 6, 2))) / 12))) / 4) - floor((number(substring(EndDate, 1, 4)) + 4800 - (floor((14 - number(substring(EndDate, 6, 2))) / 12))) / 100) + floor((number(substring(EndDate, 1, 4)) + 4800 - (floor((14 - number(substring(EndDate, 6, 2))) / 12))) / 400) - 32045) - (number(substring(EndDateLastDayOfYear, 9, 2)) + floor((153 * (number(substring(EndDateLastDayOfYear, 6, 2)) + 12 * (floor((14 - number(substring(EndDateLastDayOfYear, 6, 2))) / 12)) - 3) + 2) / 5) + (number(substring(EndDateLastDayOfYear, 1, 4)) + 4800 - (floor((14 - number(substring(EndDateLastDayOfYear, 6, 2))) / 12))) * 365 + floor((number(substring(EndDateLastDayOfYear, 1, 4)) + 4800 - (floor((14 - number(substring(EndDateLastDayOfYear, 6, 2))) / 12))) / 4) - floor((number(substring(EndDateLastDayOfYear, 1, 4)) + 4800 - (floor((14 - number(substring(EndDateLastDayOfYear, 6, 2))) / 12))) / 100) + floor((number(substring(EndDateLastDayOfYear, 1, 4)) + 4800 - (floor((14 - number(substring(EndDateLastDayOfYear, 6, 2))) / 12))) / 400) - 32045)) + 1</code></pre>
<p style="padding-left: 30px;">Add new rule to &#8220;EndDate&#8221;<br />
Condition: TotalDaysYearEndDate = &#8220;365&#8221;<br />
Rule type: Action<br />
Run action:<br />
Set field&#8217;s value: EndDateDayOfYear<br />
Set To:</p>
<pre><code>((number(substring(EndDate, 9, 2)) + floor((153 * (number(substring(EndDate, 6, 2)) + 12 * (floor((14 - number(substring(EndDate, 6, 2))) / 12)) - 3) + 2) / 5) + (number(substring(EndDate, 1, 4)) + 4800 - (floor((14 - number(substring(EndDate, 6, 2))) / 12))) * 365 + floor((number(substring(EndDate, 1, 4)) + 4800 - (floor((14 - number(substring(EndDate, 6, 2))) / 12))) / 4) - floor((number(substring(EndDate, 1, 4)) + 4800 - (floor((14 - number(substring(EndDate, 6, 2))) / 12))) / 100) + floor((number(substring(EndDate, 1, 4)) + 4800 - (floor((14 - number(substring(EndDate, 6, 2))) / 12))) / 400) - 32045) - (number(substring(EndDateLastDayOfYear, 9, 2)) + floor((153 * (number(substring(EndDateLastDayOfYear, 6, 2)) + 12 * (floor((14 - number(substring(EndDateLastDayOfYear, 6, 2))) / 12)) - 3) + 2) / 5) + (number(substring(EndDateLastDayOfYear, 1, 4)) + 4800 - (floor((14 - number(substring(EndDateLastDayOfYear, 6, 2))) / 12))) * 365 + floor((number(substring(EndDateLastDayOfYear, 1, 4)) + 4800 - (floor((14 - number(substring(EndDateLastDayOfYear, 6, 2))) / 12))) / 4) - floor((number(substring(EndDateLastDayOfYear, 1, 4)) + 4800 - (floor((14 - number(substring(EndDateLastDayOfYear, 6, 2))) / 12))) / 100) + floor((number(substring(EndDateLastDayOfYear, 1, 4)) + 4800 - (floor((14 - number(substring(EndDateLastDayOfYear, 6, 2))) / 12))) / 400) - 32045)) + 5</code></pre>
<p><strong>Step 5 &#8211; Calculate the week of the year</strong></p>
<p style="padding-left: 30px;">Set field StartDateWeekOfYear default value to Formula:</p>
<pre><code>round(StartDateDayOfYear / 7)</code></pre>
<p style="padding-left: 30px;">Set field EndDateWeekOfYear default value to Formula:</p>
<pre><code>round(EndDateDayOfYear / 7)</code></pre>
<p><strong>Step 6 &#8211; Get the number of weeks difference between the 2 dates</strong></p>
<p style="padding-left: 30px;">Set field WeeksDifference default value to Formula:</p>
<pre><code>(EndDateWeekOfYear - StartDateWeekOfYear)</code></pre>
<p><strong>Step 7 &#8211; Calculate the difference in days between the two dates</strong></p>
<p style="padding-left: 30px;">Set field DifferenceDays default value to Formula:</p>
<pre><code>(EndDateDayOfYear - StartDateDayOfYear) + 1</code></pre>
<p><strong>Note:</strong> On this case I&#8217;ve added one day to the formula so the last day is inclusive, if you don&#8217;t want the last day inclusive, remove the &#8220;+ 1&#8221; from your formula<br />
<strong>Step 8 &#8211; Calculate the weekend Days</strong></p>
<p style="padding-left: 30px;">Set field default value to Formula: WeeksDifference * 2</p>
<p><strong>Step 9 &#8211; Calculate the business days</strong></p>
<p style="padding-left: 30px;">Set field Businessdays default value to Formula:</p>
<pre><code>DifferenceDays - WeekendDays</code></pre>
<p>The post <a href="https://www.meartechnology.co.uk/2016/09/16/infopath-calculate-business-days-between-2-dates-including-leap-year/">InfoPath: Calculate business days between 2 dates including leap year</a> appeared first on <a href="https://www.meartechnology.co.uk">Mear Technology</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
