Skip to main content
Search Again

We think these articles could help you:

    See More
    Nintex Knowledge Base

    Updating a Managed Metadata Field In SharePoint Online Via Nintex Workflow

    Summary
    How to update a Managed Metadata field in SharePoint Online via a Nintex workflow.

    Solution
    1. Open the workflow designer.
    2. Add a Build Dictionary action to the workflow.
    3. Configure the action as follows:
      • Key: Accept
      • Type: Text
      • Value: application/json;odata=verbose
      • Output: requestHeaders *this will be a workflow variable you need to create*
    4. Add a Call HTTP Web Service action to the workflow
    5. Configure the action as follows:
      • Address: {Workflow Context:Current site URL}/_api/contextinfo
      • Request Type: HTTP Post
      • Request Headers: requestHeaders *this will be the variable set in step 3*
      • Request Content:
      • Response Content: responseContent *this will be a workflow variable you need to create*
      • Response Headers:
      • Response Status Code: responseStatusCode *this will be a workflow variable you need to create*
    6. Add a Get An Item From A Dictionary action to the workflow
    7. Configure the action as follows:
      • Item Name or Path: d/GetContextWebInformation/FormDigestValue
      • Dictionary: responseContent
      • Output: FormDigestValue *this will be a workflow variable you need to create*
    8. Add a Web Request action to the workflow
    9. Configure the action as below:
      • URL: {Workflow Context:Current site URL}/_api/Web/Lists/getbytitle('yourList')/items(1)
      • Method: POST
        • Content Type: application/json;odata=verbose
        • Header name (key): X-RequestDigest
        • Header value: FormDigestValue *this will be the variable set earlier*
        • Header name (key): IF-Match
        • Header value: *
        • Header name (key): X-HTTP-Method
        • Header value: MERGE
      • Body: Content
        • {'ENTER-NAME-OF-YOUR-FIELD':{'_metadata': {'type':SP.Taxonomy.TaxonomyFieldValue'},'Label':'ENTER-LABEL-OF-YOUR-MANAGED-METADATA-ENTRY','TermGuid': 'ENTER-GUID-OF-YOUR-MANAGED-METADATA-ENTRY','WssId':'-1'},'_metadata':{'type':'SP.ListItem'}}
      • Username: FILL USERNAME HERE
      • Password: Value: **********
    • Was this article helpful?