0

Through PowerAutomate I am calling SharePoint Rest API to create Terms.

I am able to create term under termset with below API and Body. Url: _api/v2.1/termStore/groups/@{variables('GroupId')}/sets/@{variables('TermSetId')}/children

{  
    "labels": [  
        {  
            "name": "@{triggerBody()?['Title']}",  
            "isDefault": true,  
            "languageTag": "en-US"  
        }  
    ],  
    "descriptions": [  
        {  
            "description": "@{triggerBody()?['Title']}",  
            "languageTag": "en-US"  
        }  
    ]  
}

Now I want to create a child term under particular term, May I know how to pass parent term id in the request body?

1 Answer 1

2

You can provide Parent Term Id in URL itself as below:

/sites/{site-id}/termStore/sets/{set-id}/terms/{term-id}/children

Or

/sites/{site-id}/termStore/groups/{group-id}/sets/{set-id}/terms/{term-id}/children

By the way, you don't require Term Group Id to add Term into TermSet. Only TermSet Id will enough for this.

enter image description here

enter image description here

See Official Documentation at below:

Create term

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.