Skip to content

Commit f43b543

Browse files
authored
Update README.md
1 parent f8a0fab commit f43b543

File tree

1 file changed

+5
-4
lines changed
  • Specialized Areas/Regular Expressions/Hashtag & Mention Extractor

1 file changed

+5
-4
lines changed

Specialized Areas/Regular Expressions/Hashtag & Mention Extractor/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,14 @@ A simple yet useful **ServiceNow Background Script** that extracts all hashtags
2020
The logic is **self-contained** within a single function block - no dependencies or external calls.
2121
You 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

6364
1. Go to **Business Rules** in the Application Navigator.

0 commit comments

Comments
 (0)