Skip to main content

Notifications

Service | Customer Service, Contact Center, Fie...
Suggested answer

Is it possible to update the permalink formatting of KB articles to include the name instead of an ID?

Posted on by 36

We want to modify the permalink to display the KB article name instead of the KB article id number. Has anyone been able to do this successfully? 

pastedimage1675806021099v1.png

  • Suggested answer
    Amit Katariya007 Profile Picture
    Amit Katariya007 7,590 Super User 2024 Season 1 on at
    Is it possible to update the permalink formatting of KB articles to include the name instead of an ID?
    In Dynamics 365, the default behavior for knowledge base (KB) article URLs typically includes the article ID rather than the article title or name, as this ensures uniqueness and avoids issues with duplicate names.
     
    However, you can give it a try by modify the permalink to use the KB article name instead, though below requires customization.
     
    1. Enable Custom URL Generation:
     
    If you have access to Dynamics 365's Web API, you can use it to retrieve and display the KB article name in the URL dynamically.
     
    Create a custom field for the URL or slug, such as "article-name" or "slug," and populate it with a URL-friendly version of the article name (removing spaces, special characters, etc.).
     
    2. Rewrite URLs Using JavaScript or Code:
     
    Use JavaScript on your portal (e.g., Power Pages or Power Apps Portal) to intercept requests to KB article URLs. When a KB article page loads, check for a custom field, like the article name.
     
    Modify the URL dynamically to replace the ID with the article name. For example, you could create a URL format like /kb/{article-name} rather than /kb/{article-id}.
     
    3. Redirect or Route to Custom URLs:
     
    You may need to add server-side logic or a routing rule that maps article names to their respective KB records. For Power Pages, you can use Liquid templates or portal code to set up friendly URLs.
     
    Ensure that your routing rules handle potential duplicate article names gracefully. You might consider appending a unique identifier to any duplicate names or validating unique names upon article creation.
     
    Some additional points to consider:
     
    Limitations in Dynamics 365 OOB: Without portal customization, Dynamics 365 doesn’t natively support changing URLs to display article names.
     
    Plugins and Web Resources: If further customization is needed, a plugin or web resource could be written to handle URL modifications at a deeper level, but this will increase maintenance.
  • JustRhonda Profile Picture
    JustRhonda 70 on at
    Is it possible to update the permalink formatting of KB articles to include the name instead of an ID?
    Are you using a Portal Page? I notice in the Customer Service Application, the link uses the GUID which means the link is tied to an article version. I would like to have a permalink but it seems like it is only available in a Portal which is disappointing. This also affects users that 'Favorite' or "Pin' articles. They aren't going to the latest version which can create an accuracy issue.
  • Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    RE: Is it possible to update the permalink formatting of KB articles to include the name instead of an ID?

    Hi Partner,

    Unfortunately, you can't modify the permalink to display the KB article name instead of the KB article id number.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,900 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,275 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans