Configure activities to display their count and to display items in a list for a
primary activity.
Before you begin
Role required: admin, sp_admin, or ESC admin
Procedure
-
Navigate to .
-
Click New.
-
On the form, fill in the fields.
-
Select the Advanced option.
-
In the Summary view script field, add a script to
display the count of activities, for example,
new
sn_ex_sp.ActivityConfigurationUtil().getTasksCount();
The API returns an integer value.
-
In the List View script field, add a script to display
items in a list, for example,
new
sn_ex_sp.ActivityConfigurationUtil().getMyTodos(recordsLimit);
Note: Do this step only if you have marked this activity as primary by selecting
the primary option.
-
On List view json, provide a template with mapping of
table fields to component properties.
For example, { 'badge': '', 'badgeColor': '', 'image': '', 'title': '', 'description': '', 'field1Label': '', 'field1Value': '', 'field2Label': '', 'field2Value': '', 'itemUrl': '', 'target': '' // target
is '' if its internal or portal page url. target is '_blank' if url is external }
-
Click Save or Submit.
What to do next
If you click Save, the
Activity Access tab appears. For more information, see Restrict access to an activity.