Coder Social home page Coder Social logo

Comments (7)

akshataggrwal avatar akshataggrwal commented on August 10, 2024 1

Hello @NishkalankBezawada, I am also facing the same issue. Please find below, the implementation in my code. It works fine when I try to search by upn (Akshat.agarwal) or "agarwal, akshat" but it fails to provide any results when I search for "Akshat Agarwal"

image

Thanks!

from sp-dev-fx-controls-react.

 avatar commented on August 10, 2024

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

from sp-dev-fx-controls-react.

github-actions avatar github-actions commented on August 10, 2024

Thank you for submitting your first issue to this project.

from sp-dev-fx-controls-react.

NishkalankBezawada avatar NishkalankBezawada commented on August 10, 2024

Hello @Igli1994

Could you please share the code synopsis on how you have defined PeoplePicker control.

Thanks,
Nishkalank

from sp-dev-fx-controls-react.

michaelmaillot avatar michaelmaillot commented on August 10, 2024

Hi @akshataggrwal & @Igli1994,

I tried on my side with the provided code snippet, without encountering any trouble, whether I search by UPN or full name (both first and last name).

May I ask to both of you to check the following:

  • Does the native People Picker in a Person field behaves correctly if you try to search by full name? (even if I know that it's not querying the same API, just to ensure)
  • What's the network trace when you're querying the PnP Controls' People Picker with both working and malfunctioning input?
    • Meaning what's inside the _api/SP.UI.ApplicationPages.ClientPeoplePickerWebServiceInterface.clientPeoplePickerSearchUser call, both payload and return

from sp-dev-fx-controls-react.

akshataggrwal avatar akshataggrwal commented on August 10, 2024

Hi @michaelmaillot,

Upon inspecting the OOB SPO people picker field(which work correctly), it appears to be using the same API(/_api/SP.UI.ApplicationPages.ClientPeoplePickerWebServiceInterface.clientPeoplePickerSearchUser), with the inclusion of an additional parameter called 'UseSubstrateSearch.' and that is the only difference between the two queries.

However, I've found limited documentation on this parameter.

image

Related - #1534

from sp-dev-fx-controls-react.

michaelmaillot avatar michaelmaillot commented on August 10, 2024

As I'm not able to repro your issue and as I agree that there's no documentation around this API, may I suggest you to run the Controls locally, udpate the searchTenant method by including this UseSubstrateSearch and test the PeoplePicker control with the ControlsTest webpart, provided in the repo.

from sp-dev-fx-controls-react.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.