Ability to search on multiple parameters instead of only displayName? #42
Replies: 5 comments 7 replies
-
|
Thank you for the nice words, glad you enjoy the work! Initially, the web part was intended to show off the new Essentially, you adjust the following line: into something like: You could use I hope this answers your question? |
Beta Was this translation helpful? Give feedback.
-
|
Yannick,
Thanks so much for taking the time to pass on this information.
Much appreciated.
Martin
…On Tue, Apr 26, 2022, 19:51 Yannick Reekmans ***@***.***> wrote:
No, if the property is not supported for full text search, it will fall
back to startsWith automatically.
It looks like you want to deeply understand the serverside behavior, so I
recommend you read this:
https://docs.microsoft.com/en-us/graph/search-query-parameter?WT.mc_id=M365-MVP-5003400
—
Reply to this email directly, view it on GitHub
<#42 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASZD3XNKK7KA2FOA24VGHPTVHA3LPANCNFSM5IIJVN4Q>
.
You are receiving this because you commented.Message ID:
<YannickRe/spfx-msgraph-peoplesearch/repo-discussions/42/comments/2641415@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
|
Good evening.
I was so pleased to see that you have resolved a couple of issues and also
added the option to search by some additional parameters. I have tried to
compile the new code today and am presented with the following issue.
Error - [tsc] src/services/TemplateService/TemplateService.ts(142,17):
error TS2322: Type 'number | IComponentFieldsConfiguration[]' is not
assignable to type 'any[]'.
Is there a quick fix I could apply?
Regards,
Martin
…On Tue, 26 Apr 2022 at 19:51, Yannick Reekmans ***@***.***> wrote:
No, if the property is not supported for full text search, it will fall
back to startsWith automatically.
It looks like you want to deeply understand the serverside behavior, so I
recommend you read this:
https://docs.microsoft.com/en-us/graph/search-query-parameter?WT.mc_id=M365-MVP-5003400
—
Reply to this email directly, view it on GitHub
<#42 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASZD3XNKK7KA2FOA24VGHPTVHA3LPANCNFSM5IIJVN4Q>
.
You are receiving this because you commented.Message ID:
<YannickRe/spfx-msgraph-peoplesearch/repo-discussions/42/comments/2641415@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
|
Yannick,
Sorry, but it looks like the same problem still exists.
Any ideas would be much appreciated.
Regards,
Martin
…On Wed, 18 Dec 2024 at 20:09, Yannick Reekmans ***@***.***> wrote:
Weird, it does compile for me...
I'd try:
- run gulp clean
- delete the node_modules folder and run npm install
- run gulp bundle --ship and run gulp package-solution --ship
If it still doesn't work, I'd like the full output from the gulp bundle
command.
—
Reply to this email directly, view it on GitHub
<#42 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASZD3XOU2AT5LOZZFVC4CKD2GHI6NAVCNFSM6AAAAABT3FEPZWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNRQHE4TGNY>
.
You are receiving this because you commented.Message ID:
<YannickRe/spfx-msgraph-peoplesearch/repo-discussions/42/comments/11609937
@github.com>
|
Beta Was this translation helpful? Give feedback.
-
|
Yannick,
Thank you - this now compiles just fine for me. There is one small issue
remaining in that if the user enters ONLY a # sign in the search, this
still generates an error message. I think this can be communicated to the
users, but thought you would want to know.
Once again, thank you for your help with this.
Very best regards,
Martin
…On Wed, 25 Dec 2024 at 21:42, Yannick Reekmans ***@***.***> wrote:
Thank you @davidosborneafton <https://github.com/davidosborneafton> ,
that's indeed what I needed.
@MMAtHome <https://github.com/MMAtHome> the compile error should be fixed
now.
—
Reply to this email directly, view it on GitHub
<#42 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASZD3XKARNDYINYQBPRWPMD2HMREDAVCNFSM6AAAAABT3FEPZWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNRWGUZDAMY>
.
You are receiving this because you were mentioned.Message ID:
<YannickRe/spfx-msgraph-peoplesearch/repo-discussions/42/comments/11665203
@github.com>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
@YannickRe Hello Yannick! ✨Just got to test your people search webpart recently because it was recommended by one our support engineers at Microsoft! We love it so much since it uses Microsoft Graph! 👏
I did notice that it only searches on parameter "displayName"---I think it could be more enhanced by having the ability to search on the given parameters inside the property pane (screenshot below) or any other way to search on other desired parameters like department, jobTitle, employeeId, etc. How easy/difficult is it to achieve that? ✨
(*forgive me if it sounds like a dumb question as I am a newbie to the world of sharepoint framework this mid year and just found out about pnp microsoft 365 community a few months ago!)

Beta Was this translation helpful? Give feedback.
All reactions