Let's SharePoint

October 2016

  1. HOME
  2. Monthly Archives: October 2016
October 29, 2016 / Last updated : October 29, 2016 Sethu Client Side Object Model

How to download a page from a Document libarary using SharePoint online Powershell?

Hello SharePointers, In this blog, I m giving you the piece of code to download  a page from a document library using Sharepoint online powershell. $localPath = “C:\Path\Myflile name.aspx” $password = “your password” $pageUrl = “PageUrl” $Username =”Your user name” $sPassword = $password | ConvertTo-SecureString -AsPlainText -Force $webClient = New-Object System.Net.WebClient $webClient.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Username […]

October 28, 2016 / Last updated : October 28, 2016 Sethu Office 365

Edit Link is missing in Top Navigation Bar in SharePoint Online/Office 365

Hello SharePointers, In this blog, we will see why edit link is missing in Top Navigation bar in SharePoint Online/Office 365 1.Edit links available only on the following site templates  Team Site Publishing site Personal Site Project site. 2.SharePoint edit links permission might be the issue. You should  have “Edit “permission level at-least. For Contributors […]

October 27, 2016 / Last updated : October 27, 2016 Sethu Client Object Model

How to delete a SharePoint Site in SharePoint Online using Powershell?

Hello SharePointers, Below is the Powershell command to delete a SharePoint site in Online/Office 365 using Powershell Add-Type -Path “c:\folder\Microsoft.SharePoint.Client.dll” Add-Type -Path “c:\folder\Microsoft.SharePoint.Client.Runtime.dll” $siteUrl = “https://myoffice.sharepoint.com/sites/mysites” $password = Read-Host -Prompt “Enter password” -AsSecureString $context = New-Object Microsoft.SharePoint.Client.ClientContext($siteUrl) $credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials(“admin@myoffice.onmicrosoft.com”, $password) $context.Credentials = $credentials $web = $context.Web $ctx.Load($web) $context.ExecuteQuery() $web.DeleteObject() $ctx.ExecuteQuery() Write-Host $web.Title “Site Deleted” […]

October 27, 2016 / Last updated : October 27, 2016 Sethu Client Side Object Model

How to Create a SharePoint Document library Online using Powershell?

Hello Sharepointers, Below is the sharepoint code to create a SharePoint doucment library in Sharepoint online/Office 365 environment using Powershell. $siteURL = “https://mysite.sharepoint.com/sites/ $userName = “admin@mysite.onmicrosoft.com” $listTitle = “My Custom Documents” $listTemplate = 101 $password = Read-Host ” password for $($userName)” -AsSecureString $SPOCredentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($userName, $password) $context = New-Object Microsoft.SharePoint.Client.ClientContext($siteURL) $context.credentials = $SPOCredentials $lName […]

October 22, 2016 / Last updated : October 22, 2016 Sethu Client Side Object Model

How to export web part in Sharepoint Online Using CSOM?

Hello SharePointers, In this blog ,we will see how to export web part in SharePoint Online using CSOM code. using (ClientContext ctx = new ClientContext(“https://my.sharepoint.com”)) { SecureString password = new SecureString(); ctx.Credentials = new SharePointOnlineCredentials(“name@my.onmicrosoft.com”, password); File file = ctx.Web.GetFileByServerRelativeUrl(“/pages/mycustom.aspx”); LimitedWebPartManager mgr= file.GetLimitedWebPartManager(PersonalizationScope.Shared); Guid webPartId = new Guid(“your GUID”); ClientResult webPartXml = mgr.ExportWebPart(webPartId); ctx.ExecuteQuery(); Happy […]

October 21, 2016 / Last updated : October 21, 2016 Sethu Client Side Object Model

How to delete a SharePoint list online using Powershell ?

Hello Sharepointers, In this blog, we will see sharepoint online CSOM powershell commands to delete a list in office 365 or sharepoint online environment. $site = ‘https://mysite.sharepoint.com/’ $admin = ‘Admin@myoffice365.OnMicrosoft.Com’ #Get Password as secure String $password =”” $context = New-Object Microsoft.SharePoint.Client.ClientContext($site) $credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($admin , $password) $context.Credentials = $credentials $list = $context.Web.Lists.GetByTitle(‘mycustomlist’) $context.Load($list) $list.DeleteObject() $list.Update() Happy SharePointing folks!!

October 18, 2016 / Last updated : October 18, 2016 Sethu Client Side Object Model

How to rename a SharePoint list Save button in SharePoint 2013/2016 or SharePoint online?

Hello SharePointers, In this blog, we will take a look at the piece of jquery code to rename the “Save “button to “Submit” in SharePoint List. $(“document”).ready(function () { var inputcontrols = document.getElementsByTagName(“input”); alert(inputcontrols.length); for(i = 0; i { if(inputcontrols[i].type == “button” && inputcontrols[i].value == “Save”) inputcontrols[i].value = “Submit”; } var buttonname= $(“span.ms-cui-ctl-largelabel:contains(‘Save’)”); buttonname.text(“Submit”); }); } […]

October 14, 2016 / Last updated : October 14, 2016 Sethu Office 365

How to create a SharePoint list using PnP JS Library in Office 365 or SharePoint 2016?

Hello SharePointers, In this blog, we will go through piece of power shell  JS code to create a SharePoint list using PnP JS Library. script type=”text/javascript” src=”/siteasstes/scripts/pnp.min.js”> <script type=”text/javascript”> $pnp.sp.web.lists.add(‘My custom list, ‘Description for my own list’, 100, false).then(function(result) { if (result.data.Created) alert(‘List Created Successfully!’); }); </script>   Happy SharePointing Folks!

October 14, 2016 / Last updated : October 14, 2016 Sethu JSOM

How to delete a SharePoint list using PnP JS Library in Office 365 or SharePoint 2016?

Hello SharePointers, In this blog, we will go through piece of power shell  JS code to delete a SharePoint list using PnP JS Library. <script type=”text/javascript”> $pnp.sp.web.lists.getByTitle(‘MyCustomLists’).delete().then(function(result) { alert(‘List deleted successfully!!! Have Fun!!’) }); </script> Happy SharePointing Folks!!

October 13, 2016 / Last updated : October 13, 2016 Sethu Client Side Object Model

How to Switch to Classic Document Library Experience in SharePoint online or Office 365 using Powershell.

Hello SharePointers, Below is the Sharepoint code to switch back to  Classic Document Library  Experience from Modern library experience using Powershell. Add-Type -Path “C:\Program Files\SharePoint Online Management Shell\Microsoft.Online.SharePoint.PowerShell\Microsoft.SharePoint.Client.dll” Add-Type -Path “C:\Program Files\SharePoint Online Management Shell\Microsoft.Online.SharePoint.PowerShell\Microsoft.SharePoint.Client.Runtime.dll” $MyCredentials = Get-Credential Connect-SPOService -Url https://mylab-admin.sharepoint.com -credential $MyCredentials $webUrl = ‘https://mylab-sharepoint.com/sites/’ [Microsoft.SharePoint.Client.ClientContext]$clientContext = New-Object Microsoft.SharePoint.Client.ClientContext($webUrl) $clientContext.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($MyCredentials.UserName,$MyCredentials.Password) $site = […]

Posts navigation

  • Page 1
  • Page 2
  • »

Recent posts

How to insert table in Modern Pages using PnP Powershell in Office 365/Sharepoint Online?

June 7, 2019

How to set up Access Requests in SharePoint online using Powershell?

May 11, 2019

How to change the default SharePoint suite logo in SharePoint 2013/2016/2019?

April 30, 2019

How to add metadata to Document libraries in SharePoint online using powershell.

April 27, 2019

How to get Sharepoint site details using Powershell in Office 365?

April 17, 2019

How to get alerts for a specific policy in Cloud app security using Powershell

April 16, 2019

How to get the list of custom apps in App catalog using Powershell?

April 9, 2019

How to get the list of policies in Microsoft Cloud app security using window powershell?

April 4, 2019

How to get the list of List and Document library item counts in SharePoint online using Pnp Powershell ?

April 4, 2019

How to restore subsite in a Sharepoint online site collection using Pnp Powershell

April 2, 2019

Category

  • Anonymous access
  • Client Object Model
  • Client Side Object Model
  • Customization
    • Customization
  • Designer Workflows
  • Errors & Resolutions
  • Features
  • Google Analytics
  • InfoPath
  • Item Scheduling
  • JSOM
  • Nintex worflows
  • Office 365
  • Office 365 Groups
  • PnP JS Library
  • PowerShell
  • Powershell Online
  • REST API
  • REST API's
  • Server Side Object Model
  • SharePoint 2010
  • SharePoint 2010 Search
  • SharePoint 2013
  • SharePoint 2013 Search
  • SharePoint 2013 Workflows
  • SharePoint 2016
  • SharePoint 2019
  • SharePoint Designer
  • SharePoint Framework
  • SharePoint Online
  • SharePoint Pnp
  • SharePoint Usage Analytics
  • Unique values
  • User Profile Services
  • Windows Powershell
  • Workflow Manager

Archive

  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • January 2016
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • May 2015
  • April 2015
  • March 2015

Copyright © Let's SharePoint All Rights Reserved.

Powered by WordPress & Lightning Theme by Vektor,Inc. technology.