使用SharePoint Copy Web服务时如何设置托管元数据字段?

Tal*_*hay 6 c# sharepoint web-services metadata

我正在使用SharePoint Copy Web服务将文件上载到文档库.该库正在使用包含托管元数据字段的内容类型.我无法弄清楚如何使用FieldInformation类更新此字段.我没有使用此方法设置任何其他字段的任何问题.可以在此处找到我如何使用FileInformation上传文件的示例

我试图通过其显示名称以及具有相同名称加0的"隐藏"注释字段来设置字段.

SharePointCopyWebService.FieldInformation fieldInfo = new SharePointCopyWebService.FieldInformation();
fieldInfo.DisplayName = "Internal Audit Topics_0";
fieldInfo.Type = SharePointCopyWebService.FieldType.Note;
fieldInfo.Value = "Known Term";
fieldInfoArray.Add(fieldInfo);
Run Code Online (Sandbox Code Playgroud)

附加信息:

  • 这是在Win Forms应用程序中运行
  • 我不允许使用SharePoint Server /客户端对象模型

有关如何使用FieldInformation类更新托管元数据字段的任何想法?

Nat*_*Nat 0

托管元数据字段的格式类似于查找字段(即“id;#value”),但它需要术语标签的 guid,例如“id;#TermLabel|xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”

这会起作用,但是强制外部应用程序知道 guid 的正确值几乎会破坏从外部系统更新的此功能。