-
Notifications
You must be signed in to change notification settings - Fork 196
add includeGlobalTheme for get-spotheme powershell command #1104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,7 +36,7 @@ This cmdlet returns the settings for a named existing theme, or for all uploaded | |
| This example shows how to use the [**Get-SPOTheme**](./Get-SPOTheme.md) cmdlet to return the settings for the `"Custom Cyan"` theme created in the example for the [**Add-SPOTheme**](./Add-SPOTheme.md) cmdlet. Note that this example uses the PowerShell `ConvertTo-Json` filter to display the theme in JSON format. | ||
|
|
||
| ```powershell | ||
| Get-SPOTheme -Name "Custom Cyan" | ConvertTo-Json -Depth 4 | ||
| Get-SPOTheme -Name "Custom Cyan" -IncludeGlobalTheme | ConvertTo-Json -Depth 4 | ||
| ``` | ||
|
|
||
| ```Output | ||
|
|
@@ -96,7 +96,7 @@ If the theme is in legacy format, the output will be: | |
| To return all uploaded themes, use the [**Get-SPOTheme**](./Get-SPOTheme.md) command with no arguments. | ||
|
|
||
| ```powershell | ||
| Get-SPOTheme | ||
| Get-SPOTheme -IncludeGlobalTheme | ||
| ``` | ||
|
|
||
| ## PARAMETERS | ||
|
|
@@ -119,6 +119,26 @@ Accept pipeline input: True (ByValue) | |
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
| ### -IncludeGlobalTheme | ||
|
|
||
| > Applicable: SharePoint Online | ||
|
|
||
| When specified, Get-SPOTheme returns all global themes that are available to the tenant. This includes themes created by using PowerShell as well as themes created in the Brand Center. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. updated
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. updated |
||
|
|
||
| For satellite geos, IncludeGlobalTheme also returns the global themes that are defined in the primary geo. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. updated |
||
|
|
||
| ```yaml | ||
| Type: SwitchParameter | ||
| Parameter Sets: (All) | ||
| Aliases: | ||
|
|
||
| Required: False | ||
| Position: Named | ||
| Default value: None | ||
| Accept pipeline input: False | ||
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
| ### CommonParameters | ||
|
|
||
| This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216). | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe change one of the examples to not have the
-IncludeGlobalThemeparam? to show it's not mandatory #ClosedThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good suggestion, removed the one to get single theme