Let's SharePoint

SharePoint Online

  1. HOME
  2. SharePoint Online
February 16, 2019 / Last updated : February 16, 2019 Sethu PowerShell

How to export all the webpart in a sharepoint online page using Powershell?

Below are the power shell script to export all the web part in a SharePoint Page . foreach($item in $items) { $file = $context.Web.GetFileByServerRelativeUrl($Item[“FileRef”]) if($Item[“FileRef”] -eq “/sites/testwebpartpage.aspx”){ $wpManager = $file.GetLimitedWebPartManager([Microsoft.SharePoint.Client.WebParts.PersonalizationScope]::Shared) $context.Load($file) $webparts = $wpManager.Webparts $context.Load($webparts) $context.ExecuteQuery() $ pelement = $XMLFile.CreateElement(“Page”) $ pelement .SetAttribute(“id”, $Item[“ID”]) $ pelement .InnerText = $Item[“FileRef”] $ pelement .AppendChild($PageElement) | Out-Null foreach($webpart […]

February 16, 2019 / Last updated : February 16, 2019 Sethu Client Side Object Model

How to hide hours in SharePoint people picker in SharePoint online ,2010/2013/2016?

Hello SharePointers, Below are the powershell script to hide hours in People picker control in Sharepoint online/2010/2013/2016/2019. <script type=”text/javascript”> $(document).ready(function() { $(“select[id^=’People picker ID’]”).change(function() { $(this).find(“option[value=’4′]”).remove(); }); }); </script> Happy SharePointing 🙂

December 14, 2018 / Last updated : December 14, 2018 Sethu Client Object Model

How to add twitter feed in SharePoint Online?

Hello SharePointers, Below are the CSOM script to add twitter feed in SharePoint Online. var componment= page.AvailableClientSideComponents();ClientSideComponent clientcomponment = componment.Where(t => t.Id == GUID FOR COMPONENT ).FirstOrDefault();if (clientcomponment != null){ ClientSideWebPart webPart = new ClientSideWebPart(cv); page.AddControl(webPart); page.save(url);} Happy SharePointing 🙂

December 7, 2018 / Last updated : December 7, 2018 Sethu SharePoint 2013

How to Add Geolocation field in Office 365/SharePoint 2016/2019 using Powershell

Hello SharePointers, Here are the Powershell script to add Geolocation field in Office 365/SharePoint 2016/2019 using Powershell. $list = $web.Lists.GetByTitle(“My Google/Bings Maps) $ctx.Load($list) $ctx.ExecuteQuery() $geolocationmap=$list.Fields.AddFieldAsXml(“”, $true, [Microsoft.SharePoint.Client.AddFieldOptions]::AddToAllContentTypes) $list.Update() $ctx.ExecuteQuery() Happy SharePointing 🙂

November 8, 2018 / Last updated : November 8, 2018 Sethu PowerShell

How to set SharePoint View Hidden using Powershell in SharePoint 2010,2013, 2016 and Office 365?

Hello SharePointers, Below are the powershell script to set the SharePoint list as hidden in  SharePoint 2010,2013, 2016 and Office 365 $spWeb = Get-SPWeb “http://sp/mysites/empeng” $spList = $spWeb.Lists[“Vendors”] $spView = $spList.Views[“Enquiry”] $spView.Hidden=$true $spView.Update() Happy SharePointing Folks!!

October 4, 2018 / Last updated : October 4, 2018 Sethu PowerShell

How to set the status of workflow task in SharePoint 2010,2013,2016, online using Powershell?

Hello SharePointers, Below is the Powershell script to update the status of the workflow task column in SharePoint. $site = Get-SPSite(“http://myssharepointsite”) $web = $site.RootWeb $list = $web.Lists[“CloudEnablement”] $item = $list.GetItemById(20) $task = $item.Tasks[0] $ht = new-object Hashtable $ht[“TaskStatus”] = “Approved” [Microsoft.SharePoint.Workflow.SPWorkflowTask]::AlterTask($task, $ht, $false) Happy SharePointing Folks 🙂

October 3, 2018 / Last updated : October 3, 2018 Sethu Client Side Object Model

How to resolve 404 error in SharePoint List attachment in SharePoint online/Office 365/SharePoint 2010/2013/2016?

Hello SharePointers, When you try to download a file attachment, there are time you receive “404 not found” Error. You need to rebind the onlick event using Content editor web part like below   <Script type=”text/javascript”> var attachmenttable = document.getElementById(“idAttachmentsTable”); var attachmentanchor = attachmenttable.getElementsByTagName(“a”); for (var j = 0; j < attachmentanchor.length; j++) { var […]

September 19, 2018 / Last updated : September 19, 2018 Sethu Client Object Model

How to check if the list level Throttling is enabled or not in SharePoint Online/2010/2013/2016?

  Hello SharePointers, Below is the Powershell script to check if the list level Throttling is enabled or not. Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue $webApplicationURL = Read-Host “Enter SharePoint Web Application URL” $reportPath = Read-Host “Enter full Path URL in the format” $webapplication = Get-SPWebApplication $webApplicationURL $sites = $webapplication.Sites Write-Output “SharePoint List URL” | Out-File $reportPath […]

August 15, 2018 / Last updated : August 15, 2018 Sethu PowerShell

How to move all the items in recycle bin stage 1 to recycle bin stage 2 in SharePoint Online/Office 365/Sharepoint 2010/2013/2016?

Hello SharePointers, Below are the powershell script to move recycle bin items from stage1 to stage 2. This would come to us in handy in case if we can to move it on our own rather than depending on the job. $ctx=New-Object Microsoft.SharePoint.Client.ClientContext($Url) $ctx.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Username, $Password) $ctx.ExecuteQuery() $ctx.Load($ctx.Web) $recyclebin=$ctx.Web.RecycleBin $ctx.Load($rb) $ctx.ExecuteQuery() Write-Host $ctx.Web.Url […]

May 3, 2018 / Last updated : May 3, 2018 Sethu JSOM

How to add Custom Call out in SharePoint Online/Office 365?

Hello SharePointers, The call out in document library will let you to do share , edit or follow the specific item. In case, if you want to do your custom call out functionality such as adding a new button and opening up a new URL . Her is the source code to achieve the same. […]

Posts navigation

  • «
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • »

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.