web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Is there any working m...
Power Automate
Suggested Answer

Is there any working method to update TaxKeywords via HTTP/REST?

(1) ShareShare
ReportReport
Posted on by 18

I'm trying to update the TaxKeywords (Enterprise Keywords) field on a SharePoint document library item using Power Automate, without Azure Automation. I've tried every HTTP approach I can find and nothing is working. Posting here to see if anyone has actually solved this.

Environment

  • SharePoint Online
  • Power Automate
  • Document library with Enterprise Keywords column enabled

What I've tried

1. validateUpdateListItem with Label|GUID

{ "formValues": [{ "FieldName": "TaxKeywords", "FieldValue": "KeywordLabel|term-guid" }], "bNewDocumentUpdate": true }

Result: HasException: false, ErrorCode: 0 — flow says success, field stays blank.

2. validateUpdateListItem with WssId;# prefix

{ "formValues": [{ "FieldName": "TaxKeywords", "FieldValue": "2;#KeywordLabel|term-guid" }], "bNewDocumentUpdate": true }

Result: ErrorCode: -2146232832 — "The data returned from the tagging UI was not formatted correctly"

3. Checked TaxonomyHiddenList

Verified the term exists in the site's TaxonomyHiddenList and used the correct integer Id as the WssId. Same errors as above.

4. Confirmed correct term GUID

Retrieved the term GUID directly from the term store via _api/v2.1/termStore. Manually tagged a document in the UI and confirmed the same GUID is returned in the GET response.

My question
Has anyone actually succeeded in writing to TaxKeywords via a Power Automate HTTP action? If so:
  • Which endpoint did you use (validateUpdateListItem, MERGE, something else)?
  • What exact body format worked?
  • Is there a pre-condition (e.g. term must exist somewhere first) that makes it work?
  • Or is this genuinely not possible via REST, and what's the recommended workaround within standard Power Automate?
 
 
 
I have the same question (0)
  • Suggested answer
    11manish Profile Picture
    2,126 on at
    The “Document Associated Grid” cannot be added as a standard subgrid because it is a system-controlled SharePoint integration component.
     
    To display related documents on the main form, you should use the built-in SharePoint Documents control, which provides the same functionality and correct
     
    filtering for the current record.
  • Suggested answer
    Haque Profile Picture
    2,543 on at
    Hi @getsplash,
     
    Seems like you’ve done thorough checks with term GUIDs and WssIds, and the common formatting issues have been addressed, yet the error persists. This is a known complex challenge with updating Enterprise Keywords via Power Automate HTTP requests because SharePoint expects very precise formatting and context.
     
    However, let's revisit your questions and try find a solution:
     
    Question: Can you update Enterprise Keywords via Power Automate HTTP action?

    Ans: Yes, but it’s tricky and requires precise formatting and the right endpoint.

     

    Question: Which endpoint to use? : 

    Ans: The recommended endpoint is (let's use a POST request to this endpoint), we need to use ValidateUpdateListItem with following apiL

    _api/web/lists/GetByTitle('YourLibraryName')/items(ItemID)/ValidateUpdateListItem
    
     
    Question: What exact body format works?

    Ans: Use the internal field name TaxKeyword (singular), not TaxKeywords. Format the FieldValue as a concatenated string of terms, each with the format: 

    -1;#Label|TermGUID;
    

    Note: For multiple terms, concatenate without spaces: 

    -1;#Label1|GUID1;-1;#Label2|GUID2;
    Here is an example JSON body for one term:
    {
      "formValues": [
        {
          "FieldName": "TaxKeyword",
          "FieldValue": "-1;#KeywordLabel|term-guid;"
        }
      ],
      "bNewDocumentUpdate": true
    }
    
     
    Question: Is there a Pre-conditions (e.g. term must exist somewhere first) that makes it work?

    Ans: The term(s) must exist in the Term Store. The term GUIDs must be exact and valid. The item must not be checked out or locked. You must have sufficient permissions. The Enterprise Keywords column must be enabled on the library.

    Question: Is it genuinely not possible via REST?

    • It is possible via REST using ValidateUpdateListItem with the correct payload.
    • Simple PATCH or MERGE requests to update the field directly usually do not work.
    • The ValidateUpdateListItem method is the supported workaround.

    I beilieve you questions are answered.

    Now what you have shared - let's investigate:
     
    The payload you shared has couple of issues that likely cause the update to silently fail:
    { "formValues": [{ "FieldName": "TaxKeywords", "FieldValue": "2;#KeywordLabel|term-guid" }], "bNewDocumentUpdate": true }
    
     
    • The internal field name for Enterprise Keywords is usually TaxKeyword (singular), not TaxKeywords. Using the wrong field name results in no update.
    • The FieldValue format for taxonomy fields requires the WssId prefix, which for new terms should be -1, not 2. So it should start with -1;# instead of 2;#.
    • The string must end with a semicolon ;.
    Also make sure headers incldue:
    Accept: application/json;odata=verbose
    Content-Type: application/json;odata=verbose

     
     
     
     
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 881

#2
Valantis Profile Picture

Valantis 823

#3
Haque Profile Picture

Haque 485

Last 30 days Overall leaderboard