activity stream

iswaryamuth
Kilo Explorer

1. why an activity stream is created an incident table?

2. when it is created?

3 what is the process to create an activity for custom table?

3 REPLIES 3

Dr Atul - LNG
Tera Patron

Hi @iswaryamuth 

 

https://www.servicenow.com/docs/r/platform-user-interface/c_activity-streams.html

Activity streams in ServiceNow provide a dynamic list of entries from records and conversations, such as journal fields, comments, and work notes.They are visible in task records and Sidebar conversations within the Core UI.Activity streams help users track live activity information and collaborate effectively across records and tasks.

 

You should normally create an activity formatter for you custom table.

  1. Navigate to System UI > Formatters.
  2. Click New.
  3. Enter a name for the formatter, such as Activities (task).
  4. Select a Table (your custom one).
  5. Enter activity.xml in the Formatter field.
  6. Leave the Type as Formatter.
  7. Click Submit.

Nilesh P
Kilo Sage

@iswaryamuth 

1. why an activity stream is created an incident table?

- to give a timed, traceable history of every significant change, note, or action related to that incident.

 

2. when it is created?

- at the moment a specific action is performed on that incident record.

 

3 what is the process to create an activity for custom table?

- as replied by @Dr Atul - LNG 

 

Thanks 🙂

 

 

NagaChandaE
Mega Sage

Hi @iswaryamuth ,

Incident extends the Task table, and the Task form already includes the Activities formatter. That's why you see the activity stream there: it shows work notes, comments and tracked field changes in one timeline. Any table that extends Task gets the same thing.

Nothing is created separately. Whenever someone adds a work note or comment, or changes an audited field, ServiceNow stores that entry. The activity stream just reads it and displays it on the form.

For a custom table:

  • If it extends Task, you already have it. Just make sure the Activities formatter is on the form layout.
  • If it's a standalone table, go to System UI > Formatters and click New. Give it a name, select your table, set Formatter to activity.xml and Type to Formatter, then submit.
  • Next, open a record and go to Configure > Form Layout to add the formatter to the form.
  • Make sure the table has journal fields (work notes/comments) and that auditing is enabled, otherwise field changes won't show.
  • Use the gear icon on the activity stream to pick which fields appear.

Docs: https://www.servicenow.com/docs/r/platform-user-interface/c_activity-streams.html