я, наконец, нашел способ:
public void AsyncEvent(SPRemoteEventProperties properties) {
...
List lst = clientContext.Web.Lists.GetByTitle(properties.ItemEventProperties.ListTitle);
clientContext.Load(lst);
clientContext.ExecuteQuery();
ListItem item = lst.GetItemById(properties.ItemEventProperties.ListItemId);
clientContext.Load(item.ParentList, l => l.Fields.Where(field => field.Title == "FieldName"));
clientContext.ExecuteQuery();
foreach(TaxonomyField field in item.ParentList.Fields) {
TaxonomyFieldValueCollection newTopics = new TaxonomyFieldValueCollection(clientContext, String.Empty, field);
newTopics.PopulateFromLabelGuidPairs("Term A Label|term-a-unique-id;Term B Label|term-b-unique-id");
field.SetFieldValueByValueCollection(item, newTopics);
}
item.Update();
clientContext.ExecuteQuery();
Если найти лучшее решение, пожалуйста, разместить его, это работает очень хорошо.
Если вы хотите знать, как отформатировать «Term Label | term-unique-id», просмотрите хранилище терминов таксономии под страницей администратора Sharepoint. Уникальный идентификационный образец термина: d5e733d2-a904-4bee-afbd-632440fdc125.