Hi, is it possible to programatically select/deselect activities I am following on the news feed preferences page under MySites? I want to be able switch on/off notifications for both custom events and those provided by Sharepoint 2010 out-of-the-box.
views:
37answers:
2
+1
A:
You can use the UserProfileManager class to get a specific UserProfile and do this.
Doug Stalter
2010-10-29 17:39:51
Hi Doug, do you have some code demonstrating this? I tried to explore the UserProfile class but didn't find any useful property or method
Anand
2010-10-29 18:17:00
Use UserProfile["SPS-Interests"] to access interests.
Doug Stalter
2010-10-29 22:06:54
Also, if you want to change the settings for the 'Activities I Am Following' section of your profile, check http://www.sharepointoverflow.com/questions/5730/disable-a-specific-news-feed-activity-using-the-client-object-model
Doug Stalter
2010-10-29 22:22:02
Thanks for showing the ways Doug, I will continue looking further further.
Anand
2010-10-30 17:17:30
+1
A:
Hi Anand, you may want to check "Using Activity Feeds with Object Model" topic under SharePoint SDK: http://msdn.microsoft.com/en-us/library/ff426881.aspx
Ashish Patel
2010-10-29 19:33:26