Skip to content

Commit dc8f4ad

Browse files
Flow Action : Get KB Article Permalink (#2019)
* Create README.md * Create script.js * Update README.md
1 parent 8219b46 commit dc8f4ad

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Get KB Article Permalink
2+
Flow Action which will take KB Article Number as input and returns the latest version of Permalink. This URL will stay constant always even if the KB Article is updated with new version.
3+
4+
**Input** : KB Article Number (Type : String)
5+
6+
**Script Step** : Generates the Permalink URL for KB Article (see the script.js file in this folder)
7+
8+
**Output** : Permalink (Type : URL)
9+
10+
**Usage** : This can be used in multiple scenarios where the KB Article Link/URL is required. It can either be in notifications, scripts, Integrations, etc. Since this Permalink is always fixed and works even if the KB Article is updated to new version, there is no maintainance required.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
(function execute(inputs, outputs) {
2+
3+
var instanceURL = gs.getProperty('glide.servlet.uri').toString();
4+
var permalink = instanceURL + 'kb?id=kb_article_view&sysparm_article=' + inputs.kb_number;
5+
outputs.kb_article_permalink = permalink;
6+
7+
})(inputs, outputs);

0 commit comments

Comments
 (0)