Configure activity contexts for Self-Service Analytics

  • Release version: Australia
  • Updated March 12, 2026
  • 3 minutes to read
  • Define the type of activities you want to collect as Self-Service Analytics data for a user entity such as consumers and customer contacts.

    Before you begin

    Role required: sn_ssa_core.self_service_manager

    About this task

    The activity types you add to an activity context are already predefined for use in applications that use the Subscriptions and Activity Feed Framework. This framework is available when you install the Subscriptions and Activity Feed Framework plugin (com.snc.activity_subscriptions). The plugin is activated when you activate the Self-Service Analytics Core plugin (com.snc.self_service_analytics_core).

    Procedure

    1. Navigate to All > Self-Service Analytics > Configuration > Activity Context.
    2. In the Activity Contexts list, search for and select the activity context for your user entity.
      • For consumers, select Consumer.
      • For customer contacts, select Contact.
      • For user entities other than consumers and customer contacts, click New to create another activity context.
      Note:
      To get the activity contexts Consumer and Contact by default, you must install Self-Service Analytics for Customer Service (com.snc.pa.self_service_analytics_csm) plugin.
    3. On the Activity Context form, verify the default field values for consumers and customer contacts, or fill in the values for a custom configuration.
      Table 1. Activity Context form
      Field Description
      Name Unique name for your activity context.
      Context Table Table that includes the user entity whose actions need to be tracked and displayed on the Self-Service Analytics dashboard.

      For example, if you want to track all actions for a customer contact, select the Contact [customer_contact] table. Similarly, if you want to track all actions for a consumer, select the Consumer [csm_consumer] table.​

      Module Module associated with the application that stores the activities data.
      Application Scope of the application. This field is automatically set based on the application scope selected in the application picker.
      Domain Domain in which the activities records exist.
    4. If you are creating a new activity context, click Submit and then select the newly created activity context link from the Activity Contexts list.
    5. In the Activity Context Groups related list, map an activity context with activity groups.
      • For consumers and customer contacts, verify the default field values for an existing configuration.
      • For user entities other than consumers and customer contacts, click New to create another activity group or map with an existing activity group.
      For a new activity group mapping, on the Activity Group form, fill in the fields and click Submit. In the Activity Context Groups related list, you then have to select the newly created activity group and add available activity types to the activity group.
      Table 2. Activity Group form
      Field Description
      Activity Context Activity context associated with the activity group.
      Activity Group Option to search for and select an activity group.
      Application Defines the scope of the application. This field is automatically populated based on the application scope.
      Domain Domain in which the activities records exist.
    6. In the Activity Context Types related list, map an activity context with an activity type.
      • For consumers and customer contacts, verify the default field values for an existing configuration.
      • For user entities other than consumers and customer contacts, click New to create another mapping or use an existing configuration.
      For a new activity type mapping, on the Activity Source Context Mapping form, fill in the fields and click Submit.
      Table 3. Activity Source Context Mapping form
      Field Description
      Activity Context Activity context associated with the activity source.
      Context Table Table that includes the user entity whose actions need to be tracked and displayed on the Self-Service Analytics dashboard.

      This field is auto-populated based on the selected activity context.

      Activity Type Activity type you want to associate with the activity context.
      Source Table Table from which the data for the activity context is populated.
      Filter Criteria Filter conditions applied on the source table.
      Advanced Mapping Option to enable advanced mapping of activity source and activity context.

      You enter a script in the Advanced Mapping Script field.

      Advanced Mapping Script Script to use if the source and context mapping is not sufficient. This field appears only when the Advanced Mapping option is selected.
      Module Module associated with the application that stores the activities data.
      Application Scope of the application that contains the user entity. This field is automatically set based on the application scope selected in the application picker.
      Domain Domain in which the activities records exist.
      Fetch from Activities Option to enable a business rule defined for an activity type.
    7. On the Activity Context form, click Update.

    What to do next

    Configure pattern elements for Self-Service Analytics.