如何基于父项ID获得子WSSID [英] How to get child WSSID based on parent term ID
问题描述
通过此方法,我已经获得了上级词的WSSID.我如何获得这样的子条款ID,以使用CSOM构建我的CAML查询以在共享点列表中进行搜索
I have got parent term's WSSID by this method. How do i get its child terms ids like this to build my CAML query for search in a share point list using CSOM
推荐答案
SPCon,
Hi SPCon,
据我了解,术语WSSID来自TaxonomyHiddenList的ID字段.
As I understand, Term WSSID come from ID field of the TaxonomyHiddenList.
此WSSID基于术语ID,因此不会具有父子关系,因为术语ID是SharePoint系统分配的唯一ID.
This WSSID is based on the term id, so it won't have parent-child relationship, as the term id is unique which assigned by SharePoint system.
因此,如果要获取子术语WSSID,可以直接在方法中分配子术语ID:
So if you want to get a child term WSSID, you can directly assign the child term id in the method:
//replace the Guid with child term GUID
int test = GetWssIdByTermId(clientContext,d0ccd636-0bce-4115-9325-f348935f63f8);
int test = GetWssIdByTermId(clientContext, "d0ccd636-0bce-4115-9325-f348935f63f8");
有关"SharePoint分类标准内部"字段的更多信息,请参阅以下文章:
More information about SharePoint Taxonomy Internal field, please refer the article:
http://blog.virtosoftware.com/2011/01/sharepoint-taxonomy-field-internal.html
谢谢
最好的问候
这篇关于如何基于父项ID获得子WSSID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!