pnp / pnpframework

PnP Framework is a .NET library targeting Microsoft 365 containing the PnP Provisioning engine and a ton of other useful extensions
https://pnp.github.io/pnpframework/
MIT License
200 stars 140 forks source link

Import-PnPTermGroupFromXml command not updating Term Name even when UpdateBehavior is set to Overwrite #1008

Open deepikaedakkoth opened 2 months ago

deepikaedakkoth commented 2 months ago

Category [x] Bug [ ] Enhancement

Environment [x] Office 365 / SharePoint Online

Reporting an Issue Import-PnPTermGroupFromXml to update the name of term group and term, on a daily basis. Even when the attribute is set UpdateBehavior="Overwrite" in termgroup, the command does not update the Term Name, even if you have the same Term ID.

Expected or Desired Behavior The Term Name should update based on the xml if the Term ID is matched.

Observed Behavior The Term Name is not updated into term store if the Term ID is matched.

Steps to Reproduce Create a sample XML file called test.xml:

](http://schemas.dev.office.com/PnP/2022/09/ProvisioningSchema%22%3E) pnp:TermSets Import it using command Import-PnPTermGroupFromXml -Path "test.xml" Change the name of TermGroup and TermName Import once again it using command Import-PnPTermGroupFromXml -Path "test.xml" New Names are not updating