I’m using the REST API to add items to a list that has a managed metadata field (single valued, no items localization, all items have unique labels).
The problem is that the code only knows the Label of the term value to set, the corresponding GUID is unknown. I can set the managed metadata field value, but I need to know both the label AND the GUID of the term to set.
I’m neither in a webapp nor in a Sharepoint app, so I can’t use JSOM – OData/XML APIs only (I’m actually porting code that currently uses CSOM to OData in order to migrate the application to .net standard). Unfortunately, we’re still on SharePoint 2013.
How do I retrieve the term GUID from the label?