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

How to copy DLLs from GAC.

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