How to Create SharePoint Term in Term Store Using Power Automate

I was working on a document management system for a client where they used the Term Store in SharePoint to manage metadata. The Term Store is useful for keeping tags consistent, but sometimes not everyone has permission to add new terms. This created a problem when users wanted to add missing terms.

After some research, I found a way to solve this using Power Automate. With a simple workflow, we can automatically create terms in the Term Store.

In this tutorial, I will show you how to create a Term in the Term Store using Power Automate.

Create a Term in the Term Store Using Power Automate

For this example, I created a SharePoint list with two columns:

  • Term Name
  • Description
Power Automate flow to add a new Term in SharePoint Term Store

This list will act as the input source for the flow. Each time a new item is added to the list, a term will be created in the Term Store.

But before we build the flow, we need two important IDs:

  • GroupId (ID of the Term Group)
  • TermSetId (ID of the Term Set)

We will use these IDs in the flow when creating terms.

How to Get GroupId and TermSetId

  1. Open the Term Store in the SharePoint Admin Center.
  2. Select the Term Group where you want to add the term.
  3. Copy the GroupId. It looks like this:
7dc4e8e3-5179-5fdb-719d-709982716622
Configure HTTP request action in Power Automate to create Term in Term Store
  1. Next, select the Term Set under that group.
  2. Copy the TermSetId. It looks like this:
69bdb139-ec3d-4540-82b1-f1c37b1969d1
SharePoint Term Store showing new Term created by Power Automate

Keep both IDs safe, because we will need them in Power Automate.

Steps to Create a Term in the Term Store Using Power Automate

  1. In the Power Automate Home page, create an Automated cloud flow with a ‘When an item is created‘ trigger. Set the site address and list name.
Power Automate designer screen building Term Store automation
  1. Next, add an Initialize Variable action and provide the parameters below:
    • Name: varGroupId
    • Type: String
    • Value: Past the Group ID.
Power Automate showing successful Term creation in Term Store
  1. Again, add an Initialize Variable action and provide the following parameters:
    • Name: varGroupId
    • Type: String
    • Value: Past the Group ID.
How to automate Term Set management in SharePoint using Power Automate
  1. Add a Send an HTTP request to SharePoint action under the trigger and provide the following parameters:
    • Site Address: Select the SharePoint site address from the dynamic content.
    • Method: Select POST as the method.
    • Uri: Provide the below URI:
      • _api/v1.0/termStore/groups/@{variables(‘varGroupId’)}/sets/@{variables(‘varTermSetId’)}/children
    • Body:
{
  "labels": [
    {
      "name": "@{triggerBody()?['TermName']}",
      "isDefault": true,
      "languageTag": "en-US"
    }
  ],
  "descriptions": [
    {
      "description": "@{triggerBody()?['Description']}",
      "languageTag": "en-US"
    }
  ]
}
SharePoint Term Store integration with Power Automate
  1. Save and Test the Flow. Go to your SharePoint list and add a new item (Term Name + Description). For example, I add ‘HR’ with the description ‘Human Resources Department’.
Create multiple Terms in SharePoint Term Store with Power Automate

After the flow runs successfully, go to the Term Store, and we will see the new term created automatically.

How to create a Term in SharePoint Term Store using Power Automate

This way, we can create a Term in the Term Store using Power Automate.

You may also like the following tutorials:

Power Apps functions free pdf

30 Power Apps Functions

This free guide walks you through the 30 most-used Power Apps functions with real business examples, exact syntax, and results you can see.

Download User registration canvas app

DOWNLOAD USER REGISTRATION POWER APPS CANVAS APP

Download a fully functional Power Apps Canvas App (with Power Automate): User Registration App