tag:blogger.com,1999:blog-22722107828676100152024-03-13T12:34:37.288-07:00SharePoint 2013 tutorials on Apps, Workflows, client object model, web part, search, infopath etcSharePoint 2013 tutorials, developings Apps in sharepoint 2013, Workflows, WebPart, Infopath, Object Model, Video Tutorials, Interview Questions, Visual Studio 2012,SharePoint Books etcRajKishorehttp://www.blogger.com/profile/16288793181130462288noreply@blogger.comBlogger219125tag:blogger.com,1999:blog-2272210782867610015.post-29044756150879018592016-07-09T23:04:00.001-07:002020-06-20T23:14:30.504-07:00Sorry something went wrong. Please refresh the page and try again error while removing apps from SharePoint 2016<div dir="ltr" style="text-align: left;" trbidi="on">
Sometimes you will get an error "Sorry something went wrong. Please refresh the page and try again." while uninstalling apps from SharePoint 2016.<br />
<br />
After this when we try to remove the app from the site, then it shows some error like:<br />
<br />
Sorry, something went wrong. Please refresh the page and try again. If you will try to refresh and try again the same issue will come.<br />
<br />
Also read: <a href="https://www.enjoysharepoint.com/configure-on-premise-environment-for-apps-in-sharepoint-2016/" target="_blank">Configure On Premise environment for Apps in SharePoint 2016</a><br />
<br />
Also we try to remove using PowerShell like below:<br />
<br />
Add-PSSnapin Microsoft.SharePoint.PowerShell<br />
$AppName="My Announcements App"<br />
<br />
$appInstance = Get-SPAppInstance -Web "http://SiteURL/" | where-object {$_.Title -eq $AppName}<br />
<br />
if ($appInstance -ne $null)<br />
{<br />
Uninstall-SPAppInstance –Identity $appInstance<br />
}<br />
<br />
But it also gave error like below:<br />
<br />
Uninstall-SPAppInstance : The System Account cannot perform this action.<br />
At line:8 char:1<br />
+ Uninstall-SPAppInstance –Identity $appInstance<br />
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
+ CategoryInfo : InvalidData: (Microsoft.Share...pInstanceCmdlet:UninstallSPAppInstanceCmdlet) [Uninstall-SPAppInstance], InvalidOperatio<br />
nException<br />
+ FullyQualifiedErrorId : Microsoft.SharePoint.Administration.SPAppCmdlets.UninstallSPAppInstanceCmdlet<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-psCWi5j3ozc/V4HlYfTRXJI/AAAAAAAAG6E/7zkSbE0D9Iow_AHvJ5m_5bTzZFsGfACSwCLcB/s1600/the-system-account-cannot-perform-this-action-sharepoint-2016-PowerShell.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://2.bp.blogspot.com/-psCWi5j3ozc/V4HlYfTRXJI/AAAAAAAAG6E/7zkSbE0D9Iow_AHvJ5m_5bTzZFsGfACSwCLcB/s1600/the-system-account-cannot-perform-this-action-sharepoint-2016-PowerShell.png" /></a></div>
<br />
<b>Solution:</b><br />
The problem was coming because we were using System Account to remove the App.<br />
<br />
When we check out the Details about the App, we can see the App is installed by someone else which looks like below:<br />
<br />
Then I logged in with the other user and then I tried to remove the app. This time it successfully removed.<br />
<br />
Read an article on: <a href="https://www.spguides.com/microsoft-flow/" target="_blank">Microsoft Flow Step by Step Tutorial with Examples</a><br />
<br /></div>
Bijay Kumarhttp://www.blogger.com/profile/10037028265986353307noreply@blogger.comtag:blogger.com,1999:blog-2272210782867610015.post-14761905588714583152016-01-03T12:00:00.000-08:002020-06-20T23:15:28.297-07:00Location of Microsoft.Sharepoint.dll in SharePoint 2013 and SharePoint 2016<div dir="ltr" style="text-align: left;" trbidi="on">
Sometimes if you want to work with the SharePoint server object model then you need to refer to Microsoft.SharePoint.dll. Similarly, if you want to work with .Net client object model then you need to refer to Microsoft.SharePoint.Client.dll.<br />
<br />
The dll is available in the ISAPI folder in the SharePoint installation directory.<br />
<br />
Also read: <a href="https://www.spguides.com/microsoft-flow/" target="_blank">Microsoft Flow Step by Step Tutorial with Examples</a><br />
<br />
<b>SharePoint 2016:</b><br />
Both Microsoft.SharePoint.dll and Microsoft.SharePoint.Client.dll will be available in the below directory. Here I have installed SharePoint in C drive.<br />
<br />
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI<br />
<br />
<b>SharePoint 2013:</b><br />
Both the dlls will be available in the below directory:<br />
<br />
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI<br />
<br />
<b>SharePoint 2010:</b><br />
Both the dlls will be available in the below directory:<br />
<br />
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI</div>
Bijay Kumarhttp://www.blogger.com/profile/10037028265986353307noreply@blogger.comtag:blogger.com,1999:blog-2272210782867610015.post-28276259603735598492016-01-02T21:16:00.002-08:002020-06-20T23:16:24.355-07:00Change SharePoint 2013 ULS Log file location<div dir="ltr" style="text-align: left;" trbidi="on">
By default SharePoint 2013 put all the logs in the below directory:<br />
%CommonProgramFiles%\Microsoft Shared\Web Server Extensions\15\LOGS\<br />
<br />
But sometimes you may need to put in a different location other than the default one. Follow the below steps:<br />
<br />
You can also read: <a href="https://www.enjoysharepoint.com/sharepoint-2013-logs-for-analyzing-or-troubleshooting-the-issues-related-to-workflows-or-workflow-manager/" target="_blank">SharePoint 2013 Logs for Analyzing or troubleshooting the issues related to workflows or Workflow Manager</a><br />
<br />
Open your SharePoint 2013 central administration, then click on Monitoring. This will open the Monitoring page.<br />
<br />
Click on "Configure usage and health data collection" under Reporting like below:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-qZ1h6o1kuns/Voiuko2mslI/AAAAAAAAGss/fdXv056l8PM/s1600/change-uls-log-location-sharepoint-2013.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="124" src="https://4.bp.blogspot.com/-qZ1h6o1kuns/Voiuko2mslI/AAAAAAAAGss/fdXv056l8PM/s320/change-uls-log-location-sharepoint-2013.png" width="320" /></a></div>
<br />
<br />
Then in the Diagnostic Logging page go to the Usage Data Collection Settings section, there change the ULS log path like below:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-CXOE34GwLPg/Voiuop9jA-I/AAAAAAAAGs0/jIWQfo9XUK8/s1600/sharepoint-2013-change-uls-log-location.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="52" src="https://2.bp.blogspot.com/-CXOE34GwLPg/Voiuop9jA-I/AAAAAAAAGs0/jIWQfo9XUK8/s320/sharepoint-2013-change-uls-log-location.png" width="320" /></a></div>
<br />
<b>Change ULS Log path using PowerShell:</b><br />
You can also change the log path using PowerShell like below:<br />
<br />
Open your SharePoint 2013 Management Shell and then run the below cmdlet:<br />
<br />
Set-SPDiagnosticConfig -LogLocation D:\SPLogs</div>
Bijay Kumarhttp://www.blogger.com/profile/10037028265986353307noreply@blogger.comtag:blogger.com,1999:blog-2272210782867610015.post-66711608011459653102016-01-02T06:53:00.001-08:002020-06-20T23:17:20.733-07:00SharePoint 2013 Disable List Throttling using PowerShell<div dir="ltr" style="text-align: left;" trbidi="on">
If your list items increased beyond the threshold limit, then we can disable the list throttling using PowerShell.<br />
<br />
You can also check: <a href="https://www.enjoysharepoint.com/in-place-records-management-sharepoint/" target="_blank">SharePoint 2013 In place Record Management</a><br />
<br />
Below is the PowerShell command to disable list throttling using PowerShell.<br />
<br />
Add-PSSnapin Microsoft.SharePoint.PowerShell<br />
<br />
$web = Get-SPWeb http://OnlySharePoint2013:2334/<br />
<br />
$list = $web.Lists["ListName"]<br />
<br />
$list.EnableThrottling = $false<br />
<br />
$list.Update()<br />
<br />
I hope this will be helpful.</div>
Bijay Kumarhttp://www.blogger.com/profile/10037028265986353307noreply@blogger.comtag:blogger.com,1999:blog-2272210782867610015.post-70633696855133013212016-01-02T06:37:00.000-08:002020-06-20T23:20:26.529-07:00How to get SharePoint 2013 site template names using PowerShell?<div dir="ltr" style="text-align: left;" trbidi="on">
We will discuss how we can get SharePoint 2013 site templates.<br />
<br />
We can be able to get site template names of SharePoint 2013 using <a href="https://www.spguides.com/powershell-array/" target="_blank">PowerShell</a>. Below is the PowerShell command which will display the list templated in the PowerShell editor.<br />
<br />
You may like: <a href="https://www.enjoysharepoint.com/active-sharepoint-publishing-feature-programmatically-csom/" target="_blank">Activate SharePoint Server Publishing Feature programmatically using CSOM</a><br />
<br />
Add-PSSnapin "Microsoft.SharePoint.PowerShell"<br />
<b>Get-SPWebTemplate</b><br />
<br />
The below PowerShell command will download the site templates in a text file.<br />
<br />
Add-PSSnapin "Microsoft.SharePoint.PowerShell"<br />
<b>Get-SPWebTemplate >> E:\Bijay\sitetemplate.txt</b><br />
<br />
This will show all the site templates like below:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-1EfEkDP4-28/Vofe2mq5jfI/AAAAAAAAGsc/zDxoNtg84Ws/s1600/sharepoint-2013-web-template.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="246" src="https://3.bp.blogspot.com/-1EfEkDP4-28/Vofe2mq5jfI/AAAAAAAAGsc/zDxoNtg84Ws/s320/sharepoint-2013-web-template.png" width="320" /></a></div>
<div style="text-align: center;">
<br /></div>
Name Title LocaleId CompatibilityLevel Custom <br />
---- ----- -------- ------------------ ------ <br />
GLOBAL#0 Global template 1033 15 False <br />
STS#0 Team Site 1033 15 False <br />
STS#1 Blank Site 1033 15 False <br />
STS#2 Document Workspace 1033 15 False <br />
MPS#0 Basic Meeting Workspace 1033 15 False <br />
MPS#1 Blank Meeting Workspace 1033 15 False <br />
MPS#2 Decision Meeting Workspace 1033 15 False <br />
MPS#3 Social Meeting Workspace 1033 15 False <br />
MPS#4 Multipage Meeting Workspace 1033 15 False <br />
CENTRALADMIN#0 Central Admin Site 1033 15 False <br />
WIKI#0 Wiki Site 1033 15 False <br />
BLOG#0 Blog 1033 15 False <br />
SGS#0 Group Work Site 1033 15 False <br />
TENANTADMIN#0 Tenant Admin Site 1033 15 False <br />
APP#0 App Template 1033 15 False <br />
APPCATALOG#0 App Catalog Site 1033 15 False <br />
ACCSRV#0 Access Services Site 1033 15 False <br />
ACCSVC#0 Access Services Site Internal 1033 15 False <br />
ACCSVC#1 Access Services Site 1033 15 False <br />
BDR#0 Document Center 1033 15 False <br />
DEV#0 Developer Site 1033 15 False <br />
DOCMARKETPLACESITE#0 Academic Library 1033 15 False <br />
EDISC#0 eDiscovery Center 1033 15 False <br />
EDISC#1 eDiscovery Case 1033 15 False <br />
OFFILE#0 (obsolete) Records Center 1033 15 False <br />
OFFILE#1 Records Center 1033 15 False <br />
OSRV#0 Shared Services Administration Site 1033 15 False <br />
PPSMASite#0 PerformancePoint 1033 15 False <br />
BICenterSite#0 Business Intelligence Center 1033 15 False <br />
SPS#0 SharePoint Portal Server Site 1033 15 False <br />
SPSPERS#0 SharePoint Portal Server Personal Space 1033 15 False <br />
SPSPERS#2 Storage And Social SharePoint Portal ... 1033 15 False <br />
SPSPERS#3 Storage Only SharePoint Portal Server... 1033 15 False <br />
SPSPERS#4 Social Only SharePoint Portal Server ... 1033 15 False <br />
SPSPERS#5 Empty SharePoint Portal Server Person... 1033 15 False <br />
SPSMSITE#0 Personalization Site 1033 15 False <br />
SPSTOC#0 Contents area Template 1033 15 False <br />
SPSTOPIC#0 Topic area template 1033 15 False <br />
SPSNEWS#0 News Site 1033 15 False <br />
CMSPUBLISHING#0 Publishing Site 1033 15 False <br />
BLANKINTERNET#0 Publishing Site 1033 15 False <br />
BLANKINTERNET#1 Press Releases Site 1033 15 False <br />
BLANKINTERNET#2 Publishing Site with Workflow 1033 15 False <br />
SPSNHOME#0 News Site 1033 15 False <br />
SPSSITES#0 Site Directory 1033 15 False <br />
SPSCOMMU#0 Community area template 1033 15 False <br />
SPSREPORTCENTER#0 Report Center 1033 15 False <br />
SPSPORTAL#0 Collaboration Portal 1033 15 False <br />
SRCHCEN#0 Enterprise Search Center 1033 15 False <br />
PROFILES#0 Profiles 1033 15 False <br />
BLANKINTERNETCONT... Publishing Portal 1033 15 False <br />
SPSMSITEHOST#0 My Site Host 1033 15 False <br />
ENTERWIKI#0 Enterprise Wiki 1033 15 False <br />
PROJECTSITE#0 Project Site 1033 15 False <br />
PRODUCTCATALOG#0 Product Catalog 1033 15 False <br />
COMMUNITY#0 Community Site 1033 15 False <br />
COMMUNITYPORTAL#0 Community Portal 1033 15 False <br />
SRCHCENTERLITE#0 Basic Search Center 1033 15 False <br />
SRCHCENTERLITE#1 Basic Search Center 1033 15 False <br />
visprus#0 Visio Process Repository 1033 15 False <br />
GLOBAL#0 Global template 1033 14 False <br />
STS#0 Team Site 1033 14 False <br />
STS#1 Blank Site 1033 14 False <br />
STS#2 Document Workspace 1033 14 False <br />
MPS#0 Basic Meeting Workspace 1033 14 False <br />
MPS#1 Blank Meeting Workspace 1033 14 False <br />
MPS#2 Decision Meeting Workspace 1033 14 False <br />
MPS#3 Social Meeting Workspace 1033 14 False <br />
MPS#4 Multipage Meeting Workspace 1033 14 False <br />
CENTRALADMIN#0 Central Admin Site 1033 14 False <br />
WIKI#0 Wiki Site 1033 14 False <br />
BLOG#0 Blog 1033 14 False <br />
SGS#0 Group Work Site 1033 14 False <br />
TENANTADMIN#0 Tenant Admin Site 1033 14 False <br />
ACCSRV#0 Access Services Site 1033 14 False <br />
ACCSRV#1 Assets Web Database 1033 14 False <br />
ACCSRV#3 Charitable Contributions Web Database 1033 14 False <br />
ACCSRV#4 Contacts Web Database 1033 14 False <br />
ACCSRV#6 Issues Web Database 1033 14 False <br />
ACCSRV#5 Projects Web Database 1033 14 False <br />
BDR#0 Document Center 1033 14 False <br />
OFFILE#0 (obsolete) Records Center 1033 14 False <br />
OFFILE#1 Records Center 1033 14 False <br />
OSRV#0 Shared Services Administration Site 1033 14 False <br />
PPSMASite#0 PerformancePoint 1033 14 False <br />
BICenterSite#0 Business Intelligence Center 1033 14 False <br />
SPS#0 SharePoint Portal Server Site 1033 14 False <br />
SPSPERS#0 SharePoint Portal Server Personal Space 1033 14 False <br />
SPSMSITE#0 Personalization Site 1033 14 False <br />
SPSTOC#0 Contents area Template 1033 14 False <br />
SPSTOPIC#0 Topic area template 1033 14 False <br />
SPSNEWS#0 News Site 1033 14 False <br />
CMSPUBLISHING#0 Publishing Site 1033 14 False <br />
BLANKINTERNET#0 Publishing Site 1033 14 False <br />
BLANKINTERNET#1 Press Releases Site 1033 14 False <br />
BLANKINTERNET#2 Publishing Site with Workflow 1033 14 False <br />
SPSNHOME#0 News Site 1033 14 False <br />
SPSSITES#0 Site Directory 1033 14 False <br />
SPSCOMMU#0 Community area template 1033 14 False <br />
SPSREPORTCENTER#0 Report Center 1033 14 False <br />
SPSPORTAL#0 Collaboration Portal 1033 14 False <br />
SRCHCEN#0 Enterprise Search Center 1033 14 False <br />
PROFILES#0 Profiles 1033 14 False <br />
BLANKINTERNETCONT... Publishing Portal 1033 14 False <br />
SPSMSITEHOST#0 My Site Host 1033 14 False <br />
ENTERWIKI#0 Enterprise Wiki 1033 14 False <br />
SRCHCENTERLITE#0 Basic Search Center 1033 14 False <br />
SRCHCENTERLITE#1 Basic Search Center 1033 14 False <br />
SRCHCENTERFAST#0 FAST Search Center 1033 14 False <br />
visprus#0 Visio Process Repository 1033 14 False </div>
Bijay Kumarhttp://www.blogger.com/profile/10037028265986353307noreply@blogger.comtag:blogger.com,1999:blog-2272210782867610015.post-29332839813104831592016-01-02T06:26:00.001-08:002020-06-20T23:18:12.989-07:00Backup and Restore Site Collection using PowerShell in SharePoint 2013<div dir="ltr" style="text-align: left;" trbidi="on">
We can do easily backup and restore of site collection using PowerShell in SharePoint 2013.<br />
<br />
You can read: <a href="https://www.enjoysharepoint.com/move-documents-from-one-list-to-another-list-with-metadata-in-sharepoint-2013-online/" target="_blank">Move documents from one list to another list with metadata in SharePoint 2013 Online</a><br />
<br />
Below is the PowerShell cmdlet to Backup a site collection in SharePoint 2013.<br />
<br />
Add-PSSnapin "Microsoft.SharePoint.PowerShell"<br />
<b>Backup-SPSite https://SiteURL/SiteName/ -Path "E:\Bijay\MySite.bak"</b><br />
<br />
Below is the PowerShell cmdlet to Restore the site collection from Backup file in SharePoint 2013.<br />
<br />
Add-PSSnapin "Microsoft.SharePoint.PowerShell"<br />
<b>Restore-SPSite https://SiteURL/SiteName/ -Path "E:\Bijay\MySite.bak" -Force</b></div>
Bijay Kumarhttp://www.blogger.com/profile/10037028265986353307noreply@blogger.comtag:blogger.com,1999:blog-2272210782867610015.post-33322186508927769192016-01-02T06:22:00.002-08:002016-01-02T06:22:28.680-08:00Clear SharePoint 2013 designer Cache<div dir="ltr" style="text-align: left;" trbidi="on">
Sometimes whatever changes you are doing in your SharePoint 2013 or 2010 designer workflow does not reflect when you check in the browser. One of the main reason is the SharePoint 2013 designer cache.<br />
<br />
You can see: <a href="http://www.enjoysharepoint.com/Articles/Details/update-farm-account-credentials-in-sharepoint-2013-using-stsadm-21378.aspx" target="_blank">Update Farm Account Credentials in SharePoint 2013 using STSADM</a><br />
<br />
First of all close your SharePoint 2013 designer.<br />
<br />
Go to the below location and delete everything presented.<br />
%USERPROFILE%\AppData\Local\Microsoft\WebsiteCache<br />
<br />
Then go to the below location and delete everything presented.<br />
%APPDATA%\Microsoft\Web Server Extensions\Cache<br />
<br />
Then Open SharePoint 2013 designer workflow. Go to FIle -> Options -> General -> Application Options.<br />
<br />
Then in the Application Options, uncheck option "Cache site data across SharePoint Designer sessions" under General tab. It looks like below:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-SkGS9IRc01s/VofdFWefaFI/AAAAAAAAGsQ/EKf5A8vnEmg/s1600/Clear-SharePoint-2013-designer-Cache.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="312" src="http://4.bp.blogspot.com/-SkGS9IRc01s/VofdFWefaFI/AAAAAAAAGsQ/EKf5A8vnEmg/s320/Clear-SharePoint-2013-designer-Cache.png" width="320" /></a></div>
<div style="text-align: center;">
<br /></div>
<br />
After this you can start your SharePoint 2013 designer and publish the workflow. It should work as expected.</div>
Bijay Kumarhttp://www.blogger.com/profile/10037028265986353307noreply@blogger.comtag:blogger.com,1999:blog-2272210782867610015.post-78798792898367050222015-08-24T21:42:00.001-07:002015-08-24T21:42:22.099-07:00SharePoint Server 2016 IT preview released<div dir="ltr" style="text-align: left;" trbidi="on">
Recently Microsoft released SharePoint Server 2016 IT preview, you can check out some more information in <a href="https://blogs.office.com/2015/08/24/announcing-availability-of-sharepoint-server-2016-it-preview-and-cloud-hybrid-search/" target="_blank">this office blog post</a>.<br />
<br />
Apart from this Microsoft also released the new cloud hybrid search preview for SharePoint Server 2013 and 2016.<br />
<br />
You can download SharePoint Server 2016 Preview from <a href="http://www.microsoft.com/en-us/download/details.aspx?id=48712" target="_blank">this link</a>.<br />
<br />
Before downloading check out the full hardware and software requirement of SharePoint Server 2016 IT preview <a href="https://technet.microsoft.com/en-us/library/cc262485(v=office.16).aspx" target="_blank">here</a>.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-kSRck3SwDAw/VdvyH9Hy78I/AAAAAAAAGpY/oGwxGBRPaPA/s1600/SharePoint-2016-Preview-released.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="258" src="http://1.bp.blogspot.com/-kSRck3SwDAw/VdvyH9Hy78I/AAAAAAAAGpY/oGwxGBRPaPA/s320/SharePoint-2016-Preview-released.png" width="320" /></a></div>
Few new features are there in the SharePoint Server 2016 preview like:<br />
- Look and Feel<br />
- Mobile usage improvements<br />
- New APp LAuncher<br />
- Simple Share Option (Easily Share your site with users)<br />
- Large file support etc<br />
Check out more on: <a href="http://www.enjoysharepoint.com/Articles/Details/sharepoint-server-2016-preview-and-cloud-hybrid-search-released-sharepoint-21231.aspx" target="_blank">SharePoint Server 2016 new features</a><br />
<br />
Some of the features are also removed or deprecated, check out <a href="http://www.enjoysharepoint.com/Articles/Details/sharepoint-server-2016-features-deprecated-or-removed-21232.aspx" target="_blank">this article</a> for more information on SharePoint Server 2016 features deprecated or removed,<br />
<br /></div>
Bijay Kumarhttp://www.blogger.com/profile/10037028265986353307noreply@blogger.comtag:blogger.com,1999:blog-2272210782867610015.post-9603129683675037682015-07-01T23:49:00.000-07:002018-08-10T04:23:25.229-07:00The folder name is not valid error while opening SharePoint Online Site in SharePoint Designer 2013<div dir="ltr" style="text-align: left;" trbidi="on">
Recently while opening <a href="https://www.sharepointsky.com/sharepoint-online/" target="_blank">SharePoint online</a> Office 365 site using SharePoint designer, I got the error that is saying: The folder name is not valid. See the fig below:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-uWVvOBMSE-c/VZTet_jG9-I/AAAAAAAAGoE/7C2ExXiwtB4/s1600/sharepoint-2013-online-host-name-not-valid.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="124" src="https://1.bp.blogspot.com/-uWVvOBMSE-c/VZTet_jG9-I/AAAAAAAAGoE/7C2ExXiwtB4/s320/sharepoint-2013-online-host-name-not-valid.png" width="320" /></a></div>
<br />
Also read <a href="https://www.sharepointsky.com/microsoft-flow/" target="_blank">Microsoft Flow Step by Step Tutorial with Examples</a><br />
<br />
In SharePoint 2013 designer I was giving the URL of the online site in the open site dialog box like:<br />
<br />
https://onlysharepoint2013.sharepoint.com/SitePages/Home.aspx<br />
<br />
<b>Solution:</b><br />
I removed the /SitePages/Home.aspx from the URL and it works fine. The URL will look like:<br />
<br />
https://onlysharepoint2013.sharepoint.com<br />
<br />
Hope this will be helpful.</div>
Bijay Kumarhttp://www.blogger.com/profile/10037028265986353307noreply@blogger.comtag:blogger.com,1999:blog-2272210782867610015.post-81903482195117664832015-06-25T13:18:00.000-07:002018-08-10T04:26:32.025-07:00SharePoint 2013 Quick Edit in List and Disable quick edit in SharePoint 2013 List<div dir="ltr" style="text-align: left;" trbidi="on">
In SharePoint 2013 here is a good option to edit SharePoint 2013 list item through quick edit item option. To use this Open your SharePoint 2013 list and then from the Ribbon click on LIST tab and then Quick Edit button as shown in the fig below:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-5JRcJjs5Q7U/VYxhmu7vMeI/AAAAAAAAGnA/3tjDUt1cVCM/s1600/quick-edit-sharepoint-2013.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://4.bp.blogspot.com/-5JRcJjs5Q7U/VYxhmu7vMeI/AAAAAAAAGnA/3tjDUt1cVCM/s1600/quick-edit-sharepoint-2013.PNG" /></a></div>
<br />
When you click on Quick Edit button, it will display in the Edit mode or Datasheet mode for editing List Items. It will display as below:<br />
<br />
Also read: <a href="https://www.sharepointsky.com/microsoft-flow/" target="_blank">Microsoft Flow Step by Step Tutorial with Examples</a><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-GZGMZUPAoOA/VYxhs8LRq5I/AAAAAAAAGnI/qxVCzLTYxzc/s1600/quick-edit-sharepoint-2013-1.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://1.bp.blogspot.com/-GZGMZUPAoOA/VYxhs8LRq5I/AAAAAAAAGnI/qxVCzLTYxzc/s1600/quick-edit-sharepoint-2013-1.PNG" /></a></div>
<br />
Disable Quick Edit in SharePoint 2013 List:<br />
To disable quick edit in SharePoint 2013 list, Open the list using browser and then click on List Settings from the Ribbon. From the General Settings click on Advanced settings.<br />
<br />
Then in the List Settings page, go to the Quick Edit section select No like below:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-eOLTy2Pk_xs/VYxhyviQKCI/AAAAAAAAGnQ/7TH_hoSdd9Q/s1600/Disable-quick-edit-sharepoint-2013.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://2.bp.blogspot.com/-eOLTy2Pk_xs/VYxhyviQKCI/AAAAAAAAGnQ/7TH_hoSdd9Q/s1600/Disable-quick-edit-sharepoint-2013.PNG" /></a></div>
Now if you open the list, then you will be able to see the quick edit button is disabled.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-MiYzVBxOTIc/VYxh4vX2ttI/AAAAAAAAGnY/C-1Bw9j0foU/s1600/Disable-quick-edit-sharepoint-2013-1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://2.bp.blogspot.com/-MiYzVBxOTIc/VYxh4vX2ttI/AAAAAAAAGnY/C-1Bw9j0foU/s1600/Disable-quick-edit-sharepoint-2013-1.png" /></a></div>
<br /></div>
Bijay Kumarhttp://www.blogger.com/profile/10037028265986353307noreply@blogger.comtag:blogger.com,1999:blog-2272210782867610015.post-43347009836111173232015-06-17T23:49:00.000-07:002015-06-17T23:49:23.187-07:00Add links to top link bar in SharePoint 2013<div dir="ltr" style="text-align: left;" trbidi="on">
Here we will see how we can add links in top link bar in SharePoint 2013. There are two ways to do that, one is to directly we can add links in the home page as well as you can add link to top link bat from the Site Setting page.<br />
<br />
You may also read:<br />
- <a href="http://www.onlysharepoint2013.com/2015/06/manage-site-content-and-structure-in.html" target="_blank">Manage Site Content and Structure in SharePoint 2013</a><br />
<br />
- <a href="http://www.onlysharepoint2013.com/2013/11/sharepoint-2013-workflow-platform.html" target="_blank">SharePoint 2013 workflow platform</a><br />
<br />
- <a href="http://www.enjoysharepoint.com/Articles/Details/custom-actions-add-custom-buttons-to-sharepoint-list-ribbon-using-21186.aspx" target="_blank">Custom Actions Add custom buttons to SharePoint list ribbon using SharePoint Designer 2013</a><br />
<br />
<b><u>First Approach:</u></b><br />
Open your SharePoint 2013 site, then in the top link bar click on EDIT LINKS as shown in the fig below:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://i.imgur.com/dZfsM3X.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://i.imgur.com/dZfsM3X.png" height="31" width="320" /></a></div>
<br />
You can drag and drop any link to the top link bar where it has written "Drag and drop link here". Suppose I want to give a link item ico then I can drag and drop like below:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://i.imgur.com/IXnqDti.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://i.imgur.com/IXnqDti.png" height="38" width="320" /></a></div>
<br />
Then click on Save, it will save the link.<br />
<br />
Else you can click on +link icon as shown in the fig below:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://i.imgur.com/Geb4A8P.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://i.imgur.com/Geb4A8P.png" height="34" width="320" /></a></div>
<br />
<br />
This will open the Add a link dialog box and there put the details linke below:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://i.imgur.com/zfrLAFu.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://i.imgur.com/zfrLAFu.png" height="174" width="320" /></a></div>
<br />
Once you Save, it will appear like below:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://i.imgur.com/siprNIU.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://i.imgur.com/siprNIU.png" height="37" width="320" /></a></div>
<br />
<b><u>Second Approach:</u></b><br />
Open your Site, then from the Settings icon click on Site Settings. Then in the Site Settings page, click on Navigation under Look and Feel section.<br />
<br />
Then in the Navigation settings page go to the Structural Navigation: Editing and Sorting section and then select the Global Navigation and then click on Add Link as shown in the fig below:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://i.imgur.com/Yk6QCXi.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://i.imgur.com/Yk6QCXi.png" height="175" width="320" /></a></div>
<br />
Then in the Navigation Link dialog box, click on Title and URL as shown in the fig below:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://i.imgur.com/LVkw5J0.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://i.imgur.com/LVkw5J0.png" height="206" width="320" /></a></div>
<br />
<br />
Then click on OK and then Ok to close the Navigation Settings page. Then the link will appear like below:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://i.imgur.com/sjD39EH.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://i.imgur.com/sjD39EH.png" height="33" width="320" /></a></div>
<br />
<div>
<br /></div>
</div>
Bijay Kumarhttp://www.blogger.com/profile/10037028265986353307noreply@blogger.comtag:blogger.com,1999:blog-2272210782867610015.post-52978425339228446832015-06-12T14:12:00.002-07:002015-06-12T14:12:37.681-07:00Manage Site Content and Structure in SharePoint 2013<div dir="ltr" style="text-align: left;" trbidi="on">
In this post we will discuss about Manage Site Content and Structure in SharePoint 2013. You may also like to:<br />
- <a href="http://www.onlysharepoint2013.com/2015/03/calculate-date-from-date-picker-inside.html" target="_blank">Calculate date from date picker inside InfoPath forms in SharePoint 2013</a><br />
<br />
- <a href="http://www.enjoysharepoint.com/Articles/Details/redirect-to-different-page-after-submitting-an-item-to-sharepoint-21180.aspx" target="_blank">Redirect to different page after submitting an item to SharePoint 2013 list</a><br />
<br />
- <a href="http://www.enjoysharepoint.com/Articles/Details/enterprise-metadata-and-keywords-settings-in-sharepoint-2013-21177.aspx" target="_blank">Enterprise Metadata and Keywords Settings in SharePoint 2013</a><br />
<br />
In SharePoint 2010, the Manage Site Content and Structure appears under Site Actions menu as shown in the fig below:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-ykoALkFY5HE/VXtLKOLHDMI/AAAAAAAAGmY/2Gl-ByNQLFY/s1600/Manage-Site-Content-and-Structure-SharePoint%2B2013.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://3.bp.blogspot.com/-ykoALkFY5HE/VXtLKOLHDMI/AAAAAAAAGmY/2Gl-ByNQLFY/s320/Manage-Site-Content-and-Structure-SharePoint%2B2013.png" width="201" /></a></div>
<br />
But in SharePoint 2013 it comes under Settings -> Site Settings.<br />
<br />
Then under Site Administration, you will be able to see "Content and structure" as shown in the fig below:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-ITsav6qRiLI/VXtLOF182-I/AAAAAAAAGmg/nfQeAlUXtLg/s1600/Manage-Site-Content-and-Structure-SharePoint%2B2013-missing.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://4.bp.blogspot.com/-ITsav6qRiLI/VXtLOF182-I/AAAAAAAAGmg/nfQeAlUXtLg/s320/Manage-Site-Content-and-Structure-SharePoint%2B2013-missing.png" width="198" /></a></div>
<br />
By default if you will not be able to see the link in team sites then activate the following features:<br />
<br />
First activate "Office SharePoint Server Publishing Infrastructure" Site collection features.<br />
<br />
And then "Office SharePoint Server Publishing" site feature.<br />
<br />
Or you can also access the page by using the below URL:<br />
<br />
<b>http(s)://SiteURL/_layouts/15/sitemanager.aspx</b></div>
Bijay Kumarhttp://www.blogger.com/profile/10037028265986353307noreply@blogger.comtag:blogger.com,1999:blog-2272210782867610015.post-81882449211170718082015-06-08T11:52:00.003-07:002020-06-20T23:23:25.763-07:00Change Site Logo using PowerShell and Server Side Code in SharePoint 2013<div dir="ltr" style="text-align: left;" trbidi="on">
We can change the site logo using PowerShell in SharePoint 2013. Before running the <a href="https://www.spguides.com/connect-sharepoint-online-using-pnp-powershell/" target="_blank">PowerShell </a>command make sure you saved your site logo in any of the document libraries like SiteAssets.<br />
<br />
You may read:<br />
- <a href="http://www.enjoysharepoint.com/Articles/Details/configure-following-settings-in-sharepoint-2013-432.aspx" target="_blank">Configure Following settings in SharePoint 2013</a><br />
<br />
- <a href="https://www.enjoysharepoint.com/sharepoint-disable-or-enable-alerts-on-list/" target="_blank">How to disable/enable alert for a list or library in SharePoint 2019/2016/2013</a><br />
<br />
- <a href="http://www.onlysharepoint2013.com/2015/01/cancel-not-completed-workflows-using.html" target="_blank">Cancel not completed workflows using PowerShell in SharePoint 2013</a><br />
<br />
<b>Below is the PowerShell command to change the Site Logo:</b><br />
<br />
Add-PSSnapin Microsoft.Sharepoint.Powershell<br />
<br />
$web = Get-SPWeb http://SharePointSiteURL<br />
<br />
$web.SiteLogoUrl = "/SiteAssets/MyCompanyLogo.png"<br />
<br />
$web.SiteLogoDescription = "My Company Logo"<br />
<br />
$web.Update()<br />
<br />
$web.Dispose()<br />
<br />
<b>Server Side Code to Change Logo:</b><br />
Below is the SharePoint server side code to change Logo.<br />
<br />
using (var site = new SPSite("http://SharePointSiteURL"))<br />
{<br />
using (var web = site.OpenWeb())<br />
{<br />
web.SiteLogoUrl = "/SiteAssets/MyCompanyLogo.png";<br />
<br />
web.SiteLogoDescription = "My Company Logo";<br />
<br />
web.Update();<br />
}<br />
}</div>
Bijay Kumarhttp://www.blogger.com/profile/10037028265986353307noreply@blogger.comtag:blogger.com,1999:blog-2272210782867610015.post-56064998193596818472015-06-01T20:45:00.001-07:002020-06-20T23:21:11.416-07:00Prevent Site from Search Results in SharePoint 2013<div dir="ltr" style="text-align: left;" trbidi="on">
In this post, we will discuss how to prevent a site to appear in search results in SharePoint 2013. We will see an out of box approach for this.<br />
<br />
You may read: <a href="http://www.onlysharepoint2013.com/2015/03/get-all-items-selected-using-javascript.html" target="_blank">Get all items selected using JavaScript in SharePoint 2013 or SharePoint Online</a>, and <a href="http://www.onlysharepoint2013.com/2013/09/keyword-query-language-kql-enhancement.html" target="_blank">Keyword Query Language (KQL) enhancement in SharePoint 2013</a>.<br />
<br />
Open the site which you want to prevent to appear in the search result. Then click on the Settings icon. Then click on Site Settings.<br />
<br />
This will open the Site Settings page.<br />
<br />
Then click on Search and offline availability in the Search section like below:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-w7KGO1cdiss/VW0mrcNvXYI/AAAAAAAAGlk/EgEYK-02Pt0/s1600/sharepoint-2013-search-disable-for-site-1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://4.bp.blogspot.com/-w7KGO1cdiss/VW0mrcNvXYI/AAAAAAAAGlk/EgEYK-02Pt0/s1600/sharepoint-2013-search-disable-for-site-1.png" /></a></div>
<br />
This will open the Search and Offline Availability page. There click No in the Indexing Site Content section, Then click on OK.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/--lWkiVrOoYI/VW0mxrZQeYI/AAAAAAAAGls/Df4LKnSRExo/s1600/sharepoint-2013-search-disable-for-site.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="42" src="https://3.bp.blogspot.com/--lWkiVrOoYI/VW0mxrZQeYI/AAAAAAAAGls/Df4LKnSRExo/s320/sharepoint-2013-search-disable-for-site.png" width="320" /></a></div>
<br />
Once you click on OK, it will not appear in the search result, as well as the content from its subsites will not appear in the search result.</div>
Bijay Kumarhttp://www.blogger.com/profile/10037028265986353307noreply@blogger.comtag:blogger.com,1999:blog-2272210782867610015.post-88663636429706624972015-05-12T20:40:00.001-07:002015-05-12T20:40:14.775-07:00Change master page in SharePoint 2013<div dir="ltr" style="text-align: left;" trbidi="on">
Here we will discuss how we can change master page in SharePoint 2013. SharePoint 2013 has two new default master page: <b>seattle.master and oslo.master</b>. The difference between seattle.master and oslo.master is that if you use oslo.master, the top navigation pane is replaced with the left navigation pane, and the side bar on the left disappears. Meaning that normally in the left navigation Home, Documents, Recent, Site Contents links usually appears. When you apply oslo.master these links will appear in the top navigation pane. And there will be no links in the left side bar.<br />
<br />
Also read similar articles:<br />
- <a href="http://www.onlysharepoint2013.com/2013/03/create-custom-page-layout-in-sharepoint.html" target="_blank">Create custom page layout in SharePoint 2013</a><br />
<br />
- <a href="http://www.onlysharepoint2013.com/2014/10/steps-to-create-master-page-using.html" target="_blank">Steps to create master page using design manager in SharePoint 2013</a><br />
<br />
- <a href="http://www.enjoysharepoint.com/Articles/Details/show-flash-message-and-notification-in-sharepoint-page-in-sharepoint-21136.aspx" target="_blank">Show flash message and notification in SharePoint page in SharePoint 2013</a><br />
<br />
The default master page in SharePoint 2013 is called seattle.master. But if you want to change you can do this from the browser itself.<br />
<br />
Open SharePoint site, go to Site Settings.<br />
<br />
From the Look and Feel, click on Master page. This will open the <b>Site Master Page Settings</b> page.<br />
<br />
In this page, There are two sections one for Site Master Page and another ont for System Master Page. From the dropdown select the master page, which you want to use and then click on OK. The changes will be reflected.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-9B9A83Rn8h0/VVLHgKwDZwI/AAAAAAAAGkQ/dJxB7uxWbT0/s1600/Change-master-page-sharepoint-2013.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="144" src="http://2.bp.blogspot.com/-9B9A83Rn8h0/VVLHgKwDZwI/AAAAAAAAGkQ/dJxB7uxWbT0/s320/Change-master-page-sharepoint-2013.png" width="320" /></a></div>
<br />
<div>
<br /></div>
</div>
Bijay Kumarhttp://www.blogger.com/profile/10037028265986353307noreply@blogger.comtag:blogger.com,1999:blog-2272210782867610015.post-10378358636777742632015-04-11T09:43:00.000-07:002020-06-20T23:33:14.240-07:00Change Office 365 Logo in SharePoint Online Suite Bar<div dir="ltr" style="text-align: left;" trbidi="on">
Here we will discuss further how to change office 365 logo in SharePoint Online suite bar.<br />
<br />
Open your SharePoint designer and Select the default master page. Right click and open in advanced mode. The default master page is seattle.master.<br />
<br />
You may like to read:<br />
- <a href="https://www.enjoysharepoint.com/sharepoint-rest-api-create-folder/" target="_blank">Rest API Create folder inside document library in SharePoint 2013 and Delete folder from Document library using Rest API</a><br />
<br />
- <a href="http://www.onlysharepoint2013.com/2012/11/whats-new-in-developer-dashboard-in.html" target="_blank">What's new in Developer dashboard in SharePoint 2013?</a><br />
<br />
- <a href="http://www.onlysharepoint2013.com/2012/11/oauth-in-sharepoint-2013.html" target="_blank">OAuth in SharePoint 2013</a><br />
<br />
Before going further make sure you have uploaded your Logo to SiteAssets or any library and copy the path of the image.<br />
<br />
Then search for </body><br />
<br />
And then paste the below code after that.<br />
<br />
<SharePoint:ScriptBlock runat="server"><br />
if (typeof jQuery == 'undefined')<br />
{<br />
document.write('<script type="text/javascript" src="//code.jquery.com/jquery.min.js"><' + '/script>');<br />
}<br />
var interval = setInterval(function(){<br />
if($('#O365_MainLink_Logo').length)<br />
{ <br />
$('#O365_MainLink_Logo').html("<a href='/'><img src='/SiteAssets/YourLogo.PNG' height='25px'></a>");<br />
$('#O365_MainLink_Logo').attr("style","padding-top: 3px");<br />
clearInterval(interval); <br />
}<br />
}, 1000); <br />
</SharePoint:ScriptBlock><br />
<br />
Then Save the master page and then checkin the page. Now when you will refresh your Office 365 site the new logo will appear.</div>
Bijay Kumarhttp://www.blogger.com/profile/10037028265986353307noreply@blogger.comtag:blogger.com,1999:blog-2272210782867610015.post-23350594526000622202015-03-28T01:35:00.003-07:002015-03-28T01:35:35.722-07:00Calculate date from date picker inside InfoPath forms in SharePoint 2013<div dir="ltr" style="text-align: left;" trbidi="on">
In this post we will discuss how to calculate date from a date picker inside a InfoPath forms in SharePoint 2013.<br />
<br />
Recently I got a requirement to calculate some date based on a dropdown selected value. Like I have a dropdownlist which contains value like Yearly, half yearly, quarterly, months, week like that. And there is a date picker where user can select a date. If a user select a date from the date picker and then s/he select yearly from the dropdown then anther text should be populate with adding a year. So if user select 28-03-2015 then it should autopopulat 28-03-2016. Like that it should do for quarterly, monthly etc.<br />
<br />
You may like to see:<br />
- <a href="http://www.enjoysharepoint.com/Articles/Details/format-date-in-infopath-form-in-sharepoint-2013-21086.aspx" target="_blank">Format Date in InfoPath form in SharePoint 2013</a><br />
<br />
- <a href="http://www.enjoysharepoint.com/Articles/Details/alternative-way-to-promote-people-picker-in-infopath-form-library-20971.aspx" target="_blank">Alternative way to promote people picker in infopath form library in SharePoint 2013</a><br />
<br />
- <a href="http://www.fewlines4biju.com/2012/07/deploy-infopath-form-using-powershell.html" target="_blank">Deploy infopath form using PowerShell or STSADM command</a><br />
<br />
We did not got any proper formula to do this inside the SharePoint infopath form. So we did that through client side code in the page. We have added a script editor webpart in the page and wrote the following code to do the calculation in the page.<br />
<br />
Here ctl00_ctl29_g_0d2d6eff_f266_41bf_b14f_ce80bdc728ed_FormControl0_V1_I1_T11 is the id of the calendar control which user selecting.<br />
<br />
<script type="text/javascript"><br />
function test(){<br />
var x = 12;<br />
var CurrentDate = new Date();<br />
CurrentDate.setMonth(CurrentDate.getMonth() + x);<br />
alert(CurrentDate);<br />
var d1=document.getElementById("ctl00_ctl29_g_0d2d6eff_f266_41bf_b14f_ce80bdc728ed_FormControl0_V1_I1_T11").value;<br />
var date = new Date(d1);<br />
date.setMonth(date.getMonth() + x);<br />
alert(date);<br />
}<br />
</script><br />
<input onclick="test()" type="button" value="Alert value in form control"/></div>
Bijay Kumarhttp://www.blogger.com/profile/10037028265986353307noreply@blogger.comtag:blogger.com,1999:blog-2272210782867610015.post-83193906839733735572015-03-13T13:00:00.001-07:002015-03-13T13:00:34.024-07:00Get all items selected using JavaScript in SharePoint 2013 or SharePoint Online<div dir="ltr" style="text-align: left;" trbidi="on">
In this post we will discuss how to get id of all the selected items from the SharePoint list using JavaScript. The same code will work for SharePoint Online also.<br />
<br />
Just put the below code inside a script editor web part. Then on click on the button, it will display you id of all the items you have selected.<br />
<br />
<input type='button' id='123' value='Click Me' onclick="getSelectedItems();"/><br />
<br />
<script language="javascript" type="text/javascript"><br />
function getSelectedItems()<br />
{<br />
var ctx = SP.ClientContext.get_current();<br />
var items = SP.ListOperation.Selection.getSelectedItems(ctx);<br />
var myItems = '';<br />
var i;<br />
for (i in items){<br />
myItems = items[i].id;<br />
alert(myItems);<br />
}<br />
}<br />
</script> </div>
Bijay Kumarhttp://www.blogger.com/profile/10037028265986353307noreply@blogger.comtag:blogger.com,1999:blog-2272210782867610015.post-34463990762739555462015-01-16T11:14:00.002-08:002020-07-20T20:57:20.474-07:00Infosys SharePoint Interview Questions<div dir="ltr" style="text-align: left;" trbidi="on">
Here are few SharePoint interview questions asked in a technical interview in Infosys.<br />
<br />
1- Tell something about yourself especially the projects you have done in SharePoint<br />
<br />
2- What are the difference between SharePoint 2013 and 2010<br />
<br />
3- What are App models and what is the difference between sharepoint hosted app and provider<br />
<br />
hosted app?<br />
<br />
4- What is the <a href="https://www.spguides.com/site-collection-vs-site-in-sharepoint-2013/" target="_blank">difference between site collections and sites</a>? When to choose site collection over sites?<br />
<br />
5- What is a visual web part? And where you have used the visual web part is your project?<br />
<br />
6- What is the feature? How you can deploy your feature?<br />
<br />
7- Have you created any master page in SharePoint 2013?<br />
<br />
8- What is the difference between Site definition and site template?<br />
<br />
9- What is the difference between SPSite and SPWeb?<br />
<br />
10- Can you write some server object model code to insert an item to a sharepoitn list.<br />
<br />
11- Have you worked in InfoPath in sharepoint 2013? Next version of infopath will not come, then<br />
<br />
why you still working on that?<br />
<br />
12- Have you written any CAML query? Can you write a sample query? Check out <a href="https://www.enjoysharepoint.com/caml-query-builder-in-sharepoint-2013-online/" target="_blank">Caml Query Builder for SharePoint 2013</a>.<br />
<br />
13- Have you ever work on Search?<br />
<br />
14- How crawling works in SharePoint 2010?<br />
<br />
15- How search will work if you try to retrieve items from a very large list (more than 1 lakhs<br />
<br />
records are there)?<br />
<br />
16- My SharePoint site's performance is not good, what are things you will check?</div>
Bijay Kumarhttp://www.blogger.com/profile/10037028265986353307noreply@blogger.comtag:blogger.com,1999:blog-2272210782867610015.post-68206659634559315472015-01-12T23:13:00.000-08:002015-01-12T23:13:08.208-08:00Cancel not completed workflows using PowerShell in SharePoint 2013<div dir="ltr" style="text-align: left;" trbidi="on">
We can cancel all workflows having status not equal to "Completed". Suppose you have a list which contains more than 1000 items and you realize the workflow which is attached to the list going to Suspended state or in progress state. Here if you want to cancel the workflows which are not completed, then it can not be a manual task when your list is larger. If you have 10/20 items then you can do manually, but in other case manual process is not a good option.<br />
<br />
Also check out: <a href="http://www.enjoysharepoint.com/Articles/Details/find-larger-files-inside-web-application-in-sharepoint-using-powershell-20969.aspx" target="_blank">Find larger files inside web application in SharePoint using PowerShell</a><br />
<br />
I got a very good PowerShell approach from <a href="http://macaalay.com/2013/11/07/easiest-way-of-cancelling-all-sharepoint-workflows-in-progress/" target="_blank">Raymun Macaalay's Dev Blog</a> to cancel workflows. Thanks to the author for sharing this.<br />
<br />
Below is the PowerShell script:<br />
#Your Shaeproint Site URL<br />
$web = Get-SPWeb "http://yoursharepointserver.com/yoursubsite";<br />
$web.AllowUnsafeUpdates = $true; <br />
#Your List Name<br />
$list = $web.Lists["YourListName"];<br />
$count = 0<br />
#Loop through all Items in List then loop through all Workflows on each List Items. <br />
foreach ($listItem in $list.Items)<br />
{<br />
foreach ($workflow in $listItem.Workflows)<br />
{<br />
#Disregard Completed Workflows<br />
if(($listItem.Workflows | where {$_.InternalState -ne "Completed"}) -ne $null)<br />
{<br />
#Cancel Workflows <br />
[Microsoft.SharePoint.Workflow.SPWorkflowManager]::CancelWorkflow($workflow); <br />
write-output "Workflow cancelled for : " $listItem.Title; <br />
}<br />
}<br />
}<br />
$web.Dispose();</div>
Bijay Kumarhttp://www.blogger.com/profile/10037028265986353307noreply@blogger.comtag:blogger.com,1999:blog-2272210782867610015.post-20894291094014608452015-01-12T23:12:00.001-08:002015-01-12T23:12:07.927-08:00Remove Sharepoint 2013 Quick Launch bar<div dir="ltr" style="text-align: left;" trbidi="on">
We can hide quick launch bar in SharePoint 2013 by using css property.<br />
<br />
We can remove that by using css and also we can remove that by modifying the master page. If you will modify through css code, then this is going to be page specific, mean which page you want to hide, you need to write the css code in that page.<br />
<br />
You can also see: <a href="http://www.enjoysharepoint.com/Articles/Details/different-ways-to-add-video-into-blog-post-in-sharepoint-20965.aspx" target="_blank">Different ways to add video into blog post in SharePoint 2013</a><br />
<br />
<b>1st Approach:</b><br />
Put the below css code in the page using a script editor web part to hide the quick launch bar. Edit the page and then add a web part and then selece script editor web part from the web part gallery.<br />
<br />
<style><br />
#sideNavBox { display: none }<br />
</style><br />
<br />
Here sideNavBox is the <div> id of the Qucik launch bar.<br />
<br />
Once you put the above code, it will hide the bar. But the content will be in the same place. If you want to move the content box a bit left then you can give some margin-left to the content box like below:<br />
<style><br />
#sideNavBox { display: none }<br />
#contentBox { margin-left: 25px }<br />
</style><br />
<br />
Here contentBox is the <div> id of the Content box.<br />
<br />
In which page you want, you can put the above code in Script editor web part.<br />
<br />
<b>2nd Approach:</b><br />
Rather than putting the code in every page, you can put the code in the master page itself. If you put in the master page, then whatever page inherit the master page, will reflect those changes. By default Team site uses <b>seattle.master</b> page. Ok here one point, before doing any changes to the master page, please take a backup of the page and then modify on the page.<br />
<br />
You can edit the master page using Sharepoint 2013 designer and then put the below code inside the <body> tag.<br />
<br />
<style><br />
#sideNavBox { display: none }<br />
#contentBox { margin-left: 25px }<br />
</style> </div>
Bijay Kumarhttp://www.blogger.com/profile/10037028265986353307noreply@blogger.comtag:blogger.com,1999:blog-2272210782867610015.post-14241633280202805472014-12-05T14:23:00.004-08:002014-12-05T14:23:53.976-08:00Hide left navigation using jQuery in SharePoint 2013<div dir="ltr" style="text-align: left;" trbidi="on">
In this post we will discuss how to hide left navigation using jQuery in SharePoint 2013.<br />
<br />
Also check out:<br />
- <a href="http://www.enjoysharepoint.com/Articles/Details/accordion-style-left-navigation-using-jquery-and-css-in-sharepoint-20862.aspx" target="_blank">Accordion Style Left Navigation using JQuery and CSS in SharePoint 2010</a><br />
<br />
- <a href="http://www.enjoysharepoint.com/Articles/Details/upload-excel-data-to-sharepoint-using-import-spreadsheet-option-in-20843.aspx" target="_blank">Upload Excel Data to SharePoint using Import Spreadsheet option in SharePoint 2013</a><br />
<br />
- <a href="http://www.onlysharepoint2013.com/2014/08/http-error-503-service-is-unavailable.html" target="_blank">HTTP Error 503. The service is unavailable error in SharePoint 2013</a><br />
<br />
Put the below code in a script editor web part or content editor web part.<br />
<br />
<b><script language="javascript" type="text/javascript"></b><br />
<b>ExecuteOrDelayUntilScriptLoaded(retrieveListItemsInclude,'sp.js'); </b><br />
<b>function retrieveListItemsInclude()</b><br />
<b>{</b><br />
<b>document.getElementById("sideNavBox").style.display='none';</b><br />
<b>}</b><br />
<b></script></b><br />
<br />
This will hide the left navigation from the page.</div>
Bijay Kumarhttp://www.blogger.com/profile/10037028265986353307noreply@blogger.comtag:blogger.com,1999:blog-2272210782867610015.post-66891646642062571192014-12-05T13:27:00.002-08:002014-12-05T13:27:19.044-08:00How to create subsite in SharePoint 2013?<div dir="ltr" style="text-align: left;" trbidi="on">
To create a sub site in SharePoint 2013, we need to follow below steps:<br />
<br />
Click on the Settings icon from the top right corner. Then go to Site Contents, this will open the site contents page.<br />
<br />
Here go down to the Subsites section and click on<a href="http://3.bp.blogspot.com/-BYUPBucdiMc/VIIjB6yKblI/AAAAAAAAGaU/o2b2svYFwcw/s1600/subsite-sharepoint-2013.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://3.bp.blogspot.com/-BYUPBucdiMc/VIIjB6yKblI/AAAAAAAAGaU/o2b2svYFwcw/s1600/subsite-sharepoint-2013.png" /></a><br />
.<br />
<br />
In the New SharePoint Site page, give a Title, Description and the Web Address.<br />
<br />
Then choose the Template, here we have choosen Team site.<br />
<br />
If you want the subsite to use the same parent site permission, then in the Permission section select Use same permission as parent site.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-0w5oSEb-LYg/VIIi68x9OdI/AAAAAAAAGaM/koGVvLcDw1k/s1600/subsite-sharepoint-2013-1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-0w5oSEb-LYg/VIIi68x9OdI/AAAAAAAAGaM/koGVvLcDw1k/s1600/subsite-sharepoint-2013-1.png" height="311" width="320" /></a></div>
<br />
Then click on Create this will create the sub site.</div>
Bijay Kumarhttp://www.blogger.com/profile/10037028265986353307noreply@blogger.comtag:blogger.com,1999:blog-2272210782867610015.post-12219926095745005822014-12-03T23:55:00.003-08:002018-08-10T03:56:04.046-07:00How to give item level permission in SharePoint 2013 list items?<div dir="ltr" style="text-align: left;" trbidi="on">
We will discuss how we can provide item level permission to list or document library items in SharePoint 2013. Through this item level permission, we can define unique permission to that particular item.<br />
<br />
In this sample, I have a list name as TestList1 and I want to give item level permission to one of the list items. First, open your list in the browser and then select the particular list item and then click on ... like below:<br />
<br />
Read <a href="https://www.sharepointsky.com/microsoft-flow/" target="_blank">Microsoft Flow Step by Step Tutorial with Examples</a><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.enjoysharepoint.com/pic/SharePoint-2013-item-level-permission.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://www.enjoysharepoint.com/pic/SharePoint-2013-item-level-permission.png" height="205" width="320" /></a></div>
<br />
This will open the menu, click on "Shared With" as shown in the fig below:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.enjoysharepoint.com/pic/SharePoint-2013-item-level-permission-1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://www.enjoysharepoint.com/pic/SharePoint-2013-item-level-permission-1.png" height="299" width="320" /></a></div>
<br />
In the Shared With dialog box, it will display to whom the item has been shared. Click on ADVANCED as shown in the fig below:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.enjoysharepoint.com/pic/SharePoint-2013-item-level-permission-2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://www.enjoysharepoint.com/pic/SharePoint-2013-item-level-permission-2.png" height="200" width="320" /></a></div>
<br />
This will open the PERMISSIONS page. Each item has a permission of the parent by default. To give unique permission we need to Stop inheriting permission from the parent and then we can give unique permission to the item. So click on "Stop Inheriting Permission" as shown in the fig below:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.enjoysharepoint.com/pic/SharePoint-2013-item-level-permission-3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://www.enjoysharepoint.com/pic/SharePoint-2013-item-level-permission-3.png" height="149" width="320" /></a></div>
<br />
If you are using chrome browser, then Stop Inheriting Permission will come under PERMISSIONS -> Inheritance -> Stop Inheriting Permissions like below:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.enjoysharepoint.com/pic/SharePoint-2013-item-level-permission-6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://www.enjoysharepoint.com/pic/SharePoint-2013-item-level-permission-6.png" /></a></div>
<br />
Then this will display a message saying you are about to create unique permission for this item... Click on OK.<br />
<br />
Now you can give permission by clicking on the Grant Permission button from the Ribbon or you can select any group and click on Edit User Permissions if you want to modify any user permissions as shown in the fig below:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.enjoysharepoint.com/pic/SharePoint-2013-item-level-permission-4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://www.enjoysharepoint.com/pic/SharePoint-2013-item-level-permission-4.png" height="250" width="320" /></a></div>
<br />
Similarly, if you want to remove permission for any particular group, then you can select the group and click on Remove User Permissions. It all depends on your need.<br />
<br />
<b>Revert Back:</b><br />
Now if you want to revert back and want to inherit permission level from the parent then simply click on Delete unique permissions as shown in the fig below:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.enjoysharepoint.com/pic/SharePoint-2013-item-level-permission-5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://www.enjoysharepoint.com/pic/SharePoint-2013-item-level-permission-5.png" height="151" width="320" /></a></div>
<br />
Then it will ask for a confirmation message that you are about to inherit permission from the parent... Click on OK.</div>
Bijay Kumarhttp://www.blogger.com/profile/10037028265986353307noreply@blogger.comtag:blogger.com,1999:blog-2272210782867610015.post-44592478507464441052014-12-03T23:37:00.001-08:002014-12-03T23:37:14.131-08:00SharePoint 2013 Add item to list using JavaScript client object model<div dir="ltr" style="text-align: left;" trbidi="on">
In this post we will discuss how to add an item to SharePoint 2013 list using JavaScript object model. In this example we will provide an option for user to enter the title for the item and user can click on the button to save the item.<br />
<br />
In my previous post we have discussed about: <a href="http://www.enjoysharepoint.com/Articles/Details/sharepoint-2013-disable-windows-authentication-prompt-20887.aspx" target="_blank">SharePoint 2013 Disable Windows Authentication prompt</a>, <a href="http://www.enjoysharepoint.com/Articles/Details/search-engine-optimization-in-sharepoint-2013-20850.aspx" target="_blank">Search Engine Optimization in SharePoint 2013</a> and <a href="http://www.onlysharepoint2013.com/2013/11/new-actions-in-sharepoint-designer-2013.html" target="_blank">New action in SharePoint designer 2013 workflow</a>.<br />
<br />
I have a SharePoint list and I want to insert item to that list. We will write the code in a script editor web part.<br />
<br />
<script type="text/javascript"><br />
function insertitemtolist()<br />
{<br />
var title=document.getElementById('txtTitle').value;<br />
var clientContext = new SP.ClientContext("http://win-pfcp2dgt8di/sites/EnjoySharePoint/");<br />
var oList = clientContext.get_web().get_lists().getByTitle('TestList1');<br />
var item = new SP.ListItemCreationInformation();<br />
var oListItem = oList.addItem(item);<br />
oListItem.set_item('Title', title);<br />
oListItem.update();<br />
clientContext.load(oListItem);<br />
clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));<br />
}<br />
</script><br />
Enter Item Title: <input type="text" id="txtTitle" /> <br/><br/><br />
<button type="button" onclick="insertitemtolist();">Insert Item To List</button><br />
<br />
Hope this will help you !!!</div>
Bijay Kumarhttp://www.blogger.com/profile/10037028265986353307noreply@blogger.com