tag:blogger.com,1999:blog-27351554185549591102024-02-18T20:55:22.092-08:00SharePoint Soreddy Manjunathhttp://www.blogger.com/profile/04248291203755179066noreply@blogger.comBlogger63125tag:blogger.com,1999:blog-2735155418554959110.post-16972542313146055682020-12-21T19:54:00.007-08:002020-12-22T05:45:54.741-08:00Rename SharePoint IIS WebSite URL<p> Updating SharePoint Web Application url involves couple of steps.</p><p>1. Identify zone which old Webapplication URL is referring to this can be achieved using Powershell or</p><p>through Central Admin of SharePoint.</p><p>Below is PowerShell Script to get zone of Webapplication let us say i have webapplication which is referring to Custom zone which needs to be update with new url then</p><p><br /></p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="http://soreddymanjunath.blogspot.com/2020/12/rename-sharepoint-iis-website-url.html" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="331" data-original-width="672" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzOuuRuipKWX4iJ5Sq7ifr6xWg3KNaBtGtBkxZJNdJGUlzpVPiQMKD8gf6iNqByAPo_Re0NefPWtxUvhxajI3URM3zw1PVwV534FZYDHuWlZE57pkqaO1K19qno8f-V5y-He80iBqrwiMP/s16000/image.png" /></a></div><br /><p></p><p class="MsoListParagraphCxSpFirst" style="line-height: 200%; mso-list: l0 level1 lfo1; text-indent: -18pt;"><!--[if !supportLists]--><span lang="EN-US" style="font-size: 12pt; line-height: 200%; mso-ansi-language: EN-US; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">1.<span style="font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-US" style="font-size: 12pt; line-height: 200%; mso-ansi-language: EN-US;">We see that its mapped with <b>Custom</b>
Zone, </span><span lang="EN-US" style="font-size: 12pt; line-height: 200%; text-indent: -18pt;">We need to update <b><a href="https://xyz.olddomain.com">https://xyz.olddomain.com</a> </b>to <a href="https://xyz.newdomain.com">https://xyz.<b>newdomain</b>.com</a> </span></p><p class="MsoListParagraphCxSpFirst" style="line-height: 200%; mso-list: l0 level1 lfo1; text-indent: -18pt;"><span lang="EN-US" style="line-height: 200%; text-indent: -18pt;"><span style="font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;"> </span><span style="font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;"> </span></span><span lang="EN-US" style="font-size: 12pt; line-height: 200%; text-indent: -18pt;">Set-SPAlternateURL -Identity </span><b style="font-size: 16px;"><a href="http://soreddymanjunath.blogspot.com/2020/12/rename-sharepoint-iis-website-url.html">https://xyz.olddomain.com</a> </b><span style="font-size: 12pt; text-indent: -18pt;">-Url </span><a href="https://xyz.newdomain"><span style="font-size: 16px;">https://xyz.</span><b style="font-size: 16px;">newdomain</b></a><span style="font-size: 16px;"><a href="http://soreddymanjunath.blogspot.com/2020/12/rename-sharepoint-iis-website-url.html">.com</a> </span><span style="font-size: 12pt; text-indent: -18pt;"> -Zone "Custom"</span></p><h3 style="text-align: left;"><b><span lang="EN-US">2. Update IIS Settings </span></b><b><span lang="EN-US">( Steps to be Performed in all Webfrontend (WebServer) Servers)<span style="color: red;"><o:p></o:p></span></span></b></h3><div><span lang="EN-US"> </span><span lang="EN-US" style="text-indent: -18pt;">1.<span style="font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;"> </span></span><b>Loginto your webserver and </b><span lang="EN-US" style="text-indent: -18pt;"><span style="font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;"> </span></span><span lang="EN-US" style="text-indent: -18pt;">Go to IIS </span><span lang="EN-US" style="font-family: Wingdings; text-indent: -18pt;">à</span><i style="text-indent: -18pt;"><span lang="EN-US">Edit</span></i><span lang="EN-US" style="text-indent: -18pt;"> </span><span lang="EN-US" style="font-family: Wingdings; text-indent: -18pt;">à</span><b style="text-indent: -18pt;"><span lang="EN-US">Bindings</span></b><span lang="EN-US" style="text-indent: -18pt;"> of
Internal URL to Change and update HostName to xyz.newdomain.com</span></div><p class="MsoNormal"><span lang="EN-US" style="text-indent: -18pt;"></span></p><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><img alt="" border="0" class="placeholder" id="6a5d7e7644296" src="https://www.blogger.com/img/transparent.gif" style="background-color: #d8d8d8; background-image: url('https://fonts.gstatic.com/s/i/materialiconsextended/insert_photo/v6/grey600-24dp/1x/baseline_insert_photo_grey600_24dp.png'); background-position: center; background-repeat: no-repeat; opacity: 0.6;" /></div><br /></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQdEINUnCofv497zUqe01vZPfBRTUM9TlQVKamm8hQFA9SeS3H-2MQNTGX_j5EgnDGRqEmshPzyy2yUVcZQ9ZID3FGolAEwK6yBVgrQSEdVYAhPfL5x5RiJON_kPZqmS3HInW15PKvOB12/s668/getZone.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="291" data-original-width="668" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQdEINUnCofv497zUqe01vZPfBRTUM9TlQVKamm8hQFA9SeS3H-2MQNTGX_j5EgnDGRqEmshPzyy2yUVcZQ9ZID3FGolAEwK6yBVgrQSEdVYAhPfL5x5RiJON_kPZqmS3HInW15PKvOB12/s16000/getZone.png" /></a></div><br /></div><br /><p></p><p class="MsoNormal"><span lang="EN-US" style="text-indent: -18pt;">Refresh the AppPool you should be able to see the changes new domain changes</span></p>Soreddy Manjunathhttp://www.blogger.com/profile/04248291203755179066noreply@blogger.com0tag:blogger.com,1999:blog-2735155418554959110.post-68970353098476200862019-05-16T07:57:00.002-07:002019-05-16T08:02:55.309-07:00SharePoint Online The attempted operation is prohibited because it exceeds the list view threshold enforced by the administrator<div dir="ltr" style="text-align: left;" trbidi="on">
<span id="goog_640975569"></span><a href="https://www.blogger.com/"></a><span id="goog_640975570"></span><br />
<h2 style="text-align: left;">
<span style="font-size: 13px;"><span style="font-family: "verdana" , sans-serif;"><a href="http://microsoft.sharepoint.spquerythrottledexception/">Microsoft.SharePoint.SPQueryThrottledException</a></span></span></h2>
<br />
<div style="text-align: left;">
<span style="font-family: "verdana" , sans-serif;">SharePoint Online Lists and library are capable of storing around 30 million </span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">items or files in a SharePoint list or library.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">In order to overcome the error <a href="http://soreddymanjunath.blogspot.com/2019/05/sharepoint-online-attempted-operation.html" target="_blank">listview threshold of 5000 items</a> , Create an index for the column</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">Below is the rest api query while i am trying to query a list which has 11,000 records and trying to filter with non indexed column which is throwing below error</span></div>
<div style="text-align: left;">
<span style="font-family: "verdana" , sans-serif;"><span style="background-color: white;"><span style="color: #2f2f2f;"><br /></span></span></span></div>
<div style="text-align: left;">
<span style="font-family: "verdana" , sans-serif;"><span style="background-color: white;"><span style="color: #2f2f2f;"><br /></span></span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGh3JkS80orJseypg9smYK5I3DW1q7XNJ_U-qojy8dxScdupYcqRWWaCdPySp8RgTCbQ-u0O2Q1UUSar2lJBKIIpS34aqIJoxT0i6iWgZNGImUwo5yu5Ka-VOH8ptLGvNlqjotbDUHChn6/s1600/ListThreshholdOnline.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="470" data-original-width="1410" height="213" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGh3JkS80orJseypg9smYK5I3DW1q7XNJ_U-qojy8dxScdupYcqRWWaCdPySp8RgTCbQ-u0O2Q1UUSar2lJBKIIpS34aqIJoxT0i6iWgZNGImUwo5yu5Ka-VOH8ptLGvNlqjotbDUHChn6/s640/ListThreshholdOnline.png" width="640" /></a></div>
<div style="text-align: left;">
<span style="font-family: "verdana" , sans-serif;"><span style="background-color: white;"><span style="color: #2f2f2f;"><br /></span></span></span></div>
<div style="text-align: left;">
<span style="font-family: "verdana" , sans-serif;"><span style="background-color: white;"><span style="color: #2f2f2f;">In Order to overcome to above error, i went ahead and created an index for the column which i am querying </span></span></span></div>
<div style="text-align: left;">
<span style="font-family: "verdana" , sans-serif;"><span style="background-color: white;"><span style="color: #2f2f2f;"><br /></span></span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbQaPTKoUiEZsHlyh37sISr95tOL2PD68gcQAWsvOV-umGaG_1_f4Jn7w_rb56i8BYNiVvX1d1MleDGAfbTj9YC4ACmRwaEt59xbVIeRbAQkkuSgeeBiTIlWW57zMONsF5nqXvOPjVJPp_/s1600/listsettings.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="550" data-original-width="485" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbQaPTKoUiEZsHlyh37sISr95tOL2PD68gcQAWsvOV-umGaG_1_f4Jn7w_rb56i8BYNiVvX1d1MleDGAfbTj9YC4ACmRwaEt59xbVIeRbAQkkuSgeeBiTIlWW57zMONsF5nqXvOPjVJPp_/s400/listsettings.png" width="352" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBT8ZT6mwUdyB9FyW9FHnu4Huq7_CVekTRFzN_7D9GsRjotW7EnM8jjiu4tHCF7MVgasHTlClxpd-yc7jocGMTp8NHwQHUFdF7bSsoebAcqzjgkG77zZo9oVk_kUU7kiwpVVMx2rLM1JgB/s1600/indexedcolumns.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="208" data-original-width="635" height="104" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBT8ZT6mwUdyB9FyW9FHnu4Huq7_CVekTRFzN_7D9GsRjotW7EnM8jjiu4tHCF7MVgasHTlClxpd-yc7jocGMTp8NHwQHUFdF7bSsoebAcqzjgkG77zZo9oVk_kUU7kiwpVVMx2rLM1JgB/s320/indexedcolumns.png" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<img border="0" data-original-height="454" data-original-width="1030" height="176" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQAjooDhVQeOpcBuArLm2uB6_Aea_jHQTJTzBiie5_QAgDd3ULpUtUUY8VxUB2NtLclhEp3L5Aln_ZOphhQPn6VrpXkvXTxtHi9kPyebCP5nmgO7eTBOOyzrMldZeElrGoMqHvE-xxZwNZ/s400/newindex.png" width="400" /><span id="goog_640975578"></span><a href="https://www.blogger.com/"></a><span id="goog_640975579"></span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<img border="0" data-original-height="462" data-original-width="1111" height="166" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9FkVceuJoxaAS9l4Nf9MirVxs8B1bgHqsml-P8NHd_UdXJvou1CB0mZjLC25p5nsO5tC_ddw1NfxNc4yrO19RvUgbp8Q6-dDD5cBpovRm9rKT7FQ7-GvzXgrGXyUbacKXnxiNIrnwnmzv/s400/newindexcolum.png" width="400" /></div>
<div style="text-align: left;">
<span style="font-family: "verdana" , sans-serif;"><span style="background-color: white;"><span style="color: #2f2f2f;"><br /></span></span></span></div>
<div style="text-align: left;">
<span style="font-family: "verdana" , sans-serif;"><span style="background-color: white;"><span style="color: #2f2f2f;"><br /></span></span></span></div>
<div class="line" style="font-family: monospace; font-size: 13px;">
<br /></div>
<div class="line" style="font-family: monospace; font-size: 13px;">
<br /></div>
</div>
Soreddy Manjunathhttp://www.blogger.com/profile/04248291203755179066noreply@blogger.com0tag:blogger.com,1999:blog-2735155418554959110.post-84334579868642954432019-04-30T05:30:00.001-07:002019-04-30T06:01:34.731-07:00SharePoint Online Update List item <div dir="ltr" style="text-align: left;" trbidi="on">
<h3 style="text-align: left;">
<span style="font-family: "verdana" , sans-serif;"><a href="https://soreddymanjunath.blogspot.com/2019/04/sharepoint-online-update-list-item.html" target="_blank">SharePoint Online Update Rich Text Column html</a></span></h3>
We had a business requirement to <a href="https://soreddymanjunath.blogspot.com/2019/04/sharepoint-online-update-list-item.html" target="_blank">remove/update the list items</a> by removing unnecessary styles added at list item<br />
<br />
Below is the code snippet which will loop through all the items and removes strings ex: data between style tags i.e all the styles between <style> </style><br />
<br />
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;">
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="color: blue; font-family: "Arial",sans-serif;">cls</span><span style="font-family: Arial, sans-serif;"><o:p></o:p></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="color: blue; font-family: "Arial",sans-serif;">Add-Type</span><span style="font-family: Arial, sans-serif;"> </span><span style="color: navy; font-family: "Arial",sans-serif;">-Path</span><span style="font-family: Arial, sans-serif;"> </span><span style="color: darkred; font-family: "Arial",sans-serif;">"C:\Program
Files\Common Files\Microsoft Shared\Web Server
Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll"</span><span style="font-family: Arial, sans-serif;"><o:p></o:p></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="color: blue; font-family: "Arial",sans-serif;">Add-Type</span><span style="font-family: Arial, sans-serif;"> </span><span style="color: navy; font-family: "Arial",sans-serif;">-Path</span><span style="font-family: Arial, sans-serif;"> </span><span style="color: darkred; font-family: "Arial",sans-serif;">"C:\Program
Files\Common Files\Microsoft Shared\Web Server
Extensions\16\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"</span><span style="font-family: Arial, sans-serif;"><o:p></o:p></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<br /></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="color: #a82d00; font-family: "Arial",sans-serif;">$UserName</span><span style="color: dimgrey; font-family: "Arial",sans-serif;">=</span><span style="font-family: Arial, sans-serif;"> </span><span style="color: darkred; font-family: "Arial",sans-serif;">"username@companyname.com"</span><span style="font-family: Arial, sans-serif;"><o:p></o:p></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="color: #a82d00; font-family: "Arial",sans-serif;">$Password</span><span style="font-family: Arial, sans-serif;"> </span><span style="color: dimgrey; font-family: "Arial",sans-serif;">=</span><span style="font-family: Arial, sans-serif;"> </span><span style="color: darkred; font-family: "Arial",sans-serif;">"pwd"</span><span style="font-family: Arial, sans-serif;"><o:p></o:p></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="color: #a82d00; font-family: "Arial",sans-serif;">$credentials</span><span style="color: dimgrey; font-family: "Arial",sans-serif;">=</span><span style="font-family: Arial, sans-serif;"> </span><span style="color: blue; font-family: "Arial",sans-serif;">New-Object</span><span style="font-family: Arial, sans-serif;"> </span><span style="color: blueviolet; font-family: "Arial",sans-serif;">Microsoft.SharePoint.Client.SharePointOnlineCredentials</span><span style="font-family: Arial, sans-serif;">(</span><span style="color: #a82d00; font-family: "Arial",sans-serif;">$UserName</span><span style="color: dimgrey; font-family: "Arial",sans-serif;">,</span><span style="font-family: Arial, sans-serif;">(</span><span style="color: blue; font-family: "Arial",sans-serif;">ConvertTo-SecureString</span><span style="font-family: Arial, sans-serif;"> </span><span style="color: #a82d00; font-family: "Arial",sans-serif;">$Password</span><span style="font-family: Arial, sans-serif;"> </span><span style="color: navy; font-family: "Arial",sans-serif;">-AsPlainText</span><span style="font-family: Arial, sans-serif;"> </span><span style="color: navy; font-family: "Arial",sans-serif;">-Force</span><span style="font-family: Arial, sans-serif;">))<o:p></o:p></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="color: #a82d00; font-family: "Arial",sans-serif;">$webURL</span><span style="color: dimgrey; font-family: "Arial",sans-serif;">=</span><span style="color: darkred; font-family: "Arial",sans-serif;">"https://companyname.sharepoint.com/teams/sitename/"</span><span style="font-family: Arial, sans-serif;"><o:p></o:p></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="color: #a82d00; font-family: "Arial",sans-serif;">$ctx</span><span style="color: dimgrey; font-family: "Arial",sans-serif;">=</span><span style="font-family: Arial, sans-serif;"> </span><span style="color: blue; font-family: "Arial",sans-serif;">New-Object</span><span style="font-family: Arial, sans-serif;"> </span><span style="color: blueviolet; font-family: "Arial",sans-serif;">Microsoft.SharePoint.Client.ClientContext</span><span style="font-family: Arial, sans-serif;">(</span><span style="color: #a82d00; font-family: "Arial",sans-serif;">$webURL</span><span style="font-family: Arial, sans-serif;">)<o:p></o:p></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="color: #a82d00; font-family: "Arial",sans-serif;">$ctx</span><span style="color: dimgrey; font-family: "Arial",sans-serif;">.</span><span style="font-family: Arial, sans-serif;">Credentials </span><span style="color: dimgrey; font-family: "Arial",sans-serif;">=</span><span style="font-family: Arial, sans-serif;"> </span><span style="color: #a82d00; font-family: "Arial",sans-serif;">$credentials</span><span style="font-family: Arial, sans-serif;"><o:p></o:p></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="color: #a82d00; font-family: "Arial",sans-serif;">$list</span><span style="font-family: Arial, sans-serif;"> </span><span style="color: dimgrey; font-family: "Arial",sans-serif;">=</span><span style="font-family: Arial, sans-serif;"> </span><span style="color: #a82d00; font-family: "Arial",sans-serif;">$ctx</span><span style="color: dimgrey; font-family: "Arial",sans-serif;">.</span><span style="font-family: Arial, sans-serif;">web</span><span style="color: dimgrey; font-family: "Arial",sans-serif;">.</span><span style="font-family: Arial, sans-serif;">Lists</span><span style="color: dimgrey; font-family: "Arial",sans-serif;">.</span><span style="font-family: Arial, sans-serif;">GetByTitle(</span><span style="color: darkred; font-family: "Arial",sans-serif;">"Resources"</span><span style="font-family: Arial, sans-serif;">)<o:p></o:p></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="color: #a82d00; font-family: "Arial",sans-serif;">$listItems</span><span style="font-family: Arial, sans-serif;"> </span><span style="color: dimgrey; font-family: "Arial",sans-serif;">=</span><span style="font-family: Arial, sans-serif;"> </span><span style="color: #a82d00; font-family: "Arial",sans-serif;">$list</span><span style="color: dimgrey; font-family: "Arial",sans-serif;">.</span><span style="font-family: Arial, sans-serif;">GetItems(</span><span style="color: dimgrey; font-family: "Arial",sans-serif;">[</span><span style="color: #006161; font-family: "Arial",sans-serif;">Microsoft.SharePoint.Client.CamlQuery</span><span style="color: dimgrey; font-family: "Arial",sans-serif;">]::</span><span style="font-family: Arial, sans-serif;">CreateAllItemsQuery())<o:p></o:p></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="color: #a82d00; font-family: "Arial",sans-serif;">$ctx</span><span style="color: dimgrey; font-family: "Arial",sans-serif;">.</span><span style="font-family: Arial, sans-serif;">load(</span><span style="color: #a82d00; font-family: "Arial",sans-serif;">$listItems</span><span style="font-family: Arial, sans-serif;">)<o:p></o:p></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="color: #a82d00; font-family: "Arial",sans-serif;">$ctx</span><span style="color: dimgrey; font-family: "Arial",sans-serif;">.</span><span style="font-family: Arial, sans-serif;">executeQuery()<o:p></o:p></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<br /></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="color: darkblue; font-family: "Arial",sans-serif;">foreach</span><span style="font-family: Arial, sans-serif;">(</span><span style="color: #a82d00; font-family: "Arial",sans-serif;">$item</span><span style="font-family: Arial, sans-serif;"> </span><span style="color: darkblue; font-family: "Arial",sans-serif;">in</span><span style="font-family: Arial, sans-serif;"> </span><span style="color: #a82d00; font-family: "Arial",sans-serif;">$listItems</span><span style="font-family: Arial, sans-serif;">)<o:p></o:p></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="font-family: Arial, sans-serif;">{<o:p></o:p></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<br /></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="font-family: Arial, sans-serif;"> </span><span style="color: darkblue; font-family: "Arial",sans-serif;">try</span><span style="font-family: Arial, sans-serif;"><o:p></o:p></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="font-family: Arial, sans-serif;"> {<o:p></o:p></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="font-family: Arial, sans-serif;"> </span><span style="color: #a82d00; font-family: "Arial",sans-serif;">$startIndex</span><span style="color: dimgrey; font-family: "Arial",sans-serif;">=</span><span style="color: #a82d00; font-family: "Arial",sans-serif;">$item</span><span style="color: dimgrey; font-family: "Arial",sans-serif;">[</span><span style="color: darkred; font-family: "Arial",sans-serif;">"Overview_x0020_Text0"</span><span style="color: dimgrey; font-family: "Arial",sans-serif;">].</span><span style="font-family: Arial, sans-serif;">IndexOf(</span><span style="color: darkred; font-family: "Arial",sans-serif;">"<style>"</span><span style="font-family: Arial, sans-serif;">)<o:p></o:p></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="font-family: Arial, sans-serif;"> </span><span style="color: #a82d00; font-family: "Arial",sans-serif;">$endIndex</span><span style="color: dimgrey; font-family: "Arial",sans-serif;">=</span><span style="color: #a82d00; font-family: "Arial",sans-serif;">$item</span><span style="color: dimgrey; font-family: "Arial",sans-serif;">[</span><span style="color: darkred; font-family: "Arial",sans-serif;">"Overview_x0020_Text0"</span><span style="color: dimgrey; font-family: "Arial",sans-serif;">].</span><span style="font-family: Arial, sans-serif;">IndexOf(</span><span style="color: darkred; font-family: "Arial",sans-serif;">"</style>"</span><span style="font-family: Arial, sans-serif;">)<o:p></o:p></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="font-family: Arial, sans-serif;"> </span><span style="color: darkblue; font-family: "Arial",sans-serif;">If</span><span style="font-family: Arial, sans-serif;">(</span><span style="color: #a82d00; font-family: "Arial",sans-serif;">$startIndex</span><span style="font-family: Arial, sans-serif;"> </span><span style="color: dimgrey; font-family: "Arial",sans-serif;">-gt</span><span style="font-family: Arial, sans-serif;"> </span><span style="color: purple; font-family: "Arial",sans-serif;">0</span><span style="font-family: Arial, sans-serif;">)<o:p></o:p></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="font-family: Arial, sans-serif;"> {<o:p></o:p></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<br /></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="font-family: Arial, sans-serif;"> </span><span style="color: #a82d00; font-family: "Arial",sans-serif;">$newitem</span><span style="color: dimgrey; font-family: "Arial",sans-serif;">=</span><span style="color: #a82d00; font-family: "Arial",sans-serif;">$item</span><span style="color: dimgrey; font-family: "Arial",sans-serif;">[</span><span style="color: darkred; font-family: "Arial",sans-serif;">"Overview_x0020_Text0"</span><span style="color: dimgrey; font-family: "Arial",sans-serif;">].</span><span style="font-family: Arial, sans-serif;">Remove(</span><span style="color: #a82d00; font-family: "Arial",sans-serif;">$startIndex</span><span style="color: dimgrey; font-family: "Arial",sans-serif;">,</span><span style="color: #a82d00; font-family: "Arial",sans-serif;">$endIndex</span><span style="color: dimgrey; font-family: "Arial",sans-serif;">+</span><span style="color: purple; font-family: "Arial",sans-serif;">8</span><span style="font-family: Arial, sans-serif;">)<o:p></o:p></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="font-family: Arial, sans-serif;"> </span><span style="color: #a82d00; font-family: "Arial",sans-serif;">$item</span><span style="color: dimgrey; font-family: "Arial",sans-serif;">[</span><span style="color: darkred; font-family: "Arial",sans-serif;">"Overview_x0020_Text0"</span><span style="color: dimgrey; font-family: "Arial",sans-serif;">]=</span><span style="color: #a82d00; font-family: "Arial",sans-serif;">$newitem</span><span style="font-family: Arial, sans-serif;"><o:p></o:p></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="font-family: Arial, sans-serif;"> </span><span style="color: #a82d00; font-family: "Arial",sans-serif;">$item</span><span style="color: dimgrey; font-family: "Arial",sans-serif;">.</span><span style="font-family: Arial, sans-serif;">Update();<o:p></o:p></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="font-family: Arial, sans-serif;"> </span><span style="color: blue; font-family: "Arial",sans-serif;">Write-Host</span><span style="font-family: Arial, sans-serif;"> </span><span style="color: navy; font-family: "Arial",sans-serif;">-ForegroundColor</span><span style="font-family: Arial, sans-serif;"> </span><span style="color: blueviolet; font-family: "Arial",sans-serif;">DarkGreen </span><span style="color: #a82d00; font-family: "Arial",sans-serif;">$item</span><span style="color: dimgrey; font-family: "Arial",sans-serif;">.</span><span style="font-family: Arial, sans-serif;">Id </span><span style="color: darkred; font-family: "Arial",sans-serif;">"Item Updated"</span><span style="font-family: Arial, sans-serif;"><o:p></o:p></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="font-family: Arial, sans-serif;"> }<o:p></o:p></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="font-family: Arial, sans-serif;"> }<o:p></o:p></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="font-family: Arial, sans-serif;"> </span><span style="color: darkblue; font-family: "Arial",sans-serif;">catch</span><span style="font-family: Arial, sans-serif;"><o:p></o:p></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="font-family: Arial, sans-serif;"> {<o:p></o:p></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="font-family: Arial, sans-serif;"> </span><span style="color: blue; font-family: "Arial",sans-serif;">Write-Host</span><span style="font-family: Arial, sans-serif;"> </span><span style="color: navy; font-family: "Arial",sans-serif;">-ForegroundColor</span><span style="font-family: Arial, sans-serif;"> </span><span style="color: blueviolet; font-family: "Arial",sans-serif;">Red </span><span style="color: #a82d00; font-family: "Arial",sans-serif;">$item</span><span style="color: dimgrey; font-family: "Arial",sans-serif;">.</span><span style="font-family: Arial, sans-serif;">Id </span><span style="color: darkred; font-family: "Arial",sans-serif;">"Item Not Updated"</span><span style="font-family: Arial, sans-serif;"><o:p></o:p></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<br /></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="font-family: Arial, sans-serif;"> }<o:p></o:p></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="font-family: Arial, sans-serif;">}<o:p></o:p></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<br /></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; margin: 0cm 0cm 0.0001pt;">
<span style="font-family: Arial, sans-serif;"> </span><span style="color: #a82d00; font-family: "Arial",sans-serif;">$ctx</span><span style="color: dimgrey; font-family: "Arial",sans-serif;">.</span><span style="font-family: Arial, sans-serif;">ExecuteQuery()<o:p></o:p></span></div>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<br />
<div class="MsoNormal">
<br /></div>
</div>
<div class="MsoNormal">
<br /></div>
<br /></div>
Soreddy Manjunathhttp://www.blogger.com/profile/04248291203755179066noreply@blogger.com0tag:blogger.com,1999:blog-2735155418554959110.post-30724156827152859882019-03-01T02:05:00.000-08:002019-03-01T02:05:17.708-08:00Email address empty after user profile synchronization <div dir="ltr" style="text-align: left;" trbidi="on">
<br />
After user profile synchronization email address attribute is empty<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU2VppeZewKhyzmZ2ZErlwN8_xDDUEp8VDL2iWjtOSM6STmscK2A6D11cbFObenadMMsSF_4wU5N1b1-7BPNLjBeBsW5YPz2Tc56lCGbl7lv-T8VThI01pLFITg51et9rPJz76lyNw9Ttp/s1600/EmailAddressEmpty.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="438" data-original-width="1459" height="192" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU2VppeZewKhyzmZ2ZErlwN8_xDDUEp8VDL2iWjtOSM6STmscK2A6D11cbFObenadMMsSF_4wU5N1b1-7BPNLjBeBsW5YPz2Tc56lCGbl7lv-T8VThI01pLFITg51et9rPJz76lyNw9Ttp/s640/EmailAddressEmpty.png" width="640" /></a></div>
<br />
To fix the issue<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_8I863gz95_dkRsF9sQLd8mAA1KBo-tP-uAYV1aDf5DKC_wevlah0e3nGId8koEiNVzojbPYzI4GBqvcR1HXKwXs3jwxfKdJ-7lAM56jkaBvE95GB6P_OEpaQHrRtYyrnYUXeyMWB3a8C/s1600/EmailAddressAdded.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="374" data-original-width="1091" height="218" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_8I863gz95_dkRsF9sQLd8mAA1KBo-tP-uAYV1aDf5DKC_wevlah0e3nGId8koEiNVzojbPYzI4GBqvcR1HXKwXs3jwxfKdJ-7lAM56jkaBvE95GB6P_OEpaQHrRtYyrnYUXeyMWB3a8C/s640/EmailAddressAdded.png" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOvjAtFTioSu7Cbfi2QVD1YrKt9Be1HjqOvr7pH2qoX_PU-MlRKuxCHFUjeL1XKOFEmGGB-jqAll_4iZSNqsQld1wQTibvniVDQfN-_CMSdLVIF-xRfX441ix-_zKDZU_KEcjiadUEMdnA/s1600/EmailAddressAdded.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="145" data-original-width="735" height="126" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOvjAtFTioSu7Cbfi2QVD1YrKt9Be1HjqOvr7pH2qoX_PU-MlRKuxCHFUjeL1XKOFEmGGB-jqAll_4iZSNqsQld1wQTibvniVDQfN-_CMSdLVIF-xRfX441ix-_zKDZU_KEcjiadUEMdnA/s640/EmailAddressAdded.png" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXKDut9cpvnVRk9CLVNkwf-nS5J64CZhUNrHPsvDO7WWc1rOzCzh21dgBRjqgZMzArSnVaxYC7mvCqVTa-XtJAGIJWydWXehHQA7nuZQpSDqEZeCSQm7ajcjFEHpRFy2JP-ysVRtslNwfz/s1600/EmailAddressAdded.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="438" data-original-width="1459" height="192" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXKDut9cpvnVRk9CLVNkwf-nS5J64CZhUNrHPsvDO7WWc1rOzCzh21dgBRjqgZMzArSnVaxYC7mvCqVTa-XtJAGIJWydWXehHQA7nuZQpSDqEZeCSQm7ajcjFEHpRFy2JP-ysVRtslNwfz/s640/EmailAddressAdded.png" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSK4J54iUN-6-pSFkv2FGEQEumptWZ6ZOfBIXLbDIVnC3oZbXDCOb_UqwVAt9-0Fw2M9MxxwzyeNo0cC5kPvmFM_2-LV3-c2YCPk290EHDAvUfQCeUXHZ49kVU624GDM33_-BQGmTBWAUO/s1600/EmailAddressAdded.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="439" data-original-width="1419" height="197" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSK4J54iUN-6-pSFkv2FGEQEumptWZ6ZOfBIXLbDIVnC3oZbXDCOb_UqwVAt9-0Fw2M9MxxwzyeNo0cC5kPvmFM_2-LV3-c2YCPk290EHDAvUfQCeUXHZ49kVU624GDM33_-BQGmTBWAUO/s640/EmailAddressAdded.png" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhg-VVEefs_JFSVIJjqXVrmQA_wIOt9kezBFnLLeIMPOj5AUV0ktf8CSwegF3BFtqvqvc8ZsoMviolVdeH9CnkcqBqmxsu-EQALtz8jpcu5MjOOYTA94xCBVUI759OK4CR62HWpYSwiiu2V/s1600/EmailAddressAdded.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="490" data-original-width="1432" height="109" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhg-VVEefs_JFSVIJjqXVrmQA_wIOt9kezBFnLLeIMPOj5AUV0ktf8CSwegF3BFtqvqvc8ZsoMviolVdeH9CnkcqBqmxsu-EQALtz8jpcu5MjOOYTA94xCBVUI759OK4CR62HWpYSwiiu2V/s320/EmailAddressAdded.png" width="320" /></a></div>
<br />
Start incremental sync which will resolve the issue</div>
Soreddy Manjunathhttp://www.blogger.com/profile/04248291203755179066noreply@blogger.com0tag:blogger.com,1999:blog-2735155418554959110.post-17649630439837283182019-01-21T05:24:00.004-08:002019-01-21T05:24:27.845-08:00The Tool was unable to install Web Server(IIS) Role<div dir="ltr" style="text-align: left;" trbidi="on">
SharePoint 2019 unable to install Web Server Role<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0wJs4_0Da9iBqQxxCGxQ2l2duWcWg5bPrWiE7X0g5G3yEM5wg8l0Psc7CT0qCoTCLYejeNPpWStyqgu1ZjoZF9GXc-vQVCl8wlvBGoB01atNOpsTc-zj0sS46QS8DPRCcdoGLcPLQtygm/s1600/Error+WebServer+Role.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="770" data-original-width="1010" height="484" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0wJs4_0Da9iBqQxxCGxQ2l2duWcWg5bPrWiE7X0g5G3yEM5wg8l0Psc7CT0qCoTCLYejeNPpWStyqgu1ZjoZF9GXc-vQVCl8wlvBGoB01atNOpsTc-zj0sS46QS8DPRCcdoGLcPLQtygm/s640/Error+WebServer+Role.png" width="640" /></a></div>
<br />
<div style="background-color: white; color: #2a2a2a; font-family: "Segoe UI", "Lucida Grande", Verdana, Arial, Helvetica, sans-serif; font-size: 12.1104px;">
<br /></div>
<div style="background-color: white; color: #2a2a2a; font-family: "Segoe UI", "Lucida Grande", Verdana, Arial, Helvetica, sans-serif; font-size: 12.1104px;">
The issue was due to .Net 3.5 framework was not installed, hence Follow the below steps</div>
<div style="background-color: white; color: #2a2a2a; font-family: "Segoe UI", "Lucida Grande", Verdana, Arial, Helvetica, sans-serif; font-size: 12.1104px;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1zKczezeUBxKJ3Zp2BF7fvcT8lqBffs5XNiz-nWXQcIYnrvtH6u4KGEeYqccZuwnj98HwqfYufaIN99Db37Yq9GTUQlcqFZm5ts0OZtfzqKWb-tQN7Ye_zFHBKm8wtfdVdk6GWdGAEDmk/s1600/erro1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="439" data-original-width="995" height="176" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1zKczezeUBxKJ3Zp2BF7fvcT8lqBffs5XNiz-nWXQcIYnrvtH6u4KGEeYqccZuwnj98HwqfYufaIN99Db37Yq9GTUQlcqFZm5ts0OZtfzqKWb-tQN7Ye_zFHBKm8wtfdVdk6GWdGAEDmk/s400/erro1.png" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div style="background-color: white; color: #2a2a2a; font-family: "Segoe UI", "Lucida Grande", Verdana, Arial, Helvetica, sans-serif; font-size: 12.1104px;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbUjTkYAYYNBKAXZxCIaBL-dArGwVb6WFB6ONTXAthHCFWAwbwZrzCBnkhv-vXZjwgHxb9gKd8IyCnfcJ2n0kSXonnCPWrFCPsbqDarRuyQVFk1rMAMJ18_JubY0RjQhUetHgfV1VSAuC_/s1600/.net3.5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="839" data-original-width="1176" height="456" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbUjTkYAYYNBKAXZxCIaBL-dArGwVb6WFB6ONTXAthHCFWAwbwZrzCBnkhv-vXZjwgHxb9gKd8IyCnfcJ2n0kSXonnCPWrFCPsbqDarRuyQVFk1rMAMJ18_JubY0RjQhUetHgfV1VSAuC_/s640/.net3.5.png" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnFOWYc8st6dyqpgnMu3CRn2Embj90jmSvT7cuN5UOtgXwT7cXr5Xpj9BhH9q9k7xpDoGzawuUpKxxxCyv5P8sov_xbiEJT2pAW3Ul05oNj3ozxqRMVuRxjfj3wjYVtPctFldAJCfOZ2_6/s1600/.net3.5_AlternativeSource.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="850" data-original-width="1178" height="459" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnFOWYc8st6dyqpgnMu3CRn2Embj90jmSvT7cuN5UOtgXwT7cXr5Xpj9BhH9q9k7xpDoGzawuUpKxxxCyv5P8sov_xbiEJT2pAW3Ul05oNj3ozxqRMVuRxjfj3wjYVtPctFldAJCfOZ2_6/s640/.net3.5_AlternativeSource.png" width="640" /></a><span style="background-color: white; color: #1a1a1a; font-family: "Open Sans"; font-size: 14px; text-align: start;"> </span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: white; color: #1a1a1a; font-family: "Open Sans"; font-size: 14px; text-align: start;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFGcRJs6QnSGRRWcjvGfSnmk_FOkmcnEcVlTSywAAMidgX10xGQmytaPKrwFvNX_fGjLRQHUh5bB2mqgBkJBQGMCRPuqrKazi8sbkgDfqMM5b8FzDjWMrbyJ0ELq-Vwive5dW-ZBt4nikd/s1600/ErrorSolution.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="815" data-original-width="1263" height="412" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFGcRJs6QnSGRRWcjvGfSnmk_FOkmcnEcVlTSywAAMidgX10xGQmytaPKrwFvNX_fGjLRQHUh5bB2mqgBkJBQGMCRPuqrKazi8sbkgDfqMM5b8FzDjWMrbyJ0ELq-Vwive5dW-ZBt4nikd/s640/ErrorSolution.png" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: white; color: #1a1a1a; text-align: start;"><span style="font-family: Verdana, sans-serif;">The sources file is on your Windows Server 2016 installation media, and you need to specify it and have it mounted</span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: white; color: #1a1a1a; text-align: start;"><span style="font-family: Verdana, sans-serif;">on your computer (or copied somewhere) for the prerequisite install to work properly</span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: white; color: #1a1a1a; text-align: start;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: white; color: #1a1a1a; text-align: start;"><span style="font-family: Verdana, sans-serif;">Make sure to replace the F:\sources\sxs to the actual path of your sources file.</span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: white; color: #1a1a1a; text-align: start;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: white; color: #1a1a1a; text-align: start;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: white; color: #1a1a1a; text-align: start;"><span style="font-family: Verdana, sans-serif;">Everything should work properly afterwards to run the prerequisite installer</span></span></div>
<br /></div>
Soreddy Manjunathhttp://www.blogger.com/profile/04248291203755179066noreply@blogger.com0tag:blogger.com,1999:blog-2735155418554959110.post-21192698844143834502018-05-14T05:53:00.001-07:002018-05-14T05:53:29.823-07:00Export User Subscribed Alerts to CSV PowerShell <div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<br />
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><o:p>Export Alerts to CSV file using PowerShell</o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><o:p><br /></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">cls</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">asnp</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: darkred;">"*sh*"</span><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: orangered; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">$web</span><span style="color: darkgrey; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">=</span><span style="color: blue; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">Get-SPWeb</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: blueviolet;">http://msdev02dp:3636/</span><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: orangered; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">$alertCollection</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: darkgrey;">=</span> @() <o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><span style="mso-spacerun: yes;"> </span><span style="color: darkblue;">foreach</span>(<span style="color: orangered;">$alert</span> <span style="color: darkblue;">in</span> <span style="color: orangered;">$web</span><span style="color: darkgrey;">.</span>Alerts)<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">{ <o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: orangered; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">$ExportItem</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: darkgrey;">=</span> <span style="color: blue;">New-Object</span> <span style="color: blueviolet;">PSObject</span> <o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: orangered; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">$ExportItem</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: darkgrey;">|</span> <span style="color: blue;">Add-Member</span> <span style="color: navy;">-MemberType</span> <span style="color: blueviolet;">NoteProperty</span>
<span style="color: navy;">-name</span> <span style="color: darkred;">"UserName"</span>
<span style="color: navy;">-value</span> <span style="color: orangered;">$alert</span><span style="color: darkgrey;">.</span>User<span style="color: darkgrey;">.</span>DisplayName
<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: orangered; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">$ExportItem</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: darkgrey;">|</span> <span style="color: blue;">Add-Member</span> <span style="color: navy;">-MemberType</span> <span style="color: blueviolet;">NoteProperty</span>
<span style="color: navy;">-Name</span> <span style="color: darkred;">"Email"</span>
<span style="color: navy;">-value</span> <span style="color: orangered;">$alert</span><span style="color: darkgrey;">.</span>User<span style="color: darkgrey;">.</span>Email<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: orangered; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">$ExportItem</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: darkgrey;">|</span> <span style="color: blue;">Add-Member</span> <span style="color: navy;">-MemberType</span> <span style="color: blueviolet;">NoteProperty</span>
<span style="color: navy;">-name</span> <span style="color: darkred;">"Title"</span>
<span style="color: navy;">-value</span> <span style="color: orangered;">$alert</span><span style="color: darkgrey;">.</span>Title<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: orangered; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">$ExportItem</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: darkgrey;">|</span> <span style="color: blue;">Add-Member</span> <span style="color: navy;">-MemberType</span> <span style="color: blueviolet;">NoteProperty</span>
<span style="color: navy;">-name</span> <span style="color: darkred;">"EventType"</span>
<span style="color: navy;">-value</span> <span style="color: orangered;">$alert</span><span style="color: darkgrey;">.</span>EventType<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: orangered; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">$ExportItem</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: darkgrey;">|</span> <span style="color: blue;">Add-Member</span> <span style="color: navy;">-MemberType</span> <span style="color: blueviolet;">NoteProperty</span>
<span style="color: navy;">-name</span> <span style="color: darkred;">"Frequency"</span>
<span style="color: navy;">-value</span> <span style="color: orangered;">$alert</span><span style="color: darkgrey;">.</span>AlertFrequency<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: orangered; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">$alertCollection</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: darkgrey;">+=</span> <span style="color: orangered;">$ExportItem</span>
<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">}<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><span style="mso-spacerun: yes;"> </span><span style="color: orangered;">$alertCollection</span>
<span style="color: darkgrey;">|</span> <span style="color: blue;">Export-CSV</span>
<span style="color: darkred;">"D:\Useralerts.csv"</span> <span style="color: navy;">-NoTypeInformation</span> <o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><span style="mso-spacerun: yes;"> </span><span style="color: orangered;">$web</span><span style="color: darkgrey;">.</span>Dispose() <o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<br /></div>
Soreddy Manjunathhttp://www.blogger.com/profile/04248291203755179066noreply@blogger.com0tag:blogger.com,1999:blog-2735155418554959110.post-37882258525558889562017-10-28T10:59:00.004-07:002017-10-28T11:01:44.734-07:00Restore Deleted SiteCollection PowerShell <div dir="ltr" style="text-align: left;" trbidi="on">
<h3>
<span style="font-family: "verdana" , sans-serif;"><span style="background-color: white;"><a href="http://soreddymanjunath.blogspot.in/2017/10/restore-deleted-sitecollection.html" target="_blank">PowerShell Script to Restore Deleted SiteCollection from a Webapplication </a></span></span></h3>
<span style="background-color: white;"></span><br />
<div style="color: blue;">
<span style="background-color: white;"><span style="color: blue;"><span style="background-color: white;"><br /></span></span></span></div>
<span style="background-color: white;">
<div>
<span style="background-color: white;">Get the Specific <b>Webapplication ID </b> and use<a href="http://soreddymanjunath.blogspot.in/2017/10/restore-deleted-sitecollection.html" target="_blank"> </a><b><a href="http://soreddymanjunath.blogspot.in/2017/10/restore-deleted-sitecollection.html" target="_blank">GetDeltedSites()</a> </b>method to to find out ID your deleted sitecollection and use </span><b><a href="http://soreddymanjunath.blogspot.in/2017/10/restore-deleted-sitecollection.html" target="_blank">Restore-SPDeletedSite </a></b><span style="background-color: white;">command let to restore the sitecollection</span></div>
<div style="color: blue;">
<span style="color: blue;"><span style="background-color: white;"><br /></span></span></div>
<div style="color: blue;">
<span style="color: blue;"><span style="background-color: white;"><br /></span></span></div>
<span style="color: blue;">cls</span></span><br />
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue;">Add-PSSnapin</span> <span style="color: darkred;">"Microsoft.SharePoint.PowerShell"</span><o:p></o:p></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: orangered;">$WebApplication</span> <span style="color: darkgrey;">=</span> <span style="color: blue;">Get-SPWebApplication</span>
<span style="color: navy;">-Identity</span> <span style="color: blueviolet;">http://spdev2016:2626/</span><o:p></o:p></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: orangered;">$restore</span> <span style="color: darkgrey;">=</span> <span style="color: orangered;">$WebApplication</span><span style="color: darkgrey;">.</span>GetDeletedSites()<o:p></o:p></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<br />
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue;">Restore-SPDeletedSite</span> <span style="color: navy;">-Identity</span> <span style="color: blueviolet;">1b0af67e-2f0d-413c-b8b7-9dec119dbc8c</span> <span style="color: navy;">-WebApplication</span> <span style="color: blueviolet;">7f1ac80d-d8fb-4a0a-9715-3865a4d139c5</span>
<span style="color: navy;">-Confirm:</span><span style="color: orangered;">$false <span style="font-size: 10pt;"><o:p></o:p></span></span></div>
</div>
Soreddy Manjunathhttp://www.blogger.com/profile/04248291203755179066noreply@blogger.com0tag:blogger.com,1999:blog-2735155418554959110.post-72570480117446718272017-10-05T04:46:00.002-07:002017-10-05T04:47:47.699-07:00Remove Mantainance Mode of SharePoint Site<div dir="ltr" style="text-align: left;" trbidi="on">
<h4 style="text-align: left;">
<span style="font-family: Verdana, sans-serif;">PowerShell Script to remove Maintenance of a site</span></h4>
<br />
<span style="background-color: white; color: blue; font-family: "lucida console";">cls</span><br />
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "lucida console";"><br /></span></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "lucida console";">asnp</span><span style="font-family: "lucida console";"> <span style="color: darkred;">"*sh*"</span><o:p></o:p></span><br />
<span style="font-family: "lucida console";"><span style="color: darkred;"><br /></span></span></div>
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: orangered; font-family: "lucida console";">$Admin</span><span style="font-family: "lucida console";"> <span style="color: darkgrey;">=</span> <span style="color: blue;">new-object</span> <span style="color: blueviolet;">Microsoft.SharePoint.Administration.SPSiteAdministration</span>(<span style="color: darkred;">'http://siteurl/’</span>) <o:p></o:p></span></div>
<br />
<div class="MsoNormal" style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: orangered; font-family: "lucida console";">$Admin</span><span style="color: darkgrey; font-family: "lucida console";">.</span><span style="font-family: "lucida console";">ClearMaintenanceMode() <span style="font-size: 9pt;"><o:p></o:p></span></span></div>
</div>
Soreddy Manjunathhttp://www.blogger.com/profile/04248291203755179066noreply@blogger.com0tag:blogger.com,1999:blog-2735155418554959110.post-45153938261656457882017-08-30T20:48:00.000-07:002017-09-05T20:07:07.854-07:00SharePoint FrameWork Development EnvironmentSetup Set by Step<div dir="ltr" style="text-align: left;" trbidi="on">
Follow the below steps to your SharePoint Framework Dev setup<br />
<br />
1. Install Node.js first (node.js)<br />
<br />
<a href="https://nodejs.org/en/" target="_blank">https://nodejs.org/en/ </a><br />
<br />
Open Powershell command window check for installation and its version status of Node.js<br />
<br />
<b>npm -v</b><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRMINu36vU53mYoLD1kOGCZapBafiErujAKk9BadAb9z8Kwg_ERmb38WEvqmAU2spJePfhr4BXfIOW76dpSkBG5kOknSXe9WsJnjd5WWUr7yYT0BoUEAbutzacH0KTjXBIzGUQPry7oW5W/s1600/npm.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="143" data-original-width="771" height="116" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRMINu36vU53mYoLD1kOGCZapBafiErujAKk9BadAb9z8Kwg_ERmb38WEvqmAU2spJePfhr4BXfIOW76dpSkBG5kOknSXe9WsJnjd5WWUr7yYT0BoUEAbutzacH0KTjXBIzGUQPry7oW5W/s640/npm.png" width="640" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
2. Install visual studio code<br />
<br />
<a href="https://code.visualstudio.com/download" target="_blank">https://code.visualstudio.com/download </a><br />
<br />
<br />
3. Open Powershell command window and then install yeoman and gulp with below command<br />
<br />
<b> npm install -g yo gulp</b><br />
<b><br /></b>
<b><br /></b>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrM_xyv7k-V8v8NPUZB7gVowIQzqoy7AwdvX1a3qoHYfgHgFd8M6upkwF5Aa5pzP957X6Ge6TG30UBkTaq4XN0eyBD_GEjRVcZ1Bl2p46T6Lc9Vi6f8CejiKPCqgqmdph7ua9EzxEzYWZH/s1600/npm1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="413" data-original-width="1470" height="177" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrM_xyv7k-V8v8NPUZB7gVowIQzqoy7AwdvX1a3qoHYfgHgFd8M6upkwF5Aa5pzP957X6Ge6TG30UBkTaq4XN0eyBD_GEjRVcZ1Bl2p46T6Lc9Vi6f8CejiKPCqgqmdph7ua9EzxEzYWZH/s640/npm1.png" width="640" /></a></div>
<b><br /></b>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
4. <b>npm install @microsoft/generator-sharepoint -g</b><br />
<b><br /></b>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9Ln2WbAcLzRIEyku_aERFR0LnxWmqKJoOrJDqSDPMcxD6trerSOGUnTkErWx3Th16Zq3S5bZc4Ts4RiPZ3WPBMPtPfRdHdmcCUKgo9cRqWJbMKUbVMEUCaVyvo3Nvl24eLFtst_IOvLl2/s1600/npm2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="618" data-original-width="592" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9Ln2WbAcLzRIEyku_aERFR0LnxWmqKJoOrJDqSDPMcxD6trerSOGUnTkErWx3Th16Zq3S5bZc4Ts4RiPZ3WPBMPtPfRdHdmcCUKgo9cRqWJbMKUbVMEUCaVyvo3Nvl24eLFtst_IOvLl2/s640/npm2.png" width="612" /></a></div>
<b><br /></b>
<b><br /></b>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
yoman is going to install all project scafoldings(creating project structure solution will be generated<br />
<br />
<b>gulp trust-dev-cert to install </b><br />
<br />
<b>gulp serve </b></div>
Soreddy Manjunathhttp://www.blogger.com/profile/04248291203755179066noreply@blogger.com0tag:blogger.com,1999:blog-2735155418554959110.post-66309973495127412502017-03-13T19:39:00.002-07:002017-03-13T19:39:51.520-07:00CSOM TermStore GetTerms<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
CSOM Get Groups in TermStore/CSOM Get Termsets in TermStore/ CSOM Get Terms in TermSets</h2>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRDijgspS99bKH-corNA7xZc6UgGlXqx1c4p8fds6A7LJiI1G2UhDCD82Alb9flt_p2uet6b4-bQUWUHkxNN5487metHQy5EDEbrtPyp2Gc6ZeKUF5n5lyIA2V6EYQRaXS29YcOm6CjoPF/s1600/MMS.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="215" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRDijgspS99bKH-corNA7xZc6UgGlXqx1c4p8fds6A7LJiI1G2UhDCD82Alb9flt_p2uet6b4-bQUWUHkxNN5487metHQy5EDEbrtPyp2Gc6ZeKUF5n5lyIA2V6EYQRaXS29YcOm6CjoPF/s640/MMS.png" width="640" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<h3 style="text-align: left;">
<b>OutPut :</b></h3>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjg2PzvbHTpKtgg_oMbCSc0TKTJSRM0aEcv2VZJS5p2-n20F5WxWIKyiNyNODknPlqsKivpFnPwz7_e1Z9vjgbE-abpFwSFwinSN5ItvlnupSccJasUDr6xOubJVkhKfz8NpXX6-mXJtTNz/s1600/termstore.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="367" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjg2PzvbHTpKtgg_oMbCSc0TKTJSRM0aEcv2VZJS5p2-n20F5WxWIKyiNyNODknPlqsKivpFnPwz7_e1Z9vjgbE-abpFwSFwinSN5ItvlnupSccJasUDr6xOubJVkhKfz8NpXX6-mXJtTNz/s400/termstore.png" width="400" /></a></div>
<div>
<b><br /></b></div>
<div>
<b><br /></b></div>
<div>
<b><br /></b></div>
<div>
<b><br /></b></div>
<div>
<b><br /></b></div>
<div>
<b><br /></b></div>
<div>
<b><br /></b></div>
<div>
<b><br /></b></div>
<div>
<b><br /></b></div>
<div>
<b><br /></b></div>
<div>
<b><br /></b></div>
<div>
<b><br /></b></div>
<div>
<b><br /></b></div>
<div>
<b><br /></b></div>
<div>
<b><br /></b></div>
<div>
<b><br /></b></div>
<div>
<b><br /></b></div>
<div>
<b><br /></b></div>
<div>
<b><br /></b></div>
<div>
<b><br /></b></div>
<div>
<b><br /></b></div>
<div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><span style="color: blue;">using</span> System;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><span style="color: blue;">using</span>
System.Collections.Generic;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><span style="color: blue;">using</span>
System.Linq;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><span style="color: blue;">using</span>
System.Text;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><span style="color: blue;">using</span>
System.Threading.Tasks;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><span style="color: blue;">using</span>
Microsoft.SharePoint.Client;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><span style="color: blue;">using</span>
Microsoft.SharePoint.Client.Taxonomy;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><span style="color: blue;">namespace</span>
TermstoreCSOM<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <span style="color: blue;">class</span> <span style="color: #2b91af;">Program</span><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <span style="color: blue;">static</span> <span style="color: blue;">void</span> Main(<span style="color: blue;">string</span>[] args)<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <span style="color: #2b91af;">ClientContext</span> ctx = <span style="color: blue;">new</span> <span style="color: #2b91af;">ClientContext</span>(<span style="color: #a31515;">"http://SPDev2013:3636/"</span>);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> ctx.Credentials = <span style="color: blue;">new</span> System.Net.<span style="color: #2b91af;">NetworkCredential</span>(<span style="color: #a31515;">"username"</span>, <span style="color: #a31515;">"pwd"</span>,<span style="color: #a31515;">"domain"</span>);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <span style="color: green;">//Get the Taxanomy Session </span><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <span style="color: #2b91af;">TaxonomySession</span> tx = <span style="color: #2b91af;">TaxonomySession</span>.GetTaxonomySession(ctx);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> ctx.Load(tx, t => t.TermStores);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> ctx.ExecuteQuery();<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <span style="color: green;">//Get the defualt TermStore from
Taxonamy Session</span><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <span style="color: blue;">var</span> ts = tx.TermStores[0];<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> ctx.Load(ts);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> ctx.ExecuteQuery();<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <span style="color: #2b91af;">Console</span>.ForegroundColor
= <span style="color: #2b91af;">ConsoleColor</span>.White;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <span style="color: green;">//Print the TermStore Name</span><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <span style="color: #2b91af;">Console</span>.WriteLine(ts.Name);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <span style="color: green;">//Get the Groups inside the
Termstore </span><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <span style="color: #2b91af;">TermGroupCollection</span> groups =
ts.Groups;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> ctx.Load(groups);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> ctx.ExecuteQuery();<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <span style="color: blue;">foreach</span>( <span style="color: #2b91af;">TermGroup</span> group <span style="color: blue;">in</span> groups)<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <span style="color: #2b91af;">Console</span>.ForegroundColor
= <span style="color: #2b91af;">ConsoleColor</span>.Yellow;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <span style="color: green;">//Print Each Group inside the
TermStore</span><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <span style="color: #2b91af;">Console</span>.WriteLine(<span style="color: #a31515;">"TermGroup
is :"</span> +group.Name);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <span style="color: green;">//Ge the Termsets inside the
Each Group</span><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <span style="color: #2b91af;">TermSetCollection</span>
termsetcollections = group.TermSets;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> ctx.Load(termsetcollections);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> ctx.ExecuteQuery();<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <span style="color: blue;">foreach</span> (<span style="color: #2b91af;">TermSet</span> t <span style="color: blue;">in</span>
termsetcollections)<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <span style="color: #2b91af;">Console</span>.ForegroundColor
= <span style="color: #2b91af;">ConsoleColor</span>.Green;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <span style="color: green;">//Print Each
Termset</span><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <span style="color: #2b91af;">Console</span>.WriteLine(<span style="color: #a31515;">"TermsetName
is :"</span> + t.Name);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> ctx.Load(t);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> ctx.Load(t.GetAllTerms());<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> ctx.ExecuteQuery();<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <span style="color: green;">//Get All
the Terms inside the TermSet</span><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <span style="color: #2b91af;">TermCollection</span> terms =
t.GetAllTerms();<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> ctx.Load(terms);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> ctx.ExecuteQuery();<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <span style="color: blue;">foreach</span> (<span style="color: #2b91af;">Term</span> term <span style="color: blue;">in</span> terms)<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <span style="color: #2b91af;">Console</span>.ForegroundColor
= <span style="color: #2b91af;">ConsoleColor</span>.DarkCyan;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <span style="color: green;">//Print Each
Term inside TermSet</span><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <span style="color: #2b91af;">Console</span>.WriteLine(<span style="color: #a31515;">"Terms
is :"</span> + term.Name);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <span style="color: #2b91af;">Console</span>.ReadKey();<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> <o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">}</span><span style="font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
</div>
<div>
<b><br /></b></div>
</div>
Soreddy Manjunathhttp://www.blogger.com/profile/04248291203755179066noreply@blogger.com1tag:blogger.com,1999:blog-2735155418554959110.post-11595865648413861362017-03-04T22:30:00.001-08:002017-03-05T04:02:02.608-08:00Rest API SharePoint 2013<div dir="ltr" style="text-align: left;" trbidi="on">
<h3>
Basic ODATA Queries on SharePoint 2013 List</h3>
<div>
<br /></div>
<h2 style="text-align: left;">
OutPut :</h2>
<div>
<br /></div>
<div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIGM8z3sRm6UPvE5_kW50DqWaMy6htBbP_yjuyeRVCeoMeqxBiN4aQQG1-O-PFWVk-OcxGRFAWcqOy6ZGGOUmvZQtYB_swLJFK5RZQomnKm9p_ZArDRyajjLgH_j6AL8__u2ha4GcPReGO/s1600/Restapibasicoperation.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="404" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIGM8z3sRm6UPvE5_kW50DqWaMy6htBbP_yjuyeRVCeoMeqxBiN4aQQG1-O-PFWVk-OcxGRFAWcqOy6ZGGOUmvZQtYB_swLJFK5RZQomnKm9p_ZArDRyajjLgH_j6AL8__u2ha4GcPReGO/s640/Restapibasicoperation.png" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br /></div>
<div style="text-align: left;">
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;"><</span><span style="color: maroon; font-family: "consolas"; font-size: 9.5pt;">script</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">src</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">type</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">="text/javascript"></</span><span style="color: maroon; font-family: "consolas"; font-size: 9.5pt;">script</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">></span><span style="font-family: "consolas"; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;"><</span><span style="color: maroon; font-family: "consolas"; font-size: 9.5pt;">script</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">src</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">="/_layouts/15/sp.runtime.js"</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">type</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">="text/javascript"></</span><span style="color: maroon; font-family: "consolas"; font-size: 9.5pt;">script</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">></span><span style="font-family: "consolas"; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;"><</span><span style="color: maroon; font-family: "consolas"; font-size: 9.5pt;">script</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">src</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">="/_layouts/15/sp.js"</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">type</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">="text/javascript"></</span><span style="color: maroon; font-family: "consolas"; font-size: 9.5pt;">script</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">></span><span style="font-family: "consolas"; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;"><</span><span style="color: maroon; font-family: "consolas"; font-size: 9.5pt;">script</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">type</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">="text/javascript"></span><span style="font-family: "consolas"; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
$(document).ready(</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">function</span><span style="font-family: "consolas"; font-size: 9.5pt;">(){<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
jQuery(</span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"#webtitleid"</span><span style="font-family: "consolas"; font-size: 9.5pt;">).click(GetWebTitle);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> jQuery(</span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"#CurrentUser"</span><span style="font-family: "consolas"; font-size: 9.5pt;">).click(GetCurrentUser);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> jQuery(</span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"#createList"</span><span style="font-family: "consolas"; font-size: 9.5pt;">).click(CreateList);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> jQuery(</span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"#listitems"</span><span style="font-family: "consolas"; font-size: 9.5pt;">).click(GetListItems);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> jQuery(</span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"#addlistitem"</span><span style="font-family: "consolas"; font-size: 9.5pt;">).click(AddListItem);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
});<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">function</span><span style="font-family: "consolas"; font-size: 9.5pt;"> AddListItem() {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">var</span><span style="font-family: "consolas"; font-size: 9.5pt;"> call = jQuery.ajax({<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> url:
_spPageContextInfo.webAbsoluteUrl + </span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"/_api/Web/Lists/getByTitle('Products')/Items"</span><span style="font-family: "consolas"; font-size: 9.5pt;">,<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> type: </span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"POST"</span><span style="font-family: "consolas"; font-size: 9.5pt;">,<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> datatype: </span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"json"</span><span style="font-family: "consolas"; font-size: 9.5pt;">,<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> headers:<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> Accept: </span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"application/json;odata=verbose"</span><span style="font-family: "consolas"; font-size: 9.5pt;">,<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"Content-Type"</span><span style="font-family: "consolas"; font-size: 9.5pt;">: </span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"application/json;odata=verbose"</span><span style="font-family: "consolas"; font-size: 9.5pt;">,<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"X-RequestDigest"</span><span style="font-family: "consolas"; font-size: 9.5pt;">: jQuery(</span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"#__REQUESTDIGEST"</span><span style="font-family: "consolas"; font-size: 9.5pt;">).val()<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> },<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> data:<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> JSON.stringify({<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"__metadata"</span><span style="font-family: "consolas"; font-size: 9.5pt;">: { type: </span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"SP.Data.ProductsListItem"</span><span style="font-family: "consolas"; font-size: 9.5pt;"> }, <o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> Title: </span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"ItemAddedthroughMyRest"</span><span style="font-family: "consolas"; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> })<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> });<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> call.done(</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">function</span><span style="font-family: "consolas"; font-size: 9.5pt;"> (data, textstatus,
jqXHR) {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">var</span><span style="font-family: "consolas"; font-size: 9.5pt;"> msg = jQuery(</span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"#additem"</span><span style="font-family: "consolas"; font-size: 9.5pt;">);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> msg.text(</span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"ListItem Added
Successfully"</span><span style="font-family: "consolas"; font-size: 9.5pt;">);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> });<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
call.fail(</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">function</span><span style="font-family: "consolas"; font-size: 9.5pt;"> (data, textstatus,
jqXHR) {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> alert(</span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">'failed to Add
ListItem'</span><span style="font-family: "consolas"; font-size: 9.5pt;">);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> });<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
}<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">function</span><span style="font-family: "consolas"; font-size: 9.5pt;"> GetListItems()<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
{<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">var</span><span style="font-family: "consolas"; font-size: 9.5pt;"> call = jQuery.ajax({<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> url:
_spPageContextInfo.webAbsoluteUrl + </span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"/_api/Web/Lists/getByTitle('Products')/Items?$select=Title"</span><span style="font-family: "consolas"; font-size: 9.5pt;">,<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> type: </span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"GET"</span><span style="font-family: "consolas"; font-size: 9.5pt;">,<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> datatype: </span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"json"</span><span style="font-family: "consolas"; font-size: 9.5pt;">,<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> headers:<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> Accept: </span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"application/json;odata=verbose"</span><span style="font-family: "consolas"; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> });<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> call.done(</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">function</span><span style="font-family: "consolas"; font-size: 9.5pt;"> (data, textstatus,
jqXHR) {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">var</span><span style="font-family: "consolas"; font-size: 9.5pt;"> msg = jQuery(</span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"#litems"</span><span style="font-family: "consolas"; font-size: 9.5pt;">);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> jQuery.each(data.d.results, </span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">function</span><span style="font-family: "consolas"; font-size: 9.5pt;"> (index, value) {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
msg.append(</span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"<li>"</span><span style="font-family: "consolas"; font-size: 9.5pt;"> +value.Title +</span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"</li>"</span><span style="font-family: "consolas"; font-size: 9.5pt;">);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> });<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> });<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> call.fail(</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">function</span><span style="font-family: "consolas"; font-size: 9.5pt;"> (data, textstatus,
jqXHR) {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> alert(</span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"failed to get
list items"</span><span style="font-family: "consolas"; font-size: 9.5pt;">);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> });<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
}<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">function</span><span style="font-family: "consolas"; font-size: 9.5pt;"> CreateList()<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
{<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">var</span><span style="font-family: "consolas"; font-size: 9.5pt;"> call = jQuery.ajax({<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> url:
_spPageContextInfo.webAbsoluteUrl + </span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"/_api/Web/Lists"</span><span style="font-family: "consolas"; font-size: 9.5pt;">,<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> type: </span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"POST"</span><span style="font-family: "consolas"; font-size: 9.5pt;">,<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> datatype: </span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"json"</span><span style="font-family: "consolas"; font-size: 9.5pt;">,<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> headers:<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> Accept: </span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"application/json;odata=verbose"</span><span style="font-family: "consolas"; font-size: 9.5pt;">,<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"Content-Type"</span><span style="font-family: "consolas"; font-size: 9.5pt;">: </span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"application/json;odata=verbose"</span><span style="font-family: "consolas"; font-size: 9.5pt;">,<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"X-RequestDigest"</span><span style="font-family: "consolas"; font-size: 9.5pt;">: jQuery(</span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"#__REQUESTDIGEST"</span><span style="font-family: "consolas"; font-size: 9.5pt;">).val()<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> },<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> data:<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> JSON.stringify({<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"__metadata"</span><span style="font-family: "consolas"; font-size: 9.5pt;">: { type: </span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"SP.List"</span><span style="font-family: "consolas"; font-size: 9.5pt;"> },<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> BaseTemplate:
SP.ListTemplateType.genericList,<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> Title: </span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"MyRestAPICustomList"</span><span style="font-family: "consolas"; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> })<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> });<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> call.done(</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">function</span><span style="font-family: "consolas"; font-size: 9.5pt;"> (data, textstatus,
jqXHR) {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">var</span><span style="font-family: "consolas"; font-size: 9.5pt;"> msg = jQuery(</span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"#list"</span><span style="font-family: "consolas"; font-size: 9.5pt;">);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> msg.text(</span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"List Created
Successfully"</span><span style="font-family: "consolas"; font-size: 9.5pt;">);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> });<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> call.fail(</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">function</span><span style="font-family: "consolas"; font-size: 9.5pt;"> (data, textstatus,
jqXHR) {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> alert(</span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">'failed to Create
List'</span><span style="font-family: "consolas"; font-size: 9.5pt;">);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> });<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
}<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">function</span><span style="font-family: "consolas"; font-size: 9.5pt;"> GetWebTitle()<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
{<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">var</span><span style="font-family: "consolas"; font-size: 9.5pt;"> call = jQuery.ajax({<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> url:
_spPageContextInfo.webAbsoluteUrl + </span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"/_api/Web/"</span><span style="font-family: "consolas"; font-size: 9.5pt;">,<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> type: </span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"GET"</span><span style="font-family: "consolas"; font-size: 9.5pt;">,<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> datatype:</span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"json"</span><span style="font-family: "consolas"; font-size: 9.5pt;">,<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> headers:<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> Accept: </span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"application/json;odata=verbose"</span><span style="font-family: "consolas"; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> });<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> call.done(</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">function</span><span style="font-family: "consolas"; font-size: 9.5pt;"> (data, textstatus,
jqXHR) {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">var</span><span style="font-family: "consolas"; font-size: 9.5pt;"> msg = jQuery(</span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"#webtitle"</span><span style="font-family: "consolas"; font-size: 9.5pt;">);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> msg.text(</span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"Web Title is
:"</span><span style="font-family: "consolas"; font-size: 9.5pt;">).append(data.d.Title);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> });<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> call.fail(</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">function</span><span style="font-family: "consolas"; font-size: 9.5pt;"> (data, textstatus,
jqXHR) {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> alert(</span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">'failed to get the
result'</span><span style="font-family: "consolas"; font-size: 9.5pt;">);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> });<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
}<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">function</span><span style="font-family: "consolas"; font-size: 9.5pt;"> GetCurrentUser()<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
{<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">var</span><span style="font-family: "consolas"; font-size: 9.5pt;"> call = jQuery.ajax({<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
url:_spPageContextInfo.webAbsoluteUrl + </span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"/_api/Web/?$select=CurrentUser&$expand=CurrentUser"</span><span style="font-family: "consolas"; font-size: 9.5pt;">,<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> type:</span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"GET"</span><span style="font-family: "consolas"; font-size: 9.5pt;">,<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> datatype: </span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"json"</span><span style="font-family: "consolas"; font-size: 9.5pt;">,<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> headers:<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> Accept : </span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"application/json;odata=verbose"</span><span style="font-family: "consolas"; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> });<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> call.done(</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">function</span><span style="font-family: "consolas"; font-size: 9.5pt;"> (data, textstatus,
jqXHR) {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">var</span><span style="font-family: "consolas"; font-size: 9.5pt;"> msg = jQuery(</span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"#User"</span><span style="font-family: "consolas"; font-size: 9.5pt;">);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> msg.text(</span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"User Title is
:"</span><span style="font-family: "consolas"; font-size: 9.5pt;">).append(data.d.CurrentUser.Title);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> });<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> call.fail(</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">function</span><span style="font-family: "consolas"; font-size: 9.5pt;"> (data, textstatus,
jqXHR) {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> alert(</span><span style="color: #a31515; font-family: "consolas"; font-size: 9.5pt;">'failed to get the
result'</span><span style="font-family: "consolas"; font-size: 9.5pt;">);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> });<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
}<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;"></</span><span style="color: maroon; font-family: "consolas"; font-size: 9.5pt;">script</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">></span><span style="font-family: "consolas"; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;"><</span><span style="color: maroon; font-family: "consolas"; font-size: 9.5pt;">div</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">></span><span style="font-family: "consolas"; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;"><</span><span style="color: maroon; font-family: "consolas"; font-size: 9.5pt;">p</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">id</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">="webtitle"></</span><span style="color: maroon; font-family: "consolas"; font-size: 9.5pt;">p</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">></span><span style="font-family: "consolas"; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;"><</span><span style="color: maroon; font-family: "consolas"; font-size: 9.5pt;">p</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">id</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">="User"></span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;"></</span><span style="color: maroon; font-family: "consolas"; font-size: 9.5pt;">p</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">></span><span style="font-family: "consolas"; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;"><</span><span style="color: maroon; font-family: "consolas"; font-size: 9.5pt;">p</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">id</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">="list"></span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;"></</span><span style="color: maroon; font-family: "consolas"; font-size: 9.5pt;">p</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">></span><span style="font-family: "consolas"; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;"><</span><span style="color: maroon; font-family: "consolas"; font-size: 9.5pt;">ul</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">id</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">="litems"></</span><span style="color: maroon; font-family: "consolas"; font-size: 9.5pt;">ul</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">></span><span style="font-family: "consolas"; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;"><</span><span style="color: maroon; font-family: "consolas"; font-size: 9.5pt;">p</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">id</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">="additem"></</span><span style="color: maroon; font-family: "consolas"; font-size: 9.5pt;">p</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">></span><span style="font-family: "consolas"; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;"><</span><span style="color: maroon; font-family: "consolas"; font-size: 9.5pt;">input</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">id</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">="webtitleid"</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">type</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">="button"</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">value</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">="GetWebTitle"</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">/></span><span style="font-family: "consolas"; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;"><</span><span style="color: maroon; font-family: "consolas"; font-size: 9.5pt;">input</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">id</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">="CurrentUser"</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">type</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">="button"</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">value</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">="GEtCurrentUser"</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">style</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">="</span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">margin</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">: 10px;"</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">/></span><span style="font-family: "consolas"; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;"><</span><span style="color: maroon; font-family: "consolas"; font-size: 9.5pt;">input</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">id</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">="createList"</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">type</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">="button"</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">value</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">="CreateList"</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">style</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">="</span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">margin</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">: 10px;"</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">/></span><span style="font-family: "consolas"; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;"><</span><span style="color: maroon; font-family: "consolas"; font-size: 9.5pt;">input</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">id</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">="listitems"</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">type</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">="button"</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">value</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">="GetProductsListItems"</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">style</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">="</span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">margin</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">: 10px;"</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">/></span><span style="font-family: "consolas"; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;"><</span><span style="color: maroon; font-family: "consolas"; font-size: 9.5pt;">input</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">id</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">="addlistitem"</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">type</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">="button"</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">value</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">="AddProductsListitem"</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">style</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">="</span><span style="color: red; font-family: "consolas"; font-size: 9.5pt;">margin</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">: 10px;"</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">/></span><span style="font-family: "consolas"; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "consolas"; font-size: 9.5pt;">
</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;"><</span><span style="color: maroon; font-family: "consolas"; font-size: 9.5pt;">br</span><span style="font-family: "consolas"; font-size: 9.5pt;"> </span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">/></span><span style="font-family: "consolas"; font-size: 9.5pt;"><o:p></o:p></span></div>
<br />
<div class="MsoNormal">
<span style="font-family: "consolas"; font-size: 9.5pt; line-height: 107%;"> </span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt; line-height: 107%;"></</span><span style="color: maroon; font-family: "consolas"; font-size: 9.5pt; line-height: 107%;">div</span><span style="color: blue; font-family: "consolas"; font-size: 9.5pt; line-height: 107%;">></span><o:p></o:p></div>
</div>
<div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<h2 style="text-align: left;">
</h2>
</div>
</div>
</div>
Soreddy Manjunathhttp://www.blogger.com/profile/04248291203755179066noreply@blogger.com0tag:blogger.com,1999:blog-2735155418554959110.post-62547659432669372462016-12-20T21:39:00.001-08:002016-12-20T21:39:37.815-08:00Client Object Model code to find List item level permissions<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white; color: blue; mso-bidi-font-family: Consolas; mso-highlight: white;"><br /></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"><br /></span></div>
<h3 style="line-height: normal; margin-bottom: 0.0001pt; text-align: left;">
<span style="background: white;">Client Object Model Code to find list items that has unique permissions</span></h3>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: left;">
<span style="background: white; color: blue; mso-bidi-font-family: Consolas; mso-highlight: white;"><br /></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white; color: blue; mso-bidi-font-family: Consolas; mso-highlight: white;">using</span><span style="background: white;"> System;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white; color: blue; mso-bidi-font-family: Consolas; mso-highlight: white;">using</span><span style="background: white;"> System.Collections.Generic;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white; color: blue; mso-bidi-font-family: Consolas; mso-highlight: white;">using</span><span style="background: white;"> System.Linq;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white; color: blue; mso-bidi-font-family: Consolas; mso-highlight: white;">using</span><span style="background: white;"> System.Text;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white; color: blue; mso-bidi-font-family: Consolas; mso-highlight: white;">using</span><span style="background: white;"> System.Threading.Tasks;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white; color: blue; mso-bidi-font-family: Consolas; mso-highlight: white;">using</span><span style="background: white;"> Microsoft.SharePoint.Client;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white; color: blue; mso-bidi-font-family: Consolas; mso-highlight: white;">namespace</span><span style="background: white;"> CSOMTestUserAccessItems<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> </span><span style="background: white; color: blue; mso-bidi-font-family: Consolas; mso-highlight: white;">class</span><span style="background: white;"> </span><span style="background: white; color: #2b91af; mso-bidi-font-family: Consolas; mso-highlight: white;">Program</span><span style="background: white;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> </span><span style="background: white; color: blue; mso-bidi-font-family: Consolas; mso-highlight: white;">static</span><span style="background: white;"> </span><span style="background: white; color: blue; mso-bidi-font-family: Consolas; mso-highlight: white;">void</span><span style="background: white;"> Main(</span><span style="background: white; color: blue; mso-bidi-font-family: Consolas; mso-highlight: white;">string</span><span style="background: white;">[] args)<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> </span><span style="background: white; color: #2b91af; mso-bidi-font-family: Consolas; mso-highlight: white;">ClientContext</span><span style="background: white;"> ctx = </span><span style="background: white; color: blue; mso-bidi-font-family: Consolas; mso-highlight: white;">new</span><span style="background: white;"> </span><span style="background: white; color: #2b91af; mso-bidi-font-family: Consolas; mso-highlight: white;">ClientContext</span><span style="background: white;">(</span><span style="background: white; color: #a31515; mso-bidi-font-family: Consolas; mso-highlight: white;">"http://spdev.sp2013.com/"</span><span style="background: white;">);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> ctx.AuthenticationMode = </span><span style="background: white; color: #2b91af; mso-bidi-font-family: Consolas; mso-highlight: white;">ClientAuthenticationMode</span><span style="background: white;">.Default;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> ctx.Credentials = System.Net.</span><span style="background: white; color: #2b91af; mso-bidi-font-family: Consolas; mso-highlight: white;">CredentialCache</span><span style="background: white;">.DefaultNetworkCredentials;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> </span><span style="background: white; color: #2b91af; mso-bidi-font-family: Consolas; mso-highlight: white;">Web</span><span style="background: white;"> web = ctx.Web;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> ctx.Load(web, w => w.Title);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> ctx.Load(web, w =>
w.CurrentUser.LoginName);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> </span><span style="background: white; color: #2b91af; mso-bidi-font-family: Consolas; mso-highlight: white;">List</span><span style="background: white;"> list = ctx.Web.Lists.GetByTitle(</span><span style="background: white; color: #a31515; mso-bidi-font-family: Consolas; mso-highlight: white;">"Products"</span><span style="background: white;">);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> </span><span style="background: white; color: #2b91af; mso-bidi-font-family: Consolas; mso-highlight: white;">CamlQuery</span><span style="background: white;"> qry = </span><span style="background: white; color: blue; mso-bidi-font-family: Consolas; mso-highlight: white;">new</span><span style="background: white;"> </span><span style="background: white; color: #2b91af; mso-bidi-font-family: Consolas; mso-highlight: white;">CamlQuery</span><span style="background: white;">();<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> qry.ViewXml = </span><span style="background: white; color: #a31515; mso-bidi-font-family: Consolas; mso-highlight: white;">"<view></view>"</span><span style="background: white;">;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> </span><span style="background: white; color: #2b91af; mso-bidi-font-family: Consolas; mso-highlight: white;">ListItemCollection</span><span style="background: white;"> Listitems = list.GetItems(qry);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> ctx.Load(Listitems);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> ctx.Load(Listitems, li =>
li.Include(i => i.HasUniqueRoleAssignments));<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> ctx.ExecuteQuery();<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> </span><span style="background: white; color: blue; mso-bidi-font-family: Consolas; mso-highlight: white;">var</span><span style="background: white;"> user = web.CurrentUser.LoginName;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> </span><span style="background: white; color: blue; mso-bidi-font-family: Consolas; mso-highlight: white;">foreach</span><span style="background: white;"> (</span><span style="background: white; color: #2b91af; mso-bidi-font-family: Consolas; mso-highlight: white;">ListItem</span><span style="background: white;"> item </span><span style="background: white; color: blue; mso-bidi-font-family: Consolas; mso-highlight: white;">in</span><span style="background: white;"> Listitems)<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> </span><span style="background: white; color: #2b91af; mso-bidi-font-family: Consolas; mso-highlight: white;">Console</span><span style="background: white;">.WriteLine();<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> </span><span style="background: white; color: blue; mso-bidi-font-family: Consolas; mso-highlight: white;">if</span><span style="background: white;"> ((item.HasUniqueRoleAssignments))<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> </span><span style="background: white; color: #2b91af; mso-bidi-font-family: Consolas; mso-highlight: white;">ClientResult</span><span style="background: white;"><</span><span style="background: white; color: #2b91af; mso-bidi-font-family: Consolas; mso-highlight: white;">BasePermissions</span><span style="background: white;">> permissions =
item.GetUserEffectivePermissions(</span><span style="background: white; color: #a31515; mso-bidi-font-family: Consolas; mso-highlight: white;">@"i:0#.w|sp2013\manjunath.soreddy"</span><span style="background: white;">);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> ctx.ExecuteQuery();<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> </span><span style="background: white; color: blue; mso-bidi-font-family: Consolas; mso-highlight: white;">var</span><span style="background: white;"> hasPermissions = permissions.Value.Has(</span><span style="background: white; color: #2b91af; mso-bidi-font-family: Consolas; mso-highlight: white;">PermissionKind</span><span style="background: white;">.ViewListItems);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> </span><span style="background: white; color: blue; mso-bidi-font-family: Consolas; mso-highlight: white;">if</span><span style="background: white;"> (hasPermissions)<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> </span><span style="background: white; color: #2b91af; mso-bidi-font-family: Consolas; mso-highlight: white;">Console</span><span style="background: white;">.WriteLine(item[</span><span style="background: white; color: #a31515; mso-bidi-font-family: Consolas; mso-highlight: white;">"Title"</span><span style="background: white;">] + </span><span style="background: white; color: #a31515; mso-bidi-font-family: Consolas; mso-highlight: white;">" ...."</span><span style="background: white;"> + item[</span><span style="background: white; color: #a31515; mso-bidi-font-family: Consolas; mso-highlight: white;">"Price"</span><span style="background: white;">] + </span><span style="background: white; color: #a31515; mso-bidi-font-family: Consolas; mso-highlight: white;">"....."</span><span style="background: white;"> + item[</span><span style="background: white; color: #a31515; mso-bidi-font-family: Consolas; mso-highlight: white;">"Quantity"</span><span style="background: white;">]);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> </span><span style="background: white; color: #2b91af; mso-bidi-font-family: Consolas; mso-highlight: white;">Console</span><span style="background: white;">.Read();<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="background: white;"> }<o:p></o:p></span></div>
<br />
<div class="MsoNormal">
<span style="background: white;">}</span><o:p></o:p></div>
</div>
Soreddy Manjunathhttp://www.blogger.com/profile/04248291203755179066noreply@blogger.com1tag:blogger.com,1999:blog-2735155418554959110.post-51936877623278294502016-08-18T22:46:00.001-07:002016-08-18T22:46:23.589-07:00Restore-SPSite : The operation that you are attempting to perform cannot be completed successfully<div dir="ltr" style="text-align: left;" trbidi="on">
<h3 style="text-align: left;">
<br /></h3>
<div>
Restore-SPSite -Identity "http://softwaredev.sp2013.com/" -Force -Path "E:\BACKUP\gcs-Prodsitecoll-07132016.bak" -Confirm:$false </div>
<h3 style="text-align: left;">
<br />Restore-SPSite : The operation that you are attempting to perform cannot be completed successfully. No content databases in the web application were available to store your site collection. The existing content databases may have reached the maximum number of site collections, or be set to read-only, or be offline, or may already contain a copy of this site collection. </h3>
<div>
<br /></div>
<h3 style="text-align: left;">
Solution : </h3>
<div>
<br /></div>
<div>
specify the parameters DatabaseServer and DatabaseName details which will fix the issue</div>
<div>
<br /></div>
<h4 style="text-align: left;">
Restore-SPSite -Identity "http://softwaredev.sp2013.com/" -Force -Path "E:\BACKUP\gcs-Prodsitecoll-07132016.bak" -Confirm:$false -DatabaseServer "inblrinvapp02dp" -DatabaseName "WSS_Content_softwaresupportdev"</h4>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
</div>
Soreddy Manjunathhttp://www.blogger.com/profile/04248291203755179066noreply@blogger.com0tag:blogger.com,1999:blog-2735155418554959110.post-48183568747749794722016-07-18T06:35:00.002-07:002016-07-18T06:47:08.246-07:00AddAttachment CSOM SharePoint 2010<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
</h2>
<h2 style="text-align: left;">
<a href="http://soreddymanjunath.blogspot.in/2016/07/addattachment-csom-sharepoint-2010.html" target="_blank">AddAttachment to Sharepoint 2010 List item CSOM</a></h2>
<div>
<br /></div>
<div>
Below is the code to add an attachment to<a href="http://soreddymanjunath.blogspot.in/2016/07/addattachment-csom-sharepoint-2010.html" target="_blank"> sharePoint 2010 list item through CSOM</a> with WebReference, </div>
<br />
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">using</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> System;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">using</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> System.Collections.Generic;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">using</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> System.Linq;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">using</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> System.Text;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">using</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> System.Threading.Tasks;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">using</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> Microsoft.SharePoint.Client;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">using</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> System.IO;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">using</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> System.Data;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">using</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> System.Net;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">namespace</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> CSOMFileUpload<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> </span><span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">class</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> </span><span style="background: white; color: #2b91af; font-family: "consolas"; font-size: 9.5pt;">Program</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> </span><span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">static</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> </span><span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">void</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> Main(</span><span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">string</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;">[] args)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> <o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> </span><span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">const</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> </span><span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">string</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> listName = </span><span style="background: white; color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"Test"</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;">; <o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> </span><span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">var</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> credentials = </span><span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">new</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> </span><span style="background: white; color: #2b91af; font-family: "consolas"; font-size: 9.5pt;">NetworkCredential</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;">(</span><span style="background: white; color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"manjunath.soreddy"</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;">, </span><span style="background: white; color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"MS"</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;">, </span><span style="background: white; color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"dev"</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;">);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> </span><span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">var</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> clientContext = </span><span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">new</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> </span><span style="background: white; color: #2b91af; font-family: "consolas"; font-size: 9.5pt;">ClientContext</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;">(</span><span style="background: white; color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"https://spdev.com/TestSite/"</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;">);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> clientContext.Credentials =
credentials; <o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> </span><span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">var</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> list = clientContext.Web.Lists.GetByTitle(listName);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> </span><span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">var</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> itemCreateInfo = </span><span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">new</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> </span><span style="background: white; color: #2b91af; font-family: "consolas"; font-size: 9.5pt;">ListItemCreationInformation</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;">();<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> </span><span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">var</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> newItem = list.AddItem(itemCreateInfo);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> newItem[</span><span style="background: white; color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"Title"</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;">] = </span><span style="background: white; color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"Soreddy Client API"</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;">;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> newItem.Update();<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> clientContext.ExecuteQuery();<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> clientContext.Load(newItem);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> clientContext.ExecuteQuery(); <o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> </span><span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">string</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> path = </span><span style="background: white; color: #a31515; font-family: "consolas"; font-size: 9.5pt;">@"c:\OutPutLog.txt"</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;">;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> </span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"></span><span style="background: white; color: green; font-family: "consolas"; font-size: 9.5pt;">//Here Uploadfile.inv is a Webreference which we have added to SharePoint 2010 Site from Visual Studio to add follow below steps</span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="background: white; color: green; font-family: "consolas"; font-size: 9.5pt;">// Solution Explorer---> Add Service Reference ---> Advanced-> Add Web Reference --> URL</span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; color: green; font-family: "consolas"; font-size: 9.5pt;"><br /></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> </span><span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">var</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> refin = </span><span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">new</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> Uploadfile.inv.</span><span style="background: white; color: #2b91af; font-family: "consolas"; font-size: 9.5pt;">Lists</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;">();<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> refin.Credentials = </span><span style="background: white; color: #2b91af; font-family: "consolas"; font-size: 9.5pt;">CredentialCache</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;">.DefaultCredentials;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> refin.Url = </span><span style="background: white; color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"https://spdev.com/TestSite/"</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;">);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; color: #a31515; font-family: "consolas"; font-size: 9.5pt;">/_vti_bin/Lists.asmx"</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;">;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> refin.AddAttachment(listName,
newItem[</span><span style="background: white; color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"ID"</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;">].ToString(), </span><span style="background: white; color: #2b91af; font-family: "consolas"; font-size: 9.5pt;">Path</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;">.GetFileName(path),<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;">
System.IO.</span><span style="background: white; color: #2b91af; font-family: "consolas"; font-size: 9.5pt;">File</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;">.ReadAllBytes(path));<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;">}<o:p></o:p></span></div>
<br />
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<h3 style="text-align: left;">
<o:p><b>OutPut:</b></o:p></h3>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://soreddymanjunath.blogspot.in/2016/07/addattachment-csom-sharepoint-2010.html" target="_blank"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj95Fa7_s65KhI2dCyoUuy-LqCmb_ctpORmz2lHYC8QpnmLddYkmGGhHL8TLXWlxknJXKhccOCP1n4mRIXxiVlGRnuI_EhcjHCxWY8l6rsYFgI2mKLIrBZVbGB_1k39ywgtMD0eDpvb9oV1/s1600/soreddyattachment.png" /></a><span id="goog_608498966"></span><span id="goog_608498967"></span><a href="https://www.blogger.com/"></a></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://soreddymanjunath.blogspot.in/2016/07/addattachment-csom-sharepoint-2010.html" target="_blank"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4ggVtrIjzoqa1WLqgs-xKxpebs8Ck53lK7e3Jcpo1NZ7ja3ZOXGrsyeert1Fh95RgXZytTbxePxsx_JShLOf6BcVvwMKkmERh8534UV1b48A-fHyf2TjcHsoqXzpgci_YDRYjKb_qshyphenhyphenX/s1600/testattachment.png" /></a></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
</div>
Soreddy Manjunathhttp://www.blogger.com/profile/04248291203755179066noreply@blogger.com0tag:blogger.com,1999:blog-2735155418554959110.post-17912881228441066122016-07-18T06:04:00.001-07:002016-07-18T06:08:07.736-07:00Load All UserProfile properties CSOM<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<h3 style="text-align: left;">
Load All the UserProfile properties of a Logged in User </h3>
<br />
<br />
Below code will load all user profile properties of a current logged in user in CSOM<br />
<br />
<br />
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">using</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> System;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">using</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> System.Collections.Generic;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">using</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> System.Linq;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">using</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> System.Text;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">using</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> System.Threading.Tasks;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">using</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> Microsoft.SharePoint.Client;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">using</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> Microsoft.SharePoint.Client.UserProfiles;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">using</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> System.Net;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">namespace</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> UserProfilePropertiesCSOM<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> </span><span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">class</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> </span><span style="background: white; color: #2b91af; font-family: "consolas"; font-size: 9.5pt;">Program</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> </span><span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">static</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> </span><span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">void</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> Main(</span><span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">string</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;">[] args)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> </span><span style="background: white; color: #2b91af; font-family: "consolas"; font-size: 9.5pt;">ClientContext</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> ctx = </span><span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">new</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> </span><span style="background: white; color: #2b91af; font-family: "consolas"; font-size: 9.5pt;">ClientContext</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;">(</span><span style="background: white; color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"http://Sharepointdevsite:3636/"</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;">);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> </span><span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">var</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> cuser = ctx.Web.CurrentUser;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> ctx.Load(cuser); </span><span style="background: white; color: green; font-family: "consolas"; font-size: 9.5pt;">//Load the Current Logged User</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> ctx.ExecuteQuery(); <o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> </span><span style="background: white; color: #2b91af; font-family: "consolas"; font-size: 9.5pt;">PeopleManager</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> peopleManager = </span><span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">new</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> </span><span style="background: white; color: #2b91af; font-family: "consolas"; font-size: 9.5pt;">PeopleManager</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;">(ctx); <o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> </span><span style="background: white; color: #2b91af; font-family: "consolas"; font-size: 9.5pt;">PersonProperties</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> userProperites =
peopleManager.GetPropertiesFor(cuser.LoginName);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> ctx.Load(userProperites, p =>
p.AccountName, p =><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> p.UserProfileProperties);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> ctx.ExecuteQuery();<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> </span><span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">foreach</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> (</span><span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">var</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> property </span><span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">in</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> userProperites.UserProfileProperties)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> </span><span style="background: white; color: #2b91af; font-family: "consolas"; font-size: 9.5pt;">Console</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;">.WriteLine(</span><span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">string</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;">.Format(</span><span style="background: white; color: #a31515; font-family: "consolas"; font-size: 9.5pt;">"{0}:
{1}"</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;">,<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> property.Key.ToString(),
property.Value.ToString()));<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> </span><span style="background: white; color: #2b91af; font-family: "consolas"; font-size: 9.5pt;">Console</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;">.ReadKey(</span><span style="background: white; color: blue; font-family: "consolas"; font-size: 9.5pt;">false</span><span style="background: white; font-family: "consolas"; font-size: 9.5pt;">);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: "consolas"; font-size: 9.5pt;">}<o:p></o:p></span></div>
<br />
<h3 style="text-align: left;">
<b>Ouput:</b></h3>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSToxkQ2rwWvVXicmamJfSQGSKJxRHhv2dfpnwj4bRW4wfd1Wg5QgHffwrGoYhyphenhyphen7DJyVne10_XGSAn5Rkm7pLXSYZKoTwH3YAP0G2QhJXRxvIXReV4P6VKl2VX9GjyD9eKjfMJQJdmUThn/s1600/userprofile.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="324" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSToxkQ2rwWvVXicmamJfSQGSKJxRHhv2dfpnwj4bRW4wfd1Wg5QgHffwrGoYhyphenhyphen7DJyVne10_XGSAn5Rkm7pLXSYZKoTwH3YAP0G2QhJXRxvIXReV4P6VKl2VX9GjyD9eKjfMJQJdmUThn/s640/userprofile.png" width="640" /></a></div>
<br />
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
</div>
Soreddy Manjunathhttp://www.blogger.com/profile/04248291203755179066noreply@blogger.com0tag:blogger.com,1999:blog-2735155418554959110.post-55785726123597982962016-07-04T07:15:00.002-07:002016-07-04T07:15:15.328-07:00Unknown SharePoint version: 16.0 Parameter name: version 0 0 <div dir="ltr" style="text-align: left;" trbidi="on">
Error while deploying app to SharePoint 2013 from Visual Studio<br />
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ4uivY29BU-4nQj0NDx67gys5bG0Bi_e3adJvzLKNjpvBhx65RP97UUJkCcVhBXkb5VK4D4AtP2SmUabZPUmXGlsax8-nnwVdQui9FY8KUT8R_5rTT4X-Ddwy7aO51FWy32Fw8Sljx4N4/s1600/errorwhiledeployapp.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="156" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ4uivY29BU-4nQj0NDx67gys5bG0Bi_e3adJvzLKNjpvBhx65RP97UUJkCcVhBXkb5VK4D4AtP2SmUabZPUmXGlsax8-nnwVdQui9FY8KUT8R_5rTT4X-Ddwy7aO51FWy32Fw8Sljx4N4/s640/errorwhiledeployapp.png" width="640" /></a><br />
<br />
<h2 style="text-align: left;">
<b>Solution :</b></h2>
<br />
Go to Project -> Project Properties from Visual Studio<br />
<br />
i.e In the Tools menu<br />
<br />
Debub -> yourprojectName Properties ( In mycase its TestApp Properties)<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgam2iuC5VG-VFblk5JeB7rW0-3agUH5poyc7icJ2h3YZB0E3xmBYTVbsQ9f4QBJFvOOjCqBugUvyJIcEvrLcEJqsCNRUgtC1VeyTNTi-fGgz4EYBS0AAtOUI4t4HpjBSBqnZO2QPceEfhu/s1600/projectprop.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgam2iuC5VG-VFblk5JeB7rW0-3agUH5poyc7icJ2h3YZB0E3xmBYTVbsQ9f4QBJFvOOjCqBugUvyJIcEvrLcEJqsCNRUgtC1VeyTNTi-fGgz4EYBS0AAtOUI4t4HpjBSBqnZO2QPceEfhu/s200/projectprop.png" width="195" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
In SharePoint Tab -> Change the Version from SharePoint online to SharePoint 2013 and Click OK<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0PQKp_H4sCtZhI-6gPyjOB2EuTbT24JKis5nMUG8nISEgCyLj2J-PObPLiWQGjrzuhLh5pPG1zcsAfRDjnAcfKivhpJIr7Qq1OQ43tITK9YdF2z-9Hqk1lCROsrQcKEGOqCHVKqaO3J2G/s1600/changever.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="207" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0PQKp_H4sCtZhI-6gPyjOB2EuTbT24JKis5nMUG8nISEgCyLj2J-PObPLiWQGjrzuhLh5pPG1zcsAfRDjnAcfKivhpJIr7Qq1OQ43tITK9YdF2z-9Hqk1lCROsrQcKEGOqCHVKqaO3J2G/s400/changever.png" width="400" /></a></div>
Try to Rebuild and deploy the solution hope it should fix<br />
<br />
<br />
<br />
<br /></div>
Soreddy Manjunathhttp://www.blogger.com/profile/04248291203755179066noreply@blogger.com0tag:blogger.com,1999:blog-2735155418554959110.post-65623083214850159482016-06-07T02:55:00.000-07:002016-06-07T02:55:07.285-07:00Message from External System Login Failed for user ....<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
Message from External System Login Failed for user ....<br />
<br />
<br />
When we are trying to create an External Content type with SharePoint Designer we will face an issue some thing like Message from External System Login Failed for user ... In order to fix it follow the below steps,.<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6UHDJ1-TJsSSzCN_cvQ0GtqnqYw9UlTWDv6JaQErSQ9JqhyCstmP6qZXuX_Mn4tfCguIpJYO5p0VbzdPEojYJOSiyCzWaCSuOfR0ZxJhtJkqCsUZmkkxZAzulLtzZrrs6J23ViqwCAuEh/s1600/bcs4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="532" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6UHDJ1-TJsSSzCN_cvQ0GtqnqYw9UlTWDv6JaQErSQ9JqhyCstmP6qZXuX_Mn4tfCguIpJYO5p0VbzdPEojYJOSiyCzWaCSuOfR0ZxJhtJkqCsUZmkkxZAzulLtzZrrs6J23ViqwCAuEh/s640/bcs4.png" width="640" /></a></div>
<br />
<br />
<b>Solution :</b><br />
<b><br /></b>
<b>Click on Add Connection - > </b>Select <b> </b>second option<b> Connect with impersonated Windows Identity</b><br />
<b><br /></b>
and provide Secure Store Application Id which was created in Central Admin to connect external system and Click on <b>Ok </b>button<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrLJRgOi9lA8OuMZ3GWW_DEXdu1aLgDq5ASF264qbp-bq3FbusVCtMRi0CVrUk_MTbhrh52oKAABj0gzueEk4Jc0AkBf14uzfgnZhPl2uW-BgokWProKzFyaMeoVM_ja_6ZELTfLMr2lDE/s1600/bcs4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="352" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrLJRgOi9lA8OuMZ3GWW_DEXdu1aLgDq5ASF264qbp-bq3FbusVCtMRi0CVrUk_MTbhrh52oKAABj0gzueEk4Jc0AkBf14uzfgnZhPl2uW-BgokWProKzFyaMeoVM_ja_6ZELTfLMr2lDE/s640/bcs4.png" width="640" /></a></div>
<b><br /></b>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYeNwzPgvX6E9-XcX4wxcH_3kDBWaIkel0ZbQy3mDI2ieeu9uid8hl5R2LDXJvAco5UzQaiXBWgpPAsgLChlgP2zLC79qaDZBIBeeyWhOKExsDbBHGlbNxNwAv_5ltnKsDnXU90V9pcm2x/s1600/bcs5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="440" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYeNwzPgvX6E9-XcX4wxcH_3kDBWaIkel0ZbQy3mDI2ieeu9uid8hl5R2LDXJvAco5UzQaiXBWgpPAsgLChlgP2zLC79qaDZBIBeeyWhOKExsDbBHGlbNxNwAv_5ltnKsDnXU90V9pcm2x/s640/bcs5.png" width="640" /></a></div>
select the option as per your requirment by Right clicking on Students table<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhltIHA_yLNX9fP5aTWO6HJ1OJM5_VAgWe_MEIUtNA9daiAqyAfK6sz4IB5A37u1Ph5F1BcQWaPhERR7Y1jrWXbJ2SfRX61ul9x8E6bY4PlYxmoBy0zfaMaDAGE7xnsWRN1Aq9cE8awblIw/s1600/bcs6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="544" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhltIHA_yLNX9fP5aTWO6HJ1OJM5_VAgWe_MEIUtNA9daiAqyAfK6sz4IB5A37u1Ph5F1BcQWaPhERR7Y1jrWXbJ2SfRX61ul9x8E6bY4PlYxmoBy0zfaMaDAGE7xnsWRN1Aq9cE8awblIw/s640/bcs6.png" width="640" /></a></div>
<br />
<br />
<br /></div>
Soreddy Manjunathhttp://www.blogger.com/profile/04248291203755179066noreply@blogger.com0tag:blogger.com,1999:blog-2735155418554959110.post-91743576920426137962016-06-07T02:20:00.002-07:002016-06-07T02:31:11.909-07:00 Access denied by Business Data Connectivity.<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<a href="http://soreddymanjunath.blogspot.in/2016/06/access-denied-by-business-data.html">Access denied by business data connectivity when creating external content type</a><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://soreddymanjunath.blogspot.in/2016/06/access-denied-by-business-data.html" target="_blank"><img border="0" height="259" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvoqaT8Qe8OphjkLpdWEVuA9FOpCAXaj1jsi6oFIEOVa5lK87tB05cDrCH0nU1mOTKacS0D5mmc4CNtPQsxUiZLpgS4HyrAgmYCZKjb3g7w5VOFeoiDF5dUuo20AOjw4Htvm4cCBVdnl9r/s640/accdenied.png" width="640" /></a><span id="goog_1852003907"></span><span id="goog_1852003908"></span><a href="https://www.blogger.com/"></a></div>
<br />
<br />
<h3 style="text-align: left;">
Solution :</h3>
<br />
Go to <b>Central Administration</b> -> <b>Manage Service Applications</b> -><b> <a href="http://soreddymanjunath.blogspot.in/2016/06/access-denied-by-business-data.html" target="_blank">Business Connectivity Service application</a></b><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://soreddymanjunath.blogspot.in/2016/06/access-denied-by-business-data.html" target="_blank"><img border="0" height="251" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFIVPK4Nn2sCRVAubM7on4BulG9rVuAgNwXPx3Rz3x0upxdSw7iDgwvlzsXeLP6UUTbnUwbQfVkNfaDwVqi1fR07C_eqn_HlBy7noz0TnnXE945AAXUinFOrVN3DQDG9jlkon6XI27-4w-/s640/bcs1.png" width="640" /></a></div>
<br />
<br />
Select the <b>External Content type</b> which you have created, and click on <b>Set Object Permissions </b>button in the ribbon,<br />
<br />
In my case its NewExternal content type.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKz8P0W6wT2AsKYOCm2EFtO7DXr85_rBYjaD20spAoQI9RAGntS7LSnsBP3cY-mOX-z8dPyYvc72J8qzoPYYlQ4OOuyUEd-Fs4uUBedoTyn6knkwXh9yTBKnlxqc2cFhANmF5Hv7S6I8sm/s1600/bcs2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="166" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKz8P0W6wT2AsKYOCm2EFtO7DXr85_rBYjaD20spAoQI9RAGntS7LSnsBP3cY-mOX-z8dPyYvc72J8qzoPYYlQ4OOuyUEd-Fs4uUBedoTyn6knkwXh9yTBKnlxqc2cFhANmF5Hv7S6I8sm/s640/bcs2.png" width="640" /></a></div>
<br />
Type<b> EveryOne </b>and click on <b>Add </b>button and Select <b>Execute</b> Check box and Click on <b>OK</b> Button<br />
<br />
<b><br /></b>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://soreddymanjunath.blogspot.in/2016/06/access-denied-by-business-data.html" target="_blank"><img border="0" height="582" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgR8TRoi4wEDkEQjzFKhGXcPuWQP3rX89Xod05xWB_XWJjC6OxvDdZsUrJnZi4_0x89zUNgq6Rx7rJt23jeqVboX4AMUaEBeBGvsx1-iyeN_KM4mJSFE5ChHvp72weCaCPtBMy-Fc8HSxYr/s640/bcs3.png" width="640" /></a></div>
<b><br /></b>
<b>That's set..., </b>you will be able to see the result <b>, </b>if still getting same error select<b> Edit </b>checkbox and<b> try it.</b><br />
<b><br /></b>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3piOwcsbGFrgDHqlQ6jbF37xumuh6enTtB51vCOQ2X2FjyUYsdY2DQ2joalLQlxugpHBvR0giPoKwItlBliJ1Mw2weWty0T8u1LNoo4-o6W6qTCrHVLgwIFkArvzmcMBWpFHj0Zid5FOA/s1600/bcs4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="274" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3piOwcsbGFrgDHqlQ6jbF37xumuh6enTtB51vCOQ2X2FjyUYsdY2DQ2joalLQlxugpHBvR0giPoKwItlBliJ1Mw2weWty0T8u1LNoo4-o6W6qTCrHVLgwIFkArvzmcMBWpFHj0Zid5FOA/s640/bcs4.png" width="640" /></a></div>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b></div>
Soreddy Manjunathhttp://www.blogger.com/profile/04248291203755179066noreply@blogger.com0tag:blogger.com,1999:blog-2735155418554959110.post-3270204906901966722016-05-31T07:21:00.002-07:002016-05-31T07:37:24.787-07:00The Secure Store Service application Secure Store Service Application is not accessible. The full exception text is: <div dir="ltr" style="text-align: left;" trbidi="on">
<h3 style="text-align: left;">
<span style="font-weight: normal;"></span></h3>
<h1 style="background-color: white; border: none; clear: both; color: #707070; font-family: 'Segoe UI', Arial, Helvetica, sans-serif; font-size: 36px; font-stretch: normal; font-weight: normal; height: auto; line-height: 46.8px; list-style-type: none; margin: -10px 0px 35px; outline: 0px; padding: 0px;">
<span name="subject" style="border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px;">Secure Store Service is not accessible</span></h1>
<h3 style="text-align: left;">
<a href="http://soreddymanjunath.blogspot.in/2016/05/the-secure-store-service-application.html" style="font-family: arial, helvetica, sans-serif; font-size: medium; font-weight: normal;">The Secure Store Service application Secure Store Service Application is not accessible. The full exception text is: The HTTP service located at https://........./SecureStoreService.svc/https is unavailable. This could be because the service is too busy or because no endpoint was found listening at the specified address. Please ensure that the address is correct and try accessing the service again later.</a></h3>
<div>
<span style="font-weight: normal;"><span style="font-family: "arial" , "helvetica" , sans-serif; font-size: small;"><br /></span></span>
<span style="font-weight: normal;"><span style="font-family: "arial" , "helvetica" , sans-serif; font-size: small;"><a href="http://soreddymanjunath.blogspot.in/2016/05/the-secure-store-service-application.html">Cannot complete this action as the secure store shared service is not responding Please contact Administrator.</a></span></span><br />
<span style="font-weight: normal;"><span style="font-family: "arial" , "helvetica" , sans-serif; font-size: small;"><br /></span></span></div>
<div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIyAXgU46eo1AfQnXfKugrMr2Q-U1abYalQ3o_J_DWBRYHOZS5inyXdPrlaJpbZTx3TN_CjcSEObpdsTB_NUrOoTBJFgOTfqd4tOCNe0jjH6oO-ACL68U4CUKGvTmPE77rFTDYz4WYI965/s1600/contact+SystemAdmin.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="168" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIyAXgU46eo1AfQnXfKugrMr2Q-U1abYalQ3o_J_DWBRYHOZS5inyXdPrlaJpbZTx3TN_CjcSEObpdsTB_NUrOoTBJFgOTfqd4tOCNe0jjH6oO-ACL68U4CUKGvTmPE77rFTDYz4WYI965/s640/contact+SystemAdmin.png" width="640" /></a><span style="font-weight: normal;"><span style="font-family: "arial" , "helvetica" , sans-serif; font-size: small;"><br /></span></span></div>
<div>
<span style="font-weight: normal;"><span style="font-family: "arial" , "helvetica" , sans-serif; font-size: small;"><br /></span></span></div>
<div>
<span style="font-weight: normal;"><span style="font-family: "arial" , "helvetica" , sans-serif; font-size: small;"><br /></span></span></div>
<div>
<span style="font-weight: normal;"><span style="font-family: "arial" , "helvetica" , sans-serif; font-size: small;"><br /></span></span></div>
<div>
<span style="font-weight: normal;"><span style="font-family: "arial" , "helvetica" , sans-serif; font-size: small;"><br /></span></span></div>
<div>
<span style="font-weight: normal;"><span style="font-family: "arial" , "helvetica" , sans-serif; font-size: small;"><br /></span></span></div>
<div>
<span style="font-weight: normal;"><span style="font-family: "arial" , "helvetica" , sans-serif; font-size: small;"><br /></span></span></div>
<div>
<span style="font-weight: normal;"><span style="font-family: "arial" , "helvetica" , sans-serif; font-size: small;"><br /></span></span></div>
<div>
<span style="font-weight: normal;"><span style="font-family: "arial" , "helvetica" , sans-serif; font-size: small;"><br /></span></span></div>
<div>
<span style="font-weight: normal;"><span style="font-family: "arial" , "helvetica" , sans-serif; font-size: small;"><br /></span></span></div>
<div>
<span style="font-weight: normal;"><span style="font-family: "arial" , "helvetica" , sans-serif; font-size: small;"><br /></span></span></div>
<div>
<span style="font-weight: normal;"><span style="font-family: "arial" , "helvetica" , sans-serif; font-size: small;"><br /></span></span></div>
<div>
<span style="font-weight: normal;"><span style="font-family: "arial" , "helvetica" , sans-serif; font-size: small;">Resolution:</span></span></div>
<div>
<span style="font-weight: normal;"><span style="font-family: "arial" , "helvetica" , sans-serif; font-size: small;"><br /></span></span></div>
<div>
<span style="font-weight: normal;"><span style="font-family: "arial" , "helvetica" , sans-serif; font-size: small;">1. Check AppPool Account which secure store service is running is not stopped.</span></span></div>
<div>
<span style="font-weight: normal;"><span style="font-family: "arial" , "helvetica" , sans-serif; font-size: small;"><br /></span></span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;">Go to Inetmgr -> Find the application pool for Secure store Service </span></div>
<div class="separator" style="clear: both; text-align: center;">
<img border="0" height="328" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqJrNAM7_cM1PqASgjd1IJ_iBAPJhLTJxeDmjXBJixHYHldxK939dkSmsqAgGWYbX83knGAMfDFQ2BLB57TTquZ5zzL9MnXWECIgDOcrW03RRuSw5nIXLvymgCH5MGStLUfPRN8gZf0lDS/s640/viewapplication.png" width="640" /><a href="http://soreddymanjunath.blogspot.in/2016/05/the-secure-store-service-application.html">http://soreddymanjunath.blogspot.in/2016/05/the-secure-store-service-application.html</a></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://soreddymanjunath.blogspot.in/2016/05/the-secure-store-service-application.html"><img border="0" height="166" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIYQPl0mmACNPktqq2zur94hotfhB9Ei4es_tGldBAZSNdcTYB-qOrgq9O0dEZN8_JPLWCJa157TSgYgwCMY27ZngwtcmwfySJ587ELxwup4eQTQKkrJgrxcbuHeeaTwMT0lPc8x54sDiu/s640/securestore.png" width="640" /></a></div>
<br />
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<img border="0" height="294" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXajaO7ueWHw9mxzVSsz6M8Wh1RVPUVczFx4YJTahXXY7Oy9bYZgVVx65SDpozt8b78dhZbG0uHWWgVAjIjbpZdT5lcgoW9tA_6QvGHBslv649rkYMc9zfI0O50lRA0y2fFcM5WAciNkNP/s640/startapppool.png" width="640" /><a href="http://soreddymanjunath.blogspot.in/2016/05/the-secure-store-service-application.html">http://soreddymanjunath.blogspot.in/2016/05/the-secure-store-service-application.html</a></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><b>If Stopped - start the AppPool</b></span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;">2. Check if Secure store service is not started, if not go and Start as below.</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;">Central Admin - > Application Management -> Manage Services on the Server </span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;">Secure Store Service -> Start</span></div>
<div>
<span style="font-weight: normal;"><span style="font-family: "arial" , "helvetica" , sans-serif; font-size: small;"><br /></span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://soreddymanjunath.blogspot.in/2016/05/the-secure-store-service-application.html"><img border="0" height="224" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSSNBM9VqHw5_tQuyJDykAni6DyL_DWGqYX2BwZUaeZmZgJhB8Krqsol9kWlGxFGha2-qUJM5VNdB4aBILkzt4FnkTkFX-r0DBTKlWMommf9HB6xWCCZvkGHLWPNXnDB0iJ4GR2DCc7u59/s640/startandstop.png" width="640" /></a></div>
<div>
<span style="font-weight: normal;"><span style="font-family: "arial" , "helvetica" , sans-serif; font-size: small;"><br /></span></span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;">Hope this will fix the issue , </span></div>
</div>
Soreddy Manjunathhttp://www.blogger.com/profile/04248291203755179066noreply@blogger.com1tag:blogger.com,1999:blog-2735155418554959110.post-60071959036451959232016-05-31T02:28:00.001-07:002016-05-31T02:28:18.268-07:00A Network-related or instance-specific error occurred while establishing connection to SQL Server, <div dir="ltr" style="text-align: left;" trbidi="on">
<h3 style="text-align: left;">
A Network-related or instance-specific error occurred while establishing connection to SQL Server, The Server was not found or was not accessible. verify that instance name is correct and that SQL Server is configured to allow remote connections.</h3>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFum9bOZwuDcvxM3uQuQBhBr9l8lkAkPCaLbz-hKcRrJ58h2MTt4FMh6xILVN8xsNSsHgea3UHXr_ZUjA1NFsTrYfuxBhBJdK_5zlV07mGw6u85Qaf0Bbp75nbUIlHVyTQmqwkGD5f2f2-/s1600/networkinstance.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFum9bOZwuDcvxM3uQuQBhBr9l8lkAkPCaLbz-hKcRrJ58h2MTt4FMh6xILVN8xsNSsHgea3UHXr_ZUjA1NFsTrYfuxBhBJdK_5zlV07mGw6u85Qaf0Bbp75nbUIlHVyTQmqwkGD5f2f2-/s1600/networkinstance.png" /></a></div>
<br />
<br />
<h2 style="text-align: left;">
Solution :</h2>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwFJd_WqqQSbInUpAIlXR-TiIVFAIC7etaNIx3DNgnDp_Hyn8wXowSzmUiIcaCZC529TB6xKNSZUD_VeJayxbVzwNt2QxDyAwoIF8biEe4KfmUAwrhSFCmH3V6bsrva0CPY3uDfq6itv7R/s1600/sqlconfig.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="279" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwFJd_WqqQSbInUpAIlXR-TiIVFAIC7etaNIx3DNgnDp_Hyn8wXowSzmUiIcaCZC529TB6xKNSZUD_VeJayxbVzwNt2QxDyAwoIF8biEe4KfmUAwrhSFCmH3V6bsrva0CPY3uDfq6itv7R/s320/sqlconfig.png" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXefLTGbjEa996NF56GrBJJDwDRklZ0oV2Bd9lb-uyABliFC-bGKf3PxOXfCnHzEFbuOCo7f0wyxLUWpSdAhFlCCRDynjiLt1UDmNI2czNwSL2nwS57MW4sB0sKNUeGFgO_McJyXP3wzEg/s1600/sqlserverconfigmanger.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXefLTGbjEa996NF56GrBJJDwDRklZ0oV2Bd9lb-uyABliFC-bGKf3PxOXfCnHzEFbuOCo7f0wyxLUWpSdAhFlCCRDynjiLt1UDmNI2czNwSL2nwS57MW4sB0sKNUeGFgO_McJyXP3wzEg/s640/sqlserverconfigmanger.png" width="640" /></a></div>
<br /></div>
Soreddy Manjunathhttp://www.blogger.com/profile/04248291203755179066noreply@blogger.com0tag:blogger.com,1999:blog-2735155418554959110.post-86060884087810052072016-05-30T04:57:00.000-07:002016-05-30T04:57:13.964-07:00Verification of prerequisites for Domain Controller promotion failed. The local Administrator account becomes the domain Administrator account when you create a new domain. The new domain cannot be created because the local Administrator account password does not meet requirements. Currently, a password is not required for the local Administrator account. We recommend that you use the net user command-line tool with the /passwordreq:yes option to require a password for this account before you create the new domain; otherwise, a password will not be required for the domain Administrator account.<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
Error While Setting Active Directory:</h2>
<br />
<div style="text-align: left;">
Verification of prerequisites for Domain Controller promotion failed. The local Administrator account becomes the domain Administrator account when you create a new domain. The new domain cannot be created because the local Administrator account password does not meet requirements. Currently, a password is not required for the local Administrator account. </div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
We recommend that you use the net user command-line tool with the /passwordreq:yes option to require a password for this account before you create the new domain; otherwise, a password will not be required for the domain Administrator account.</div>
<br />
<br />
<span style="font-family: Verdana, sans-serif; font-size: large;">Resolution:</span><br />
<span style="font-family: Verdana, sans-serif; font-size: large;"><br /></span>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJhdQlXBk_YgE1bm7bOcQf2mrU-kZgVDxBS0WIhJgoVGXGfx17GydcZeEPfKKanc2Xqd_xMcvk-J4opEFgBtfJWBdWOdJ_lElY_IssysP6QPoYnRt6w56iGreYG8qboSt4X4VYMC3TxIYg/s1600/adissue.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="169" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJhdQlXBk_YgE1bm7bOcQf2mrU-kZgVDxBS0WIhJgoVGXGfx17GydcZeEPfKKanc2Xqd_xMcvk-J4opEFgBtfJWBdWOdJ_lElY_IssysP6QPoYnRt6w56iGreYG8qboSt4X4VYMC3TxIYg/s640/adissue.png" width="640" /></a></div>
<span style="font-family: Verdana, sans-serif; font-size: large;"><br /></span>
<span style="font-family: Verdana, sans-serif; font-size: large;"><br /></span>
<span style="font-family: Verdana, sans-serif; font-size: large;"><br /></span>
<br />
<br />
<br />
<br /></div>
Soreddy Manjunathhttp://www.blogger.com/profile/04248291203755179066noreply@blogger.com1tag:blogger.com,1999:blog-2735155418554959110.post-80138033953787287632016-05-30T03:18:00.000-07:002016-05-30T03:34:51.648-07:00Change SQL Server Authentication Mode<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div style="font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 17.55px;">
<h2 class="LW_CollapsibleArea_TitleDiv" style="font-family: 'segoe ui semibold', 'segoe ui', 'lucida grande', verdana, arial, helvetica, sans-serif; font-size: 13px; font-weight: normal; line-height: 1.3em; margin: 0px; padding-bottom: 5px; padding-top: 20px; text-align: left;">
<span class="LW_CollapsibleArea_Title" style="cursor: text; display: inline-block; font-size: 1.769em; line-height: 1.3em; outline: none;"><a href="http://soreddymanjunath.blogspot.in/2016/05/change-sql-server-authentication-mode.html">Change Security Authentication Mode</a> <a href="http://soreddymanjunath.blogspot.in/2016/05/change-sql-server-authentication-mode.html">in </a></span><a href="http://soreddymanjunath.blogspot.in/2016/05/change-sql-server-authentication-mode.html"><span style="font-size: 1.769em; line-height: 1.3em;">SQL Server Management Studio</span><span style="font-size: 1.769em; line-height: 1.3em;">:</span></a></h2>
</div>
<ol style="font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 17.55px;">
<li><div style="color: #2a2a2a; line-height: 18px; padding-bottom: 15px;">
In SQL Server Management Studio Object Explorer, right-click the server, and then click <strong>Properties</strong>.</div>
</li>
<li><div style="color: #2a2a2a; line-height: 18px; padding-bottom: 15px;">
On the <strong>Security</strong> page, under <strong>Server authentication</strong>, select the new server authentication mode, and then click <strong>OK</strong>.</div>
</li>
<li><div style="color: #2a2a2a; line-height: 18px; padding-bottom: 15px;">
In the SQL Server Management Studio dialog box, click <strong>OK</strong> to acknowledge the requirement to restart SQL Server.</div>
</li>
<li><div style="color: #2a2a2a; line-height: 18px; padding-bottom: 15px;">
In Object Explorer, right-click your server, and then click <strong>Restart</strong>. If SQL Server Agent is running, it must also be restarted.</div>
</li>
</ol>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://soreddymanjunath.blogspot.in/2016/05/change-sql-server-authentication-mode.html"><img alt=" Change Security Authentication Mode" border="0" height="470" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjz40krr99k2Bns-r5c57HhyphenhyphenkmMj11kVl8zAUg70Ugz4f2enCR0y14TlPY7fZxiNzbGuV9qNm5qOK0xKOwOIvhe0tnC-RvMbc2NF41b9e9AaPNXuWCh08FxdXS1lu1eyjFLfIgerBQlp0Tb/s640/sq1.png" width="640" /></a></div>
<div>
<span style="color: #2a2a2a; font-family: "segoe ui" , "lucida grande" , "verdana" , "arial" , "helvetica" , sans-serif;"><span style="font-size: 13px; line-height: 18px;"><br /></span></span></div>
<div>
<span style="color: #2a2a2a; font-family: "segoe ui" , "lucida grande" , "verdana" , "arial" , "helvetica" , sans-serif;"><span style="font-size: 13px; line-height: 18px;"><br /></span></span></div>
<div>
<span style="color: #2a2a2a; font-family: "segoe ui" , "lucida grande" , "verdana" , "arial" , "helvetica" , sans-serif;"><span style="font-size: 13px; line-height: 18px;"><br /></span></span></div>
<h4 class="subHeading" style="font-family: 'Segoe UI Semibold', 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 1.077em; font-weight: normal; margin: 0px;">
<a href="http://soreddymanjunath.blogspot.in/2016/05/change-sql-server-authentication-mode.html">Enabling login for sa account</a></h4>
<ol style="font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 17.55px;">
<li><div style="color: #2a2a2a; line-height: 18px; padding-bottom: 15px;">
In Object Explorer, expand <strong>Security</strong>, expand Logins, right-click <strong>sa</strong>, and then click <strong>Properties</strong>.</div>
</li>
<li><div style="color: #2a2a2a; line-height: 18px; padding-bottom: 15px;">
On the <strong>General</strong> page, you might have to create and confirm a password for the login.</div>
</li>
</ol>
<div class="separator" style="clear: both; text-align: center;">
<img border="0" height="452" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzkUl8HaSn7zv_1J7h2mpRTtDTPCchXLbLXIn8B8E5tQH9GSLrUcBcU9gW8Y0FwWoJY5YPkxlD3JeVH0AHHOhxIv7RIbwdGSW9xJfdNsCNziVBcBef8F9U0C7dlUBMchpuIKQAaXrtxkgl/s640/sql2.png" width="640" /></div>
<div>
<span style="color: #2a2a2a; font-family: "segoe ui" , "lucida grande" , "verdana" , "arial" , "helvetica" , sans-serif;"><span style="font-size: 13px; line-height: 18px;"><br /></span></span>
<span style="color: #2a2a2a; font-family: "segoe ui" , "lucida grande" , "verdana" , "arial" , "helvetica" , sans-serif;"><span style="font-size: 13px; line-height: 18px;">On the <strong>Status</strong> page, in the <strong>Login</strong> section, click <strong>Enabled</strong>, and then click <strong>OK</strong>.</span></span><br />
<span style="color: #2a2a2a; font-family: "segoe ui" , "lucida grande" , "verdana" , "arial" , "helvetica" , sans-serif;"><span style="font-size: 13px; line-height: 18px;"><br /></span></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<img border="0" height="426" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj60eVG3WQ-k0eFSZADTb6VP8QMV0Buk_jFpmr8Jb6Bu6GA5mv_jBh_wG41cu7IUEcoeOvFDopP3SfwFM4K_n82K5sx6YEQ5K3JWlEoE1vszW-Q5yD7UEd911014jQRdl7Q6HwsZyI0WUAx/s640/sql2.png" width="640" /></div>
<span style="color: #2a2a2a; font-family: "segoe ui" , "lucida grande" , "verdana" , "arial" , "helvetica" , sans-serif;"><span style="font-size: 13px; line-height: 18px;"><br /></span></span>
<span style="color: #2a2a2a; font-family: "segoe ui" , "lucida grande" , "verdana" , "arial" , "helvetica" , sans-serif;"><span style="font-size: 13px; line-height: 18px;"><br /></span></span></div>
<div>
<span style="color: #2a2a2a; font-family: "segoe ui" , "lucida grande" , "verdana" , "arial" , "helvetica" , sans-serif;"><span style="font-size: 13px; line-height: 18px;"><br /></span></span></div>
</div>
Soreddy Manjunathhttp://www.blogger.com/profile/04248291203755179066noreply@blogger.com0tag:blogger.com,1999:blog-2735155418554959110.post-5559595936604867672016-02-14T23:10:00.001-08:002016-02-14T23:23:27.855-08:00Create Publishing Page using Powershell/ Create Pages from csv file<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<br />
Below is the code which will create the <a href="http://soreddymanjunath.blogspot.in/2016/02/create-publishing-page-using-powershell.html" target="_blank">Publishing page and added to Pages library</a> . Here i am using Blankwebpart page layout and reading pageurls from text file and creating pages.<br />
<br />
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "verdana" , sans-serif;">cls</span><span style="font-family: "verdana" , sans-serif;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "verdana" , sans-serif;">asnp</span><span style="font-family: "verdana" , sans-serif;"> <span style="color: darkred;">"*sh*"</span><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="color: orangered; font-family: "verdana" , sans-serif;">$web</span><span style="color: darkgrey; font-family: "verdana" , sans-serif;">=</span><span style="color: blue; font-family: "verdana" , sans-serif;">Get-SPWeb</span><span style="font-family: "verdana" , sans-serif;"> <span style="color: navy;">-Identity</span>
<span style="color: blueviolet;">http://SP2013dev:3636/</span><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="color: orangered; font-family: "verdana" , sans-serif;">$pubweb</span><span style="color: darkgrey; font-family: "verdana" , sans-serif;">=[</span><span style="color: teal; font-family: "verdana" , sans-serif;">Microsoft.SharePoint.Publishing.PublishingWeb</span><span style="color: darkgrey; font-family: "verdana" , sans-serif;">]::</span><span style="font-family: "verdana" , sans-serif;">GetPublishingWeb(<span style="color: orangered;">$web</span>)<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="color: orangered; font-family: "verdana" , sans-serif;">$file</span><span style="color: darkgrey; font-family: "verdana" , sans-serif;">=</span><span style="color: blue; font-family: "verdana" , sans-serif;">Import-Csv</span><span style="font-family: "verdana" , sans-serif;"> <span style="color: navy;">-LiteralPath</span>
<span style="color: blueviolet;">E:\MS\temp\pageurls.txt</span><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="color: orangered; font-family: "verdana" , sans-serif;">$pageLayout</span><span style="color: darkgrey; font-family: "verdana" , sans-serif;">=</span><span style="color: orangered; font-family: "verdana" , sans-serif;">$pubweb</span><span style="color: darkgrey; font-family: "verdana" , sans-serif;">.</span><span style="font-family: "verdana" , sans-serif;">GetAvailablePageLayouts()<span style="color: darkgrey;">|</span><span style="color: blue;">?</span>{<span style="color: orangered;">$_</span><span style="color: darkgrey;">.</span>Name <span style="color: darkgrey;">-eq</span> <span style="color: darkred;">"BlankWebPartPage.aspx"</span>}</span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="color: darkblue; font-family: "verdana" , sans-serif;">foreach</span><span style="font-family: "verdana" , sans-serif;">(<span style="color: orangered;">$page</span>
<span style="color: darkblue;">in</span> <span style="color: orangered;">$file</span><span style="color: darkgrey;">.</span>PageUrls)<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: "verdana" , sans-serif;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="color: orangered; font-family: "verdana" , sans-serif;">$newPage</span><span style="color: darkgrey; font-family: "verdana" , sans-serif;">=</span><span style="color: orangered; font-family: "verdana" , sans-serif;">$pubweb</span><span style="color: darkgrey; font-family: "verdana" , sans-serif;">.</span><span style="font-family: "verdana" , sans-serif;">AddPublishingPage(<span style="color: orangered;">$page</span><span style="color: darkgrey;">,</span><span style="color: orangered;">$pageLayout</span>);<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="color: orangered; font-family: "verdana" , sans-serif;">$newPage</span><span style="color: darkgrey; font-family: "verdana" , sans-serif;">.</span><span style="font-family: "verdana" , sans-serif;">Update();<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="color: orangered; font-family: "verdana" , sans-serif;">$newPage</span><span style="color: darkgrey; font-family: "verdana" , sans-serif;">.</span><span style="font-family: "verdana" , sans-serif;">CheckIn(<span style="color: darkred;">"Creating new page"</span>);<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="color: orangered; font-family: "verdana" , sans-serif;">$newPage</span><span style="color: darkgrey; font-family: "verdana" , sans-serif;">.</span><span style="font-family: "verdana" , sans-serif;">ListItem<span style="color: darkgrey;">.</span>File<span style="color: darkgrey;">.</span>Publish(<span style="color: darkred;">"new page is created"</span>);<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="color: orangered; font-family: "verdana" , sans-serif;">$web</span><span style="color: darkgrey; font-family: "verdana" , sans-serif;">.</span><span style="font-family: "verdana" , sans-serif;">Dispose();<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "verdana" , sans-serif;">Write-Host</span><span style="font-family: "verdana" , sans-serif;"> <span style="color: orangered;">$page</span>
<span style="color: darkred;">"Page is created"</span> <span style="color: navy;">-ForegroundColor</span> <span style="color: blueviolet;">Green</span><o:p></o:p></span></div>
<br />
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: "verdana" , sans-serif;">} <span style="font-size: 10pt;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: "verdana" , sans-serif;"><b>text file(</b></span><span style="color: blueviolet; font-family: "verdana" , sans-serif; font-size: 13.2px; line-height: 18.48px;">pageurls.txt</span><b style="font-family: verdana, sans-serif;">):</b></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: "verdana" , sans-serif;">PageUrls,</span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: "verdana" , sans-serif;">ISSAboutUs.aspx</span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: "verdana" , sans-serif;">ISSContactUs.aspx</span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: "verdana" , sans-serif;">ISSCustomerFirst.aspx</span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: "verdana" , sans-serif;">ISSVideos.aspx</span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: "verdana" , sans-serif;">ISSGenericCF.aspx</span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: "verdana" , sans-serif;">SolutionHub.aspx</span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: "verdana" , sans-serif;">ISSTechnotes.aspx</span></div>
<h3 style="background: white; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-size: small;"><span style="font-family: "verdana" , sans-serif;"><br /></span></span></h3>
<h3 style="background: white; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-size: small;"><span style="font-family: "verdana" , sans-serif;"><br /></span><span style="font-family: "verdana" , sans-serif;">OutPut</span><span style="font-family: "verdana" , sans-serif;"><br /></span></span></h3>
<div>
<span style="font-size: small;"><span style="font-family: "verdana" , sans-serif;"><br /></span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVnsEbSLKYSx8dp8OvlsnUofxZNSUo8u8Xz9ik_Utuq735f40rR8vn3gvhMThCDv65UxluZ9biuMlLtYblYa5C7DO2LjersM_OQHOfCGulxS0ZLxOFiekJhzEhcYVGCbjy2Bxx3zjbGlov/s1600/PagesOutput.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="316" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVnsEbSLKYSx8dp8OvlsnUofxZNSUo8u8Xz9ik_Utuq735f40rR8vn3gvhMThCDv65UxluZ9biuMlLtYblYa5C7DO2LjersM_OQHOfCGulxS0ZLxOFiekJhzEhcYVGCbjy2Bxx3zjbGlov/s640/PagesOutput.png" width="640" /></a></div>
<div>
<span style="font-size: small;"><span style="font-family: "verdana" , sans-serif;"><br /></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;"><br /></span></div>
</div>
Soreddy Manjunathhttp://www.blogger.com/profile/04248291203755179066noreply@blogger.com0tag:blogger.com,1999:blog-2735155418554959110.post-13554115560440690682016-01-04T23:34:00.000-08:002016-01-05T05:02:19.164-08:00Error while Configuring App Urls<div dir="ltr" style="text-align: left;" trbidi="on">
<h3 style="text-align: left;">
<span style="font-family: Verdana, sans-serif;"><a href="http://soreddymanjunath.blogspot.in/2016/01/error-while-configuring-app-urls.html" target="_blank">The Subscription Settings service and corresponding application and proxy needs to be running in order to make changes to these settings. </a></span></h3>
<div>
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6E3PYjFKMaUs2vnco6HyiV3JMT9vujYuHyhAyV1X7gTty9zwNh5qlQNZmrQ0iTD0Gc8_1Nh9iNo78irRemYO_njBdi-V1VTYHtcZUw24bFHoPaDKg745gHUn2TEiW9pueGYyQozQl0ZxS/s1600/AppUrlError.png" /></div>
<div>
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div>
<br /></div>
<div>
<div>
<span style="font-family: Verdana, sans-serif;">Solution:</span></div>
<div>
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div>
<span style="font-family: Verdana, sans-serif;">Central Administration -> Application Management -> Service Applications -> <i>Services on the Server</i></span></div>
<div>
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div>
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div>
<span style="background-color: rgba(255, 255, 255, 0.85098); color: #444444; font-family: 'Segoe UI', Segoe, Tahoma, Helvetica, Arial, sans-serif; font-size: 13px;">Click <b>Start </b>button of <b> </b></span></div>
<div>
<span style="background-color: rgba(255, 255, 255, 0.85098); color: #444444; font-family: 'Segoe UI', Segoe, Tahoma, Helvetica, Arial, sans-serif; font-size: 13px;"><b><br /></b></span></div>
<div>
<span style="background-color: rgba(255, 255, 255, 0.85098); color: #444444; font-family: 'Segoe UI', Segoe, Tahoma, Helvetica, Arial, sans-serif; font-size: 13px;"><b>App Management Service </b>and <b>Microsoft SharePoint Foundation Subscription Settings Service </b></span></div>
</div>
<div>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOlk8xDHGP0jfkPxvOdmS8JiJAdplqnQsJtQGok_4mZURDAUAJsgUhLpzdYy_UjjeW4FSUZ0-M4q5ZvsceSmcxnsEMeEe5VZmZCO8aDZeWiodXHfF-d4iZkb2HikOxCWUSXcGOMHnaaF8T/s1600/servicesonserver.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="476" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOlk8xDHGP0jfkPxvOdmS8JiJAdplqnQsJtQGok_4mZURDAUAJsgUhLpzdYy_UjjeW4FSUZ0-M4q5ZvsceSmcxnsEMeEe5VZmZCO8aDZeWiodXHfF-d4iZkb2HikOxCWUSXcGOMHnaaF8T/s640/servicesonserver.png" width="640" /></a></div>
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFJUnYP0c3hfuS27BuImjyGSBrUcg8ISFXeq9h6wF6ujqjgJZp4k29bBJObOcM9-8tyal5kOps6UOAFK0oUhCJtsRnwdZNkMAP39-RDNSb1Fi-LhevSZD4O3QwgLlWNhu-dQ3inZ8unuoK/s1600/startservices.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><br /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJStJ9AtVCj0dJNqRdfxVExuO_7DYZL1Qoym6GefBkHpwkW3I33ideaLSfj4TSqOdV4swwH3az1nNgQNyEfJynTqzdDUAqbPsUZ3K_w6zA9lybfyE561srU17PvbLw8FBrD2of5P7tNc2h/s1600/startingservices.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="360" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJStJ9AtVCj0dJNqRdfxVExuO_7DYZL1Qoym6GefBkHpwkW3I33ideaLSfj4TSqOdV4swwH3az1nNgQNyEfJynTqzdDUAqbPsUZ3K_w6zA9lybfyE561srU17PvbLw8FBrD2of5P7tNc2h/s640/startingservices.png" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEju_IZZlVMjeck2azhLpuNCz_LVUnBNNLVhb6KojsVZTFYB06VY7g2qcXO4NZGVTz73BgFDzEtAu8-dGDVcFfkb5apPJUM7cX-aN8FjXg1i4gv1wWZ8pbeT_G2TWbZu8ioSs46wro-MW957/s1600/startservices.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="300" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEju_IZZlVMjeck2azhLpuNCz_LVUnBNNLVhb6KojsVZTFYB06VY7g2qcXO4NZGVTz73BgFDzEtAu8-dGDVcFfkb5apPJUM7cX-aN8FjXg1i4gv1wWZ8pbeT_G2TWbZu8ioSs46wro-MW957/s640/startservices.png" width="640" /></a></div>
<br />
<br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">If you are still facing same issue then do an IISReset which will fix the issue.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<br />
<h3 style="text-align: left;">
<a href="http://soreddymanjunath.blogspot.in/2016/01/error-while-configuring-app-urls.html" target="_blank"><span style="font-family: Verdana, sans-serif;">Alternative We can RunPowerShell Scirpt to fix the issue if You haven't configured Service applications for AppManagement and Subscirption Service Settings </span></a></h3>
<br />
<br />
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: blue;">cls</span><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: blue;">asnp</span> <span style="color: darkred;">"*sh*"</span><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: darkgreen;">#start the <a href="http://soreddymanjunath.blogspot.in/2015/12/create-app-management-service.html" target="_blank">Service Instances App and Subscription service</a></span><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: blue;">Get-SPServiceInstance</span> <span style="color: darkgrey;">|</span><span style="color: blue;">?</span>{<span style="color: orangered;">$_</span><span style="color: darkgrey;">.</span>TypeName <span style="color: darkgrey;">-like</span> <span style="color: darkred;">"App Management Service"</span>} <span style="color: darkgrey;">|</span> <span style="color: blue;">Start-SPServiceInstance</span><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: blue;">Get-SPServiceInstance</span> <span style="color: darkgrey;">|</span> <span style="color: blue;">?</span> {<span style="color: orangered;">$_</span><span style="color: darkgrey;">.</span>TypeName <span style="color: darkgrey;">-like</span> <span style="color: darkred;">"Microsoft SharePoint Foundation Subscription Settings Service"</span>} <span style="color: darkgrey;">|</span> <span style="color: blue;">Start-SPServiceInstance</span><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="color: darkgreen; font-family: Verdana, sans-serif;">#Provide the service account as per your configuration</span><span style="font-family: Verdana, sans-serif;"> </span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: orangered;">$account</span><span style="color: darkgrey;">=</span><span style="color: blue;">Get-SPManagedAccount</span> <span style="color: navy;">-Identity</span> <span style="color: blueviolet;">CORP\Svc.AppsAccount</span><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: darkgreen;">#configure Subscription Service Application for Sharepoint</span><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: orangered;">$appPoolSubsvc</span><span style="color: darkgrey;">=</span><span style="color: blue;">New-SPServiceApplicationPool</span> <span style="color: navy;">-Name</span> <span style="color: darkred;">"SubscriptionServericeAppPool"</span> <span style="color: navy;">-Account</span> <span style="color: orangered;">$account</span><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: orangered;">$appSubSvc</span><span style="color: darkgrey;">=</span><span style="color: blue;">New-SPSubscriptionSettingsServiceApplication</span> <span style="color: navy;">-ApplicationPool</span> <span style="color: orangered;">$appPoolSubsvc</span> <span style="color: navy;">-Name</span> <span style="color: darkred;">"Subscription Service Application"</span> <span style="color: navy;">-DatabaseName</span> <span style="color: blueviolet;">SubscriptonServiceDB</span><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: orangered;">$proxySubSvc</span><span style="color: darkgrey;">=</span><span style="color: blue;">New-SPSubscriptionSettingsServiceApplicationProxy</span> <span style="color: navy;">-ServiceApplication</span> <span style="color: orangered;">$appSubSvc</span><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: blue;">Write-Host</span> <span style="color: darkred;">"Subscirption Service Application Created"</span><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: darkgreen;">#configure <a href="http://soreddymanjunath.blogspot.in/2015/12/create-app-management-service.html" target="_blank">AppManagement Service Application for Sarepoint</a></span><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: orangered;">$appPoolAppSvc</span><span style="color: darkgrey;">=</span> <span style="color: blue;">New-SPServiceApplicationPool</span> <span style="color: navy;">-Name</span> <span style="color: darkred;">"AppManagementServiceAppPook"</span> <span style="color: navy;">-Account</span> <span style="color: orangered;">$account</span><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: orangered;">$appsMgmtSvc</span><span style="color: darkgrey;">=</span> <span style="color: blue;">New-SPAppManagementServiceApplication</span> <span style="color: navy;">-ApplicationPool</span> <span style="color: orangered;">$appPoolAppSvc</span> <span style="color: navy;">-Name</span> <span style="color: darkred;">"Apps Management Service"</span> <span style="color: navy;">-DatabaseName</span> <span style="color: darkred;">"AppsDb"</span><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: orangered;">$proxyAppSvc</span><span style="color: darkgrey;">=</span><span style="color: blue;">New-SPAppManagementServiceApplicationProxy</span> <span style="color: navy;">-ServiceApplication</span> <span style="color: orangered;">$appsMgmtSvc</span><o:p></o:p></span></div>
<br />
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: blue;">Write-Host</span> <span style="color: darkred;">"Apps Management Service Application Created"</span></span></div>
</div>
</div>
Soreddy Manjunathhttp://www.blogger.com/profile/04248291203755179066noreply@blogger.com0tag:blogger.com,1999:blog-2735155418554959110.post-87573169811088720252016-01-04T23:32:00.000-08:002016-01-04T23:32:27.661-08:00Create Service Applications Using Powershell<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="font-size: 10pt;"><br /></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="font-size: 10pt;">Below is the Powershell script which will create basic Service Applications for SharePoint 2013 </span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: blue; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><br /></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: blue; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><br /></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: blue; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><br /></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: blue; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">cls</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: blue; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">asnp</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: darkred;">"*sh*"</span><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: Verdana, sans-serif; font-size: 10pt;">Write-Progress</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> <span style="color: navy;">-Activity</span> <span style="color: darkred;">"Instantiating
Variable "</span> <span style="color: navy;">-Status</span> <span style="color: darkred;">"Done
Variable Instantiation"</span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: orangered; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">$databaseServerName</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: darkgrey;">=</span> <span style="color: darkred;">"toolsteam"</span><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: orangered; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">$saAppPoolName</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: darkgrey;">=</span> <span style="color: darkred;">"SharePoint
AppPool Services"</span><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: orangered; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">$appPoolUserName</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: darkgrey;">=</span> <span style="color: darkred;">"Toolsteam0\spapppool"</span><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><span style="font-family: Verdana, sans-serif;"> <o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: darkgreen; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">##
Service Application Service Names ## </span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: orangered; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">$stateService</span><span style="color: darkgrey; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">=</span><span style="color: darkred; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">"State
Service Application"</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: orangered; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">$metadataSAName</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: darkgrey;">=</span> <span style="color: darkred;">"Managed
Metadata Web Service"</span><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: orangered; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">$usageSAName</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: darkgrey;">=</span> <span style="color: darkred;">"Usage and
Health Data Collection Service"</span><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: orangered; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">$userProfileSAName</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: darkgrey;">=</span> <span style="color: darkred;">"User Profile
Synchronization Service"</span><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><span style="font-family: Verdana, sans-serif;"> <o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: orangered; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">$saAppPool</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: darkgrey;">=</span> <span style="color: blue;">Get-SPServiceApplicationPool</span>
<span style="color: navy;">-Identity</span> <span style="color: orangered;">$saAppPoolName</span>
<span style="color: navy;">-ErrorAction</span> <span style="color: blueviolet;">SilentlyContinue</span><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: darkblue; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">if</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">(<span style="color: orangered;">$saAppPool</span> <span style="color: darkgrey;">-eq</span>
<span style="color: orangered;">$null</span>) <o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><span style="font-family: Verdana, sans-serif;">{ <o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><span style="font-family: Verdana, sans-serif;"> <span style="color: blue;">Write-Progress</span>
<span style="color: navy;">-Activity</span> <span style="color: darkred;">"Creating
Service Application Pool..."</span> <span style="color: navy;">-Status</span> <span style="color: darkred;">"Application
Pool Creating Please Wait..."</span><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><span style="font-family: Verdana, sans-serif;"> <o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><span style="font-family: Verdana, sans-serif;"> <span style="color: orangered;">$appPoolAccount</span>
<span style="color: darkgrey;">=</span> <span style="color: blue;">Get-SPManagedAccount</span>
<span style="color: navy;">-Identity</span> <span style="color: orangered;">$appPoolUserName</span>
<span style="color: navy;">-ErrorAction</span> <span style="color: blueviolet;">SilentlyContinue</span><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><span style="font-family: Verdana, sans-serif;"> <o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><span style="font-family: Verdana, sans-serif;"> <span style="color: darkblue;">if</span>(<span style="color: orangered;">$appPoolAccount</span> <span style="color: darkgrey;">-eq</span>
<span style="color: orangered;">$null</span>) <o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><span style="font-family: Verdana, sans-serif;"> { <o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><span style="font-family: Verdana, sans-serif;"> <o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><span style="font-family: Verdana, sans-serif;"> <span style="color: blue;">Write-Progress</span>
<span style="color: navy;">-Activity</span> <span style="color: darkred;">"Creating
AppPoolAccount"</span> <span style="color: navy;">-Status</span> <span style="color: darkred;">"AppPool
Created"</span> <span style="color: orangered;">$appPoolAccount</span> <o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><span style="font-family: Verdana, sans-serif;"> <span style="color: orangered;">$appPoolCred</span>
<span style="color: darkgrey;">=</span> <span style="color: blue;">Get-Credential</span>
<span style="color: orangered;">$appPoolUserName</span><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><span style="font-family: Verdana, sans-serif;"> <span style="color: orangered;">$appPoolAccount</span>
<span style="color: darkgrey;">=</span> <span style="color: blue;">New-SPManagedAccount</span>
<span style="color: navy;">-Credential</span> <span style="color: orangered;">$appPoolCred</span>
<o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><span style="font-family: Verdana, sans-serif;"> } <o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><span style="font-family: Verdana, sans-serif;"> <o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><span style="font-family: Verdana, sans-serif;"> <span style="color: blue;">New-SPServiceApplicationPool</span>
<span style="color: navy;">-Name</span> <span style="color: orangered;">$saAppPoolName</span>
<span style="color: navy;">-Account</span> <span style="color: orangered;">$appPoolAccount</span>
<o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><span style="font-family: Verdana, sans-serif;"> <span style="color: blue;">Write-Host</span> <span style="color: orangered;">$saAppPoolName</span> <span style="color: darkred;">"is
Created "</span> <o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><span style="font-family: Verdana, sans-serif;"> <o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><span style="font-family: Verdana, sans-serif;">} <o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: darkgreen; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">#
Create the State Service application</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: blue; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">Write-Progress</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: navy;">-Activity</span> <span style="color: darkred;">"Creating
State Service ."</span> <span style="color: navy;">-Status</span> <span style="color: darkred;">"State
Service Creating Please Wait......"</span><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><span style="font-family: Verdana, sans-serif;"> <o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: blue; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">New-SPStateServiceApplication</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: navy;">-Name</span> <span style="color: orangered;">$stateService</span><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: blue; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">Get-SPStateServiceApplication</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: darkgrey;">|</span> <span style="color: blue;">New-SPStateServiceApplicationProxy</span>
<span style="color: navy;">-DefaultProxyGroup</span><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: blue; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">Get-SPStateServiceApplication</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: darkgrey;">|</span> <span style="color: blue;">New-SPStateServiceDatabase</span>
<span style="color: navy;">-Name</span> <span style="color: darkred;">"StateSterviceDB"</span><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: blue; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">Get-SPDatabase</span><span style="color: darkgrey; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">|</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: blue;">?</span> {<span style="color: orangered;">$_</span><span style="color: darkgrey;">.</span>Type <span style="color: darkgrey;">-eq</span> <span style="color: darkred;">"Microsoft.Office.Server.Administration.StateDatabase"</span>}
<span style="color: darkgrey;">|</span> <span style="color: blue;">Initialize-SPStateServiceDatabase</span>
<o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: darkgreen; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">#
Create the Usage service application</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: blue; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">Write-Progress</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: navy;">-Activity</span> <span style="color: darkred;">"Creating
Usage Service and Proxy..."</span> <span style="color: navy;">-Status</span> <span style="color: darkred;">"Usage
Service and Proxy...Creaated"</span><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: blue; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">Write-Host</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: darkred;">"Creating Usage Service and Proxy..."</span><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: orangered; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">$serviceInstance</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: darkgrey;">=</span> <span style="color: blue;">Get-SPUsageService</span><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: blue; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">New-SPUsageApplication</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: navy;">-Name</span> <span style="color: orangered;">$usageSAName</span>
<span style="color: navy;">-DatabaseServer</span> <span style="color: orangered;">$databaseServerName</span>
<span style="color: navy;">-DatabaseName</span> <span style="color: darkred;">"UsageDB"</span>
<span style="color: navy;">-UsageService</span> <span style="color: orangered;">$serviceInstance</span>
<o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: orangered; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">$proxy</span><span style="color: darkgrey; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">=</span><span style="color: blue; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">Get-SPServiceApplicationProxy</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: darkgrey;">|</span> <span style="color: blue;">?</span> { <span style="color: orangered;">$_</span><span style="color: darkgrey;">.</span>TypeName <span style="color: darkgrey;">-eq</span> <span style="color: darkred;">"Usage and
Health Data Collection Proxy"</span>}<o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: orangered; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">$proxy</span><span style="color: darkgrey; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">.</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">Provision();<o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: blue; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">Write-Host</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: orangered;">$usageSAName</span> <span style="color: darkred;">"is
Created"</span> <o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: darkgreen; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">#
Create the Managed MetaData service application</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: blue; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">Write-Progress</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: navy;">-Activity</span> <span style="color: darkred;">"Managed
MetaData Service and Proxy..."</span> <span style="color: navy;">-Status</span> <span style="color: darkred;">"Managed
MetaData Service and Proxy...Creating Please Wait"</span><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: blue; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">Write-Host</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: darkred;">"Creating Menaged MetaData Service Application"</span><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: orangered; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">$mmsapp</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: darkgrey;">=</span> <span style="color: blue;">New-SPMetadataServiceApplication</span>
<span style="color: navy;">-Name</span> <span style="color: darkred;">"Managed
Metadata Service"</span> <span style="color: navy;">-ApplicationPool</span> <span style="color: orangered;">$saAppPoolName</span>
<span style="color: navy;">-DatabaseName</span> <span style="color: darkred;">"ManagedMetadataDB"</span><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: darkgreen; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">#
Create the service proxy</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: blue; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">New-SPMetadataServiceApplicationProxy</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: navy;">-Name</span> <span style="color: darkred;">"Managed
Metadata Service Proxy"</span> <span style="color: navy;">-ServiceApplication</span>
<span style="color: orangered;">$mmsapp</span> <span style="color: navy;">-DefaultProxyGroup</span><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: blue; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">Write-Host</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: orangered;">$mmsapp</span> <span style="color: darkred;">"is
created "</span> <o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: darkgreen; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">#
Create the User Profile Service Application</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: blue; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">Write-Progress</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: navy;">-Activity</span> <span style="color: darkred;">"Creating
UserProfile Service Application..."</span> <span style="color: navy;">-Status</span> <span style="color: darkred;">"Usage
Service and Proxy...Creating Please Wait"</span><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: blue; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">Write-Host</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: darkred;">"Creating UserProfile Service Application"</span><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: orangered; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">$upa</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: darkgrey;">=</span> <span style="color: blue;">New-SPProfileServiceApplication</span>
<span style="color: navy;">-Name</span> <span style="color: darkred;">"User
Profile Service"</span> <span style="color: navy;">-ApplicationPool</span> <span style="color: orangered;">$saAppPoolName</span> <span style="color: navy;">-ProfileDBName</span>
<span style="color: darkred;">"ProfileDB"</span> <span style="color: navy;">-SocialDBName</span> <span style="color: darkred;">"SocialDB"</span>
<span style="color: navy;">-ProfileSyncDBName</span> <span style="color: darkred;">"SyncDB"</span><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: darkgreen; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">#
Create the service proxy</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: blue; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">New-SPProfileServiceApplicationProxy</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: navy;">-Name</span> <span style="color: darkred;">"User Profile
Service Proxy"</span> <span style="color: navy;">-ServiceApplication</span> <span style="color: orangered;">$upa</span> <span style="color: navy;">-DefaultProxyGroup</span><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="color: blue; font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";">Write-Host</span><span style="font-size: 10.0pt; mso-bidi-font-family: "Lucida Console";"> <span style="color: orangered;">$upa</span> <span style="color: darkred;">"Is
Created "</span><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 0.0001pt;">
<br /></div>
<br />
<div class="MsoNormal">
<br /></div>
</div>
Soreddy Manjunathhttp://www.blogger.com/profile/04248291203755179066noreply@blogger.com0