Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Exposing additional KB Article fields on Portal

Posted on by 2,095

Hi I've got a question. I would like to expose some additional fields values onto KB articles but only to specific articles categorised by a field. I understand that I can't edit the KB article html and would need to create a whole new web template if I display the new article template instead of the standard. It comes with a whole host of changes in terms of the search. I read about this in Colin's article here.

As I only need to display 2 fields from the KB article in Dynamics to the KB article. I was thinking of adding it into the bread crumb web template and underneath the breadcrumb, but I'll need a way to:

1. Set a condition to only display those fields if the visitors are in a KB article

2. Set a condition to only display fields on a kb article if it's categorised correctly (by a custom field created on KB article entity to categorise 2 different types of KB articles). Lets maybe call that field a optionset called new_optionsetfield and to only display if the optionset is set to yes or 1.

I'm assuming I'd need to use Liquid but the documentation isn't making much sense to me. Do I first need to retrieve the entity so that I can then reference their attributes? Not quite sure where to start.

Any help would be greatly appreciated.

Mike

*This post is locked for comments

  • MikeC282 Profile Picture
    MikeC282 2,095 on at
    RE: Exposing additional KB Article fields on Portal

    Thank you so much for this Nicholas, This works perfectly. In terms of the attributes it can retrieve and display. Can it display lookup values and in a formatted format (not the GUID).

    if I append _value@OData.Community.Display.V1.FormattedValue to the lookup attribute in the javascript will this work?

    Liquid-JS-to-prepend-custom-fields_2E00_.png

    KB-Articles.png

    EDIT: Hi Nicholas. Nevermind on the lookup value question. Realised liquid syntax uses .name to display the lookup attribute name.

    Thank you for all your help!

    Lookup-attribut.png

  • Verified answer
    Nicholas Hayduk Profile Picture
    Nicholas Hayduk 2,863 on at
    RE: Exposing additional KB Article fields on Portal

    Hi Mike,

    Great question - my explanation of one possible solution was a bit long winded, so I thought it was worth a blog post:

    www.engineeredcode.com/.../powerapps-portals-knowledge-articles-and-liquid

    Nick

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans