Summary
Retrieve the SharePoint content type hub site of the Tenant thank to specific command.
Usage
The command should like:
Return the URL of the SharePoint Content Type Hub of the Tenant
Use cases
- Once I am logged, I can get the URL of the default ContentTypePublishingHub site
Options
The following options of the cmdlet have to be supported:
To Do
Additional informations
Expand for output related informations
- Supported by PnP PowerShell:
Get-PnPContentTypePublishingHubUrl
TaxonomySession session = TaxonomySession.GetTaxonomySession(ClientContext);
var termStore = session.GetDefaultSiteCollectionTermStore();
ClientContext.Load(termStore, t => t.ContentTypePublishingHub);
ClientContext.ExecuteQueryRetry();
WriteObject(termStore.ContentTypePublishingHub);
Summary
Retrieve the SharePoint content type hub site of the Tenant thank to specific command.
Usage
The command should like:
Return the URL of the SharePoint Content Type Hub of the Tenant
Use cases
Options
The following options of the cmdlet have to be supported:
-o, --output--verbose--debugTo Do
Additional informations
Expand for output related informations
Get-PnPContentTypePublishingHubUrl