Skip to content

[BUG] Add-PnPApplicationCustomer -Title Does not Update Name #4754

@YuriySamorodov

Description

@YuriySamorodov

Reporting an Issue or Missing Feature

I'm reporting an issue with the Add-PnPApplicationCustomizer cmdlet.

Expected behavior

When specifying the -Title parameter in Add-PnPApplicationCustomizer, I expect the Name property of the created customizer to use the provided Title value.

Actual behavior

The Add-PnPApplicationCustomizer cmdlet creates a customizer with the specified properties, but the Name property is set to a GUID rather than using the Title parameter value. As seen in the screenshot, when creating a customizer with Title "google-analytics", the Name property is still set to a GUID "{8e70d964-070b-4b39-8498-7eafe74f3912}".

Image

Steps to reproduce behavior

# Create an application customizer with a specific title
Add-PnPApplicationCustomizer -Title google-analytics -ClientSideComponentId a3cfa2fa-6f14-44f0-892e-ad9d97a3d561 -Scope Site -ClientSideComponentProperties "{\"trackingID\":\"GTM-ABCDEF\"}"

# Verify that the name property is not set to the title value
Get-PnPApplicationCustomizer | fl name,ClientSideComponentProperties,*id*

What is the version of the Cmdlet module you are running?

PnP.PowerShell 2.99.145

Which operating system/environment are you running PnP PowerShell on?

  • Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions