Quantcast
Channel: The SharePoint Farm
Viewing all articles
Browse latest Browse all 184

Unable to Follow Content Programmatically

$
0
0

Developers have reported that after applying the October 2015 CU, they are unable to follow content programmatically using SPSocialFollowingManager.Follow method. While reported for the October CU, the change appears to be from the September 2015 CU, thanks to an improved hybrid User Profile experience. The September 2015 CU added the option to follow on-premises Sites and have the followed Sites appear in the user’s SharePoint Online user profile. This is a great feature, but unfortunately broke the  functionality. What has broken this functionality is . This method now contains the line . The  method is calling , however  is null. Because the service context is null, adding the followed item fails with the error: That said, there’s a workaround! What needs to be done is to properly set . If, within the scope of your custom code,  is set (even through a console application),  will not be null and an item can be followed.

The post Unable to Follow Content Programmatically appeared first on Nauplius.


Viewing all articles
Browse latest Browse all 184

Latest Images

Trending Articles





Latest Images