Knowledge Management Archives - ServiceNow Guru https://servicenowguru.com/category/knowledge-management/ ServiceNow Consulting Scripting Administration Development Tue, 28 May 2024 18:13:20 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.2 https://servicenowguru.com/wp-content/uploads/2024/05/cropped-SNGuru-Icon-32x32.png Knowledge Management Archives - ServiceNow Guru https://servicenowguru.com/category/knowledge-management/ 32 32 Knowledge Translation using Localization Framework and Azure https://servicenowguru.com/knowledge-management/knowledge-translation-using-localization-framework-and-azure/ Wed, 18 Jan 2023 15:38:59 +0000 http://servicenowguru.com/?p=13163 When tasked with the requirement to translate knowledge articles into other languages this can be intimidating especially for those of us that are still working on mastering our first language. Thankfully there is significant help in a new offering in the Tokyo release. What I want to shine a light on is the expanded capabilities

The post Knowledge Translation using Localization Framework and Azure appeared first on ServiceNow Guru.

]]>
When tasked with the requirement to translate knowledge articles into other languages this can be intimidating especially for those of us that are still working on mastering our first language. Thankfully there is significant help in a new offering in the Tokyo release.

What I want to shine a light on is the expanded capabilities of the Localization Framework. Specifically support for Knowledge translation, this is not simply translation management as some of you have seen in the past but a new feature in Tokyo.

https://docs.servicenow.com/bundle/tokyo-platform-administration/page/administer/localization-framework/concept/lf-support-for-kb-articles.html

https://docs.servicenow.com/bundle/tokyo-servicenow-platform/page/product/knowledge-management/concept/bulk-translation.html

The main goal is to provide a fast and efficient way to translate multiple knowledge articles to another supported language.

Once complete we should be able to select the targeted knowledge articles, select Request Translations, select language(s), and then submit. For fulfillment, we are going to look at machine translation using Azure.

For those with a large collection, the maximum number of articles to translate per batch is 200. For large knowledge bases, I recommend coming up with a  strategy around these batches either by category or some other subset to ensure this does not get overwhelming for translation validation later in the process.

Setup

Step 1: Make sure you are not in your PROD instance, and while you are at it make sure your sub-prod instances have different themes (colors) so you and others can easily differentiate.

Step 2: Review dependencies

Knowledge Management Advanced Plugin (com.snc.knowledge_advanced)

    • Consider installing the installer plugin (com.snc.knowledge_advanced.installer) as additional checks and validations are built in for existing articles.

Step 3: Activate Plugins

Step 4: Properties

    • Ensure the property glide.knowman.translation.enable_lf_article_translation is set to true
    • Ensure the property glide.knowman.translation.enable_translation_task is set to false

Step 5: Setup Translation Service

We are going to require a translation service, thankfully there are 3 partially set up upon activation (ServiceNow, Microsoft, and IBM). For the ServiceNow translation service there is no subflow available and no documentation so not sure what that is all about. In this example, I decided to work with MS Azure as I already have an account.

Step 6: Setup localization settings

    • Setup localization fulfiller and manager groups
      • Navigate to System Security > Users and Groups > Groups
      • Create or identify a group to be assigned localization tasks
        • Add the role localization_fulfiller to the identified group
        • Add members to the group, these are your translation validators and each target language should have a group.
      • Create or identify a group to be assigned to the localization project
        • Add the role localization_manager to the identified group
        • Add members to the group
    • Navigate to Localization Framework > Settings
      • Click New to create a new Settings record
      • Setup as shown below using required languages, TMS settings, and email settings
    • A localization framework setting should be created for each target language as this is how the tasks are fulfilled.

Translation process

    • Navigate to Knowledge > Article > All
    • Select a few articles with checkboxes on the left side of the record
    • Click the “Request Translations” UI action/button in the top right
    • Select the target translation(s) and click submit
    • Navigate to Localization Framework > My Projects
    • Click “All” to clear the filter and view all projects
    • Open the most recent project (highest number)
    • Notice the related lists for Localization Requested Items and Localization Tasks.
    • Open the Localization Task, which should look like this…
    • Click the Translate button in the top right, and review the translations. Notice the status of the translations.
      • From here we can expand and update the translation or click Publish Translations which will create the Knowledge articles.
      • This page/interface is controlled by the Localization Framework settings configured above. Try changing those settings to see what is added or removed. For example, there is no approval as we selected the Auto Translation –> Publish for the Workflow.
    • After reviewing all, click Publish Translations in the top right.
    • Navigate to Knowledge > Article > All
    • Find the most recent article which should be the newly created translated article.

Want more good news? You have the built-in artifacts which is great but you can also extend the framework, see the link below for more: https://www.servicenow.com/community/international-localization/extending-the-localization-framework-to-portal-announcements/ta-p/2326792

 

The post Knowledge Translation using Localization Framework and Azure appeared first on ServiceNow Guru.

]]>
Adding Video to Knowledge Articles https://servicenowguru.com/knowledge-management/adding-video-knowledge-articles/ https://servicenowguru.com/knowledge-management/adding-video-knowledge-articles/#comments Tue, 14 Mar 2017 11:37:23 +0000 https://servicenowguru.wpengine.com/?p=12460 Support for video in knowledge articles seems like it should be pretty straightforward but unfortunately history has proven otherwise. Standards have been shifting over time and the methods for displaying video in HTML have had varying levels of support depending on the browser. By default ServiceNow only supports out-of-date plugin methods of embedding video. While

The post Adding Video to Knowledge Articles appeared first on ServiceNow Guru.

]]>
Support for video in knowledge articles seems like it should be pretty straightforward but unfortunately history has proven otherwise. Standards have been shifting over time and the methods for displaying video in HTML have had varying levels of support depending on the browser. By default ServiceNow only supports out-of-date plugin methods of embedding video. While video support can certainly stand for some updating by ServiceNow, there are a few steps that can be taken now to allow for functional video use.

This method enables video to be used across the board in the HTML editor so it can be added wherever it is needed. It uses the HTML5 video tag and does require the user to be at least a little familiar with HTML but at this point that is difficult to avoid.


The first thing to do is whitelist the video and source tags in the HTMLSanitizerConfig script include. To do this replace this:

HTML_WHITELIST : {
  globalAttributes: {
    attribute:[],
    attributeValuePattern:{}
  },
},

With this:

HTML_WHITELIST : {
  globalAttributes: {
    attribute:[],
    attributeValuePattern:{}
  },
  video: {
    attribute:["width", "height", "controls", "autoplay", "loop", "muted", "poster", "preload", "src"],
    attributeValuePattern:{}
  },
  source: {
    attribute:["type", "src", "media", "sizes"],
    attributeValuePattern:{}
  }
},

To embed a video, open the article (or other record with an HTML field) and upload the video file.

Get the Sys ID of the attachment. An easy way that end users can do this is by clicking the “View” link next to the attachments.

Then copy the Sys ID from the URL.

Next click the “<>” icon to view the HTML source.

Paste in the following code, changing the value for the Sys ID parameter to that of the attachment.

<video controls="controls" width="100%" height="150">
  <source src="/sys_attachment.do?sys_id=[Sys ID of the attachment goes here]&view=true" type="video/mp4" />
</video>

NOTE: mp4 video looks to have the best support across browsers at the time of writing. The video tag has a number of options that allow for tailoring the content to the browser, device size, and other things as needed.

The post Adding Video to Knowledge Articles appeared first on ServiceNow Guru.

]]>
https://servicenowguru.com/knowledge-management/adding-video-knowledge-articles/feed/ 10