November 18, 2011

SharePoint: How to get lookup ID of a Managed Metadata Term without having to use GetWssIdOfTerm()

Problem:

In SharePoint Online (Office 365) and on-premise SharePoint, how do I get the lookup ID of a Managed Metadata Term without having to write code anad use GetWssIdOfTerm() method?

Solution:

Go to the hidden list at the root of your site collection, e.g., http://yoursite.com/lists/TaxonomyHiddenList and look at the ID field of the respective metadata item.

image

Further explanation on how to actually use that ID in a CAML query can be found here. It actually works in DFWP.

1 comment:

  1. The TaxonomyHiddenList only contains IDs for Managed Metadata Terms that have been used in the site collection. If you're manually configuring webparts, you might need to create some sample content first.

    ReplyDelete