Configure activity types for the Customer History view
Create an activity type to display in the activity feed on the Customer History view.
Before you begin
Role required: admin
About this task
Activity types are displayed in the Customer History view in Agent Workspace.
Procedure
- Navigate to All > Customer Central > Customer History > Guided Setup.
- Select Get Started under Activity Feed.
- Select Configure beside Activity Types.
- Select New.
-
Fill out the fields, as required.
Table 1. New Activity Types field description Field Description Short description Enter a name for the activity. Activity message Enter the message that is displayed on the activity tile in the activity feed. Note:If the message is not yet defined, you can create a message. Refer to the video above on how to create a message.Activity source Enter the table on which the activity is performed. For example, if creating a case is the activity, the Case table is the Activity Source. Actor Enter the person performing the activity. Object Select an Object, which is the unique key that identifies the object on which the activity is performed. Filter conditions Specify any condition that must be met for the activity to be displayed in the activity feed. Active Deselect the Active check box to not display the activities corresponding to this type in the activity feed.Note:If you deselect this check box, deselect the corresponding facet. If not, the facet displays with no data.Verb Select a verb that describes the activity performed. Note:If the verb is not yet defined, you can create a verb. Refer to the video above on how to create a verb.Target Select the second person involved in the activity. Not all activities have a second person. -
Select Submit.
Note:Once you create a new activity type, a new business rule is created.
-
After submitting, you can configure the business rule in one of two ways:
- Select the link to the business rule in the notification message.
- Go to the Activity Feed page and select Configure beside the Business Rule section.
Note:Configuring the business rule is optional. The business rule is required to create a record in a central activity table each time the action is performed. The central activity table improves the performance of rendering the feed during runtime. Create a business rule for each activity type. -
In the Advanced tab, update the script.
The following is an example script.
var actSubCtx = global.ActivitySubscriptionContext.getContext(); if (current.contact) { actSubCtx.getActivityService().createActivity(current, verb, "", "", "", module); } current: current variable in business rules holds the GlideRecord of the table on which the business rules is triggered. If this business rule is on Case table, current will hold the GlideRecord of the case. verb: verb that is configured in the Verb field of the created activity type module: module that is configured in the Module field of the created activity type Note: If there is already a Create Activity business rule, a notification message will also be displayed. You can update the script as required.