question

PiotrKochanowski-8158 avatar image
0 Votes"
PiotrKochanowski-8158 asked BhanuKiranMSFT-5847 answered

How to use Graph API to update managed metadata / taxonomy term field with allowed 'Fill-in' choices in Sharepoint list item ?

Hello,

Is there a way to update a managed metadata (taxonomy term) field with 'Fill-in' choices enabled on a Sharepoint item using MS Graph API ?

I tried using format described on Stack Exchange, but it fails on fields with 'fill-in' option enabled (it works fine for fields without it).
It seems to update the hidden field value, but not the main field.
For example: I have a column named Category, its corresponding hidden field is f31c433462d044e9a7ba5504284940b4. If I call the graph api with body
"f31c433462d044e9a7ba5504284940b4": "xxxxx|6f779592-272e-4f8b-bff3-fcfc3b79bf88;"
then the hidden field value is indeed updated, but the main Category field is not, and it keeps the previous value.

Is it possible to update by Graph API ?

Regards,
Piotr Kochanowski





microsoft-graph-sites-lists
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @PiotrKochanowski-8158, I need to have a test and will get back to you later.

1 Vote 1 ·

Hello @PiotrKochanowski-8158, I tested with the API : PATCH https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/items/{item-id}/fields and It can successfully updated the column of the item which is of type choice. I can't reproduce the way you set up the columns, would you mind providing a screenshot of the SharePoint?


0 Votes 0 ·

Hello,

Thank you for checking, but my column is not of type "Choice" it's of type "Managed Metadata" (a taxonomy field)

201374-taxo-col.jpg


0 Votes 0 ·
taxo-col.jpg (29.9 KiB)

1 Answer

BhanuKiranMSFT-5847 avatar image
0 Votes"
BhanuKiranMSFT-5847 answered

Hello @PiotrKochanowski-8158 ,

Managed Metadata columns are not yet fully supported in Microsoft Graph.
Some operations that are not supported by Graph API you can fall back to SPO legacy REST APIs.

Hope this Helps.

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


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.