-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic results filtering like in PnP Search? #81
Comments
Hi @jussihi , First of all thank you for the sponsoring (and the nice words), very much appreciated! Now, as to your request: I wish I could build that too, it would be very helpful/useful in a lot of situations. Unfortunately, as far as I know, there is no efficient way to get a list of all distinct field values from Graph. With SharePoint Search, this is easy, as you can request the "refiners" when making a specific query. It will then return all distinct values for a field, like all distinct values for BaseOfficeLocation. Graph does not offer this functionality on the endpoint that we are currently using (/users), but only if we'd switch to using Microsoft Search. |
Hmmm... Ok! Thanks for the honest reply @YannickRe . Would it be possible to even add pre-defined filters? I.e., so that one could predefine possible filter params and their values? So that JobTitles, Departments and Locations.. and whatever the user would like to filter? (and then the graph request under the hood would have the static $filter parameter value appended by Damn, if I knew TS/JS and SharePoint better, I would already be doing this myself but I'm a complete no-can-do when it comes to web development. SharePoint feels to make it even harder :) |
Theoretically, one could add a config option:
and then add a UI to show these refiners, and when a user clicks one value it would get inserted in the search query. |
Suggestion
Hello and first of all: thanks for creating this! Working with Graph is so much easier than with SharePoint search & SharePoint user profiles!!
What I would love to see in this app is a way to filter users by for example their:
Department
Location
Job title
In PnP search this is rather easy; I can simply use the "PnP - Search Filters" web part. Would this be a big trouble implementing here?
So something like this:
Here selecting "Sevilla" would only list searched users that are located in Sevilla.
Once again, kudos for creating this 👍
The text was updated successfully, but these errors were encountered: