Let's SharePoint

Office 365

  1. HOME
  2. Office 365
June 7, 2019 / Last updated : June 7, 2019 Sethu Office 365

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

Hello SharePointers, Modern pages doesn’t support adding images in a table using text web part. To achieve that, We can use the below Pnp Powershell Connect-PnPOnline -Url https://mysites.sharepoint.com/sites/Test -Credentials (Get-Credential) Get-PnPClientSideComponent -Page Image.aspx |Format -Autosize textWebpart = Get-PnPClientSideComponent -Page Image.aspx -InstanceId 1d5bfd23-766c-4e24-aa34-8e08527a29d7 $textWebpart.Text | clip $htmlToInject = ‘ <div class=”canvasRteResponsiveTable”> <div class=”tableWrapper”> <table title=”Table”> <tbody> […]

May 11, 2019 / Last updated : May 11, 2019 Sethu Office 365

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

Hello SharePointers, Below are the powershell commands to set up the access requests in SharePoint Online. $URL= “https://laks.sharepoint.com/sites/happy/” $AccessRequest=”SharePointadmin@mycompany.com” $Cred = Get-Credential $Cred = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Cred.UserName,$Cred.Password) $Ctx = New-Object Microsoft.SharePoint.Client.ClientContext($URL) $Ctx.Credentials = $Cred $Web = $Ctx.Web $Ctx.Load($web.AllProperties) $web.RequestAccessEmail $Ctx.ExecuteQuery() #Set Access request Email $Web.RequestAccessEmail =$AccessRequest #Member settings $Web.MembersCanShare = $True $web.AssociatedMemberGroup.AllowMembersEditMembership = $True $web.AssociatedMemberGroup.Update() $Web.Update() […]

April 27, 2019 / Last updated : April 27, 2019 Sethu Office 365

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

Hello SharePointers, Below are the Power shell command to add metadata to Document libraries in SharePoint online using powershell. $Path = “D:SharePoint docx” $listTitle = “My Documents” $targetList = $Context.Web.Lists.GetByTitle($listTitle) $filecreation= New-Object Microsoft.SharePoint.Client.FileCreationInformation $filecreation.Overwrite = $true $filecreation.Content = [System.IO.File]::ReadAllBytes($Path) $filecreation.URL = [System.IO.Path]::GetFileName(ePath) $File = $targetList.RootFolder.Files.Add(filecreation) $listItem = $uploadFile.ListItemAllFields $listItem[“LastReviewed Time “] = [System.DateTime]::Now $listItem.Update() $Ctx.Load($File) […]

April 17, 2019 / Last updated : April 17, 2019 Sethu Office 365

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

Hello SharePointers, Below are the powershell code to site title, url, last modified date and creation date for a given sharepoint site collection. Get-SPWebApplication | Get-SPSite -Limit ALL | Get-SPWeb -Limit ALL | where { $_.HasUniquePerm -and $_.AssociatedOwnerGroup -ne $null } | foreach { $Title=$_.title;$TTNweburl = $_.Url; $_ ;$SiteCreatedDate=$_.Created; $SiteModifiedDate=$_.LastItemModifiedDate}| Select -ExpandProperty AssociatedOwnerGroup | Select […]

February 20, 2019 / Last updated : February 20, 2019 Sethu Client Object Model

How to report SharePoint list item versions in Office 365/SharePoint online?

Hello SharePointers, Below are Powershell script to get all the version history of all list items in SharePoint online/Office 365. $List = $Ctx.Web.Lists.GetByTitle($ListName) $Ctx.Load($List) $Ctx.ExecuteQuery() $Query = [Microsoft.SharePoint.Client.CamlQuery]::CreateAllItemsQuery() $ListItems = $List.GetItems($Query) $Ctx.Load($ListItems) $Ctx.ExecuteQuery() $VersionHistory = @() Foreach ($Item in $ListItems) { write-host “Processing Item:” $item.id -f Yellow #Get all versions of the list item $Versions […]

February 14, 2019 / Last updated : February 14, 2019 Sethu Office 365

Access Denied while moving navigation in Teams site in SharePoint online

Hello SharePointers, In case if you get access denied while working on the navigaton items in modern team site if publishing feature is activated. This is a knownn behaviour from Microsoft. You need to run the following SharePoint online script below to enable ” add or Deny or customize page property for this new team […]

December 21, 2018 / Last updated : December 21, 2018 Sethu Customization

Hide the Settings gear “Icon” and Edit Links In Office 365/SharePoint Online/ SharePoint 2010/2013/2016/2019

Hello SharePointers, Below are the CSS script to hide Settings in SharePoint online/2010/2013/2016/2019 <style type=”text/css”> span[title=”Settings”]{ display:none !important; } a.ms-navedit-editLinksText{ display:none !important; } </style> Happy SharePointing Folks!!

December 19, 2018 / Last updated : December 19, 2018 Sethu Customization

How to get SharePoint List Version using JSOM in SharePoint Online?

var Ctx = new SP.ClientContext.get_current(); if (Ctx) { var Web = Ctx.get_web(); var List = Web.get_lists().getByTitle(Name); var query = new SP.CamlQuery(); query.set_viewXml(xmlQuery); var listItems = List.getItems(query); Ctx.load(listItems); Ctx.executeQueryAsync(function (sender, args) { that.DataSet = []; var objlistEnumerator = objlistItems.getEnumerator(); while (objlistEnumerator.moveNext()) { var objListItem = objlistEnumerator.get_current(); var id = objListItem.get_item(‘ID’); var filePath = ‘https://mysharepoint/Lists/Preservenature/’+id+’_.000’ var web […]

December 12, 2018 / Last updated : December 12, 2018 Sethu Client Side Object Model

How to remove a site collection administrator in Office 365 using SharePoint Online PnP Powershell?

Hello ShaerPointers, Below are the piece of power shell code to remove a site collection administrator in Office 365 Using Pnp Powershell. param( [Parameter(Mandatory)] [String]$Url, [Parameter(Mandatory)] [String]$UserName)Remove-PnPSiteCollectionAdmin -Owners $loginName -Connection (Connect-PnPOnline $siteUrl -Credentials (Get-Credential) -ReturnConnection)$object = New-Object PSObject$object | Add-Member “SiteUrl” $Url$object | Add-Member “LoginName” $UserName$object| Add-Member “IsSiteAdmin” (Get-SPOUser -Site $siteUrl -LoginName $loginName | select […]

December 11, 2018 / Last updated : December 11, 2018 Sethu Office 365

How to convert Classic page to modern page in SharePoint using Pnp Powershell in Office 365?

Hello SharePointers, Here are the Pnp powershell commands to convert Classic page to modern page in SharePoint using Pnp Powershell in Office 365. Connect-PnPOnline -Url https://mydomain.sharepoint.com/sites/EmpTeamsite ConvertTo-PnPClientSidePage -Identity Mypage.aspx -AddPageAcceptBanner Happy SharePoint Folks!!

Posts navigation

  • Page 1
  • Page 2
  • …
  • Page 12
  • »

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.