Skip to content
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

[BUG]: People Picker incorrect type for properties #520

Open
im318 opened this issue Feb 24, 2025 · 5 comments
Open

[BUG]: People Picker incorrect type for properties #520

im318 opened this issue Feb 24, 2025 · 5 comments
Labels
bug Something isn't working ⚠️ needs triage Has not been triaged by the team yet.

Comments

@im318
Copy link

im318 commented Feb 24, 2025

Describe the bug

  1. When using 'Office365Users'.SearchUser in OnSearch, code fails with Incompatible type. The “searchTerm” column in the data source you're updating expects a “Text” type and you're using a “Record” type.
  2. When trying to retrieve SelectedPeople from the PeoplePicker, error shows "JSON parsing error: "object" expected but "undefined" obtained".

Additional context
This was working fine until last friday (02/21/25).
For context, I did these tests in both the people picker and in a people picker I have in a custom component.
Custom component has one OnSearch property called OnSearch of type "event" that returns a table and a SearchText property of type data that returns a text value.

Image

Image

People picker in the component calls OnSearch() property of the component on its own OnSearch property

Image

To Reproduce
Steps to reproduce the behavior:

Error 1:

  • Go to OnSearch property
  • Add ClearCollect(
    col_UserSearch;
    'Utilisateursd’Office365'.SearchUser(
    {
    searchTerm: Self.SearchText;
    top: 500
    }
    )
    )

Issue 1 doesn't happen in my custom component.

Error 1 in People Picker outside of a custom component

Image

Error 2:

  • Type PeoplePicker1.SelectedPeople in the items of a gallery

Error 2 in People Picker outside of a custom component

Image

Error 2 in People Picker inside of a custom component

Image

For error 2 error is different in my custom component: "JSON parsing error: "object" expected but "table" obtained"

Expected behavior
People picker should be able to search with value inputted in its search bar a return a list of result in a table form

@im318 im318 added bug Something isn't working ⚠️ needs triage Has not been triaged by the team yet. labels Feb 24, 2025
@im318 im318 changed the title [BUG]: People Picker incorrect type for propertuies [BUG]: People Picker incorrect type for properties Feb 24, 2025
@mitoonerm
Copy link

@im318 i have the same problem until 22/02/2025. Have you find some solution?

@im318
Copy link
Author

im318 commented Feb 25, 2025

No solution found. Using a standard combobox in the meantime.

@im318 im318 closed this as completed Feb 25, 2025
@im318 im318 reopened this Feb 25, 2025
@mitoonerm
Copy link

No solution found. Using a standard combobox in the meantime.

Thank you for your report!

@mitoonerm
Copy link

@MaheshSripada can you check this issue for us?

@ejishnumq
Copy link

The issue still persists. Switched to combo box now.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ⚠️ needs triage Has not been triaged by the team yet.
Projects
None yet
Development

No branches or pull requests

3 participants