Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a I am trying to build but I need to know what to populate in one of the parameters...

For Example...

AllItems.aspx?FilterField1=Client_x0020_Name&FilterValue1=44&FilterOp1=In&FilterLookupId1=1&FilterData1=0%2C08b601b3-5b7e-4850-9c27-3424b5a1e6ad

I need to know how to populate the FilterValue1=44 parameter... I am trying to build this url with the purpose of filtering on taxonomy fields...

So far I know the parameters are:

  • FilterField1=TaxonomyField.InternalName

  • FilterData1=TaxonomyField.SspId

share|improve this question
add comment

1 Answer 1

Ok, After a bit of investigating I was able to determine that this is the ID of the term in the rootwebs hidden list "TaxonomyHiddenList".

This list can be located by going to:

SPSiteURL/Lists/TaxonomyHiddenList/AllItems.aspx

To get the value of this item you can use the following method:

int[] id = TaxonomyField.GetWssIdsOfTerm(SPSite, TermStore.Id, TermSet.Id, Term.Id, false, 1);

References:

MSDN

http://pholpar.wordpress.com

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.