更新远程事件接收器中的分类字段 [英] Updating Taxonomy Field in Remote Event Receiver

查看:80
本文介绍了更新远程事件接收器中的分类字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 


我正在尝试更新远程事件接收器中的分类字段。


就像他们说的那样在以下帖子中:  https:// github。 com / SharePoint / PnP / blob / master / Samples / ECM.AutoTagging / README.md


这不起作用:


result.ChangedItemProperties.Add(" TaxonomyField"," 2; #MYTERNNAME | 74972ac9-3183-4775-b232-cd6de3569c65");


更新单行文本字段工作正常:


result.ChangedItemProperties.Add(" TextField"," SomeText") ;


任何帮助?



亲切的问候



Vandeput




跟我来 @SPVandeput

解决方案

HAV之前没有这样做只是一个建议,请检查字段名称和值字符串是否有效。


您可以使用csom首先获取字段和值以进行比较。


Hi, 

I'm trying to update a Taxonomy Field in a Remote Event Receiver.

Like they discribe in the following post: https://github.com/SharePoint/PnP/blob/master/Samples/ECM.AutoTagging/README.md

This doesn't work:

result.ChangedItemProperties.Add("TaxonomyField", "2;#MYTERNNAME|74972ac9-3183-4775-b232-cd6de3569c65");

Updating a single line of text field works fine:

result.ChangedItemProperties.Add("TextField", "SomeText");

Any help?

Kind Regards

Vandeput


Follow me @SPVandeput

解决方案

Haven't done this before so just a suggestion, please check the field name and value string are valid.

You can use csom to get the field and value first to compare them.


这篇关于更新远程事件接收器中的分类字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆