Add multiple target audience groups to SharePoint Quick Launch Node


private void SetAdminViewAudience(SPNavigationNode node)
        {
            if (quickLaunchItem.Properties.Contains("Audience"))
            {
                node.Properties["Audience"] = ";;;;" + Group1+","+ Group2 +","+ Group3+","+etc... "";
            }
            else
            {              
                node.Properties.Add("Audience",  ";;;;" + Group1+","+ Group2 +","+ Group3+","+etc... "" );
            }
            node.Update();
        }

Comments

Popular posts from this blog

Disable all day event, Recurrence,Workspace Fields in Calendar list

javascript to get the all site user in sharepoint 2010 (Getting all Site users using Client Object Model)