Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Adding Facets to Dynamics Portal Search

(0) ShareShare
ReportReport
Posted on by 4

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
    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,118 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans