tag:blogger.com,1999:blog-86868382503886476152024-03-18T05:48:45.249-04:00SharePoint Online/2019/2016/2013/2010/2007Ravi Kumar Rapoluhttp://www.blogger.com/profile/05910385532516729523noreply@blogger.comBlogger143125tag:blogger.com,1999:blog-8686838250388647615.post-91270461452039657252022-12-13T14:01:00.000-05:002022-12-13T14:01:07.945-05:00Power Automate – Send email with embeded image<p> <a href="https://spknowledge.com/2021/04/28/power-automate-send-email-with-embeded-image/">Power Automate – Send email with embeded image | Knowledge Share (spknowledge.com)</a></p><p><br /></p><p><br /></p>Ravi Kumar Rapoluhttp://www.blogger.com/profile/05910385532516729523noreply@blogger.com0tag:blogger.com,1999:blog-8686838250388647615.post-78653127652041093542022-07-14T13:04:00.000-04:002022-07-14T13:04:08.243-04:00Filter Query on GetItems based on a date value in Power automate Create Intialize variable for Future date<div><br /></div><div>Value: addDays(utcNow(),1,'yyyy-MM-dd')</div><div><br /></div><div><br /></div><div>Add Get items actions</div><div><br /></div><div>Filter Query : Modified gt 'formatDateTime(utcNow(),'yyyy-MM-dd')' and Modified lt 'FutureDate'</div><div><br /></div><div><br /></div><div><br /></div><div><br /></div><div>Note: Single quotes around the expression and the reference to the variable.</div>Ravi Kumar Rapoluhttp://www.blogger.com/profile/05910385532516729523noreply@blogger.com0tag:blogger.com,1999:blog-8686838250388647615.post-23928438249345797052022-03-28T15:00:00.001-04:002022-03-28T15:00:08.580-04:00Cancel bulk running flows in Powerautomate<p>1) <span style="background-color: white; color: #222222; font-family: "Noto Sans", sans-serif; font-size: 16px;">When we are in the All runs view, we need to open the developer console in the browser. The developer console can be opened by clicking F12 (or holding fn and F12) on Windows</span></p><p><span style="background-color: white; color: #222222; font-family: "Noto Sans", sans-serif; font-size: 16px;"><br /></span></p><p>2) <span style="background-color: white; color: #222222; font-family: "Noto Sans", sans-serif; font-size: 16px;">In the developer console, navigate to the </span><span style="background-color: white; border: 0px; box-sizing: inherit; color: #222222; font-family: "Noto Sans", sans-serif; font-size: 16px; font-weight: 700; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Console </span><span style="background-color: white; color: #222222; font-family: "Noto Sans", sans-serif; font-size: 16px;">pane. To clear the console window click CTRL + L. The console pane is where we are going to add the JavaScript code that will cancel the running flows. </span></p><p>3) <span style="background-color: white; color: #222222; font-family: "Noto Sans", sans-serif; font-size: 16px;">Copy the first part and run this first, you will get and an error the first time and the second time it works</span></p><p>//Include jquery (you may need to paste this following twice)</p><p>var jq = document.createElement('script');</p><p>jq.src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js";</p><p>document.getElementsByTagName('head')[0].appendChild(jq);</p><p>jQuery.noConflict()</p><p><br /></p><p>4) <span style="background-color: white; color: #222222; font-family: "Noto Sans", sans-serif; font-size: 16px;">Then copy the other part, this will start to cancel the flow that is running</span></p><p><br /></p><p>// Cancel all running flows ( This part you only paste once)</p><p>confirm = function () {return true;};</p><p>setInterval(function () {</p><p>$(".fl-StatusInCell:contains('Running')").parent().parent().find('.ms-DetailsRow-cell').first().click();</p><p>$(".fl-StatusInCell:contains('Running')").parent().parent().find('.ms-DetailsRow-cell').last().click();</p><p>$(".fl-StatusInCell:contains('Running')").parent().parent().find('.ms-DetailsRow-cell').first().click();</p><p>$('button[name="Cancel"]').click();</p><p>},3000); </p><p><br /></p><p>5) click on any running flow then it starts cancelling flows one by one</p><p><br /></p><p><br /></p><p>See below blog:</p><p>https://www.fredrikengseth.com/how-to-cancel-running-power-automate-flows-with-javascript/</p>Ravi Kumar Rapoluhttp://www.blogger.com/profile/05910385532516729523noreply@blogger.com0tag:blogger.com,1999:blog-8686838250388647615.post-63816867758044158472022-01-05T12:29:00.001-05:002022-01-05T13:57:31.470-05:00Execute workflow based on Modified item - Power automate<p> <span face="SegoeUI, Lato, "Helvetica Neue", Helvetica, Arial, sans-serif" style="background-color: white; font-size: 15px;">if you want to trigger the flow only when an existing item is modified in your SharePoint list, you could consider add the "When an item is created or modified" as the trigger of your flow and add a Condition to check if the existing item is modified trigger yur flow. please take a try with the following workaround:</span></p><ul style="background-color: white; box-sizing: border-box; clear: left; font-family: SegoeUI, Lato, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; list-style: outside; margin-bottom: 11px; margin-top: 0px; padding-left: 2.5em;"><li style="box-sizing: border-box;"><span style="box-sizing: border-box;">Add a "When an item is created or modified" trigger in Power automate</span></li><li style="box-sizing: border-box;"><span style="box-sizing: border-box;">Go to settings using ...</span></li><li style="box-sizing: border-box;"><span style="box-sizing: border-box;">In the Trigger Conditions</span></li><li style="box-sizing: border-box;"><span style="box-sizing: border-box;">Add the below code</span></li></ul><div><span face="SegoeUI, Lato, Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 15px;">@not(equals(triggerBody()['Created'], triggerBody()['Modified']))</span></span></div><div><span face="SegoeUI, Lato, Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 15px;"><br /></span></span></div><div><span face="SegoeUI, Lato, Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 15px;">OR </span></span></div><div><span face="SegoeUI, Lato, Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 15px;"><br /></span></span></div><div><span face="SegoeUI, Lato, Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 15px;">if you want to execute the workflow based on field value then use the below code</span></span></div><div><span face="SegoeUI, Lato, Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 15px;"><br /></span></span></div><div><span face="SegoeUI, Lato, Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 15px;">@not(equals(triggerBody()?['Current_x0020_Stage'],null))</span></span></div><div><span face="SegoeUI, Lato, Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 15px;"><div class="separator" style="clear: both; text-align: center;"><a href="https://lh3.googleusercontent.com/-zyFnWLjO_2w/YdXVCOY_8qI/AAAAAAAAFbM/yOAMzBsmcs4usV4wWdeWHvMkz5RXBqWzwCNcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="138" data-original-width="587" height="75" src="https://lh3.googleusercontent.com/-zyFnWLjO_2w/YdXVCOY_8qI/AAAAAAAAFbM/yOAMzBsmcs4usV4wWdeWHvMkz5RXBqWzwCNcBGAsYHQ/image.png" width="320" /></a></div><br /><br /></span></span></div><div><span face="SegoeUI, Lato, Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 15px;"><br /></span></span></div><div><span face="SegoeUI, Lato, Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 15px;">-----------------</span></span></div><div><span face="SegoeUI, Lato, Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 15px;">https://www.c-sharpcorner.com/article/flow-trigger-conditions-for-sharepoint-run-flow-when-needed/</span></span></div><div><span face="SegoeUI, Lato, Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 15px;"><br /></span></span></div>Ravi Kumar Rapoluhttp://www.blogger.com/profile/05910385532516729523noreply@blogger.com0tag:blogger.com,1999:blog-8686838250388647615.post-69866574827964205492021-09-24T14:37:00.007-04:002021-10-01T12:25:16.075-04:00Display Multiselect dropdown selected values and contains function<p> Place label under Multiselected dropdown control</p><p><br /></p><p>1) copy the dropdown datacard name </p><p>2) Use the below code in Text property of Label</p><p>Concat(<span style="background-color: #fcff01;">DataCardValue4</span>.SelectedItems,Value & "; ")</p><p>Note: Replace DataCardValue4 with your DataCard value</p><p>------------------------------------------------------</p><p><br /></p><p>Contains text in the dropdown value</p><p>If("<span style="background-color: #fcff01;">Remote</span>" in <span style="background-color: #fcff01;">DataCardValue1.Selected.Value</span>, true,false)</p><p>FYI: Remote is the dropdown value option </p><p> DataCardValue1 is dropdown control.</p><p><br /></p>Ravi Kumar Rapoluhttp://www.blogger.com/profile/05910385532516729523noreply@blogger.com0tag:blogger.com,1999:blog-8686838250388647615.post-32317181654599796222021-09-14T10:34:00.001-04:002021-09-14T10:34:10.876-04:00SharePoint Online: Change List URL using PowerShell<p>Save this file as .ps1 extension and execute in powershell/SharePoint Online Powershell</p><p>------------------------------------------------------------------------------------</p><p>#Web url where is the list exist, of which we need to change the URL </p><p>$url = "<span style="background-color: #fcff01;">https://test.sharepoint.com/sites/sample/</span>" </p><p> </p><p>$userName ="<span style="background-color: #fcff01;">Your sie User Name</span>" # Your site user name </p><p>$password ="<span style="background-color: #fcff01;">Password</span>" # Password </p><p> </p><p># convert password into secured string </p><p>$securedpw = ConvertTo-SecureString $password -AsPlainText -Force </p><p> </p><p>#Creating instance of client context </p><p>[Microsoft.SharePoint.Client.ClientContext]$clientContext = New-Object Microsoft.SharePoint.Client.ClientContext($url) </p><p> </p><p>$clientContext.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($userName, $securedpw) </p><p> </p><p>#Fetching the list </p><p>$web = $clientContext.Web </p><p>$lists = $web.Lists </p><p>$clientContext.Load($web) </p><p>$clientContext.Load($lists) </p><p>$clientContext.ExecuteQuery() </p><p> </p><p>$list =$lists.GetByTitle("<span style="background-color: #fcff01;">Project Documents</span>") # TestList is also the title of list which we want to change </p><p>$clientContext.Load($list) </p><p> </p><p>$clientContext.ExecuteQuery() </p><p> </p><p>#Fetching the RootFolder of the list </p><p>$rootfolder = $list.RootFolder </p><p> </p><p>#Move the root folder to new URL </p><p>$rootfolder.MoveTo("<span style="background-color: #fcff01;">https://test.sharepoint.com/sites/sample/Lists/ProjectDoc/</span>") # NewURL - new url of the list </p><p> </p><p>$clientContext.ExecuteQuery() </p>Ravi Kumar Rapoluhttp://www.blogger.com/profile/05910385532516729523noreply@blogger.com0tag:blogger.com,1999:blog-8686838250388647615.post-25867331178865418852021-08-18T14:12:00.000-04:002021-08-18T14:12:38.317-04:00Rich text control format in Powerapps <p>Rich Text control in SharePoint 2010 data will show in Powerapps with DIV tags. To display in correct format. Use the below steps</p><p>1) open list form in Power Apps</p><p>2) Select multiselected data control</p><p>3) unlock the data card</p><p>4) select Multiselected text box</p><p>5) convert Single line text to Multi line in the control properties</p><p>6) use this code in default section</p><p>PlainText(Parent.Default)</p><p></p><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><br /><br /><br /><p></p>Ravi Kumar Rapoluhttp://www.blogger.com/profile/05910385532516729523noreply@blogger.com0tag:blogger.com,1999:blog-8686838250388647615.post-41027383064175727212021-08-06T11:11:00.004-04:002021-09-13T16:03:35.365-04:00Reuse a Deleted SharePoint Site Name and Site Url in SharePoint Online<p><span face=""-apple system", system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"" style="background-color: white; color: #3a3a3a; font-size: 17px;">Prepared based on the below articles</span></p><p style="background-color: white; border: 0px; margin: 0px 0px 1.5em; padding: 0px;"><span face="-apple system, system-ui, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol" style="color: #3a3a3a;"><span style="font-size: 17px;">https://www.c-sharpcorner.com/article/reusing-a-deleted-sharepoint-online-team-site-name/</span></span></p><p style="background-color: white; border: 0px; margin: 0px 0px 1.5em; padding: 0px;"><span face="-apple system, system-ui, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol" style="color: #3a3a3a;"><span style="font-size: 17px;">https://morgantechspace.com/2018/07/how-to-reuse-deleted-sharepoint-site-url.html</span></span></p><div><span face="-apple system, system-ui, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol" style="color: #3a3a3a;"><span style="font-size: 17px;">---------------------------------------</span></span></div><p><span face=""-apple system", system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"" style="background-color: white; color: #3a3a3a; font-size: 17px;">When you delete a SharePoint Site from Office 365, by default the deleted site will be retained in the Site Collection Recycle Bin for 93 days (Retention Period) and if you have deleted a site collection, then the site collection will be retained in Tenant Recycle Bin.</span></p><p style="background-color: white; border: 0px; color: #3a3a3a; font-family: "-apple system", system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 17px; margin: 0px 0px 1.5em; padding: 0px;">The deleted sites are automatically emptied from the Site Collection/Tenant Recycle Bin after the retention period. You can restore a deleted site before this retention period time end.</p><p style="background-color: white; border: 0px; color: #3a3a3a; font-family: "-apple system", system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 17px; margin: 0px 0px 1.5em; padding: 0px;"><br /></p><h3 style="background-color: white; border: 0px; color: #3a3a3a; font-family: "-apple system", system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 20px; line-height: 1.2em; margin: 0px 0px 20px; padding: 0px;">Scenario 1:</h3><p style="background-color: white; border: 0px; color: #3a3a3a; font-family: "-apple system", system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 17px; margin: 0px 0px 1.5em; padding: 0px;">Consider that you have deleted a team site and you want to create another site with same name and site url. In this case, you can create a site with the same name but you can’t reuse the deleted site url until the deleted site exists in Recycle Bin.</p><p style="background-color: white; border: 0px; color: #3a3a3a; font-family: "-apple system", system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 17px; margin: 0px 0px 1.5em; padding: 0px;">If you are creating another site collection from SharePoint Online Admin portal, then you will get the validation error <span style="font-weight: 700;">The site collection already exists. Please enter a different address.</span> . Under this error message you can also see the option <span style="font-weight: 700;">Permanently delete the site collection from the recycle bin and continue.</span>, you can check this option and proceed to remove the deleted site from Recycle Bin and create a site collection with same site url.</p><h3 style="background-color: white; border: 0px; color: #3a3a3a; font-family: "-apple system", system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 20px; line-height: 1.2em; margin: 0px 0px 20px; padding: 0px;">Scenario 2:</h3><p style="background-color: white; border: 0px; color: #3a3a3a; font-family: "-apple system", system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 17px; margin: 0px 0px 1.5em; padding: 0px;">Consider that you have a Office 365 group that named as <span style="font-weight: 700;">TestO365Group</span> and the O365 group should have a associated team site (https://o365domain.sharepoint.com/sites/TestO365Group). If you delete this O365 group, it will also delete its associated site, both the group and site will be moved into Recycle Bin. Now you can create another O365 group with same name and email alias (group email address), but it will not create the associated team site with same url and it will place a numeric number after the site name in the URL (For example: https://o365domain.sharepoint.com/sites/TestO365Group2). So you have to remove the deleted site first from Recycle Bin to have the same group site url.</p><p style="background-color: white; border: 0px; color: #3a3a3a; font-family: "-apple system", system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 17px; margin: 0px 0px 1.5em; padding: 0px;">Manually deleting the sites from Recycle Bin will be a tough task. So you can use the SharePoint Online Management Powerhsell cmdlet <span style="font-weight: 700;">Remove-SPODeletedSite</span> to remove the deleted sites from Recycle Bin.</p><p style="background-color: white; border: 0px; color: #3a3a3a; font-family: "-apple system", system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 17px; margin: 0px 0px 1.5em; padding: 0px;">Before proceed <a href="https://www.morgantechspace.com/2018/06/how-to-install-and-connect-sharepoint-online-powershell-module.html" rel="noopener noreferrer" style="background-color: transparent; border: 0px; color: #3a3a3a; margin: 0px; padding: 0px; transition: color 0.1s ease-in-out 0s, background-color 0.1s ease-in-out 0s;" target="_blank">Install and Connect SharePoint Online PowerShell Module</a>, then run the below command to remove a deleted site.</p><div style="background-color: white; box-sizing: border-box; color: #212121; font-family: "open sans", sans-serif; font-size: 16px;"><strong style="box-sizing: border-box;">How to resolve</strong></div><div style="box-sizing: border-box;"><ul style="box-sizing: border-box;"><li style="background-color: white; box-sizing: border-box; color: #212121; font-family: "open sans", sans-serif; font-size: 16px;">We need to use online Powershell to fix the same.</li><li style="background-color: white; box-sizing: border-box; color: #212121; font-family: "open sans", sans-serif; font-size: 16px;">Open SharePoint Online Management shell, and connect your tenant which does have SA permission</li><li style="background-color: white; box-sizing: border-box; color: #212121; font-family: "open sans", sans-serif; font-size: 16px;">Connect to the admin site through SPOService</li><li style="box-sizing: border-box;"><span style="color: #212121; font-family: open sans, sans-serif;"><span style="background-color: white;"> Connect-SPOService -Url </span><span style="background-color: #fcff01;">https://test-admin.sharepoint.com/</span><span style="background-color: white;"> -Credential </span><span style="background-color: #fcff01;">ravi@domain.com</span></span></li><li style="background-color: white; box-sizing: border-box; color: #212121; font-family: "open sans", sans-serif; font-size: 16px;">Once connected, Use Get-SPODeletedsite command see, below, it will result in showing you all the deleted sites.</li></ul><div style="background-color: white; color: #212121; font-family: "open sans", sans-serif; font-size: 16px;"><div style="box-sizing: border-box;"><br /></div></div></div><p style="background-color: white; border: 0px; color: #3a3a3a; font-family: "-apple system", system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 17px; margin: 0px 0px 1.5em; padding: 0px;"></p><div class="separator" style="clear: both; text-align: center;"><a href="https://lh3.googleusercontent.com/-6xxZ9Sk8X_k/YQ1QhPgeIbI/AAAAAAAAFWc/xdMvbSZMdfU-OpMIUIcPQJC0fRVNvcEPQCLcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="231" data-original-width="819" height="90" src="https://lh3.googleusercontent.com/-6xxZ9Sk8X_k/YQ1QhPgeIbI/AAAAAAAAFWc/xdMvbSZMdfU-OpMIUIcPQJC0fRVNvcEPQCLcBGAsYHQ/image.png" width="320" /></a></div><p></p><ul style="background-color: white; box-sizing: border-box; color: #212121; font-family: "open sans", sans-serif; font-size: 16px;"><li style="box-sizing: border-box;">We have to remove this site from here as well, to reuse the deleted site name as URL.</li><li style="box-sizing: border-box;">Use Remove-spodeletedsite – identity SiteURL or id see below for more details</li></ul><div class="separator" style="clear: both; text-align: center;"></div><p style="background-color: white; border: 0px; color: #3a3a3a; font-family: "-apple system", system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 17px; margin: 0px 0px 1.5em; padding: 0px;"></p><div class="separator" style="clear: both; text-align: center;"><a href="https://lh3.googleusercontent.com/-v7B-uyeab3M/YQ1Qp5PB5DI/AAAAAAAAFWg/CCOeyO8LR6oDn1n8SqtEnO2oU0YpYf0_QCLcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="213" data-original-width="825" height="83" src="https://lh3.googleusercontent.com/-v7B-uyeab3M/YQ1Qp5PB5DI/AAAAAAAAFWg/CCOeyO8LR6oDn1n8SqtEnO2oU0YpYf0_QCLcBGAsYHQ/image.png" width="320" /></a></div><span face=""open sans", sans-serif" style="color: #212121; font-size: 16px;">Now, we will try to create a site with the same name and see how it’s going following the same steps as we did above. Go to admin center > Active Site > create > select Template.</span><br /><br /><br /><p></p><p style="background-color: white; border: 0px; color: #3a3a3a; font-family: "-apple system", system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 17px; margin: 0px 0px 1.5em; padding: 0px;"><br /></p>Ravi Kumar Rapoluhttp://www.blogger.com/profile/05910385532516729523noreply@blogger.com0tag:blogger.com,1999:blog-8686838250388647615.post-25529512286988586722021-07-19T13:10:00.002-04:002021-07-19T14:56:26.999-04:00Navigate to screens based on the SharePoint List field value in PowerAppsDisplay Different FormViews based on SharePoint list value When edit the selected item.<div><br /></div><div>1) Duplicate <span face="SegoeUI, Lato, "Helvetica Neue", Helvetica, Arial, sans-serif" style="background-color: white; font-size: 15px;">screens from the FormScreen1</span></div><div><span face="SegoeUI, Lato, "Helvetica Neue", Helvetica, Arial, sans-serif" style="background-color: white; font-size: 15px;">2) </span><span face="SegoeUI, Lato, "Helvetica Neue", Helvetica, Arial, sans-serif" style="background-color: white; font-size: 15px;">Set the </span><strong style="background-color: white; box-sizing: border-box; font-family: SegoeUI, Lato, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px;"><em style="box-sizing: border-box;">OnEdit</em></strong><span face="SegoeUI, Lato, "Helvetica Neue", Helvetica, Arial, sans-serif" style="background-color: white; font-size: 15px;"> property of the </span><strong style="background-color: white; box-sizing: border-box; font-family: SegoeUI, Lato, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px;"><em style="box-sizing: border-box;"><span style="box-sizing: border-box; color: blue;">SharePointIntegration</span></em></strong><span face="SegoeUI, Lato, "Helvetica Neue", Helvetica, Arial, sans-serif" style="background-color: white; box-sizing: border-box; font-size: 15px;"> control to following formula:</span></div><div><span face="SegoeUI, Lato, "Helvetica Neue", Helvetica, Arial, sans-serif" style="background-color: white; box-sizing: border-box; font-size: 15px;"><br /></span></div><div><span style="background-color: white; box-sizing: border-box;"><span face="SegoeUI, Lato, Helvetica Neue, Helvetica, Arial, sans-serif"><div style="font-size: 15px;">Set(Varcurrent,LookUp('<strong style="background-color: whitesmoke; box-sizing: border-box; color: green; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 12px;"><em style="box-sizing: border-box;">YourSPList</em></strong>', ID=SharePointIntegration.SelectedListItemID, CurrentStage));</div><div style="font-size: 15px;"><br /></div><div style="font-size: 15px;">If(Varcurrent="IT",Navigate(SharePointForm1_1,ScreenTransition.Fade),</div><div style="font-size: 15px;">Varcurrent="Facilities",Navigate(SharePointForm1_2,ScreenTransition.Fade));</div><div style="font-size: 15px;"><br /></div><div style="font-size: 15px;">3) <span style="font-family: SegoeUI, Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;">Set the </span><strong style="box-sizing: border-box; font-family: SegoeUI, Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;"><em style="box-sizing: border-box;">OnSave</em></strong><span style="font-family: SegoeUI, Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;"> property of the </span><strong style="box-sizing: border-box; font-family: SegoeUI, Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;"><em style="box-sizing: border-box;"><span style="box-sizing: border-box; color: blue;">SharePointIntegration</span></em></strong><span style="font-family: SegoeUI, Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;"> control to following formula:</span></div><div style="font-size: 15px;"><span style="font-family: SegoeUI, Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;"><br /></span></div><div><div><span style="font-family: SegoeUI, Lato, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 15px;"><br /></span></span></div><div><span style="font-family: SegoeUI, Lato, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 15px;">If(</span></span></div><div><span style="font-family: SegoeUI, Lato, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 15px;"> IsBlank(Varcurrent), SubmitForm(SharePointForm1),</span></span></div><div><span style="font-family: SegoeUI, Lato, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 15px;"> Varcurrent="IT",SubmitForm(SharePointForm1_1),</span></span></div><div><span style="font-family: SegoeUI, Lato, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 15px;"> Varcurrent="</span></span><span style="font-size: 15px;">Facilities</span><span style="font-family: SegoeUI, Lato, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px;">",SubmitForm(SharePointForm1_2)</span></div><div><span style="font-family: SegoeUI, Lato, Helvetica Neue, Helvetica, Arial, sans-serif;"><span style="font-size: 15px;">)</span></span></div></div></span></span></div>Ravi Kumar Rapoluhttp://www.blogger.com/profile/05910385532516729523noreply@blogger.com0tag:blogger.com,1999:blog-8686838250388647615.post-73719027144952067012021-04-14T10:24:00.000-04:002021-04-14T10:24:01.201-04:00How to Create a SQL Server 2016 AlwaysOn Availability Group- step by step<p>Copied from the below article</p><p>http://www.macaalay.com/2016/11/04/step-by-step-easy-instructions-on-how-to-create-a-sql-server-2016-alwayson-availability-group/</p><p>-------------------------------------------------------------------------------------------</p><p><br /></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://msdn.microsoft.com/en-us/library/ff877884.aspx" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;" target="_blank">SQL Server AlwaysOn Availability Group</a> has been existing since <a href="https://technet.microsoft.com/en-us/library/bb500435(v=sql.110).aspx" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;" target="_blank">SQL Server 2012</a> and its one of the best features SQL has to offer, while I haven’t used it in production since it was launched I tried using it for only testing but now that we have an Enterprise License we can use it in Production and enjoy all the other benefits of the <a href="https://www.microsoft.com/en-us/sql-server/sql-server-editions-enterprise" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;" target="_blank">Enterprise License</a>. With SQL Server AlwaysOn it high availability and disaster recovery to a different level by making multiple copies of the database highly available and even use them as read-only workloads to be used on reporting, backups and other management tasks. With this technology it allow you to fail over a group of databases as a single entity unlike how we did it before with <a href="http://www.macaalay.com/2010/09/13/mirroring-a-sql-server-database-is-not-as-hard-as-you-think/" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;" target="_blank">database mirroring</a> where we can only do it one at a time, though that work this made it even better.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">It greatly helps in disaster recovery, availability and even management of the databases and the servers it resides on. Today I will run you though the steps I made when I set up our server, it is quite a straightforward approach as long as you have all your <a href="https://msdn.microsoft.com/en-us/library/ff878487.aspx" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;" target="_blank">requirements set up</a> from your servers (Physical or VM) down to the patches (it needs to have the same OS patches installed)</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><br /></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Now lets start starting with the iSCSI.</p><h1 style="background-color: white; border: 0px; clear: both; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 21px; line-height: 1.5; margin: 24px 0px; padding: 0px; vertical-align: baseline;"><span style="border: 0px; color: #3366ff; margin: 0px; padding: 0px; vertical-align: baseline;">1. Set Up iSCSI for Shared Storage</span></h1><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Now you might be wondering why we need to do this? If you haven’t set up Windows Server Failover Cluster then you need to know that this is required so that there is a shared disk in the OS to run the clustering.</p><div class="code-block code-block-3 ai-viewport-1" style="background-color: white; border: 0px; clear: both; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; margin: 8px auto; padding: 0px; text-align: center; vertical-align: baseline;"><div data-adversal-element="300x250" data-up-transform="true" id="adv_scr_637.0_B" style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"></div><br /></div><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">First lets Run the iSCSI Initiator</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/01-iSCSI.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="01-iscsi" class="alignnone size-full wp-image-3067" height="377" loading="lazy" sizes="(max-width: 362px) 100vw, 362px" src="https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/01-iSCSI.png?resize=362%2C377" srcset="https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/01-iSCSI.png?w=362 362w, https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/01-iSCSI.png?resize=288%2C300 288w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="362" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Once its running it will ask you to run the service, click Yes so it starts automatically when your server reboots</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/02-iSCSI.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="02-iscsi" class="alignnone size-full wp-image-3068" height="185" loading="lazy" sizes="(max-width: 496px) 100vw, 496px" src="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/02-iSCSI.png?resize=496%2C185" srcset="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/02-iSCSI.png?w=496 496w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/02-iSCSI.png?resize=300%2C112 300w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="496" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">The iSCSI Initiator Properties opens, go directly to the <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Discovery</strong> tab and click the <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Discover Portal</strong> button.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/03-iSCSI.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="03-iscsi" class="alignnone size-full wp-image-3069" height="698" loading="lazy" sizes="(max-width: 495px) 100vw, 495px" src="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/03-iSCSI.png?resize=495%2C698" srcset="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/03-iSCSI.png?w=495 495w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/03-iSCSI.png?resize=213%2C300 213w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="495" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Type in the IP Address of the shared storage iSCSI interface in the IP Address or DNS Name textbox then click <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Advanced</strong></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/04-iSCSI.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="04-iscsi" class="alignnone size-full wp-image-3070" height="240" loading="lazy" sizes="(max-width: 395px) 100vw, 395px" src="https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/04-iSCSI.png?resize=395%2C240" srcset="https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/04-iSCSI.png?w=395 395w, https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/04-iSCSI.png?resize=300%2C182 300w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="395" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Advanced setting open then on the <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Local Adapter</strong> dropdown box select <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Microsoft iSCSI Initiator</strong> then on the <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Initiator IP</strong> text box key in the IP Address of the NIC that is dedicated to your iSCSI connection. Click <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">OK</strong>.</p><div class="code-block code-block-5 ai-viewport-1" style="background-color: white; border: 0px; clear: both; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; margin: 8px auto; padding: 0px; text-align: center; vertical-align: baseline;"><div class="pp_ad_container" id="pp_ad_container_2" style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><div class="pp_ad_container" id="pp_ad_container_3" style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><img border="0" height="1" src="https://idsync.rlcdn.com/400066.gif?partner_uid=S6c8u1Jw9DeA&gdpr=0&gdpr_consent=" style="border: 0px; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="1" /></div></div><br /></div><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/05-iSCSI.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="05-iscsi" class="alignnone size-full wp-image-3071" height="643" loading="lazy" sizes="(max-width: 544px) 100vw, 544px" src="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/05-iSCSI.png?resize=544%2C643" srcset="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/05-iSCSI.png?w=544 544w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/05-iSCSI.png?resize=254%2C300 254w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="544" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">The shared storage/s will then be listed highlighted part of the image below.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/06-iSCSI.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="06-iscsi" class="alignnone size-full wp-image-3072" height="698" loading="lazy" sizes="(max-width: 495px) 100vw, 495px" src="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/06-iSCSI.png?resize=495%2C698" srcset="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/06-iSCSI.png?w=495 495w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/06-iSCSI.png?resize=213%2C300 213w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="495" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Click the <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Target</strong> tab and in this tab you will see the LUNs that are available. Select the LUNs on the list then click the <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Connect</strong> button</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/07-iSCSI.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="07-iscsi" class="alignnone size-full wp-image-3073" height="699" loading="lazy" sizes="(max-width: 496px) 100vw, 496px" src="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/07-iSCSI.png?resize=496%2C699" srcset="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/07-iSCSI.png?w=496 496w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/07-iSCSI.png?resize=213%2C300 213w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="496" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Click the <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Target</strong> tab you should see the iSCSI target that you are connected to.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/08-iSCSI.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="08-iscsi" class="alignnone size-full wp-image-3074" height="697" loading="lazy" sizes="(max-width: 495px) 100vw, 495px" src="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/08-iSCSI.png?resize=495%2C697" srcset="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/08-iSCSI.png?w=495 495w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/08-iSCSI.png?resize=213%2C300 213w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="495" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">That’s it were done with the first server, now do the same thing on the other server then your done with the first step. Now lets configure Windows with a shared disk.</p><h1 style="background-color: white; border: 0px; clear: both; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 21px; line-height: 1.5; margin: 24px 0px; padding: 0px; vertical-align: baseline;"><span style="border: 0px; color: #3366ff; margin: 0px; padding: 0px; vertical-align: baseline;">2. Configuring shared disk in the OS</span></h1><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Go to your <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Disk Management </strong>on one of the servers, there you will see the shared iSCSI storage displayed as <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Unknown</strong>, right-click on that then choose <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Initialize Disk</strong>.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/01-Disk-Initialize.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="01-disk-initialize" class="alignnone size-full wp-image-3075" height="437" loading="lazy" sizes="(max-width: 571px) 100vw, 571px" src="https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/01-Disk-Initialize.png?resize=571%2C437" srcset="https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/01-Disk-Initialize.png?w=571 571w, https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/01-Disk-Initialize.png?resize=300%2C230 300w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="571" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Choose MBR if your shared storage does not exceed 2TB otherwise use GPT then click <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">OK</strong>.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/02-Disk-Initialize.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="02-disk-initialize" class="alignnone size-full wp-image-3076" height="348" loading="lazy" sizes="(max-width: 439px) 100vw, 439px" src="https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/02-Disk-Initialize.png?resize=439%2C348" srcset="https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/02-Disk-Initialize.png?w=439 439w, https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/02-Disk-Initialize.png?resize=300%2C238 300w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="439" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Right click on the <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Unallocated </strong>space then choose <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">New Simple Volume</strong></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/03-Disk-Initialize.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="03-disk-initialize" class="alignnone size-full wp-image-3077" height="263" loading="lazy" sizes="(max-width: 603px) 100vw, 603px" src="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/03-Disk-Initialize.png?resize=603%2C263" srcset="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/03-Disk-Initialize.png?w=603 603w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/03-Disk-Initialize.png?resize=300%2C131 300w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="603" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Assign a drive letter then click <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Next</strong></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/04-Disk-Initialize.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="04-disk-initialize" class="alignnone size-full wp-image-3078" height="419" loading="lazy" sizes="(max-width: 525px) 100vw, 525px" src="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/04-Disk-Initialize.png?resize=525%2C419" srcset="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/04-Disk-Initialize.png?w=525 525w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/04-Disk-Initialize.png?resize=300%2C239 300w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="525" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Then format the volume, I chose <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">NTFS</strong> and <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Quick Format</strong></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/05-Disk-Initialize.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="05-disk-initialize" class="alignnone size-full wp-image-3079" height="414" loading="lazy" sizes="(max-width: 526px) 100vw, 526px" src="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/05-Disk-Initialize.png?resize=526%2C414" srcset="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/05-Disk-Initialize.png?w=526 526w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/05-Disk-Initialize.png?resize=300%2C236 300w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="526" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">It then complete the process so click <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Finish</strong> afterwards</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/06-Disk-Initialize.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="06-disk-initialize" class="alignnone size-full wp-image-3080" height="410" loading="lazy" sizes="(max-width: 525px) 100vw, 525px" src="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/06-Disk-Initialize.png?resize=525%2C410" srcset="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/06-Disk-Initialize.png?w=525 525w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/06-Disk-Initialize.png?resize=300%2C234 300w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="525" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Now the disk will be online, turn it offline so you can configure the shared drive on the other server, the second cluster node. Right click on the drive then choose <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Offline</strong>.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/07-Disk-Initialize.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="07-disk-initialize" class="alignnone size-full wp-image-3081" height="375" loading="lazy" sizes="(max-width: 510px) 100vw, 510px" src="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/07-Disk-Initialize.png?resize=510%2C375" srcset="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/07-Disk-Initialize.png?w=510 510w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/07-Disk-Initialize.png?resize=300%2C221 300w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="510" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Now go to the other server, open <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Disk Management</strong>, got to <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Actions</strong> then choose <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Rescan Disk</strong> is the shared disk does not show.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/08-Disk-Initialize.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="08-disk-initialize" class="alignnone size-full wp-image-3082" height="226" loading="lazy" sizes="(max-width: 539px) 100vw, 539px" src="https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/08-Disk-Initialize.png?resize=539%2C226" srcset="https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/08-Disk-Initialize.png?w=539 539w, https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/08-Disk-Initialize.png?resize=300%2C126 300w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="539" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Now when the Disk shows Right click the new volume and <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Change Drive Letter and Paths</strong></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/09-Disk-Initialize.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="09-disk-initialize" class="alignnone size-full wp-image-3083" height="463" loading="lazy" sizes="(max-width: 665px) 100vw, 665px" src="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/09-Disk-Initialize.png?resize=665%2C469" srcset="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/09-Disk-Initialize.png?w=669 669w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/09-Disk-Initialize.png?resize=300%2C212 300w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/09-Disk-Initialize.png?resize=660%2C466 660w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/09-Disk-Initialize.png?resize=200%2C140 200w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="656" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Assign the same drive letter you assigned on the first node, in this example it was “Q”</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/10-Disk-Initialize.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="10-disk-initialize" class="alignnone size-full wp-image-3084" height="440" loading="lazy" sizes="(max-width: 463px) 100vw, 463px" src="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/10-Disk-Initialize.png?resize=463%2C440" srcset="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/10-Disk-Initialize.png?w=463 463w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/10-Disk-Initialize.png?resize=300%2C285 300w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="463" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Now you’re all set and ready for the next step, creating a failover cluster.</p><h1 style="background-color: white; border: 0px; clear: both; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 21px; line-height: 1.5; margin: 24px 0px; padding: 0px; vertical-align: baseline;"><span style="border: 0px; color: #3366ff; margin: 0px; padding: 0px; vertical-align: baseline;">3. Set Up Windows Server Failover Cluster</span></h1><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Now lets set up Failover Clustering, you need to add this a feature on your Windows. Open Server Manager and choose the Local Server in the left menu then on the content section and select <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Add Roles and Features</strong>. Click next until you are at the feature section, in here select and check the <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Failover Clustering.</strong>, click <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Next</strong>.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/07-Enable-Always-On.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="07-enable-always-on" class="alignnone size-full wp-image-3088" height="465" loading="lazy" sizes="(max-width: 665px) 100vw, 665px" src="https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/07-Enable-Always-On.png?resize=665%2C471" srcset="https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/07-Enable-Always-On.png?w=800 800w, https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/07-Enable-Always-On.png?resize=300%2C213 300w, https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/07-Enable-Always-On.png?resize=768%2C544 768w, https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/07-Enable-Always-On.png?resize=660%2C468 660w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="656" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Let it complete and install. Search for the <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Failover Cluster Manager</strong> then execute it.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/08-Enable-Always-On.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="08-enable-always-on" class="alignnone size-full wp-image-3089" height="268" loading="lazy" sizes="(max-width: 354px) 100vw, 354px" src="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/08-Enable-Always-On.png?resize=354%2C268" srcset="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/08-Enable-Always-On.png?w=354 354w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/08-Enable-Always-On.png?resize=300%2C227 300w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="354" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">You can click validate configuration to see if there are warnings or you can start creating the cluster. Choose and click <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Create Cluster</strong>.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/09-Enable-Always-On.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="09-enable-always-on" class="alignnone size-large wp-image-3090" height="503" loading="lazy" sizes="(max-width: 665px) 100vw, 665px" src="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/09-Enable-Always-On.png?resize=665%2C510" srcset="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/09-Enable-Always-On.png?resize=1024%2C786 1024w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/09-Enable-Always-On.png?resize=300%2C230 300w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/09-Enable-Always-On.png?resize=768%2C589 768w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/09-Enable-Always-On.png?resize=660%2C506 660w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/09-Enable-Always-On.png?w=1062 1062w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="656" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Add the nodes you set up initially so in this example we have two. Click on <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Next</strong>.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/10-Enable-Always-On.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="10-enable-always-on" class="alignnone size-full wp-image-3091" height="444" loading="lazy" sizes="(max-width: 665px) 100vw, 665px" src="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/10-Enable-Always-On.png?resize=665%2C450" srcset="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/10-Enable-Always-On.png?w=684 684w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/10-Enable-Always-On.png?resize=300%2C203 300w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/10-Enable-Always-On.png?resize=660%2C447 660w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="656" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">It will start doing validation, if there are errors it will not continue but if there are warnings it will continue so its best to note this warnings and fix it as deemed possible.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/11-Enable-Always-On.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="11-enable-always-on" class="alignnone size-full wp-image-3092" height="451" loading="lazy" sizes="(max-width: 665px) 100vw, 665px" src="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/11-Enable-Always-On.png?resize=665%2C457" srcset="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/11-Enable-Always-On.png?w=685 685w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/11-Enable-Always-On.png?resize=300%2C206 300w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/11-Enable-Always-On.png?resize=660%2C454 660w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="656" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Add a <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Cluster Name</strong> and give it a cluster IP address.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/12-Enable-Always-On.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="12-enable-always-on" class="alignnone size-full wp-image-3093" height="443" loading="lazy" sizes="(max-width: 665px) 100vw, 665px" src="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/12-Enable-Always-On.png?resize=665%2C449" srcset="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/12-Enable-Always-On.png?w=684 684w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/12-Enable-Always-On.png?resize=300%2C203 300w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/12-Enable-Always-On.png?resize=660%2C446 660w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="656" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Choose the <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Add all eligible storage to the cluster</strong> and then click <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Next</strong>.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/13-Enable-Always-On.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="13-enable-always-on" class="alignnone size-full wp-image-3094" height="444" loading="lazy" sizes="(max-width: 665px) 100vw, 665px" src="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/13-Enable-Always-On.png?resize=665%2C450" srcset="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/13-Enable-Always-On.png?w=684 684w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/13-Enable-Always-On.png?resize=300%2C203 300w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/13-Enable-Always-On.png?resize=660%2C447 660w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="656" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">It will now start to create your cluster.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/14-Enable-Always-On.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="14-enable-always-on" class="alignnone size-full wp-image-3095" height="444" loading="lazy" sizes="(max-width: 665px) 100vw, 665px" src="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/14-Enable-Always-On.png?resize=665%2C450" srcset="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/14-Enable-Always-On.png?w=683 683w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/14-Enable-Always-On.png?resize=300%2C203 300w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/14-Enable-Always-On.png?resize=660%2C446 660w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="656" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Now you had created the clusters and it will appear on the <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Clusters</strong> section of the <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Failover Cluster Manager</strong>.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/15-Enable-Always-On.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="15-enable-always-on" class="alignnone size-large wp-image-3096" height="403" loading="lazy" sizes="(max-width: 665px) 100vw, 665px" src="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/15-Enable-Always-On.png?resize=665%2C408" srcset="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/15-Enable-Always-On.png?resize=1024%2C629 1024w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/15-Enable-Always-On.png?resize=300%2C184 300w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/15-Enable-Always-On.png?resize=768%2C472 768w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/15-Enable-Always-On.png?resize=660%2C406 660w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/15-Enable-Always-On.png?w=1061 1061w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="656" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Now you have your cluster you are ready to set up your SQL Server.</p><h1 style="background-color: white; border: 0px; clear: both; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 21px; line-height: 1.5; margin: 24px 0px; padding: 0px; vertical-align: baseline;"><span style="border: 0px; color: #3366ff; margin: 0px; padding: 0px; vertical-align: baseline;">4. Set Up the SQL Server</span></h1><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">I think this is the easiest part of the setup process, so lets start.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Mount your SQL Enterprise ISO then when the <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">SQL Server Installation Center</strong> runs choose the <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Installation</strong> on the right pane. On the content pane choose <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">New SQL Server stand-alone installation or add features to an existing installation</strong></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/00-Set-Up-SQL-Server.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="00-set-up-sql-server" class="alignnone size-full wp-image-3097" height="492" loading="lazy" sizes="(max-width: 665px) 100vw, 665px" src="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/00-Set-Up-SQL-Server.png?resize=665%2C499" srcset="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/00-Set-Up-SQL-Server.png?w=799 799w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/00-Set-Up-SQL-Server.png?resize=300%2C225 300w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/00-Set-Up-SQL-Server.png?resize=768%2C576 768w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/00-Set-Up-SQL-Server.png?resize=660%2C495 660w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="656" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Move next until you hit the <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Feature Selection</strong>, choose <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Database Engine Services</strong> as a minimum then click <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Next</strong>.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/01-Set-Up-SQL-Server.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="01-set-up-sql-server" class="alignnone size-full wp-image-3098" height="537" loading="lazy" sizes="(max-width: 665px) 100vw, 665px" src="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/01-Set-Up-SQL-Server.png?resize=665%2C545" srcset="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/01-Set-Up-SQL-Server.png?w=1002 1002w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/01-Set-Up-SQL-Server.png?resize=300%2C246 300w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/01-Set-Up-SQL-Server.png?resize=768%2C629 768w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/01-Set-Up-SQL-Server.png?resize=660%2C541 660w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="656" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Move next until you hit the <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Instance Configuration</strong>, choose default instance and click <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Next</strong>.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/02-Set-Up-SQL-Server.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="02-set-up-sql-server" class="alignnone size-full wp-image-3099" height="537" loading="lazy" sizes="(max-width: 665px) 100vw, 665px" src="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/02-Set-Up-SQL-Server.png?resize=665%2C544" srcset="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/02-Set-Up-SQL-Server.png?w=1002 1002w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/02-Set-Up-SQL-Server.png?resize=300%2C246 300w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/02-Set-Up-SQL-Server.png?resize=768%2C629 768w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/02-Set-Up-SQL-Server.png?resize=660%2C540 660w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="656" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">On <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Server Configuration</strong> Section assign the correct credentials to run your SQL Services. Click <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Next</strong>.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/03-Set-Up-SQL-Server.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="03-set-up-sql-server" class="alignnone size-full wp-image-3100" height="537" loading="lazy" sizes="(max-width: 665px) 100vw, 665px" src="https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/03-Set-Up-SQL-Server.png?resize=665%2C544" srcset="https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/03-Set-Up-SQL-Server.png?w=1002 1002w, https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/03-Set-Up-SQL-Server.png?resize=300%2C246 300w, https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/03-Set-Up-SQL-Server.png?resize=768%2C629 768w, https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/03-Set-Up-SQL-Server.png?resize=660%2C540 660w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="656" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">On the <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Database Engine Configuration</strong> section <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">add the current user</strong> as the SQL Server Administrator. Click <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Next</strong>.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/04-Set-Up-SQL-Server.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="04-set-up-sql-server" class="alignnone size-full wp-image-3101" height="536" loading="lazy" sizes="(max-width: 665px) 100vw, 665px" src="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/04-Set-Up-SQL-Server.png?resize=665%2C544" srcset="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/04-Set-Up-SQL-Server.png?w=1001 1001w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/04-Set-Up-SQL-Server.png?resize=300%2C245 300w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/04-Set-Up-SQL-Server.png?resize=768%2C628 768w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/04-Set-Up-SQL-Server.png?resize=660%2C540 660w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="656" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Specify the default paths you want to use for the Data Directories, for more guidance you can follow this <a href="https://msdn.microsoft.com/en-us/library/bb402876.aspx" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;" target="_blank">best practices on how to separate your SQL Data</a>.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/05-Set-Up-SQL-Server.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="05-set-up-sql-server" class="alignnone size-full wp-image-3102" height="537" loading="lazy" sizes="(max-width: 665px) 100vw, 665px" src="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/05-Set-Up-SQL-Server.png?resize=665%2C544" srcset="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/05-Set-Up-SQL-Server.png?w=1002 1002w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/05-Set-Up-SQL-Server.png?resize=300%2C246 300w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/05-Set-Up-SQL-Server.png?resize=768%2C629 768w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/05-Set-Up-SQL-Server.png?resize=660%2C540 660w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="656" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Click <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Next</strong> and finish your installation.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/06-Set-Up-SQL-Server-Complete.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="06-set-up-sql-server-complete" class="alignnone size-full wp-image-3103" height="537" loading="lazy" sizes="(max-width: 665px) 100vw, 665px" src="https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/06-Set-Up-SQL-Server-Complete.png?resize=665%2C545" srcset="https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/06-Set-Up-SQL-Server-Complete.png?w=1002 1002w, https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/06-Set-Up-SQL-Server-Complete.png?resize=300%2C246 300w, https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/06-Set-Up-SQL-Server-Complete.png?resize=768%2C629 768w, https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/06-Set-Up-SQL-Server-Complete.png?resize=660%2C541 660w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="656" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Now do the exact same setup on the other node.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Once its completed you have set up all the necessary pre-requisites to run SQL Servers Always On Availability Groups. But before continuing you will <em style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">need to add databases on one of the nodes</strong></em>, these are the databases you will set up below for the Availability Groups.</p><h1 style="background-color: white; border: 0px; clear: both; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 21px; line-height: 1.5; margin: 24px 0px; padding: 0px; vertical-align: baseline;"><span style="border: 0px; color: #3366ff; margin: 0px; padding: 0px; vertical-align: baseline;">5. Configuring SQL Servers Always On Availability Groups</span></h1><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Now lets finish this and set up the core reason why you are here. Few more steps and you are done.<br />Open <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">SQL Server Configuration Manager</strong>, choose the SQL Server instance, right click then choose <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Properties</strong>.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/01-Enable-Always-On.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="01-enable-always-on" class="alignnone size-full wp-image-3105" height="302" loading="lazy" sizes="(max-width: 665px) 100vw, 665px" src="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/01-Enable-Always-On.png?resize=665%2C307" srcset="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/01-Enable-Always-On.png?w=833 833w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/01-Enable-Always-On.png?resize=300%2C138 300w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/01-Enable-Always-On.png?resize=768%2C354 768w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/01-Enable-Always-On.png?resize=660%2C304 660w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="656" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Go to the <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">AlwaysOn High Availability</strong> tab and tick <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Enable AlwaysOn Availability Groups</strong>, do this as well on the other node.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/02-Enable-Always-On.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="02-enable-always-on" class="alignnone size-large wp-image-3106" height="502" loading="lazy" sizes="(max-width: 430px) 100vw, 430px" src="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/02-Enable-Always-On.png?resize=430%2C502" srcset="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/02-Enable-Always-On.png?w=430 430w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/02-Enable-Always-On.png?resize=257%2C300 257w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="430" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">It will warn you to restart the service for it to activate. <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Click OK</strong>.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/03-Enable-Always-On.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="03-enable-always-on" class="alignnone size-large wp-image-3107" height="173" loading="lazy" sizes="(max-width: 498px) 100vw, 498px" src="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/03-Enable-Always-On.png?resize=498%2C173" srcset="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/03-Enable-Always-On.png?w=498 498w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/03-Enable-Always-On.png?resize=300%2C104 300w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="498" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Restart the service on both nodes by choosing the SQL Server Instance and clicking on the restart button.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/04-Enable-Always-On.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="04-enable-always-on" class="alignnone size-large wp-image-3108" height="260" loading="lazy" sizes="(max-width: 627px) 100vw, 627px" src="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/04-Enable-Always-On.png?resize=627%2C260" srcset="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/04-Enable-Always-On.png?w=627 627w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/04-Enable-Always-On.png?resize=300%2C124 300w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="627" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Now run SQL Server Management Studio and connect to one of the nodes. Go to the <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">AlwaysOn High Availability</strong> folder, right-click and choose <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">New Availability Group Wizard</strong></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/05-Enable-Always-On.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="05-enable-always-on" class="alignnone size-large wp-image-3109" height="346" loading="lazy" sizes="(max-width: 462px) 100vw, 462px" src="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/05-Enable-Always-On.png?resize=462%2C346" srcset="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/05-Enable-Always-On.png?w=462 462w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/05-Enable-Always-On.png?resize=300%2C225 300w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="462" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Click <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Next</strong>, you might want to choose <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Do not show this page again</strong>.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/06-Enable-Always-On.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="06-enable-always-on" class="alignnone size-large wp-image-3110" height="616" loading="lazy" sizes="(max-width: 665px) 100vw, 665px" src="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/06-Enable-Always-On.png?resize=665%2C624" srcset="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/06-Enable-Always-On.png?w=715 715w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/06-Enable-Always-On.png?resize=300%2C282 300w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/06-Enable-Always-On.png?resize=660%2C619 660w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="656" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Indicate and <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Availability group name</strong>. Click <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Next</strong>.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/07-Enable-Always-On-1.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="07-enable-always-on" class="alignnone size-large wp-image-3111" height="616" loading="lazy" sizes="(max-width: 665px) 100vw, 665px" src="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/07-Enable-Always-On-1.png?resize=665%2C624" srcset="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/07-Enable-Always-On-1.png?w=715 715w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/07-Enable-Always-On-1.png?resize=300%2C282 300w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/07-Enable-Always-On-1.png?resize=660%2C619 660w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="656" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Choose the databases you want to be on the Availability Groups. Click <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Next</strong>.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/08-Enable-Always-On-1.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="08-enable-always-on" class="alignnone size-large wp-image-3112" height="616" loading="lazy" sizes="(max-width: 665px) 100vw, 665px" src="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/08-Enable-Always-On-1.png?resize=665%2C624" srcset="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/08-Enable-Always-On-1.png?w=715 715w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/08-Enable-Always-On-1.png?resize=300%2C282 300w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/08-Enable-Always-On-1.png?resize=660%2C619 660w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="656" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Now you need to specify the replicas, this is the second node of your SQL Cluster. Click on <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Add Replica</strong>.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/09-Enable-Always-On-1.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="09-enable-always-on" class="alignnone size-large wp-image-3113" height="616" loading="lazy" sizes="(max-width: 665px) 100vw, 665px" src="https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/09-Enable-Always-On-1.png?resize=665%2C624" srcset="https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/09-Enable-Always-On-1.png?w=715 715w, https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/09-Enable-Always-On-1.png?resize=300%2C282 300w, https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/09-Enable-Always-On-1.png?resize=660%2C619 660w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="656" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Add the secondary server you created, tick all the <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Automatic Failover</strong> and <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Synchronous Commit</strong> check boxes. You will also want to indicate <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Yes</strong> on the <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Readable Secondary</strong> drop down.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/10-Enable-Always-On-1.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="10-enable-always-on" class="alignnone size-large wp-image-3114" height="556" loading="lazy" sizes="(max-width: 665px) 100vw, 665px" src="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/10-Enable-Always-On-1.png?resize=665%2C563" srcset="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/10-Enable-Always-On-1.png?w=792 792w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/10-Enable-Always-On-1.png?resize=300%2C254 300w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/10-Enable-Always-On-1.png?resize=768%2C651 768w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/10-Enable-Always-On-1.png?resize=660%2C559 660w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="656" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Go to the Listener tab, indicate a <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Listener DNS Name</strong>, <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Port</strong> and set <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Network Mode </strong>to <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Static IP</strong>. Scroll down to add your IP Addresses.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/11-Enable-Always-On-1.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="11-enable-always-on" class="alignnone size-large wp-image-3115" height="593" loading="lazy" sizes="(max-width: 665px) 100vw, 665px" src="https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/11-Enable-Always-On-1.png?resize=665%2C601" srcset="https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/11-Enable-Always-On-1.png?w=837 837w, https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/11-Enable-Always-On-1.png?resize=300%2C271 300w, https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/11-Enable-Always-On-1.png?resize=768%2C694 768w, https://i0.wp.com/www.macaalay.com/wp-content/uploads/2016/11/11-Enable-Always-On-1.png?resize=660%2C596 660w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="656" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Click <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Add</strong>.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/12-Enable-Always-On-1.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="12-enable-always-on" class="alignnone size-large wp-image-3116" height="593" loading="lazy" sizes="(max-width: 665px) 100vw, 665px" src="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/12-Enable-Always-On-1.png?resize=665%2C601" srcset="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/12-Enable-Always-On-1.png?w=837 837w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/12-Enable-Always-On-1.png?resize=300%2C271 300w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/12-Enable-Always-On-1.png?resize=768%2C694 768w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/12-Enable-Always-On-1.png?resize=660%2C596 660w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="656" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Choose a <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Subnet</strong> and add the <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">IPv4 Address</strong>, click <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">OK</strong>.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/13-Enable-Always-On-1.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="13-enable-always-on" class="alignnone size-large wp-image-3117" height="357" loading="lazy" sizes="(max-width: 558px) 100vw, 558px" src="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/13-Enable-Always-On-1.png?resize=558%2C357" srcset="https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/13-Enable-Always-On-1.png?w=558 558w, https://i2.wp.com/www.macaalay.com/wp-content/uploads/2016/11/13-Enable-Always-On-1.png?resize=300%2C192 300w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="558" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Now you listener will have an IP Address. Click <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Next</strong>.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/14-Enable-Always-On-1.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="14-enable-always-on" class="alignnone size-large wp-image-3118" height="593" loading="lazy" sizes="(max-width: 665px) 100vw, 665px" src="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/14-Enable-Always-On-1.png?resize=665%2C601" srcset="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/14-Enable-Always-On-1.png?w=837 837w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/14-Enable-Always-On-1.png?resize=300%2C271 300w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/14-Enable-Always-On-1.png?resize=768%2C694 768w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/14-Enable-Always-On-1.png?resize=660%2C596 660w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="656" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Select your synchronization preference. We choose <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Full</strong>, you will also need to indicate a shared folder location that is accessible by both databases, this is the place where the databases are backed up and restored from when setting up the Availability Groups. Click <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Next</strong>.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/15-Enable-Always-On-1.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="15-enable-always-on" class="alignnone size-large wp-image-3119" height="593" loading="lazy" sizes="(max-width: 665px) 100vw, 665px" src="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/15-Enable-Always-On-1.png?resize=665%2C601" srcset="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/15-Enable-Always-On-1.png?w=837 837w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/15-Enable-Always-On-1.png?resize=300%2C271 300w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/15-Enable-Always-On-1.png?resize=768%2C694 768w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/15-Enable-Always-On-1.png?resize=660%2C596 660w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="656" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">It will perform the validation and when its all successful click <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Next</strong>.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/16-Enable-Always-On.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="16-enable-always-on" class="alignnone size-large wp-image-3120" height="593" loading="lazy" sizes="(max-width: 665px) 100vw, 665px" src="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/16-Enable-Always-On.png?resize=665%2C601" srcset="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/16-Enable-Always-On.png?w=837 837w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/16-Enable-Always-On.png?resize=300%2C271 300w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/16-Enable-Always-On.png?resize=768%2C694 768w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/16-Enable-Always-On.png?resize=660%2C596 660w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="656" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">It will then start to configure, wait until this completes.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/17-Enable-Always-On.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="17-enable-always-on" class="alignnone size-large wp-image-3121" height="593" loading="lazy" sizes="(max-width: 665px) 100vw, 665px" src="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/17-Enable-Always-On.png?resize=665%2C601" srcset="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/17-Enable-Always-On.png?w=837 837w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/17-Enable-Always-On.png?resize=300%2C271 300w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/17-Enable-Always-On.png?resize=768%2C694 768w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/17-Enable-Always-On.png?resize=660%2C596 660w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="656" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Once its finished the selected databases are now set up for AlwaysOn. To verify check it on the<strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> AlwaysOn High Availability</strong> folder of any of the servers and you will see your Replicas, Availability Databases and Availability Group Listeners.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;"><a href="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/18-Enable-Always-On.png" style="border: 0px; color: #0b91ea; margin: 0px; outline: none; padding: 0px; text-decoration-line: none; vertical-align: baseline;"><img alt="18-enable-always-on" class="alignnone size-large wp-image-3122" height="197" loading="lazy" sizes="(max-width: 396px) 100vw, 396px" src="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/18-Enable-Always-On.png?resize=396%2C197" srcset="https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/18-Enable-Always-On.png?w=396 396w, https://i1.wp.com/www.macaalay.com/wp-content/uploads/2016/11/18-Enable-Always-On.png?resize=300%2C149 300w" style="border: 0px; height: auto; margin: 0px 0px 10px; max-width: 100%; padding: 0px; vertical-align: baseline;" width="396" /></a></p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">That’s it you have configured SQL Server 2016 AlwaysOn Availability Group, you might not get it on the first run like I did due to the Warnings and Errors but the messages are quite intuitive so just follow the instructions and it will be straightforward.</p><p style="background-color: white; border: 0px; color: #444444; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; margin: 20px 0px; padding: 0px; vertical-align: baseline;">Congratulations and have fun using your SQL Server 2016 AlwaysOn.</p>Ravi Kumar Rapoluhttp://www.blogger.com/profile/05910385532516729523noreply@blogger.com0tag:blogger.com,1999:blog-8686838250388647615.post-11919399145701109252021-03-08T12:45:00.001-05:002021-03-08T12:45:13.526-05:00Office files in SharePoint fail to open from an Office 2016 client<p> https://docs.microsoft.com/en-us/office/troubleshoot/office-for-mac/files-fail-to-open</p><p><br /></p><p><br /></p><h2 class="heading-anchor" id="cause" style="background-color: white; box-sizing: inherit; color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 2rem; line-height: 1.3; margin: 32px 0px 12px -1.875rem; outline-color: inherit; padding: 0px 0px 0px 1.875rem; position: relative;">Cause</h2><p style="background-color: white; box-sizing: inherit; color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px; margin: 1rem 0px 0px; outline-color: inherit; overflow-wrap: break-word; padding: 0px;"><span style="box-sizing: inherit; font-weight: 600; outline-color: inherit;">Network List Service</span> is stopped and disabled on the client computer.</p><h2 class="heading-anchor" id="resolution" style="background-color: white; box-sizing: inherit; color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 2rem; line-height: 1.3; margin: 32px 0px 12px -1.875rem; outline-color: inherit; padding: 0px 0px 0px 1.875rem; position: relative;"><a aria-labelledby="resolution" class="anchor-link docon docon-link" href="https://docs.microsoft.com/en-us/office/troubleshoot/office-for-mac/files-fail-to-open#resolution" style="-webkit-font-smoothing: antialiased; background-color: transparent; border: 0px; box-sizing: inherit; clip-path: inset(50%); clip: rect(1px, 1px, 1px, 1px); cursor: pointer; direction: ltr; display: inline-block; font-family: docons; font-size: 1rem; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; height: 1px; left: 0px; line-height: 16px; margin: -1px; opacity: 0; outline-color: inherit; outline-style: initial; outline-width: 0px; overflow-wrap: normal; overflow: hidden; padding: 0px; position: absolute; speak: none; text-align: center; text-decoration-line: none; top: 1.3rem; transform: translateY(-50%) scale(1); transition: opacity 0.1s linear 0s; width: 1px;"></a>Resolution</h2><p style="background-color: white; box-sizing: inherit; color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px; margin: 1rem 0px 0px; outline-color: inherit; overflow-wrap: break-word; padding: 0px;">Enable and start <span style="box-sizing: inherit; font-weight: 600; outline-color: inherit;">Network List Service</span> on the client computer. To do this, follow these steps: </p><ol style="background-color: white; box-sizing: inherit; color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px; margin: 16px 0px 16px 38px; outline-color: inherit; padding: 0px;"><li style="box-sizing: inherit; list-style: outside none decimal; margin: 0px; outline-color: inherit; outline-style: initial; outline-width: 0px; padding: 0px;">Click Start, type "<span style="box-sizing: inherit; font-weight: 600; outline-color: inherit;">services.msc</span>" (without quotation marks) in the Start Search box and press Enter.</li><li style="box-sizing: inherit; list-style: outside none decimal; margin: 0px; outline-color: inherit; outline-style: initial; outline-width: 0px; padding: 0px;">Double-click <span style="box-sizing: inherit; font-weight: 600; outline-color: inherit;">Network List Service</span>.</li><li style="box-sizing: inherit; list-style: outside none decimal; margin: 0px; outline-color: inherit; outline-style: initial; outline-width: 0px; padding: 0px;">Right-click the service, and then click <span style="box-sizing: inherit; font-weight: 600; outline-color: inherit;">Start</span>.</li></ol>Ravi Kumar Rapoluhttp://www.blogger.com/profile/05910385532516729523noreply@blogger.com0tag:blogger.com,1999:blog-8686838250388647615.post-20574227978813140832021-01-29T13:57:00.009-05:002021-01-29T14:31:55.733-05:00PsConfig step by step /Configuration Wizard. “Upgrade Available” vs “Upgrade required”<p><span style="background-color: white; font-family: tahoma, "Trebuchet MS", lucida, helvetica, sans-serif; font-size: small;">The "Upgrade available" simply means that there is a newer patch available at the SharePoint Updates page than the one installed on your SharePoint farm. We checked the Farm version and made sure its the latest available version.</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; font-family: tahoma, "Trebuchet MS", lucida, helvetica, sans-serif; font-size: small; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><br /><br /></span></p><p><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; font-family: tahoma, "Trebuchet MS", lucida, helvetica, sans-serif; font-size: small; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><br /></span></p><p><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; font-family: tahoma, "Trebuchet MS", lucida, helvetica, sans-serif; font-size: small; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span style="background-color: white;">Getting "Upgrade Required" error message in SharePoint 2013? Well, Ideally, We have to run the SharePoint Products Configuration Wizard on the server(s) right after installing the service pack/patches.</span><br /><br /><span style="background-color: white;">In Windows Server 2012, SharePoint updates are part of Windows Server Update. It installs patches but never runs Products configuration wizard automatically! You still have to run psconfig wizard to complete patching!</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><br /><br /><br /></span></span></p><p>----------------------------------------------------</p><p> https://www.sharepointdiary.com/2014/02/upgrade-available-server-status-after-sharepoint-patching.html</p><p>https://www.sharepointdiary.com/2015/03/upgrade-required-status-in-sharepoint-central-admininstration.html</p><p><br /></p><p>https://blog.stefan-gossner.com/2015/08/20/why-i-prefer-psconfigui-exe-over-psconfig-exe/</p><p><br /></p><p>https://blog.stefan-gossner.com/2015/09/09/why-we-recommend-require-to-run-the-configuration-wizard-also-for-security-fixes/</p><p><br /></p><p>---------------------------</p><p><b><u>Run PSConfig step by step:</u></b></p><p></p><p class="MsoNormal"><span class="skimlinks-unlinked"><b><span style="background: white; color: #222222; mso-bidi-font-style: italic;">Run the below command on all the
server (except Database server)<o:p></o:p></span></b></span></p>
<p class="MsoNormal"><span class="skimlinks-unlinked"><b><i><span style="background: white; color: #222222;">PSConfig.exe</span></i></b></span><em><b><span style="background: white; color: #222222; font-family: "Calibri",sans-serif; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: "Times New Roman"; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-latin;"> -cmd
upgrade -inplace b2b -force -cmd applicationcontent -install -cmd
installfeatures<o:p></o:p></span></b></em></p><br /><p></p><p><br /></p><p class="MsoNormal"><b><span style="color: red;">If Failed at 5 of 6 stage do the below steps:<o:p></o:p></span></b></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoListParagraphCxSpFirst" style="mso-list: l0 level1 lfo1; text-indent: -.25in;"><!--[if !supportLists]-->1)<span style="font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;"> 1) </span><!--[endif]-->try clearing the cache.ini<o:p></o:p></p><p class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo1; text-indent: -.25in;"><!--[if !supportLists]-->2) 2)<span style="font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;">
</span><!--[endif]-->you can find it in location
C:\ProgramData\Microsoft\SharePoint\Config\GUId<o:p></o:p></p><p class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo1; text-indent: -.25in;"><!--[if !supportLists]-->3)<span style="font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;"> 3) </span><!--[endif]-->go inside the GUID and look for cache.ini<o:p></o:p></p><p class="MsoListParagraphCxSpLast" style="mso-list: l0 level1 lfo1; text-indent: -.25in;"><!--[if !supportLists]-->4)<span style="font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;"> 4) </span><!--[endif]-->reset the value to 1<o:p></o:p></p><p class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .25in; margin-right: 0in; margin-top: 0in; mso-outline-level: 1; vertical-align: baseline;"><b><span style="color: #333333; font-family: "Arial",sans-serif; font-size: 12.0pt; letter-spacing: .55pt; mso-fareast-font-family: "Times New Roman"; mso-font-kerning: 18.0pt;">Steps for Clear
configuration cache in SharePoint farm 2010 , 2013<o:p></o:p></span></b></p><p class="MsoListParagraph"><o:p> </o:p></p><p style="background: white; margin-bottom: 12.0pt; margin-left: .5in; margin-right: 0in; margin-top: 12.0pt; mso-list: l0 level1 lfo1; text-indent: -.25in; vertical-align: baseline;"><!--[if !supportLists]--><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt; mso-fareast-font-family: Arial;">5)<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt;">There are many occasions where you need to
clear configuration cache in SharePoint farm.<o:p></o:p></span></p><p style="background: white; margin-bottom: 12.0pt; margin-left: .5in; margin-right: 0in; margin-top: 12.0pt; mso-list: l0 level1 lfo1; text-indent: -.25in; vertical-align: baseline;"><!--[if !supportLists]--><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt; mso-fareast-font-family: Arial;">6)<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt;">Here the steps you need to perform on all
the servers in farm<o:p></o:p></span></p><p style="background: white; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; text-indent: -.25in; vertical-align: baseline;"><!--[if !supportLists]--><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt; mso-fareast-font-family: Arial;">7)<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt;">1. </span><strong><span style="border: none windowtext 1.0pt; color: #555555; font-family: "inherit",serif; font-size: 10.5pt; letter-spacing: .55pt; mso-bidi-font-family: Arial; mso-border-alt: none windowtext 0in; padding: 0in;">Stop</span></strong><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt;"> the </span><strong><span style="border: none windowtext 1.0pt; color: #555555; font-family: "inherit",serif; font-size: 10.5pt; letter-spacing: .55pt; mso-bidi-font-family: Arial; mso-border-alt: none windowtext 0in; padding: 0in;">SharePoint Timer service</span></strong><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt;"> in all the servers.Start with the server running
Central Administration website.<br />
Start -> Services.msc -> SharePoint Timer Service</span></p><p style="background: white; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; text-indent: -.25in; vertical-align: baseline;"><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt;"></span></p><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://lh3.googleusercontent.com/-yYpGP6476nU/YBRiKNIKNsI/AAAAAAAAFMg/z69XPwYpe60bOGoYh-vUnr4Ch82_0Z9BwCLcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="62" data-original-width="729" height="27" src="https://lh3.googleusercontent.com/-yYpGP6476nU/YBRiKNIKNsI/AAAAAAAAFMg/z69XPwYpe60bOGoYh-vUnr4Ch82_0Z9BwCLcBGAsYHQ/image.png" width="320" /></a></div><br /><br /></div><br /><br /><p></p><p style="background: white; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; text-indent: -.25in; vertical-align: baseline;"><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt;"><br /></span></p><p style="background: white; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; text-indent: -.25in; vertical-align: baseline;"><!--[if !supportLists]--><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt; mso-fareast-font-family: Arial;">8)<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt;">2. Browse </span><strong><span style="border: none windowtext 1.0pt; color: #555555; font-family: "inherit",serif; font-size: 10.5pt; letter-spacing: .55pt; mso-bidi-font-family: Arial; mso-border-alt: none windowtext 0in; padding: 0in;">%SystemDrive%\ProgramData\Microsoft\SharePoint\Config\GUID</span></strong><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt;"> (Works for windows server 2012 & 2008). Select
the GUID folder with recently modified GUID folder.<o:p></o:p></span></p><p style="background: white; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; text-indent: -.25in; vertical-align: baseline;"><!--[if !supportLists]--><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt; mso-fareast-font-family: Arial;">9)<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><strong><i><span style="border: none windowtext 1.0pt; color: #555555; font-family: "inherit",serif; font-size: 10.5pt; letter-spacing: .55pt; mso-bidi-font-family: Arial; mso-border-alt: none windowtext 0in; padding: 0in;">Note</span></i></strong><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt;">: ProgramData folder is
a hidden folder. Make sure that you enable to view hidden files.<o:p></o:p></span></p><p style="background: white; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; text-indent: -.25in; vertical-align: baseline;"><!--[if !supportLists]--><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt; mso-fareast-font-family: Arial;">10)<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt;">3. Select all the </span><strong><span style="border: none windowtext 1.0pt; color: #555555; font-family: "inherit",serif; font-size: 10.5pt; letter-spacing: .55pt; mso-bidi-font-family: Arial; mso-border-alt: none windowtext 0in; padding: 0in;">XML</span></strong><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt;"> files </span><strong><span style="border: none windowtext 1.0pt; color: #555555; font-family: "inherit",serif; font-size: 10.5pt; letter-spacing: .55pt; mso-bidi-font-family: Arial; mso-border-alt: none windowtext 0in; padding: 0in;">ONLY</span></strong><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt;"> and </span><strong><span style="border: none windowtext 1.0pt; color: #555555; font-family: "inherit",serif; font-size: 10.5pt; letter-spacing: .55pt; mso-bidi-font-family: Arial; mso-border-alt: none windowtext 0in; padding: 0in;">delete</span></strong><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt;">.<o:p></o:p></span></p><p style="background: white; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; text-indent: -.25in; vertical-align: baseline;"><!--[if !supportLists]--><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt; mso-fareast-font-family: Arial;">11)<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt;">4. </span><strong><span style="border: none windowtext 1.0pt; color: red; font-family: "inherit",serif; font-size: 10.5pt; letter-spacing: .55pt; mso-bidi-font-family: Arial; mso-border-alt: none windowtext 0in; padding: 0in;">DO NOT DELETE cache.ini</span></strong><strong><span style="border: none windowtext 1.0pt; color: #555555; font-family: "inherit",serif; font-size: 10.5pt; letter-spacing: .55pt; mso-bidi-font-family: Arial; mso-border-alt: none windowtext 0in; padding: 0in;"> </span></strong><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt;">file.
This is really important and if you delete this file, it can screw up things in
server. Be careful not to delete the cache.ini file<o:p></o:p></span></p><p style="background: white; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; text-indent: -.25in; vertical-align: baseline;"><!--[if !supportLists]--><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt; mso-fareast-font-family: Arial;">12)<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt;">5. Open and </span><strong><span style="border: none windowtext 1.0pt; color: #555555; font-family: "inherit",serif; font-size: 10.5pt; letter-spacing: .55pt; mso-bidi-font-family: Arial; mso-border-alt: none windowtext 0in; padding: 0in;">edit the cache.ini file and set it to 1</span></strong><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt;">. It will have some random number like 39585, make it 1.<o:p></o:p></span></p><p style="background: white; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; text-indent: -.25in; vertical-align: baseline;"><!--[if !supportLists]--><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt; mso-fareast-font-family: Arial;">13)<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt;">6. Start the </span><strong><span style="border: none windowtext 1.0pt; color: #555555; font-family: "inherit",serif; font-size: 10.5pt; letter-spacing: .55pt; mso-bidi-font-family: Arial; mso-border-alt: none windowtext 0in; padding: 0in;">SharePoint Timer Service</span></strong><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt;">.<o:p></o:p></span></p><p style="background: white; margin-bottom: 12.0pt; margin-left: .5in; margin-right: 0in; margin-top: 12.0pt; mso-list: l0 level1 lfo1; text-indent: -.25in; vertical-align: baseline;"><!--[if !supportLists]--><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt; mso-fareast-font-family: Arial;">14)<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;"> </span></span><!--[endif]--><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt;">7. Verify that XML files start repopulating the folder.
It may take couple of seconds or even minutes.<o:p></o:p></span></p><p style="background: white; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; text-indent: -.25in; vertical-align: baseline;"><!--[if !supportLists]-->15)<span style="font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;"> </span><!--[endif]--><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt;">8. Once XML files starts appearing back, </span><strong><span style="border: none windowtext 1.0pt; color: #555555; font-family: "inherit",serif; font-size: 10.5pt; letter-spacing: .55pt; mso-bidi-font-family: Arial; mso-border-alt: none windowtext 0in; padding: 0in;">repeat</span></strong><span style="color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt;"> </span><o:p></o:p></p><p class="MsoNormal"><span style="background: white; color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt; line-height: 107%;">After
running the </span><em><b><span style="background: white; border: none windowtext 1.0pt; color: #555555; font-family: "inherit",serif; font-size: 10.5pt; letter-spacing: .55pt; line-height: 107%; mso-bidi-font-family: Arial; mso-border-alt: none windowtext 0in; padding: 0in;">PSConfig.exe -cmd upgrade -inplace b2b -force
-cmd applicationcontent -install -cmd installfeatures</span></b></em><span style="background: white; color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt; line-height: 107%;">command, error occurred in
5th step while performing – Upgrading SharePoint Products<o:p></o:p></span></p><p class="MsoNormal"><span style="background: white; color: #555555; font-family: "Arial",sans-serif; font-size: 10.5pt; letter-spacing: .55pt; line-height: 107%;">See the
below Articles <o:p></o:p></span></p><p class="MsoNormal"><span class="MsoHyperlink"><a href="http://sharepointviews.com/the-upgrade-command-is-invalid-or-a-failure-has-been-encountered-psconfig-error/">http://sharepointviews.com/the-upgrade-command-is-invalid-or-a-failure-has-been-encountered-psconfig-error/</a></span><o:p></o:p></p><p class="MsoNormal"><span class="MsoHyperlink"><a href="http://sharepointviews.com/clear-configuration-cache-in-sharepoint-farm-2010-2013/">http://sharepointviews.com/clear-configuration-cache-in-sharepoint-farm-2010-2013/</a></span><o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p>
<span style="font-family: "Calibri",sans-serif; font-size: 11.0pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: "Times New Roman"; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;">2) Once completed, open Central Admin in App
server and check whether it is working fine.</span></p>Ravi Kumar Rapoluhttp://www.blogger.com/profile/05910385532516729523noreply@blogger.com0tag:blogger.com,1999:blog-8686838250388647615.post-91648254080833711042020-11-23T15:31:00.004-05:002020-11-25T13:20:18.146-05:00Configure People Picker for Multi-Domains(or Cross Domains), Forests Environments<p>If you have SharePoint environment in new domain(example: Main) and also have old sharepoint in other domain(example: Constco) and want to bring Old sharepoint users into new SharePoint then follow the below steps</p><p>Open Two way/ One way Trust between Two Domain controllers (i.e. Old and New)</p><p>1) Open the proper ports between SharePoint 2019 servers (except Database servers) and Old Domain Controler (Constco)</p><p>2) exectue the below command in all servers in New sharepoint environment</p><p> stsadm -o setapppassword -password <span style="color: red;">Test$123 </span> </p><p> replace Test$123 to your own passowrd </p><p>3) exectue the below command in web servers only in New sharepoint environment</p><p> stsadm -o setproperty -pn peoplepicker-searchadforests -pn peoplepicker-searchadforests -pv "forest:<span style="color: red;">Main.Corp</span>;forest:<span style="color: red;">constco.corp</span>,<span style="color: red;">constcoDomain</span>\<span style="color: red;">loginname</span>,'<span style="color: red;">password'</span>" -url "<span style="color: red;">SharePoint web URL</span>"</p><p>Note: Replace Main to your new domain </p><p> constcoDomain to old domain</p><p> loginname to old domain login name </p><p> password to Old domain password </p><p>4) excecute all web servers</p><p> stsadm -o setproperty -pn peoplepicker-searchadforests -pv "domain:<span style="color: red;">Newdomain.CORP</span>; domain:<span style="background-color: white;"><span style="color: red;">OldDomain.CORP</span></span>" -url "<span style="background-color: white; color: red;">web url</span>"</p><p>5) Reset IIS</p><p><br /></p><p><span style="color: red;">Note: Replace Red color text to your labels </span></p><p><br /></p><p>Proper ports list:</p><ul style="background-color: white; color: #0a0a0a; font-family: Georgia, Utopia, "Palatino Linotype", Palatino, serif; font-size: 13.2px; line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;"><li style="margin: 0px 0px 0.25em; padding: 0px;">TCP/UDP 135 (RPC)</li><li style="margin: 0px 0px 0.25em; padding: 0px;">TCP/UDP 389 (LDAP default port)</li><li style="margin: 0px 0px 0.25em; padding: 0px;">TCP 636 (LDAP SSL default port)</li><li style="margin: 0px 0px 0.25em; padding: 0px;">TCP 3268 (LDAP Global Catalog)</li><li style="margin: 0px 0px 0.25em; padding: 0px;">TCP 3269 (LDAP SSL Global Catalog)</li><li style="margin: 0px 0px 0.25em; padding: 0px;">TCP/UDP 53 (DNS)</li><li style="margin: 0px 0px 0.25em; padding: 0px;">TCP/UDP 88 (Kerberos)</li><li style="margin: 0px 0px 0.25em; padding: 0px;">TCP/UDP 445 (Directory Services)<br /><br />Optional Ports:</li><li style="margin: 0px 0px 0.25em; padding: 0px;">TCP/UDP 749 (Kerberos-Adm)</li><li style="margin: 0px 0px 0.25em; padding: 0px;">TCP port 750 (Kerberos-IV)</li></ul><div><span style="color: #0a0a0a; font-family: Georgia, Utopia, Palatino Linotype, Palatino, serif;"><span style="font-size: 13.2px;">-------------------------------------------------</span></span></div><div><span style="color: #0a0a0a; font-family: Georgia, Utopia, Palatino Linotype, Palatino, serif;"><span style="font-size: 13.2px;">Please use the below article for reference:</span></span></div><div><span style="color: #0a0a0a; font-family: Georgia, Utopia, Palatino Linotype, Palatino, serif;"><span style="font-size: 13.2px;"><br /></span></span></div><div><span style="color: #0a0a0a; font-family: Georgia, Utopia, Palatino Linotype, Palatino, serif;"><span style="font-size: 13.2px;">https://aarohblah.blogspot.com/2016/02/my-notes-on-sharepoint-2013-user.html</span></span></div><div><span><span style="color: #0a0a0a; font-family: Georgia, Utopia, Palatino Linotype, Palatino, serif; font-size: 13.2px;">http://sharepoint-talk.blogspot.com/2011/09/sharepoint-people-picker-and-active.html</span></span></div>Ravi Kumar Rapoluhttp://www.blogger.com/profile/05910385532516729523noreply@blogger.com0tag:blogger.com,1999:blog-8686838250388647615.post-27432176933230860152020-09-02T11:15:00.001-04:002020-09-02T11:15:55.414-04:00Fetching users slow from People Picker in SharePoint <p> <span style="background-color: white; color: #1d1d1d; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">Run the below command on all site collections in all farms to increase the response time of the people picker. </span></p><br style="background-color: white; color: #1d1d1d; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;" /><div><span style="font-family: Trebuchet MS, Trebuchet, Verdana, sans-serif;"><span style="font-size: 13.2px;"><span style="color: #1d1d1d;">stsadm -o setproperty -pn peoplepicker-searchadforests -pv "domain:</span><b><span style="color: red;">test.CORP</span></b><span style="color: #1d1d1d;">" -url "</span><span style="color: red;">https://you stie URL/sites/sitecollection/</span><span style="color: #1d1d1d;">"</span></span></span></div><div><br /></div><div>if you have multiple domains, use the below command</div><div><br /></div><div><span style="color: #1d1d1d; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">stsadm -o setproperty -pn peoplepicker-searchadforests -pv "domain:</span><b style="font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;"><span style="color: red;">test.CORP; domain:test1.CORP</span></b><span style="color: #1d1d1d; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">" -url "</span><span style="color: red; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">https://you stie URL/sites/sitecollection/</span><span style="color: #1d1d1d; font-family: "Trebuchet MS", Trebuchet, Verdana, sans-serif; font-size: 13.2px;">"</span></div><div><br /></div><div>Change domain name and URL and execute the command in powershell</div>Ravi Kumar Rapoluhttp://www.blogger.com/profile/05910385532516729523noreply@blogger.com0tag:blogger.com,1999:blog-8686838250388647615.post-23473813995850377102020-08-27T12:02:00.001-04:002020-08-27T12:02:14.396-04:00How to install SharePoint Cumulative Updates in a SharePoint Farm Step by Step<p> <a href="https://blogit.create.pt/miguelisidoro/2019/04/08/how-to-install-sharepoint-cumulative-updates-in-a-sharepoint-farm-step-by-step/">https://blogit.create.pt/miguelisidoro/2019/04/08/how-to-install-sharepoint-cumulative-updates-in-a-sharepoint-farm-step-by-step/</a></p><p><br /></p>Ravi Kumar Rapoluhttp://www.blogger.com/profile/05910385532516729523noreply@blogger.com0tag:blogger.com,1999:blog-8686838250388647615.post-55654020773692414742020-08-11T16:06:00.002-04:002020-08-11T16:06:20.847-04:00Using manual SharePoint fill-in choice values in your PowerApp<p> If you’re using a SharePoint choice field you can set the ‘<strong>Allow fill-in choices</strong>‘ </p><p>First, you need to make sure the ‘<strong>Allow searching</strong>‘ option is enabled (which is by Default) on the choice field in your PowerApp by selecting your dropdown control and enabling Allow searching in the Properties pane</p><p><br /></p><p>With that option enabled, users are able to search the drop-down by entering a value which will search for that specific value. Since your have user input with this option, you can also use this to store that value into your list item. You can achieve this by adding the following function to the <strong>Update()</strong> property of your DataCard:</p><p><br /></p><p>If(</p><p> !IsBlank(DataCardValue10.Selected),</p><p> DataCardValue10.Selected,</p><p> If(</p><p> !IsBlank(DataCardValue10.SearchText),</p><p> {</p><p> Value: DataCardValue10.SearchText,</p><p> '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference"</p><p> },</p><p> Blank()</p><p> )</p><p>)</p><p><br /></p><p>https://techdailychronicle.com/using-manual-sharepoint-fill-in-choice-values-in-your-powerapp/</p>Ravi Kumar Rapoluhttp://www.blogger.com/profile/05910385532516729523noreply@blogger.com0tag:blogger.com,1999:blog-8686838250388647615.post-60792504573732848842020-07-22T13:31:00.005-04:002020-08-25T12:40:41.914-04:00Clear fields based on drop-down values in PowerApps <span style="background-color: #f8f8f8;"><span face=""><span>Clear current selection from drop down when another drop down value changes</span></span></span><br />
<span style="background-color: #f8f8f8;"><span face=""><span><br /></span></span></span><span style="background-color: #f8f8f8;"><span face=""><span>1) Parent drop-down is States</span></span></span><br />
<span style="background-color: #f8f8f8;"><span face=""><span>2) Child drop-down is City</span></span></span><br />
<span style="background-color: #f8f8f8;"><span face=""><span><br /></span></span></span><span style="background-color: #f8f8f8;"><span face=""><span>We can hide and show the City drop-down based on States Value changes</span></span></span><br />
<span style="background-color: #f8f8f8;"><span face=""><span>NOTE: Please use your DataCardValues and </span></span></span><b style="font-family: segoeui, lato, "helvetica neue", helvetica, arial, sans-serif; font-size: 18px;">lv_dpclear is local variable</b><br />
<b style="font-family: segoeui, lato, "helvetica neue", helvetica, arial, sans-serif; font-size: 18px;"><br /></b>
<br />
<ul>
<li><span face=""><span>Select City data card and go to the Advanced properties for DataCard</span></span></li>
<li><span face=""><span>Look for the Visible property and write the below code</span></span></li>
</ul>
<br />
<span face=""><span><br /></span></span>
<span face=""><span>If(DataCardValue3.Selected.Value="VA",true,false)</span></span><br />
<span face=""><span><br /></span></span>
<br />
<ul>
<li><span face=""><span>For clearing the City dropdown selected value based state changes.</span></span></li>
</ul>
<br />
<span face=""><span><br /></span></span>
<br />
<ul>
<li><span face="">Select the State drop-down (first drop-down) and go to Advanced</span></li>
<li><span face=""><span>use the below code in OnChange </span></span></li>
</ul>
<br />
<span face=""><span>UpdateContext({lv_dpclear: true}); UpdateContext({lv_dpclear: false}) </span></span><br />
<br />
<ul>
<li><span face=""><span>In the Reset property of the second dropdown(City), add the below code</span></span></li>
</ul>
<br />
<span face=""> lv_dpclear</span><br />
<span face=""><span><br /></span></span>
<span face=""><span><br /></span></span>
<span face=""><span><br /></span></span>
<span face=""><span>--------------------------------------------------------------------</span></span><br />
<span face=""><span><br /></span></span>
<span face=""><span><br /></span></span>
<span face=""><span>Clearing text box and Date Control values based on dropdown selection:</span></span><br />
<span face=""><span><br /></span></span>
<span face=""><span><br /></span></span>
<span face=""><span>Add below code in drop-down OnChange </span></span><br />
<span face=""><span><br /></span></span>
<span face=""><span>Reset(DataCardValue47)</span></span><br />
<span face=""><span><br /></span></span>
<span face=""><span>Reset((DataCardValue28)</span></span><br />
<span face=""><span><br /></span></span>
<span face=""><span><br /></span></span>
<span face=""><span>Note: DataCardValue47 is Text box DataCard value.</span></span><br />
<span face=""><span><br /></span></span>
<span face=""><span></span></span><br />
<span face=""><span> DataCardValue28 is Data picker DataCard value</span></span><div><span face=""><span>----------------------------------------------------------------------</span></span></div><div><span face=""><span><br /></span></span></div><div><span face=""><span><br /></span></span></div><div><span face=""><span>Set Radio button default values:</span></span></div><div><span face=""><span><br /></span></span></div><div><span face=""><span>If(SharePointForm1.Mode=FormMode.New,Blank(),ThisItem.Internal_x0020_or_x0020_External.Value)</span></span></div><div><br /></div><div><span face=""><span>OR</span></span></div><div><span face=""><span><br /></span></span></div><div><p style="background-color: #f8f8f8; box-sizing: inherit; font-family: segoeui, lato, "helvetica neue", helvetica, arial, sans-serif; font-size: 15px; margin: 12px 0px 0px;">Set the <span style="box-sizing: inherit; font-weight: 700;"><em style="box-sizing: inherit;">Default</em></span><span style="box-sizing: inherit;"> property of the</span> <span style="box-sizing: inherit; color: blue;"><span style="box-sizing: inherit; font-weight: 700;"><em style="box-sizing: inherit;">1.1_Last Inspection Reviewed?</em></span></span> Radio button to following:</p><pre style="background-color: white; border-radius: 4px; border: 1px solid rgb(241, 233, 241); box-sizing: inherit; color: #333333; font-family: consolas, "courier new", monospace; font-size: 12px; line-height: 1.3; margin-bottom: 11px; margin-top: 0px; overflow-wrap: break-word; overflow: auto; padding: 10px; word-break: break-all;">If(
EditForm1.Mode=FormMode.New,
Blank(),
ThisItem.<span style="box-sizing: inherit; color: purple;"><span style="box-sizing: inherit; font-weight: 700;"><em style="box-sizing: inherit;">1.1_Last Inspection Reviewed?<br style="box-sizing: inherit;" /></em></span></span>)</pre><pre style="background-color: white; border-radius: 4px; border: 1px solid rgb(241, 233, 241); box-sizing: inherit; color: #333333; font-family: consolas, "courier new", monospace; font-size: 12px; line-height: 1.3; margin-bottom: 11px; margin-top: 0px; overflow-wrap: break-word; overflow: auto; padding: 10px; word-break: break-all;">------------------------------------------------------</pre><p style="background-color: #f8f8f8; box-sizing: inherit; font-family: segoeui, lato, "helvetica neue", helvetica, arial, sans-serif; font-size: 15px; margin: 12px 0px 0px;"><br /></p><pre style="background-color: white; border-radius: 4px; border: 1px solid rgb(241, 233, 241); box-sizing: inherit; color: #333333; font-family: consolas, "courier new", monospace; font-size: 12px; line-height: 1.3; margin-bottom: 11px; margin-top: 0px; overflow-wrap: break-word; overflow: auto; padding: 10px; word-break: break-all;">------------------------------------------------------------</pre><pre style="background-color: white; border-radius: 4px; border: 1px solid rgb(241, 233, 241); box-sizing: inherit; color: #333333; font-family: consolas, "courier new", monospace; font-size: 12px; line-height: 1.3; margin-bottom: 11px; margin-top: 0px; overflow-wrap: break-word; overflow: auto; padding: 10px; word-break: break-all;">Set Date Picker value to today date</pre><pre style="background-color: white; border-radius: 4px; border: 1px solid rgb(241, 233, 241); box-sizing: inherit; color: #333333; font-family: consolas, "courier new", monospace; font-size: 12px; line-height: 1.3; margin-bottom: 11px; margin-top: 0px; overflow-wrap: break-word; overflow: auto; padding: 10px; word-break: break-all;"><pre class="lia-code-sample language-markup" style="background: rgb(245, 242, 240); border-radius: 5px; border: 1px solid rgb(241, 233, 241); box-shadow: none; box-sizing: inherit; color: black; font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace; hyphens: none; line-height: 1.3; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: break-word; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgb(255, 255, 255) 0px 1px; white-space: pre-wrap; word-break: break-all;"><code class=" language-markup" style="background-color: transparent; border-radius: 0px; border: none; box-sizing: inherit; color: inherit; font-family: Consolas, "Courier New", monospace; font-size: inherit; line-height: 1.3; padding: 0px;">If(SharePointForm1.Mode=FormMode.New,Today(),Parent.Default)</code></pre><pre class="lia-code-sample language-markup" style="background: rgb(245, 242, 240); border-radius: 5px; border: 1px solid rgb(241, 233, 241); box-shadow: none; box-sizing: inherit; color: black; font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace; hyphens: none; line-height: 1.3; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: break-word; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgb(255, 255, 255) 0px 1px; white-space: pre-wrap; word-break: break-all;"><code class=" language-markup" style="background-color: transparent; border-radius: 0px; border: none; box-sizing: inherit; color: inherit; font-family: Consolas, "Courier New", monospace; font-size: inherit; line-height: 1.3; padding: 0px;"> or</code></pre><pre class="lia-code-sample language-markup" style="background: rgb(245, 242, 240); border-radius: 5px; border: 1px solid rgb(241, 233, 241); box-shadow: none; box-sizing: inherit; color: black; font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace; hyphens: none; line-height: 1.3; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: break-word; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgb(255, 255, 255) 0px 1px; white-space: pre-wrap; word-break: break-all;"><code class=" language-markup" style="background-color: transparent; border-radius: 0px; border: none; box-sizing: inherit; color: inherit; font-family: Consolas, "Courier New", monospace; font-size: inherit; line-height: 1.3; padding: 0px;">If(SharePointForm1.Mode=FormMode.New,Today(),</code>ThisItem.DateOfInteraction)</pre></pre></div>Ravi Kumar Rapoluhttp://www.blogger.com/profile/05910385532516729523noreply@blogger.com0tag:blogger.com,1999:blog-8686838250388647615.post-39945220611060773262020-06-02T12:11:00.004-04:002020-06-02T12:11:30.512-04:00Promoted Links - Script to show tile in rows and column in webpart page<h1 style="background-color: white; box-sizing: border-box; font-family: Roboto, sans-serif; font-size: 35px; font-weight: 300; line-height: 1.1; margin: 20px 0px 10px;">
How to create a wrapped tile-view for the ‘Multiple Promoted Links’ webpart in a page</h1>
<div>
<br /></div>
<div>
<a href="https://collab365.community/office-365-sharepoint-2013-wrap-tiles-promoted-links-for-multiple/">https://collab365.community/office-365-sharepoint-2013-wrap-tiles-promoted-links-for-multiple/</a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<a href="https://rakeshnpatel.blogspot.com/2018/09/promoted-links-script-to-show-tile-in.html">https://rakeshnpatel.blogspot.com/2018/09/promoted-links-script-to-show-tile-in.html</a></div>
Ravi Kumar Rapoluhttp://www.blogger.com/profile/05910385532516729523noreply@blogger.com0tag:blogger.com,1999:blog-8686838250388647615.post-10469637692060932702020-05-13T15:28:00.002-04:002020-05-13T15:28:21.414-04:00Hide and show cascading dropdown using JQuery in SharePoint <script src="http://code.jquery.com/jquery-1.9.1.js"></script><script type="text/javascript"><br />
<br />
function PreSaveAction()<br />
{<br />
var sRiskType=$("select[title^='Risk Type']");<br />
var sRiskStatus=$("select[title^='Risk Status']");<br />
var sOpportunityStatus=$("select[title^='Opportunity Status']");<br />
<br />
if((sRiskType.val()=="Risk")&&(sRiskStatus.val()==""))<br />
{<br />
alert('Please select Risk Status ');<br />
return false;<br />
}<br />
else if((sRiskType.val()=="Opportunity")&&(sOpportunityStatus.val()==""))<br />
{<br />
alert('Please select Opportunity Status ');<br />
return false;<br />
}<br />
return true;<br />
}<br />
<br />
$(document).ready(function() {<br />
$('nobr:contains("Risk Status")').closest('tr').hide();<br />
$('nobr:contains("Opportunity Status")').closest('tr').hide();<br />
$("select[title^='Risk Type']").change(function(){<br />
if ($(this).val() != 'Risk') {<br />
$('nobr:contains("Risk Status")').closest('tr').hide();<br />
}<br />
else {<br />
$('nobr:contains("Risk Status")').closest('tr').show(); <br />
}<br />
if ($(this).val() != 'Opportunity') {<br />
$('nobr:contains("Opportunity Status")').closest('tr').hide();<br />
}<br />
else {<br />
$('nobr:contains("Opportunity Status")').closest('tr').show(); <br />
}<br />
<br />
return false;<br />
});<br />
});<br />
</script>Ravi Kumar Rapoluhttp://www.blogger.com/profile/05910385532516729523noreply@blogger.com0tag:blogger.com,1999:blog-8686838250388647615.post-86688411686928369992019-09-27T10:30:00.002-04:002019-09-27T10:35:02.210-04:00SharePoint 2016 and 2019 Ports<a href="http://sharepoint2016server.blogspot.com/2016/10/sharepoint-2016-ports-list.html">http://sharepoint2016server.blogspot.com/2016/10/sharepoint-2016-ports-list.html</a><br />
<br />
<br />
SharePoint 2019:<br />
<br />
<ul style="background-color: white; border: 0px; color: #444444; font-family: Arimo, sans-serif; font-size: 14px; line-height: 1.71429; list-style-image: initial; list-style-position: outside; margin: 0px 0px 1.71429rem; padding: 0px; vertical-align: baseline;">
<li style="border: 0px; margin: 0px 0px 0px 2.57143rem; padding: 0px; vertical-align: baseline;"><strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Distributed Cache</strong>: TCP Port 22233, 22236 : UDP Port N/A : Protocols ICMP Type 0 (ping)</li>
<li style="border: 0px; margin: 0px 0px 0px 2.57143rem; padding: 0px; vertical-align: baseline;"><strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">People Picker</strong>: TCP Port 53, 88, 135, 137–139, 389, 445, 636, 749, 750, 3268, 3269 : UDP Port N/A 53, 88, 137–139, 389, 445, 749 : UDP Port N/A : Protocols N/A</li>
<li style="border: 0px; margin: 0px 0px 0px 2.57143rem; padding: 0px; vertical-align: baseline;"><strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Sandbox Service</strong>: TCP Port 32846 : UDP Port N/A : protocols N/A</li>
<li style="border: 0px; margin: 0px 0px 0px 2.57143rem; padding: 0px; vertical-align: baseline;"><strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Search Crawler</strong>: TCP Port Web Application Ports Used (e.g., 80, 443) : UDP Port N/A : Protocols N/A</li>
<li style="border: 0px; margin: 0px 0px 0px 2.57143rem; padding: 0px; vertical-align: baseline;"><strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Search Index</strong>: TCP Ports 16500–16519 : UDP Port N/A : Protocols N/A</li>
<li style="border: 0px; margin: 0px 0px 0px 2.57143rem; padding: 0px; vertical-align: baseline;"><strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Service Applications</strong>: TCP Port 32843, 32844 : UDP Port N/A : Protocols N/A</li>
<li style="border: 0px; margin: 0px 0px 0px 2.57143rem; padding: 0px; vertical-align: baseline;"><strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">SQL Server</strong>: TCP Port 1433 (default) : UDP Port 1434 (default) : Protocols N/A</li>
<li style="border: 0px; margin: 0px 0px 0px 2.57143rem; padding: 0px; vertical-align: baseline;"><strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">WCF Services</strong>: TCP Port 808 : UDP Port N/A : Protocols N/A</li>
<li style="border: 0px; margin: 0px 0px 0px 2.57143rem; padding: 0px; vertical-align: baseline;"><strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">User Profile Service</strong>: TCP Port 53, 88, 389, 5725, 1025–5000, 49152–65536 : UDP Port 53, 88, 389, 464 : Protocols N/A</li>
<li style="border: 0px; margin: 0px 0px 0px 2.57143rem; padding: 0px; vertical-align: baseline;"><strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">SMTP</strong>: TCP Port 25 (default), 587 (TLS default) : UDP Port N/A : Protocols N/A</li>
</ul>
<h3 class="post-title entry-title" itemprop="name" style="background-color: white; color: #3c4551; font-family: Roboto; font-size: 22px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0.75em 0px 0px; position: relative;">
SharePoint 2016 ports list</h3>
<div class="post-header" style="background-color: white; color: #3c4551; font-family: Roboto; font-size: 10.8px; line-height: 1.6; margin: 0px 0px 1.5em;">
<div class="post-header-line-1">
</div>
</div>
<div class="post-body entry-content" id="post-body-6619489297084030867" itemprop="description articleBody" style="background-color: white; color: #3c4551; font-family: Roboto; font-size: 13.2px; line-height: 1.4; position: relative; width: 656px;">
<br />
<table cellpadding="0" cellspacing="0"><tbody>
<tr><td valign="top" width="10%"><b>Protocol</b></td><td valign="top" width="15%"><b>Port</b></td><td valign="top" width="40%"><b>Usage</b></td><td valign="top" width="35%"><b>Comment</b></td></tr>
<tr><td valign="top" width="10%">TCP</td><td valign="top" width="15%">80</td><td valign="top" width="40%">http</td><td valign="top" width="35%">Client to SharePoint web server traffic<br />
(SharePoint – Office Web Apps communication)</td></tr>
<tr><td valign="top" width="10%">TCP</td><td valign="top" width="15%">443</td><td valign="top" width="40%">https/ssl</td><td valign="top" width="35%">Encrypted client to SharePoint web server traffic<br />
(Encrypted SharePoint – Office Web Apps communication)</td></tr>
<tr><td valign="top" width="10%">TCP</td><td valign="top" width="15%">1433</td><td valign="top" width="40%">SQL Server default communication port.</td><td valign="top" width="35%">May be configured to use custom port for increased security</td></tr>
<tr><td valign="top" width="10%">UDP</td><td valign="top" width="15%">1434</td><td valign="top" width="40%">SQL Server default port used to establish connection</td><td valign="top" width="35%">May be configured to use custom port for increased security</td></tr>
<tr><td valign="top" width="10%">TCP</td><td valign="top" width="15%">445</td><td valign="top" width="40%">SQL Server using named pipes</td><td valign="top" width="35%">When SQL Server is configured to listen for incoming client connections by using named pipes over a NetBIOS session, SQL Server communicates over TCP port 445</td></tr>
<tr><td valign="top" width="10%">TCP</td><td valign="top" width="15%">25</td><td valign="top" width="40%">SMTP for e-mail integration</td><td valign="top" width="35%">Cannot be configured</td></tr>
<tr><td valign="top" width="10%">TCP</td><td valign="top" width="15%">16500-16519</td><td valign="top" width="40%">Ports used by the search index component</td><td valign="top" width="35%">Intra-farm only<br />
Inbound rule Added to Windows firewall by SharePoint</td></tr>
<tr><td valign="top" width="10%">TCP</td><td valign="top" width="15%">22233-22236</td><td valign="top" width="40%">Ports required for the AppFabric Caching Service</td><td valign="top" width="35%">Distributed Cache…</td></tr>
<tr><td valign="top" width="10%">TCP</td><td valign="top" width="15%">808</td><td valign="top" width="40%">Windows Communication Foundation communication</td><td valign="top" width="35%">WCF</td></tr>
<tr><td valign="top" width="10%">TCP</td><td valign="top" width="15%">32843</td><td valign="top" width="40%">Communication between Web servers and service applications</td><td valign="top" width="35%">http (default) To use custom port, see references section<br />
Inbound rule Added to Windows firewall by SharePoint</td></tr>
<tr><td valign="top" width="10%">TCP</td><td valign="top" width="15%">32844</td><td valign="top" width="40%">Communication between Web servers and service applications</td><td valign="top" width="35%">https<br />
Inbound rule Added to Windows firewall by SharePoint</td></tr>
<tr><td valign="top" width="10%">TCP</td><td valign="top" width="15%">32845</td><td valign="top" width="40%">net.tcp binding: TCP 32845 (only if a third party has implemented this option for a service application)</td><td valign="top" width="35%"> Custom Service Applications<br />
Inbound rule Added to Windows firewall by SharePoint</td></tr>
<tr><td valign="top" width="10%">TCP</td><td valign="top" width="15%">32846</td><td valign="top" width="40%">Microsoft SharePoint Foundation User Code Service (for sandbox solutions)</td><td valign="top" width="35%"> Inbound on all Web Servers<br />
Inbound rule Added to Windows firewall by SharePoint<br />
Outbound on all Web and App servers with service enabled.</td></tr>
<tr><td valign="top" width="10%">TCP</td><td valign="top" width="15%">5725</td><td valign="top" width="40%">User Profile Synchronization Service(FIM)</td><td valign="top" width="35%">Synchronizing profiles between SharePoint 2013 and Active Directory Domain Services (AD DS) on the server that runs the Forefront Identity Management agent</td></tr>
<tr><td valign="top" width="10%">TCP + UDP</td><td valign="top" width="15%">389</td><td valign="top" width="40%">User Profile Synchronization Service(FIM)</td><td valign="top" width="35%">LDAP Service</td></tr>
<tr><td valign="top" width="10%">TCP + UDP</td><td valign="top" width="15%">88</td><td valign="top" width="40%">User Profile Synchronization Service(FIM)</td><td valign="top" width="35%">Kerberos</td></tr>
<tr><td valign="top" width="10%">TCP + UDP</td><td valign="top" width="15%">53</td><td valign="top" width="40%">User Profile Synchronization Service(FIM)</td><td valign="top" width="35%">DNS</td></tr>
<tr><td valign="top" width="10%">UDP</td><td valign="top" width="15%">464</td><td valign="top" width="40%">User Profile Service(FIM)</td><td valign="top" width="35%">Kerberos change password</td></tr>
<tr><td valign="top" width="10%">TCP</td><td valign="top" width="15%">809</td><td valign="top" width="40%">Office Web Apps</td><td valign="top" width="35%">Intra-farm Office Web Apps communication.</td></tr>
</tbody></table>
</div>
Ravi Kumar Rapoluhttp://www.blogger.com/profile/05910385532516729523noreply@blogger.com0tag:blogger.com,1999:blog-8686838250388647615.post-86755438462140435852018-06-18T14:29:00.001-04:002018-06-21T15:07:57.549-04:00Restrict InfoPath Section Visibility Based on User in SharePoint<h1 class="post-name" style="background-color: white; clear: both; color: #707070; font-family: "Segoe UI Light", "Segoe UI", "Lucida Grande", Verdana, Arial, Helvetica, sans-serif; font-size: 36.3312px; font-weight: 100; line-height: 1.3; margin: 0px;">
Restrict InfoPath Section Visibility Based on User</h1>
<div>
<br /></div>
<div>
https://social.technet.microsoft.com/wiki/contents/articles/32515.restrict-infopath-section-visibility-based-on-user.aspx</div>
<div>
---------------------------</div>
<div class="post-content user-defined-markup" style="background-color: white; border: 0px; line-height: 1.4; max-width: 100%; overflow: hidden; padding: 10px 0px; position: relative;">
<div style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">
<strong>Applies To: SharePoint/InfoPath List Forms</strong></div>
<h2 style="border-bottom: 0px; clear: both; color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 19.9822px; font-weight: normal; line-height: 1.25; margin: 0px;">
<a href="https://www.blogger.com/null" name="Introduction" style="color: #00749e; cursor: pointer;"></a>Introduction</h2>
<div style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">
Sometimes we need to restrict sections in forms to a certain group of users. Instead of simply marking them with a heading such as "<strong><em>HR Use Only</em></strong>" or "<strong><em>Information Services Use Only</em></strong>", we can show or hide a section based on the logged in user. This article describes how to achieve that in InfoPath.</div>
<div style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">
<br /></div>
<div style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">
<br /></div>
<div style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">
<br /></div>
<div class="table-of-contents" style="background-color: #eeeeee; border: 1px solid rgb(204, 204, 204); color: #2a2a2a; display: inline-block; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px; max-width: 450px; padding: 10px;">
<h2 class="title" style="border-bottom: medium none; clear: both; font-size: 19.9822px; font-weight: normal; line-height: 1.25; margin: 0px 0px 0.25em; padding-top: 0px;">
Table of Contents</h2>
<div class="hierarchy-list-header">
</div>
<ul class="hierarchy-list" style="border-bottom: 1px dotted rgb(204, 204, 204); list-style-type: none; margin: 0px; padding: 0px;">
<li class="hierarchy-item" style="border-bottom: none; border-top: 1px dotted rgb(204, 204, 204); margin: 0px; padding: 0px; position: relative;"><a href="https://social.technet.microsoft.com/wiki/contents/articles/32515.restrict-infopath-section-visibility-based-on-user.aspx#Introduction" style="color: #00749e; cursor: pointer; display: block; outline: none; padding: 2px 0px; text-decoration-line: none;">Introduction</a></li>
<li class="hierarchy-item" style="border-bottom: none; border-top: 1px dotted rgb(204, 204, 204); margin: 0px; padding: 0px; position: relative;"><a href="https://social.technet.microsoft.com/wiki/contents/articles/32515.restrict-infopath-section-visibility-based-on-user.aspx#Creating_the_Lists" style="color: #00749e; cursor: pointer; display: block; outline: none; padding: 2px 0px; text-decoration-line: none;">Creating the Lists</a><div class="hierarchy-list-header">
</div>
<ul class="hierarchy-list" style="border-bottom: none; list-style-type: none; margin: 0px; padding: 0px;">
<li class="hierarchy-item" style="border-bottom: none; border-top: 1px dotted rgb(204, 204, 204); margin: 0px; padding: 0px 0px 0px 11px; position: relative;"><a href="https://social.technet.microsoft.com/wiki/contents/articles/32515.restrict-infopath-section-visibility-based-on-user.aspx#Create_the_User_List" style="color: #00749e; cursor: pointer; display: block; outline: none; padding: 2px 0px; text-decoration-line: none;">Create the User List</a></li>
</ul>
<div class="hierarchy-list-footer">
</div>
</li>
<li class="hierarchy-item" style="border-bottom: none; border-top: 1px dotted rgb(204, 204, 204); margin: 0px; padding: 0px; position: relative;"><a href="https://social.technet.microsoft.com/wiki/contents/articles/32515.restrict-infopath-section-visibility-based-on-user.aspx#Customize_the_List_Form" style="color: #00749e; cursor: pointer; display: block; outline: none; padding: 2px 0px; text-decoration-line: none;">Customizing the List Form</a><div class="hierarchy-list-header">
</div>
<ul class="hierarchy-list" style="border-bottom: none; list-style-type: none; margin: 0px; padding: 0px;">
<li class="hierarchy-item" style="border-bottom: none; border-top: 1px dotted rgb(204, 204, 204); margin: 0px; padding: 0px 0px 0px 11px; position: relative;"><a href="https://social.technet.microsoft.com/wiki/contents/articles/32515.restrict-infopath-section-visibility-based-on-user.aspx#Create_the_List" style="color: #00749e; cursor: pointer; display: block; outline: none; padding: 2px 0px; text-decoration-line: none;">Create the List</a></li>
<li class="hierarchy-item" style="border-bottom: none; border-top: 1px dotted rgb(204, 204, 204); margin: 0px; padding: 0px 0px 0px 11px; position: relative;"><a href="https://social.technet.microsoft.com/wiki/contents/articles/32515.restrict-infopath-section-visibility-based-on-user.aspx#Customize_the_list_in_InfoPath" style="color: #00749e; cursor: pointer; display: block; outline: none; padding: 2px 0px; text-decoration-line: none;">Customize the list in InfoPath</a></li>
<li class="hierarchy-item" style="border-bottom: none; border-top: 1px dotted rgb(204, 204, 204); margin: 0px; padding: 0px 0px 0px 11px; position: relative;"><a href="https://social.technet.microsoft.com/wiki/contents/articles/32515.restrict-infopath-section-visibility-based-on-user.aspx#Manage_the_Data_Connections" style="color: #00749e; cursor: pointer; display: block; outline: none; padding: 2px 0px; text-decoration-line: none;">Manage the Data Connections</a></li>
<li class="hierarchy-item" style="border-bottom: none; border-top: 1px dotted rgb(204, 204, 204); margin: 0px; padding: 0px 0px 0px 11px; position: relative;"><a href="https://social.technet.microsoft.com/wiki/contents/articles/32515.restrict-infopath-section-visibility-based-on-user.aspx#Create_the_Rules" style="color: #00749e; cursor: pointer; display: block; outline: none; padding: 2px 0px; text-decoration-line: none;">Create the Rules</a></li>
</ul>
<div class="hierarchy-list-footer">
</div>
</li>
</ul>
<div class="hierarchy-list-footer">
</div>
</div>
<div style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">
<br /></div>
<hr style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;" />
<h2 style="border-bottom: 0px; clear: both; color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 19.9822px; font-weight: normal; line-height: 1.25; margin: 0px;">
<a href="https://www.blogger.com/null" name="Creating_the_Lists" style="color: #00749e; cursor: pointer;"></a>Creating the Lists</h2>
<div style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">
In order to restrict sections in a form, we will need to create a list that contains the users who will have access to the section. We will reference this list in a data connection in InfoPath.</div>
<h3 style="clear: both; color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 1.2em; font-weight: normal; line-height: 1.25; margin: 3px 0px;">
<a href="https://www.blogger.com/null" name="Create_the_User_List" style="color: #00749e; cursor: pointer;"></a>Create the User List</h3>
<ol style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">
<li>Create a custom list and name it <strong><em>ElevatedPermissionsUsers</em></strong></li>
<li>Create a new column:<ol style="list-style-type: lower-alpha;">
<li>Column name: <strong><em>AdminUser</em></strong></li>
<li>Type: <strong><em>Person or Group</em></strong></li>
<li>Required: <strong><em>Yes</em></strong></li>
<li>Allow selection of: <strong><em>People Only</em></strong></li>
<li>Accept the defaults for everything else</li>
</ol>
</li>
<li>In Advanced Settings, <strong><em>Allow management of content types</em></strong></li>
<li>Change the Item content type and hide the <strong><em>Title</em></strong> field</li>
<li>Change the default <strong><em>All Items</em></strong> view:<ol style="list-style-type: lower-alpha;">
<li>Remove the <strong><em>Title</em></strong> field</li>
<li>Add<strong><em> Edit (link to edit item)</em></strong> and move it to the first column</li>
</ol>
</li>
</ol>
<div style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">
Now that your list is ready, add a couple of site users to the list.</div>
<hr style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;" />
<h2 style="border-bottom: 0px; clear: both; color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 19.9822px; font-weight: normal; line-height: 1.25; margin: 0px;">
<a href="https://www.blogger.com/null" name="Customize_the_List_Form" style="color: #00749e; cursor: pointer;"></a>Customizing the List Form</h2>
<div style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">
If you don't already have a list form that you need to customize, create one now. It can be based on a Custom list template, or any other list template that you need, such as Tasks.</div>
<div style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">
<br /></div>
<div style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">
<br /></div>
<div style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">
<br /></div>
<div style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">
For this excersize, I've created a custom list and named it RestrictedInfoPathSections.</div>
<div style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">
<br /></div>
<h3 style="clear: both; color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 1.2em; font-weight: normal; line-height: 1.25; margin: 3px 0px;">
<a href="https://www.blogger.com/null" name="Create_the_List" style="color: #00749e; cursor: pointer;"></a>Create the List</h3>
<ol style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">
<li>Accept the default <strong><em>Title</em></strong> field</li>
<li>Create the following fields. For simplicity I kept them as single lines of text except the <strong><em>IsAdmin</em></strong> field, however they can be any field type<br /><br /><table style="margin-left: 1px;"><tbody>
<tr><td> <strong>Name</strong></td><td><strong>Type</strong></td></tr>
<tr><td> FirstName</td><td>Single line of text</td></tr>
<tr><td> LastName</td><td>Single line of text</td></tr>
<tr><td> Manager</td><td>Single line of text</td></tr>
<tr><td> EmployeeAction</td><td>Single line of text</td></tr>
<tr><td> CurrentUser</td><td> Single line of text (Hide in all views)</td></tr>
<tr><td> IsAdmin</td><td>Number (Hide in all views)</td></tr>
</tbody></table>
</li>
</ol>
<h3 style="clear: both; color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 1.2em; font-weight: normal; line-height: 1.25; margin: 3px 0px;">
<a href="https://www.blogger.com/null" name="Customize_the_list_in_InfoPath" style="color: #00749e; cursor: pointer;"></a>Customize the list in InfoPath</h3>
<ol style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">
<li>On the list ribbon, click the <strong><em>Customize in InfoPath</em></strong> button</li>
<li>On the newly created InfoPath form</li>
<li>Delete the last four rows including the fields, <strong><em>Manager, CurrentUsaer, IsAdmin</em></strong> and <strong><em>EmployeeAction</em></strong></li>
<li>Add a new section to the bottom of the form</li>
<li>Insert a <strong><em>Two-Column with Emphasis 3</em></strong> table layout in the new section</li>
<li>Add the <strong><em>Manager</em></strong> and <strong><em>EmployeeAction</em></strong> fields in the new table<a href="http://social.technet.microsoft.com/wiki/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-05/4101.UsersForm.PNG" style="color: #00749e; cursor: pointer; outline: none; text-decoration-line: none;"><img alt=" " src="http://social.technet.microsoft.com/wiki/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-05/4101.UsersForm.PNG" style="border: 0px solid currentcolor; height: auto !important; max-width: 100%; overflow: hidden;" /></a></li>
<li>Format and change themes to your liking</li>
</ol>
<h3 style="clear: both; color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 1.2em; font-weight: normal; line-height: 1.25; margin: 3px 0px;">
<a href="https://www.blogger.com/null" name="Manage_the_Data_Connections" style="color: #00749e; cursor: pointer;"></a>Manage the Data Connections</h3>
<ol style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">
<li>Add a new connection to the <strong><em>ElevatedPermissionsUsers</em></strong> list and name it <strong><em>GET-ElevatedPermissionsUsers</em></strong></li>
<li>Select the following fields:<ol style="list-style-type: lower-alpha;">
<li><strong><em>AdminUser</em></strong></li>
<li><strong><em>ID</em></strong><br /><br /><a href="http://social.technet.microsoft.com/wiki/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-05/8105.GET_2D00_ElevatedPermissionsUsers_2D00_Fields.PNG" style="color: #00749e; cursor: pointer; outline: none; text-decoration-line: none;"><img alt=" " src="http://social.technet.microsoft.com/wiki/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-05/8105.GET_2D00_ElevatedPermissionsUsers_2D00_Fields.PNG" style="border: 0px solid currentcolor; height: auto !important; max-width: 100%; overflow: hidden;" /></a></li>
</ol>
</li>
<li>Accept the defaults and complete the wizard steps</li>
</ol>
<h3 style="clear: both; color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 1.2em; font-weight: normal; line-height: 1.25; margin: 3px 0px;">
<a href="https://www.blogger.com/null" name="Create_the_Rules" style="color: #00749e; cursor: pointer;"></a>Create the Rules</h3>
<ol>
<li style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">Select the <strong><em>DATA</em></strong> tab in the ribbon</li>
<li style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">In the <strong><em>Rules</em></strong> section, click on the <strong><em>Form Load</em></strong> button</li>
<li style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">Create a new <strong><em>Action</em></strong> rule and name it <strong><em>Assign Admin Users</em></strong></li>
<li style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">Accept the default <strong><em>Condition - None - Rule runs when form is opened</em></strong></li>
<li><span style="color: #2a2a2a; font-family: "segoe ui" , "lucida grande" , "verdana" , "arial" , "helvetica" , sans-serif;"><span style="font-size: 12.1104px;">Create a new </span></span><strong style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;"><em>Set a field's value</em></strong><span style="color: #2a2a2a; font-family: "segoe ui" , "lucida grande" , "verdana" , "arial" , "helvetica" , sans-serif;"><span style="font-size: 12.1104px;"> action:</span></span><ol style="list-style-type: lower-alpha;">
<li style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">Field: <strong><em>IsAdmin</em></strong></li>
<li style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">For <strong><em>Value</em></strong>, click on the <strong><em>fx</em></strong> button</li>
<li style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">Click <strong><em>Insert a Field or Group</em></strong></li>
<li style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">Click on <strong><em>Show advanced view</em></strong></li>
<li style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">Change the data source to <strong><em>GET-ElevatedPermissionsUsers</em></strong></li>
<li style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">Under <strong><em>dataFields</em></strong>, drill down and select <strong><em>ID</em></strong><br /><br /><a href="http://social.technet.microsoft.com/wiki/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-05/7801.GET_2D00_ElevatedPermissionsUsers_2D00_ChangeData.PNG" style="color: #00749e; cursor: pointer; outline: none; text-decoration-line: none;"><img alt=" " src="http://social.technet.microsoft.com/wiki/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-05/7801.GET_2D00_ElevatedPermissionsUsers_2D00_ChangeData.PNG" style="border: 0px solid currentcolor; height: 361px; max-width: 100%; overflow: hidden; width: 287px;" /></a></li>
<li style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">Click <strong><em>Filter Data</em></strong></li>
<li style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">Click <strong><em>Add</em></strong></li>
<li style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">In the first drop-down box change <strong><em>ID</em></strong> and click <strong><em>Select a field or group...</em></strong></li>
<li style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">On the Data source dialog, under <strong><em>dataFields</em></strong>, drill down and select <strong><em>AdminUser AccountID</em></strong><br /><br /><a href="http://social.technet.microsoft.com/wiki/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-05/7875.GET_2D00_ElevatedPermissionsUsers_2D00_AccountIDFilter.PNG" style="color: #00749e; cursor: pointer; outline: none; text-decoration-line: none;"><img alt=" " src="http://social.technet.microsoft.com/wiki/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-05/7875.GET_2D00_ElevatedPermissionsUsers_2D00_AccountIDFilter.PNG" height="632" style="border: 0px solid currentcolor; height: 398px; max-width: 100%; overflow: hidden; width: 287px;" width="549" /></a></li>
<li style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">Click <strong><em>OK</em></strong></li>
<li style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">Accept the default in the second drop-down: <strong><em>is equal to</em></strong></li>
<li style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">From the third drop-down, select Use a fornula...</li>
<li style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">On the <strong><em>Insert Formula</em></strong> dialog, click the middle button <strong><em>Insert Function...</em></strong></li>
<li><span style="color: #2a2a2a; font-family: "segoe ui" , "lucida grande" , "verdana" , "arial" , "helvetica" , sans-serif;"><span style="font-size: 12.1104px;"><b>concat(substring-before(AccountId, "\"), "\", userName())</b></span></span></li>
<li style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">Click <strong><em>OK</em></strong> several times to close all dialog boxes</li>
<li style="font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;"><span style="color: #2a2a2a;">The final <strong><em>Rule Details</em></strong> dialog should look similar to the image below: </span><span style="color: red;">(ignore below value)</span></li>
<li style="font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;"><span style="color: red;"><br /></span><br /><a href="http://social.technet.microsoft.com/wiki/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-05/1263.RulesDialogBoxFinal.PNG" style="color: #00749e; cursor: pointer; outline: none;"><img alt=" " src="http://social.technet.microsoft.com/wiki/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-05/1263.RulesDialogBoxFinal.PNG" height="331" style="border: 0px solid currentcolor; height: 295px; max-width: 100%; overflow: hidden; width: 467px;" width="549" /></a></li>
<li style="font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;"><span style="color: red; font-size: 12.1104px;">NOTE</span><span style="color: #2a2a2a; font-size: 12.1104px;">: Value field will have like this </span><b style="color: #2a2a2a; font-size: 12.1104px;"><span style="color: red;">ID[AccountId = concat(substring-before(AccountId, "\"), "\", userName())]</span></b></li>
<li style="font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;"><b style="color: #2a2a2a; font-size: 12.1104px;"><span style="color: red;"><br /></span></b></li>
<li style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">Click on the section tab that contains your restricted content</li>
<li style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">Create a new formatting rule and name it <strong><em>Hide From Non-Admin Users</em></strong></li>
<li style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">Set the condition to <strong><em>IsAdmin = Is blank</em></strong></li>
<li style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">Select the <strong><em>Hide this control</em></strong> check-box<br /><br /><a href="http://social.technet.microsoft.com/wiki/cfs-file.ashx/__key/communityserver-wikis-components-files/00-00-00-00-05/8233.HideFormattingRule.PNG" style="color: #00749e; cursor: pointer; outline: none; text-decoration-line: none;"><img alt=" " src="http://social.technet.microsoft.com/wiki/resized-image.ashx/__size/550x0/__key/communityserver-wikis-components-files/00-00-00-00-05/8233.HideFormattingRule.PNG" height="529" style="border: 0px solid currentcolor; height: 344px; max-width: 100%; overflow: hidden; width: 320px;" width="549" /></a></li>
<li style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">Publish the form</li>
</ol>
</li>
</ol>
<div style="color: #2a2a2a; font-family: "segoe ui", "lucida grande", verdana, arial, helvetica, sans-serif; font-size: 12.1104px;">
Test the form by signing in to the site with a user who is in the ElevatedPermissionsUsers list, then with one who's not in this list.</div>
</div>
Ravi Kumar Rapoluhttp://www.blogger.com/profile/05910385532516729523noreply@blogger.com0tag:blogger.com,1999:blog-8686838250388647615.post-79892264428966527812018-05-17T13:53:00.001-04:002018-05-17T13:56:58.989-04:00Showing the records ID on the View and Edit forms in sharepoint <div style="background-color: white; border: 0px; line-height: 1.71429; margin-bottom: 1.71429rem; padding: 0px; vertical-align: baseline;">
<span style="color: #444444; font-family: "open sans", helvetica, arial, sans-serif; font-size: 14px;">– Go to the List</span></div>
<div style="background-color: white; border: 0px; color: #444444; font-family: "Open Sans", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.71429; margin-bottom: 1.71429rem; padding: 0px; vertical-align: baseline;">
– Add /DispForm.aspx?ToolPaneView=2 to the URL<br />
This will open the page in editable form and the add a content editor webpart. Edit it to add the HTML content.<br />
– Add for example a ContentEditorWebPart and paste in the script below;</div>
<div style="background-color: white; border: 0px; color: #444444; font-family: "Open Sans", Helvetica, Arial, sans-serif; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;">
<div class="syntaxhighlighter jscript" id="highlighter_165754" style="border: 0px; font-size: 1em !important; margin: 1em 0px !important; overflow-x: auto !important; overflow-y: hidden !important; padding: 0px; position: relative !important; vertical-align: baseline; width: 624.984px;">
</div>
</div>
<div style="background-color: white; border: 0px; color: #444444; font-family: "Open Sans", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.71429; margin-bottom: 1.71429rem; padding: 0px; vertical-align: baseline;">
You can do the same thing with EditForm aswell.<br />
<br />
<div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="jscript plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><script type=</code><code class="jscript string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"text/javascript"</code></div>
<div class="line number2 index1 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="jscript spaces" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="jscript plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">src=</code><code class="jscript string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"<a href="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-decoration-line: none; top: auto !important; vertical-align: baseline !important; width: auto !important;">http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js</a>"</code><code class="jscript plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">></code></div>
<div class="line number3 index2 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="jscript plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"></script></code></div>
<div class="line number4 index3 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="jscript plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><script type=</code><code class="jscript string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"text/javascript"</code><code class="jscript plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">></code></div>
<div class="line number5 index4 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
</div>
<div class="line number6 index5 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="jscript plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">$(</code><code class="jscript keyword" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">function</code><code class="jscript plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">() {</code></div>
<div class="line number7 index6 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="jscript spaces" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="jscript comments" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 130, 0) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">// Get the ID from the query string</code></div>
<div class="line number8 index7 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="jscript spaces" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="jscript keyword" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">var</code> <code class="jscript plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">id = getQueryString()[</code><code class="jscript string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"ID"</code><code class="jscript plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">];</code></div>
<div class="line number9 index8 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
</div>
<div class="line number10 index9 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="jscript spaces" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="jscript comments" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 130, 0) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">// Find the form's main table</code></div>
<div class="line number11 index10 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="jscript spaces" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="jscript keyword" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">var</code> <code class="jscript plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">table = $('table.ms-formtable</code><code class="jscript string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">');</code></div>
<div class="line number12 index11 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
</div>
<div class="line number13 index12 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="jscript spaces" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="jscript string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">// Add a row with the ID in</code></div>
<div class="line number14 index13 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="jscript spaces" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="jscript string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">table.prepend("<tr><td class='</code><code class="jscript plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">ms-formlabel</code><code class="jscript string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">'><h3 class='</code><code class="jscript plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">ms-standardheader</code><code class="jscript string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">'>ID</h3></td>" +</code></div>
<div class="line number15 index14 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="jscript spaces" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="jscript string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">"<td class='</code><code class="jscript plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">ms-formbody</code><code class="jscript string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">'>" + id + "&nbsp;</td></tr>");</code></div>
<div class="line number16 index15 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="jscript string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">})</code></div>
<div class="line number17 index16 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
</div>
<div class="line number18 index17 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="jscript string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">function getQueryString() {</code></div>
<div class="line number19 index18 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="jscript spaces" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="jscript string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">var assoc = new Array();</code></div>
<div class="line number20 index19 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="jscript spaces" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="jscript string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">var queryString = unescape(location.search.substring(1));</code></div>
<div class="line number21 index20 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="jscript spaces" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="jscript string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">var keyValues = queryString.split('</code><code class="jscript plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">&</code><code class="jscript string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">');</code></div>
<div class="line number22 index21 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="jscript spaces" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="jscript string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">for (var i in keyValues) {</code></div>
<div class="line number23 index22 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="jscript spaces" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="jscript string" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">var key = keyValues[i].split('</code><code class="jscript plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">=');</code></div>
<div class="line number24 index23 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="jscript spaces" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="jscript plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">assoc[key[0]] = key[1];</code></div>
<div class="line number25 index24 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="jscript spaces" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="jscript plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code></div>
<div class="line number26 index25 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="jscript spaces" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="jscript keyword" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">return</code> <code class="jscript plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">assoc;</code></div>
<div class="line number27 index26 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="jscript plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code></div>
<div class="line number28 index27 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #333333; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 12px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="jscript plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"></script></code></div>
</div>
<div style="background-color: white; border: 0px; color: #444444; font-family: "Open Sans", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.71429; margin-bottom: 1.71429rem; padding: 0px; vertical-align: baseline;">
<br /></div>
<div style="background-color: white; border: 0px; line-height: 1.71429; margin-bottom: 1.71429rem; padding: 0px; vertical-align: baseline;">
<br /></div>
<div style="background-color: white; border: 0px; line-height: 1.71429; margin-bottom: 1.71429rem; padding: 0px; vertical-align: baseline;">
<span style="color: #444444; font-family: "open sans" , "helvetica" , "arial" , sans-serif;"><span style="font-size: 14px;"><br /></span></span></div>
<div style="background-color: white; border: 0px; line-height: 1.71429; margin-bottom: 1.71429rem; padding: 0px; vertical-align: baseline;">
<br /></div>
Ravi Kumar Rapoluhttp://www.blogger.com/profile/05910385532516729523noreply@blogger.com1tag:blogger.com,1999:blog-8686838250388647615.post-16469093280711319762018-03-07T17:17:00.002-05:002018-03-07T17:18:00.016-05:00Active Directory: People Picker Browse Display UI - SharePoint https://msdn.microsoft.com/en-us/library/dn735831(v=office.12).aspxRavi Kumar Rapoluhttp://www.blogger.com/profile/05910385532516729523noreply@blogger.com0tag:blogger.com,1999:blog-8686838250388647615.post-10893371810565921992018-02-26T13:17:00.000-05:002018-02-26T13:17:07.578-05:00Hide New and Add documents buttons from menubar in form lirbary<style type="text/css"><br />
#Ribbon.Documents.New.AddDocument-Large {<br />
<span style="white-space: pre;"> </span>DISPLAY: none<br />
}<br />
#Ribbon.Documents.New.NewDocument-Large {<br />
<span style="white-space: pre;"> </span>DISPLAY: none<br />
}<br />
</style><br />
<br />
------------------------------<br />
<br />
<b>For hide Open with explorer view button</b><br />
<br />
<style type="text/css"><br />
#Ribbon.Library.Actions.OpenWithExplorer-Medium {<br />
<span style="white-space: pre;"> </span>DISPLAY: none<br />
}<br />
</style>Ravi Kumar Rapoluhttp://www.blogger.com/profile/05910385532516729523noreply@blogger.com0tag:blogger.com,1999:blog-8686838250388647615.post-35416323210259628952017-11-17T10:51:00.001-05:002017-11-17T10:59:31.665-05:00Unlocked -Checked-In files in sharepointGood article:<br />
https://www.codeproject.com/Articles/93965/Force-SharePoint-Document-Unlocked-Checked-In<br />
<br />
OR<br />
<br />
<br />
<div style="background-color: white; border: 0px; clear: both; color: #444444; font-family: "Segoe UI", Segoe, "Helvetica Neue", "Lucida Grande", Arial, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;">
<strong style="border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">Using POWERSHELL</strong></div>
<div style="background-color: white; border: 0px; clear: both; color: #444444; font-family: "Segoe UI", Segoe, "Helvetica Neue", "Lucida Grande", Arial, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;">
You can unlock it programmatically!</div>
<div style="background-color: white; border: 0px; clear: both; color: #444444; font-family: "Segoe UI", Segoe, "Helvetica Neue", "Lucida Grande", Arial, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;">
There is no UI to unlock the locked files - as we do have for Check-in Checked-out files. So, Here is my solution to unlock the locked files using PowerShell.</div>
<pre class="default prettyprint prettyprinted" style="background-color: #eff0f1; border: 0px; color: #393318; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;"><span class="typ" style="border: 0px; color: #2b91af; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">Add</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">-</span><span class="typ" style="border: 0px; color: #2b91af; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">PSSnapin</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"> microsoft</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">sharepoint</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">powershell </span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">-</span><span class="typ" style="border: 0px; color: #2b91af; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">ErrorAction</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="typ" style="border: 0px; color: #2b91af; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">SilentlyContinue</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="com" style="border: 0px; color: #858c93; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">#Variables for Web and File URLs</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
$WebURL </span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">=</span><span class="str" style="border: 0px; color: #7d2727; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">"http://intranet.crescent.com/support/"</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
$FileURL </span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">=</span><span class="str" style="border: 0px; color: #7d2727; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">"http://intranet.crescent.com/support/T1Support/Reports/ServiceTickets.xlsx"</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="com" style="border: 0px; color: #858c93; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">#Get Web and File Objects</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
$web </span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">=</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="typ" style="border: 0px; color: #2b91af; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">Get</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">-</span><span class="typ" style="border: 0px; color: #2b91af; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">SPWeb</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"> $WebURL
$File </span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">=</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"> $web</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="typ" style="border: 0px; color: #2b91af; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">GetFile</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">(</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">$FileURL</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">)</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="com" style="border: 0px; color: #858c93; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">#Check if File is locked</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="kwd" style="border: 0px; color: #101094; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">if</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">(</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">$File</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="typ" style="border: 0px; color: #2b91af; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">LockId</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">-</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">ne $null</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">)</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">{</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="typ" style="border: 0px; color: #2b91af; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">Write</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">-</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">host </span><span class="str" style="border: 0px; color: #7d2727; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">"File is Loked out by:"</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"> $File</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="typ" style="border: 0px; color: #2b91af; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">LockedByUser</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="typ" style="border: 0px; color: #2b91af; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">LoginName</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="typ" style="border: 0px; color: #2b91af; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">Write</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">-</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">host </span><span class="str" style="border: 0px; color: #7d2727; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">"File Lock Type: "</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">$file</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="typ" style="border: 0px; color: #2b91af; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">LockType</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="typ" style="border: 0px; color: #2b91af; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">Write</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">-</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">host </span><span class="str" style="border: 0px; color: #7d2727; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">"File Locked On: "</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">$file</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="typ" style="border: 0px; color: #2b91af; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">LockedDate</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="typ" style="border: 0px; color: #2b91af; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">Write</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">-</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">host </span><span class="str" style="border: 0px; color: #7d2727; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">"File Lock Expires on: "</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">$file</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="typ" style="border: 0px; color: #2b91af; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">LockExpires</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="com" style="border: 0px; color: #858c93; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">#To Release the lock, Uncomment below lines:</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="com" style="border: 0px; color: #858c93; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">#$File.ReleaseLock($File.LockId)</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="com" style="border: 0px; color: #858c93; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">#Write-host "Released the lock!" </span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">}</span></code></pre>
--------------------------------------------------------------------------------------<br />
<br />
<h2 style="background-color: white; color: #ff9900; font-family: "Segoe UI", Arial, sans-serif; font-size: 29px; font-weight: 200; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px;">
Introduction</h2>
<div style="background-color: white; color: #111111; font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: normal;">
SharePoint places locks on files in document libraries when you check them out or open them. Sometimes the user's PC crashes, or they lose their internet connection, or solar flares hit the server room, and the lock cannot be released no matter how hard an admin tries. SharePoint calls this the <code style="border: 0px; color: #990000; font-family: Consolas, "Courier New", Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;">CheckOutStatus</code> which, for this article, I will call a lock since that is effectively what the status is describing.</div>
<div style="background-color: white; color: #111111; font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: normal;">
<a href="http://glorix.blogspot.com/2006/09/sharepoint-2003-unlocking-longterm.html" style="border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration-line: none;">Some</a> have already written code in a console application to force a check-in of the document. But it only works for long-term locks (check outs). A short-term lock is placed on the document when it's not checked out but the client application is locking it. If, for reasons explained in the Background section, the short-term lock isn't released, you either have to reboot the server or wait until the lock's expiration.</div>
<div style="background-color: white; color: #111111; font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: normal;">
The client application might renew the checkout's expiration time; for example, Office programs renew locks in 10 minute intervals. If the client program doesn't renew the lock, SharePoint is supposed to release it. However, if the client application crashes or a couple other scenarios play out, people end up waiting hours or even days for their document to be unlocked. And to my knowledge, there is <strong style="border: 0px; margin: 0px; padding: 0px;">no way</strong> to unlock a short-term lock through the API (probably by design).</div>
<div style="background-color: white; color: #111111; font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: normal;">
Using this application, you can unlock long-term and short-term locks quickly and easily.</div>
<h2 style="background-color: white; color: #ff9900; font-family: "Segoe UI", Arial, sans-serif; font-size: 29px; font-weight: 200; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px;">
Background</h2>
<div style="background-color: white; color: #111111; font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: normal;">
You may want to read <a href="http://blogit.create.pt/blogs/andrevala/archive/2007/09/21/WSS-Tip-_2300_17_3A00_-Testing-if-an-Office-Document-is-Open.aspx" style="border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration-line: none;">this blog post</a> on SharePoint lock types. It does a great job of describing checkout statuses and when they're applied.</div>
<div style="background-color: white; color: #111111; font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: normal;">
A word on short-term locks:</div>
<div style="background-color: white; color: #111111; font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: normal;">
Sometimes when trying to check out a document, they will get an error saying "The file [filename] is checked out or locked for editing by [username]"; if your authentication cookie expired, sometimes [username] is you! This error is well documented by Microsoft <a href="http://support.microsoft.com/kb/899709/en-us" style="border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration-line: none;">here</a>, but the only workaround is to sit and wait for SharePoint to unlock it, which is supposed to take 10 minutes, but sometimes takes hours or days!</div>
<div style="background-color: white; color: #111111; font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: normal;">
As explained in the KB article, this happens when you try to edit the document in the client program and then the program crashes. Also, I've found that this happens when using WebDAV (Explorer) view to open documents without checking them out. It can also happen through the web site if you don't check out the document before editing it.</div>
<div style="background-color: white; color: #111111; font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: normal;">
Normally, you can close the client application and the short-term lock gets released, but sometimes, especially if authentication cookies expire or the application crashes, there are problems, and the lock isn't released. Or maybe that naughty user opened the document without checking it out and then went to lunch, then there's no way to force it free if you can't get into their computer! Even powering off the computer doesn't work sometimes.</div>
<div style="background-color: white; color: #111111; font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: normal;">
I've seen this cause strange things. When you try to check out a document, you might get an error saying "The file [filename] is not checked out."!! Well duh, that's why I'm trying to check it out...I don't fully understand that one, but I think SharePoint is trying to check out the document, realizes it has a <code style="border: 0px; color: #990000; font-family: Consolas, "Courier New", Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;">CheckOutStatus</code> of <code style="border: 0px; color: #990000; font-family: Consolas, "Courier New", Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;">ShortTerm</code>, and instead tries to check it in (speculation).</div>
<h2 style="background-color: white; color: #ff9900; font-family: "Segoe UI", Arial, sans-serif; font-size: 29px; font-weight: 200; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px;">
Using the Code</h2>
<div style="background-color: white; color: #111111; font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: normal;">
You must run this code from the SharePoint server since it uses the SharePoint object model and not Web Services. When you open the program, you just enter the URL of the site, including the site collection, the name of the document library (as shown in the URL, not the display name), the full file name of the document, and click "Find" to find the document and get the checkout status information on it.</div>
<div style="background-color: white; color: #111111; font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: normal;">
Here's the code:</div>
<div class="pre-action-link" id="premain307879" style="background-color: white; border: 0px; color: #999999; font-family: "Segoe UI", Arial, sans-serif; font-size: 11px; margin: 0px; padding: 0px; position: relative; text-align: right; width: 700px;">
<span id="prehide307879" style="border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;">Hide</span> <span id="preShrink307879" style="border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;">Shrink</span> <img id="preimg307879" src="https://www.codeproject.com/images/arrow-up-16.png" style="border: 0px; height: 16px; margin: 0px; max-width: 100%; opacity: 0.5; overflow: auto; padding: 0px; transition: opacity 0.1s linear 0ms; vertical-align: text-top; width: 16px;" /> <span id="copycode307879" style="border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;">Copy Code</span></div>
<pre class="notranslate" id="pre307879" lang="cs" processed="true" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: Consolas, "Courier New", Courier, mono; font-size: 9pt; font-stretch: normal; line-height: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-break: break-word; word-wrap: break-word;"><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">private</span> <span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">void</span> FindButton_Click(<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">object</span> sender, EventArgs e)
{
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">this</span>.StatusField.Text = &quot;Searching...&quot; + Environment.NewLine;
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">this</span>.StatusField.Refresh();
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">this</span>.LockStatusField.Text = <span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">string</span>.Empty;
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">try</span>
{
Uri siteUri = <span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">new</span> Uri(<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">this</span>.SiteUrlField.Text.Trim());
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">using</span> (SPWeb web = <span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">new</span> SPSite(siteUri.ToString()).OpenWeb())
{
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">bool</span> libraryFound = <span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">false</span>;
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">foreach</span> (SPList list <span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">in</span> web.Lists)
{
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">if</span> (list.BaseType == SPBaseType.DocumentLibrary && <span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">string</span>.Equals(
list.RootFolder.Url, <span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">this</span>.libraryField.Text.Trim(),
StringComparison.OrdinalIgnoreCase))
{
libraryFound = <span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">true</span>;
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">this</span>.statusField.Text += <span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">Found library. Searching for document..."</span> +
Environment.NewLine;
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">this</span>.statusField.Refresh();
SPQuery NameQuery = <span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">new</span> SPQuery();
NameQuery.Query =
<span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;"><Where><Eq><FieldRef Name='FileLeafRef' /><Value Type='File'>"</span> +
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">this</span>.filenameField.Text.Trim() + <span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;"></Value></Eq></Where>"</span>;
NameQuery.RowLimit = <span class="code-digit" style="border: 0px; color: navy; margin: 0px; padding: 0px;">1</span>;
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">if</span> (recursiveField.Checked)
NameQuery.ViewAttributes = <span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">@"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">Scope=""Recursive"""</span>;
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">if</span> (recursiveAllField.Checked)
NameQuery.ViewAttributes = <span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">@"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">Scope=""RecursiveAll"""</span>;
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">if</span> (!string.IsNullOrEmpty(folderNameField.Text.Trim()))
{
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">try</span>
{
SPFolder parentFolder = list.ParentWeb.GetFolder(
siteUri.ToString() + <span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">/"</span> + list.RootFolder.Url + <span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">/"</span> +
folderNameField.Text.Trim());
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">this</span>.statusField.Text += <span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">Found folder."</span> + Environment.NewLine;
NameQuery.Folder = parentFolder;
}
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">catch</span> (Exception)
{
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">this</span>.statusField.Text += <span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">Could not find folder: '"</span> +
siteUri.ToString() + <span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">/"</span> + list.RootFolder.Url + <span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">/"</span> +
folderNameField.Text.Trim();
}
}
SPListItemCollection documents = list.GetItems(NameQuery);
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">if</span> (documents.Count <span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">></span> <span class="code-digit" style="border: 0px; color: navy; margin: 0px; padding: 0px;">0</span> && documents[0].Name.ToLower() ==
filenameField.Text.Trim().ToLower())
{
SPListItem item = documents[0];
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">this</span>.statusField.Text += <span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">Found document at: '"</span> + item.Url + <span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">'"</span> +
Environment.NewLine;
ReportItemCheckoutStatus(item);
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">if</span> (item.File.CheckOutStatus != SPFile.SPCheckOutStatus.None)
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">this</span>.unlockButton.Enabled = <span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">true</span>;
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">else</span>
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">this</span>.unlockButton.Enabled = <span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">false</span>;
itemToUnlock = item;
}
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">else</span>
{
statusField.Text += <span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">Could not find document: '"</span> +
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">this</span>.filenameField.Text.Trim() + <span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">'."</span>;
}
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">break</span>;
}
}
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">if</span> (libraryFound == <span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">false</span>)
StatusField.Text += &quot;Could not find library: <span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">'</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">&quot; +
this.LibraryField.Text.Trim() + &quot;'</span>.&quot;;
}
}
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">catch</span> (Exception ex)
{
StatusField.Text += Environment.NewLine + &quot;Error occurred. Details: &quot; +
Environment.NewLine + ex.Message + Environment.NewLine + ex.StackTrace;
}
}</pre>
<div style="background-color: white; color: #111111; font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: normal;">
It finds the <code style="border: 0px; color: #990000; font-family: Consolas, "Courier New", Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;">SPWeb</code> from the URL, loops through all the lists in the web (I've found looping is faster than using <code style="border: 0px; color: #990000; font-family: Consolas, "Courier New", Courier, mono; font-size: 11pt; font-stretch: normal; line-height: normal; margin: 0px; padding: 0px;">GetList()</code>), builds a CAML query to find the document, and if the document is found, it reports the checkout status information on it.</div>
<div style="background-color: white; color: #111111; font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: normal;">
The "Unlock" button does different things depending on whether it's a long-term or short-term lock. If it's a long-term lock, it just forces the document to be checked back in. If it's a short-term lock, it has to go to the content database.</div>
<div style="background-color: white; color: #111111; font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: normal;">
<strong style="border: 0px; margin: 0px; padding: 0px;">Disclaimer</strong>: Directly modifying the SharePoint content database is not recommended or supported by Microsoft (but works well in this case).</div>
<div style="background-color: white; color: #111111; font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: normal;">
If the file has a short-term lock, the only solution I could find to release it is by directly modifying the content database. It does a simple update to the <em style="border: 0px; margin: 0px; padding: 0px;">CheckoutExpires</em> column in the <em style="border: 0px; margin: 0px; padding: 0px;">AllDocs</em> table for the SharePoint document:</div>
<div class="pre-action-link" id="premain717713" style="background-color: white; border: 0px; color: #999999; font-family: "Segoe UI", Arial, sans-serif; font-size: 11px; margin: 0px; padding: 0px; position: relative; text-align: right; width: 700px;">
<span id="prehide717713" style="border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;">Hide</span> <span id="preShrink717713" style="border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;">Shrink</span> <img id="preimg717713" src="https://www.codeproject.com/images/arrow-up-16.png" style="border: 0px; height: 16px; margin: 0px; max-width: 100%; opacity: 0.5; overflow: auto; padding: 0px; transition: opacity 0.1s linear 0ms; vertical-align: text-top; width: 16px;" /> <span id="copycode717713" style="border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;">Copy Code</span></div>
<pre class="notranslate" id="pre717713" lang="cs" processed="true" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: Consolas, "Courier New", Courier, mono; font-size: 9pt; font-stretch: normal; line-height: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-break: break-word; word-wrap: break-word;"><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">private</span> <span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">void</span> UnlockButton_Click(<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">object</span> sender, EventArgs e)
{
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">if</span> (itemToUnlock == <span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">null</span>)
{
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">this</span>.StatusField.Text += <span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">No file to unlock!"</span> + Environment.NewLine;
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">return</span>;
}
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">this</span>.StatusField.Text = <span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">Unlocking..."</span> + Environment.NewLine;
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">this</span>.StatusField.Refresh();
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">if</span> (itemToUnlock.File.CheckOutStatus == SPFile.SPCheckOutStatus.ShortTerm)
{
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">if</span> (<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">string</span>.IsNullOrEmpty(itemToUnlock.UniqueId.ToString()))
{
StatusField.Text += <span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">File has a short-term lock and "</span> +
<span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">UniqueId cannot be determined for database update."</span>;
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">return</span>;
}
StatusField.Text += <span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">Unsupported and not recommended WARNING."</span> + Environment.NewLine;
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">string</span> message = <span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">WARNING!! The selected file has a short-term "</span> +
<span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">lock on it. It should be released in 10 minutes. "</span> +
<span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">You can force the item to be unlocked by setting "</span> +
<span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">the checkout to expire immediately in the content database. "</span> +
<span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">Modifying the database is not supported by Microsoft "</span> +
<span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">and is not recommended. Do you wish to cancel?"</span>;
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">if</span> (MessageBox.Show(message, <span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">WARNING"</span>,
MessageBoxButtons.YesNoCancel, MessageBoxIcon.Warning,
MessageBoxDefaultButton.Button1) == DialogResult.No)
{
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">try</span>
{
UpdateItemCheckoutExpiration(itemToUnlock);
}
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">catch</span> (Exception ex)
{
StatusField.Text += Environment.NewLine +
<span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">Error occurred. Details: "</span> +
Environment.NewLine + ex.Message +
Environment.NewLine + ex.StackTrace;
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">return</span>;
}
StatusField.Text += <span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">Database updated. File should now be unlocked."</span>;
<span class="code-comment" style="border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;">//</span><span class="code-comment" style="border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;"> wait 2 seconds for the file to get unlocked</span>
System.Threading.Thread.Sleep(<span class="code-digit" style="border: 0px; color: navy; margin: 0px; padding: 0px;">2000</span>);
ReportItemCheckoutStatus(itemToUnlock);
}
}
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">else</span> <span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">if</span> (itemToUnlock.File.CheckOutStatus != SPFile.SPCheckOutStatus.None)
{ <span class="code-comment" style="border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;">//</span><span class="code-comment" style="border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;"> long-term lock, check it in manually</span>
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">try</span>
{
itemToUnlock.File.CheckIn(<span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">Forced Checkin"</span>);
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">this</span>.StatusField.Text += <span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">File checked in."</span> + Environment.NewLine;
ReportItemCheckoutStatus(itemToUnlock);
}
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">catch</span> (Exception ex)
{
StatusField.Text += Environment.NewLine + <span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">Error occurred. Details: "</span> +
Environment.NewLine + ex.Message + Environment.NewLine + ex.StackTrace;
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">return</span>;
}
}
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">else</span>
{
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">this</span>.StatusField.Text += <span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">File doesn't have a lock."</span> + Environment.NewLine;
}
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">if</span> (itemToUnlock.File.CheckOutStatus == SPFile.SPCheckOutStatus.None)
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">this</span>.UnlockButton.Enabled = <span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">false</span>;
}</pre>
<div style="background-color: white; color: #111111; font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: normal;">
Here's the code to update the content database:</div>
<div class="pre-action-link" id="premain337378" style="background-color: white; border: 0px; color: #999999; font-family: "Segoe UI", Arial, sans-serif; font-size: 11px; margin: 0px; padding: 0px; position: relative; text-align: right; width: 700px;">
<span id="prehide337378" style="border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;">Hide</span> <span id="preShrink337378" style="border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;">Shrink</span> <img id="preimg337378" src="https://www.codeproject.com/images/arrow-up-16.png" style="border: 0px; height: 16px; margin: 0px; max-width: 100%; opacity: 0.5; overflow: auto; padding: 0px; transition: opacity 0.1s linear 0ms; vertical-align: text-top; width: 16px;" /> <span id="copycode337378" style="border: 0px; cursor: pointer; margin: 0px; padding: 0px; transition: color 0.1s linear;">Copy Code</span></div>
<pre class="notranslate" id="pre337378" lang="cs" processed="true" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: Consolas, "Courier New", Courier, mono; font-size: 9pt; font-stretch: normal; line-height: normal; overflow: auto; padding: 6px; tab-size: 4; white-space: pre-wrap; word-break: break-word; word-wrap: break-word;"><span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">private</span> <span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">void</span> UpdateItemCheckoutExpiration(SPListItem item)
{
SqlConnection contentDatabaseConnection = <span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">null</span>;
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">try</span>
{
contentDatabaseConnection = <span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">new</span> SqlConnection(
item.Web.Site.ContentDatabase.DatabaseConnectionString);
contentDatabaseConnection.Open();
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">string</span> UpdateCommandText = <span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">string</span>.Format(<span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">UPDATE dbo.AllDocs SET "</span> +
<span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">"</span><span class="code-string" style="border: 0px; color: purple; margin: 0px; padding: 0px;">CheckoutExpires = '{0:yyyy-MM-dd HH:mm:ss:fff}' WHERE Id = '{1}'"</span>,
DateTime.Now.ToUniversalTime(), item.UniqueId.ToString());
SqlCommand UpdateCommand = <span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">new</span> SqlCommand(UpdateCommandText,
contentDatabaseConnection);
SqlDataAdapter contentDataAdapter = <span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">new</span> SqlDataAdapter();
contentDataAdapter.UpdateCommand = UpdateCommand;
contentDataAdapter.UpdateCommand.ExecuteNonQuery();
contentDatabaseConnection.Close();
}
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">catch</span> (Exception)
{
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">throw</span>;
}
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">finally</span>
{
<span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">if</span> (contentDatabaseConnection != <span class="code-keyword" style="border: 0px; color: blue; margin: 0px; padding: 0px;">null</span> &&
contentDatabaseConnection.State != ConnectionState.Closed)
contentDatabaseConnection.Close();
}
}</pre>
<h2 style="background-color: white; color: #ff9900; font-family: "Segoe UI", Arial, sans-serif; font-size: 29px; font-weight: 200; line-height: normal; margin: 20px 0px 11px; padding: 0px 0px 10px;">
Points of Interest</h2>
<div style="background-color: white; color: #111111; font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: normal;">
Microsoft's recommendation to simply "wait 10 minutes" for the this error to be fixed is ridiculous, and many times doesn't work. I've spent nearly an entire day looking for ways to fix this, and I hope I save someone out there the frustration and time on this one.</div>
Ravi Kumar Rapoluhttp://www.blogger.com/profile/05910385532516729523noreply@blogger.com0