SharePoint: How to merge to merge terms in the Term Store with PowerShell

Nina Gallavan 21 Reputation points
2022-11-15T23:08:40.073+00:00

Background:
I have inherited an issue with our Term Store in SharePoint. Initially there was only a Production tenant for the organisation, so prod and non-prod term sets were set up. Unfortunately, the Non-Prod term does not re-use the Prod terms, they were created as new terms, so all terms are duplicated.

Issue:
Both Prod and Non-Prod terms sets have the same terms in the Production Tenant. Some of the production sites have columns that are using the metadata from the non-Prod term set.

Solution:
The only solution I can come up with is to merge the terms. It is an extensive term set.

Question:
Is there anyway of using powershell to merge the two sets?

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
7,112 questions
0 comments No comments
{count} votes

Accepted answer
  1. Haoyan Xue_MSFT 11,246 Reputation points Microsoft Vendor
    2022-11-16T05:43:29.367+00:00

    Hi @Nina Gallavan ,
    Unfortunately , we cannot use powershell to merge the two sets of Term Store.
    So far you can only manually select the Merge term to achieve your needs.
    Reference: https://learn.microsoft.com/en-us/sharepoint/create-and-manage-terms
    260765-image.png
    Note that the term that you merge with needs to be on the same hierarchical level, so if the term that you want to merge with is child to another term, you first need to move the source term to the same parent.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful