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,753 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
    3,688 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard