We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Tagging on Additional Comments for Workspace

Hugo12
Tera Expert

SN now has the possibility to add tags to entries in the activity stream in Workspace. In the activity stream component, there's a Tags section where we can manage these tags. Once a tag is added to the component it can then be used a applied to an additional comment, work notes etc in the activity stream of the record. My question is: How can we add a tag to an additional comment via script. I need to add a new additional comment and link one of those tags that were configured in the component.

 

These are not treated as the old tags SN had, bc I checked the tables and after I add a Tag to a worknote (manually) and no record is created in the label_entry table. But they for sure are persisted in memory, bc the tags remain after form reload.

 

Any idea?

1 ACCEPTED SOLUTION

Kieran Anson
Kilo Patron

Not aware of an API as of yet, 

But the data is stored in sys_activity_supplemental with the following structure

  • Document ID is the record ID, e.g incident sys_id
  • User sys ID is empty as the information is shared
  • Event ID is the sys_id of th sys_journal_field record for the journal entry
  • Payload is formatted as follows (where Summary is the tag value)
  • {"":{"selectedTags":["Summary"]},"api_version":"1"}

View solution in original post

2 REPLIES 2

Kieran Anson
Kilo Patron

Not aware of an API as of yet, 

But the data is stored in sys_activity_supplemental with the following structure

  • Document ID is the record ID, e.g incident sys_id
  • User sys ID is empty as the information is shared
  • Event ID is the sys_id of th sys_journal_field record for the journal entry
  • Payload is formatted as follows (where Summary is the tag value)
  • {"":{"selectedTags":["Summary"]},"api_version":"1"}

That was it! Thanks a lot!