I have set up terms like this in the picture and added them to a list. I want to replace term2 with term1 on all lists/items that contains term2. I have tried with merging term2 with term1 but it doesn't update the lists, so i tried to re-index the list but it still didn't change the list at all. Then I tried this code with powershell, still no success. How can I merge a term with another and have all items changed on a site?
Connect-PnPOnline -Url https://MySpSite -Scopes "Group.ReadWrite.All","User.Read.All" $tax = Get-PnPTaxonomySession Get-PnPProperty -ClientObject $tax -Property "TermStores" $ts = $tax.TermStores $site = Get-PnPSite $ts.UpdateUsedTermsOnSite($site)