Enables scripted content fragments to use Activity Story User Preferences
Methods
Get
Gets a specified activity story user preference
Velocity
#set($activityStoryUserPreferenceResponse = $core_v2_activityStoryUserPreference.Get($storyTypeId))
JavaScript
var activityStoryUserPreferenceResponse = core_v2_activityStoryUserPreference.Get(storyTypeId);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
storyTypeId | Guid | Type of activity story | Required |
Returns
List
Lists activity story user preferences
Velocity
#set($apiListResponse = $core_v2_activityStoryUserPreference.List())
JavaScript
var apiListResponse = core_v2_activityStoryUserPreference.List();
Returns
Update
Updates an activity story user preference
Velocity
#set($additionalInfoResponse = $core_v2_activityStoryUserPreference.Update($storyTypeId, $isEnabled))
JavaScript
var additionalInfoResponse = core_v2_activityStoryUserPreference.Update(storyTypeId, isEnabled);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
storyTypeId | Guid | Type of activity story to enable or disable | Required | ||
isEnabled | Boolean | Whether to enable or disable | Required |