Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
15 changes: 14 additions & 1 deletion documentation/Add-PnPApplicationCustomizer.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Adds a SharePoint Framework client side extension application customizer to a sp
## SYNTAX

```powershell
Add-PnPApplicationCustomizer [-Title <String>] [-Description <String>] [-Sequence <Int32>]
Add-PnPApplicationCustomizer [-Name <String>] [-Title <String>] [-Description <String>] [-Sequence <Int32>]
[-Scope <CustomActionScope>] -ClientSideComponentId <Guid> [-ClientSideComponentProperties <String>]
[-ClientSideHostProperties <String>] [-Connection <PnPConnection>]
```
Expand Down Expand Up @@ -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.

Expand Down
6 changes: 6 additions & 0 deletions src/Commands/Apps/AddApplicationCustomizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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,
Expand Down
Loading