@@ -20,15 +20,14 @@ A simple yet useful **ServiceNow Background Script** that extracts all hashtags
2020The logic is ** self-contained** within a single function block - no dependencies or external calls.
2121You can easily ** copy and adjust it** to fit different contexts:
2222- Use it inside a ** Business Rule** , ** Script Include** , or ** Flow Action Script** (see additional instructions below).
23- - Replace the sample ` demoData ` with a field value (e.g., ` current.comments ` ) to analyze live data.
24- - Adjust the regex to detect other patterns (emails, incident reference, etc.). See comments in the code for examples.
23+ - Replace the sample ` demoData ` with a field value (e.g., ` current.description ` ) to analyze the data.
24+ - Adjust the regex to detect other patterns (emails, incident reference, etc.). See comments in the code for the additional examples.
2525
2626---
2727
2828### 🔧 Possible Extensions
29- - Parse live table data (` sys_journal_field ` , ` kb_knowledge ` ) instead of static text.
29+ - Parse table data (` sys_journal_field ` , ` kb_knowledge ` ) instead of static text.
3030- Store extracted tags in a custom table for analytics.
31- - Schedule a nightly “Top Tags” report with ** Flow Designer** or ** PA Widgets** .
3231
3332---
3433
@@ -58,6 +57,8 @@ TagExtractorUtils.prototype = {
5857 type: ' TagExtractorUtils'
5958};
6059```
60+ 5 . Use it as any other script include.
61+
6162#### Use in Business Rule with a couple of custom text fields
6263
63641 . Go to ** Business Rules** in the Application Navigator.
0 commit comments