From 4349bce2f55514d42c0f99238aa4f7ddeb46d110 Mon Sep 17 00:00:00 2001 From: Sumanth Dosapati Date: Sat, 11 Oct 2025 14:09:36 +0530 Subject: [PATCH 1/3] Create README.md --- .../Flow Actions/Get KB Article Permalink/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Specialized Areas/Flow Actions/Get KB Article Permalink/README.md diff --git a/Specialized Areas/Flow Actions/Get KB Article Permalink/README.md b/Specialized Areas/Flow Actions/Get KB Article Permalink/README.md new file mode 100644 index 0000000000..17a1ed1bb3 --- /dev/null +++ b/Specialized Areas/Flow Actions/Get KB Article Permalink/README.md @@ -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 + +**Script Step** : Generates the Permalink URL for KB Article + +**Output** : Permalink + +**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. From d066ddb071f43fa965649b6b69f7312520066248 Mon Sep 17 00:00:00 2001 From: Sumanth Dosapati Date: Sat, 11 Oct 2025 14:33:08 +0530 Subject: [PATCH 2/3] Create script.js --- .../Flow Actions/Get KB Article Permalink/script.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Specialized Areas/Flow Actions/Get KB Article Permalink/script.js diff --git a/Specialized Areas/Flow Actions/Get KB Article Permalink/script.js b/Specialized Areas/Flow Actions/Get KB Article Permalink/script.js new file mode 100644 index 0000000000..ebf1504395 --- /dev/null +++ b/Specialized Areas/Flow Actions/Get KB Article Permalink/script.js @@ -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); From f777a1c32fd7fe3888bc0f10ee522655b8698653 Mon Sep 17 00:00:00 2001 From: Sumanth Dosapati Date: Sat, 11 Oct 2025 14:34:20 +0530 Subject: [PATCH 3/3] Update README.md --- .../Flow Actions/Get KB Article Permalink/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Specialized Areas/Flow Actions/Get KB Article Permalink/README.md b/Specialized Areas/Flow Actions/Get KB Article Permalink/README.md index 17a1ed1bb3..03b30f754d 100644 --- a/Specialized Areas/Flow Actions/Get KB Article Permalink/README.md +++ b/Specialized Areas/Flow Actions/Get KB Article Permalink/README.md @@ -1,10 +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 +**Input** : KB Article Number (Type : String) -**Script Step** : Generates the Permalink URL for KB Article +**Script Step** : Generates the Permalink URL for KB Article (see the script.js file in this folder) -**Output** : Permalink +**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.