Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Specialized Areas/Flow Actions/Get KB Article Permalink/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Get KB Article Permalink
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.

**Input** : KB Article Number (Type : String)

**Script Step** : Generates the Permalink URL for KB Article (see the script.js file in this folder)

**Output** : Permalink (Type : URL)

**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.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
(function execute(inputs, outputs) {

var instanceURL = gs.getProperty('glide.servlet.uri').toString();
var permalink = instanceURL + 'kb?id=kb_article_view&sysparm_article=' + inputs.kb_number;
outputs.kb_article_permalink = permalink;

})(inputs, outputs);
Loading