diff --git a/CHANGELOG.md b/CHANGELOG.md index 6001678e1..653d2e201 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -59,6 +59,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Added `Start-PnPEnterpriseAppInsightsReport` and `Get-PnPEnterpriseAppInsightsReport` which allow working with App Insights repors [#4713](https://github.com/pnp/powershell/pull/4713) - Added `Set-PnPSiteDocumentIdPrefix` which allows changing of the document id prefix on a site collection [#4765](https://github.com/pnp/powershell/pull/4765) - Added `Get-PnPMicrosoft365Roadmap` which allows retrieval of the Microsoft 365 Roadmap items [#4764](https://github.com/pnp/powershell/pull/4764) +- Added `-Name` parameter to `Add-PnPApplicationCustomizer` cmdlet to allow for specifying the name of the application customizer [#4767](https://github.com/pnp/powershell/pull/4767) ### Changed @@ -111,6 +112,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Fix `Get\Invoke-PnPSiteTemplate` cmdlet not working in vanity domains. [#4630](https://github.com/pnp/powershell/pull/4630) - Fixed passing a `Get-PnPRecycleBinItem` result or a GUID to `Restore-PnPRecycleBinItem` not working correctly. [#4667](https://github.com/pnp/powershell/pull/4667) - Fixed `Get-PnPChangeLog` not returning the changelog [#4707](https://github.com/pnp/powershell/pull/4707) +- Fixed `-Description` and `-Sequence` not being applied when providing these through `Add-PnPApplicationCustomizer` [#4767](https://github.com/pnp/powershell/pull/4767) ### Removed diff --git a/documentation/Add-PnPApplicationCustomizer.md b/documentation/Add-PnPApplicationCustomizer.md index 1ba123bbc..cccd9b282 100644 --- a/documentation/Add-PnPApplicationCustomizer.md +++ b/documentation/Add-PnPApplicationCustomizer.md @@ -15,7 +15,7 @@ Adds a SharePoint Framework client side extension application customizer to a sp ## SYNTAX ```powershell -Add-PnPApplicationCustomizer [-Title ] [-Description ] [-Sequence ] +Add-PnPApplicationCustomizer [-Name ] [-Title ] [-Description ] [-Sequence ] [-Scope ] -ClientSideComponentId [-ClientSideComponentProperties ] [-ClientSideHostProperties ] [-Connection ] ``` @@ -99,6 +99,19 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Name +The name of the application customizer + +```yaml +Type: String +Parameter Sets: (All) +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Scope The scope of the CustomAction to add to. Either Web or Site; defaults to Web. 'All' is not valid for this command. diff --git a/src/Commands/Apps/AddApplicationCustomizer.cs b/src/Commands/Apps/AddApplicationCustomizer.cs index bd8d6ea8e..128b9c3f6 100644 --- a/src/Commands/Apps/AddApplicationCustomizer.cs +++ b/src/Commands/Apps/AddApplicationCustomizer.cs @@ -12,6 +12,9 @@ public class AddApplicationCustomizer : PnPWebCmdlet [Parameter(Mandatory = false)] public string Title = string.Empty; + [Parameter(Mandatory = false)] + public string Name = string.Empty; + [Parameter(Mandatory = false)] public string Description = string.Empty; @@ -35,6 +38,9 @@ protected override void ExecuteCmdlet() CustomActionEntity ca = new CustomActionEntity { Title = Title, + Name = Name, + Description = Description, + Sequence = Sequence, Location = "ClientSideExtension.ApplicationCustomizer", ClientSideComponentId = ClientSideComponentId, ClientSideComponentProperties = ClientSideComponentProperties,