Skip to main content
replaced http://sharepoint.stackexchange.com/ with https://sharepoint.stackexchange.com/
Source Link

Piggy backing off my last question, Modifying Global Navigation Settings in SharePoint OnlineModifying Global Navigation Settings in SharePoint Online, is it possible to set a subsites navigation inheritance to use the same as the parent?

If it is possible via JSOM, I'm assuming it is possible via CSOM in Powershell or am I mistaken?

I've tried various iterations of this:

$Url = "https://tenant.sharepoint.com/teams/eric/DDD"
$context = New-Object Microsoft.SharePoint.Client.ClientContext($Url)
$context.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($credential.UserName, $credential.Password)

$currentWeb = $context.Web      
$web.Navigation.UseShared = $true
$context.ExecuteQuery()

Piggy backing off my last question, Modifying Global Navigation Settings in SharePoint Online, is it possible to set a subsites navigation inheritance to use the same as the parent?

If it is possible via JSOM, I'm assuming it is possible via CSOM in Powershell or am I mistaken?

I've tried various iterations of this:

$Url = "https://tenant.sharepoint.com/teams/eric/DDD"
$context = New-Object Microsoft.SharePoint.Client.ClientContext($Url)
$context.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($credential.UserName, $credential.Password)

$currentWeb = $context.Web      
$web.Navigation.UseShared = $true
$context.ExecuteQuery()

Piggy backing off my last question, Modifying Global Navigation Settings in SharePoint Online, is it possible to set a subsites navigation inheritance to use the same as the parent?

If it is possible via JSOM, I'm assuming it is possible via CSOM in Powershell or am I mistaken?

I've tried various iterations of this:

$Url = "https://tenant.sharepoint.com/teams/eric/DDD"
$context = New-Object Microsoft.SharePoint.Client.ClientContext($Url)
$context.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($credential.UserName, $credential.Password)

$currentWeb = $context.Web      
$web.Navigation.UseShared = $true
$context.ExecuteQuery()
added 425 characters in body
Source Link
Eric Alexander
  • 43.3k
  • 10
  • 54
  • 93

Piggy backing off my last question, Modifying Global Navigation Settings in SharePoint Online, is it possible to set a subsites navigation inheritance to use the same as the parent?

If it is possible via JSOMJSOM, I'm assuming it is possible via CSOM in Powershell or am I mistaken?

I've tried various iterations of this:

$Url = "https://tenant.sharepoint.com/teams/eric/DDD"
$context = New-Object Microsoft.SharePoint.Client.ClientContext($Url)
$context.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($credential.UserName, $credential.Password)

$currentWeb = $context.Web      
$web.Navigation.UseShared = $true
$context.ExecuteQuery()

Piggy backing off my last question, Modifying Global Navigation Settings in SharePoint Online, is it possible to set a subsites navigation inheritance to use the same as the parent?

If it is possible via JSOM, I'm assuming it is possible via CSOM in Powershell or am I mistaken?

Piggy backing off my last question, Modifying Global Navigation Settings in SharePoint Online, is it possible to set a subsites navigation inheritance to use the same as the parent?

If it is possible via JSOM, I'm assuming it is possible via CSOM in Powershell or am I mistaken?

I've tried various iterations of this:

$Url = "https://tenant.sharepoint.com/teams/eric/DDD"
$context = New-Object Microsoft.SharePoint.Client.ClientContext($Url)
$context.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($credential.UserName, $credential.Password)

$currentWeb = $context.Web      
$web.Navigation.UseShared = $true
$context.ExecuteQuery()
Source Link
Eric Alexander
  • 43.3k
  • 10
  • 54
  • 93

PowerShell CSOM set web inheritance

Piggy backing off my last question, Modifying Global Navigation Settings in SharePoint Online, is it possible to set a subsites navigation inheritance to use the same as the parent?

If it is possible via JSOM, I'm assuming it is possible via CSOM in Powershell or am I mistaken?