ISocialProfile::GetActivitiesOfFriendsAndColleagues

Applies to: Office 2007 | Outlook 2010 | SharePoint Server 2010

Gets a string that represents a collection of friends’ activities on the person’s social network account.

HRESULT _stdcall GetActivitiesOfFriendsAndColleagues([in] DATE startTime, [out, retval] BSTR* activitiesCollection);

Parameters

  • startTime
    [in] The time after which activities that are created will be returned.

  • activitesCollection
    [out] An XML string that represents the set of activities that have occurred on this person’s social network account since startTime.

Remarks

The returned activitiesCollection XML string must comply with the schema definition for activityFeed, as defined in the schema for OSC provider extensibility.

The startTime parameter is a Date value in Coordinated Universal Time (UTC). Local time values must be converted to UTC Date values.

Activities that the GetActivitiesOfFriendsAndColleagues method returns have a creation time value that is greater than startTime and less than or equal to Now. If no changes have occurred between startTime and Now, the provider must return the OSC_E_NO_CHANGES error. For information about error codes, see Outlook Social Connector Provider Error Codes.

The OSC calls GetActivitiesOfFriendsAndColleagues if the OSC provider supports cached or hybrid synchronization of activities of friends on the social network. When the OSC initially calls GetActivitiesOfFriendsAndColleagues for the Outlook user who is logged on to the social network, GetActivitiesOfFriendsAndColleagues returns an XML string from the social network. The string, which complies with the activityFeed XML schema definition, specifies all the activities of friends of the logged-on user that have occurred on the social network since startTime.

When GetActivitiesOfFriendsAndColleagues returns friends' activities for the logged-on user, the OSC stores that information as RSS items in a hidden News Feed folder in the logged-on user’s Outlook default store. For more information about how the OSC caches friends’ activities in a hidden folder, see Synchronizing Friends and Activities.

See Also

Reference

ISocialProfile : ISocialPerson