web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Resetting PeoplePicker...
Power Apps
Answered

Resetting PeoplePicker working in Edit mode but not in play mode

(1) ShareShare
ReportReport
Posted on by 13
Hi All,

I am using the Fluent UI PeoplePicker (Creator Kit) in my canvas app and have written some code (link given) to reset the component. The functionality works as expected in edit mode, but not in play mode. I am using o365 connector in Suggestion-Items property.
Because of this one bug, app is not deployed in prod.

Please let me know if anyone has faced the same issue and can suggest a solution.

Solution link - How to reset the people picker control? | Hardit Bhatia: The Power Addict

 
I have the same question (0)
  • Verified answer
    Vish WR Profile Picture
    3,259 on at
     

    Instead of using Reset(), force the picker to refresh by changing a variable.

     
    Create a variable like varResetPicker and Toggle it

    Set(varResetPicker, true);
    Set(varResetPicker, false);
     

    Then bind that variable into the PeoplePicker (for example in its key/default logic). This forces the control to re-render and clears the selection properly in play mode.

    Vishnu WR
     
    Please âœ… Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like â™¥
    ​​​​​​​


     
  • Suggested answer
    11manish Profile Picture
    2,313 on at
    Yes — this is a known issue with the Creator Kit PeoplePicker control in Microsoft Power Apps. Many developers see the reset logic work correctly in Studio/Edit
     
    mode but fail in Play or Published mode, especially when the control uses the Office 365 Users connector in the Suggestions_Items property.
     
    The root cause is that the Creator Kit PeoplePicker is a PCF control, and in runtime its internal state is not always fully refreshed when using normal reset-variable
     
    techniques.
     
     
    The most reliable fix is to completely recreate the control instance instead of trying to reset it directly.
  • Suggested answer
    CU06051420-0 Profile Picture
    13 on at
    @Vish WR 
    Yes, I followed the same approach as described by you (same solution was given by GEMINI). However, it was working in Edit mode but not in Play mode.

    Eventually, I resolved the issue through trial and error by setting the variable Set(varResetPicker, false); at a different point instead of immediately.

    Thank you very much for the responding.
    Happy coding !!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard