TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Configure Key Filters in SharePoint 2010 using powershell
Vijai Anand Ramalingam
Apr 05, 2011
6.1
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
In this blog we will be seeing how to configure Key Filters in SharePoint 2010 using powershell
Here i will be adding the choice column to the Key Filters.
$siteURL="
http://serverName:1111/
"
$site=Get-SPSite $siteURL
$web=$site.RootWeb
$list=$web.Lists.TryGetList("cl")
$field=$list.Fields["Country"]
$listNavSettings=[Microsoft.Office.DocumentManagement.MetadataNavigation.MetadataNavigationSettings]::GetMetadataNavigationSettings($list)
$mdnKeyFilter=New-Object Microsoft.Office.DocumentManagement.MetadataNavigation.MetadataNavigationKeyFilter($field)
$listNavSettings.AddConfiguredKeyFilter($mdnKeyFilter)
[Microsoft.Office.DocumentManagement.MetadataNavigation.MetadataNavigationSettings]::SetMetadataNavigationSettings($list, $listNavSettings, $true)
Configure Key Filters in SharePoint 2010 using powershell
Next Recommended Reading
Configure People Picker in SharePoint 2013 / 2010 ( Sharepoint People picker not resoving user)