Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Adding Facets to Dynamics Portal Search

Posted on by 2

In the Facets Template I can see that the values for ModifiedOn / Rating and Associated Product are provided out of the box.  I wanted to also allow filtering by Related Category. Does anyone know what value that is on the Knowledge Article record to be able to facet by?

Template = Faceted Search - Facets Template

This is the example for Modified on:

  {{#ifvalue facetName value="modifiedon.date"}}
  {{#if noData}}
  {{else}}
   <div class="facet-view panel panel-default">
    <div class="facet-title panel-heading">{%endraw%}{{ snippets['Search/Facet/ModifiedDate'] | default: resx['Facet_DateModified'] | h }}{%raw%}</div>
    <div class="panel-body">
     <ul class="facet-list-group"
      role="radiogroup" aria-label="{%endraw%}{{ snippets['Search/Facet/ModifiedDate'] | default: resx['Facet_DateModified'] | h }}{%raw%}">
      {{#each facetData}}
       <li class="facet-list-group-item clearfix control-item {{#if active}}active{{/if}}" tabIndex="{{#if active}}0{{else}}-1{{/if}}" data-facet="{{../facetName}}" data-control-value="{{name}}"
        role="radio" aria-label="{{displayName}} {{hitCount}}" aria-selected="{{#if active}}true{{else}}false{{/if}}" aria-checked="{{#if active}}true{{else}}false{{/if}}">
        <span class="facet-list-group-item-count pull-right">{{hitCount}}</span>
        <div class="facet-list-group-item-title-container">
         <span class="facet-list-group-item-title pull-left">
          <input type="radio" name="{{../facetName}}" value="{{name}}" {{#if active}}checked{{/if}} tabindex="-1" role="presentation">{{displayName}}
         </span>
        </div>
       </li>
      {{/each}}
     </ul>
    </div>
   </div>
  {{/if}}
  {{/ifvalue}}

*This post is locked for comments

  • Preeti Sharma Profile Picture
    Preeti Sharma 2,678 on at
    RE: Adding Facets to Dynamics Portal Search

    Hi,

    Did you find the solution? I have same requirement.

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans