Issue: While updating managed metadata field of document file via graph api

Harmeet Singh 0 Reputation points
2023-02-07T06:43:29.5233333+00:00

Hi team,

I'm facing trouble to update managed metadata fields via graph api, the only condition it is getting failed

  1. when first time managed metadata field not updated with the file upload , second time it will not allow me to update via patch request of graph api, though I'm receiving 200 response from graph client the managed metadata field value remains empty.
  2. If I update the missing value(from point 1) from SharePoint online , even then I'm not allowed to update it via graph api.

Kindly look and suggest the possible fix for the same

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,592 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,627 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. RaytheonXie_MSFT 31,071 Reputation points Microsoft Vendor
    2023-02-07T07:51:00.53+00:00

    Hi @Harmeet Singh,

    As far as I know, updating managed metadata columns (columns with terms / TaxonomyFields) are not supported through the graph API. Here are some similar issue for you to reference

    Please provide a way and example for updating managed metadata columns

    How to use Graph API to update managed metadata

    As a workaround, I will recommend you to use Rest API to achieve this requirement.


    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

  2. Srinivasa Rao Darna 6,686 Reputation points Microsoft Vendor
    2023-02-07T10:12:14.58+00:00

    Hello Harmeet Singh,

    There is no support Managed Metadata columns with Microsoft Graph API.

    You can upvote is this feature request on Graph Feedback Portal, based on number of people requesting for such feature Microsoft Engineering will consider for implementation.

    Support updating managed metadata columns (columns with terms / TaxonomyFields)

    Hope this helps.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".