Forum Discussion

Saintenr's avatar
Saintenr
Copper Contributor
Aug 28, 2020
Solved

SharePoint Online Rest API update managed metadata columns

Hello Community,   I am trying to implement an API based file upload using the following Microsoft tutorial: https://docs.microsoft.com/de-de/sharepoint/dev/sp-add-ins/upload-a-file-by-using-the-re...
  • Saintenr's avatar
    Sep 28, 2020

    After contact with Microsoft support we have come to the conclusion that it is not necessary to delete the default values for the columns. The following format is possible and works fine.
    The URI only needs to be extended by one function. 

     

    itemMetadata.uri+'/ValidateUpdateListItem()
     
    The ValidateUpdateListItem function needs this json format as body:
    {
    "formValues":
    {
    "FieldName": "Metadatacolumn", 
    "FieldValue": taxItemLabel + '|' + taxItemTermGuid
    },
    "bNewDocumentUpdate": false
    }

     

    Cheers,

    Saintenr

Resources