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 / Combo box reset on rec...
Power Apps
Answered

Combo box reset on record if value is removed from collection

(1) ShareShare
ReportReport
Posted on by 435
Hello All,
 
I need some help in resolving an issue with my combo box value resetting if that value is no longer in my collection. I have an app where injuries are assigned to specific safety specialist. The combo box is a collection from Office 365 Groups. There are some records that don't have a selection anymore because that original safety specialist that was assigned is no longer in the Office 365 group. But in the Dataverse the record still shows the original selection. Is there a way that if the value is not in the collection from the Office 365 group, it still can show the value that was original assigned in the combo box?
 
 
Here is my formula for the DefaultSelectedItems property: LookUp(collection, displayName = ThisItem.SafetySpecialist)
 
Any help would be greatly appreciated!
I have the same question (0)
  • Verified answer
    Haque Profile Picture
    1,691 on at
     

    To handle the scenario where your ComboBox’s DefaultSelectedItems is based on a collection from Office 365 Groups but the originally assigned value (e.g., Safety Specialist) is no longer in that collection, you can modify your formula to:

    • First try to find the matching record in the current collection.
    • If not found, create a fallback record with the original value so it still displays in the ComboBox.
    If(
        !IsBlank(LookUp(collection, displayName = ThisItem.SafetySpecialist)),
        // If we find it in collection, return that record
        [LookUp(collection, displayName = ThisItem.SafetySpecialist)],
        // Else return a single-item table with a fallback record to show original value
        [{ displayName: ThisItem.SafetySpecialist, Id: Blank() }]
    )
    
     
     

    I am sure some clues I tried to give. If these clues help to resolve the issue brought you by here, please don't forget to check the box Does this answer your question? At the same time, I am pretty sure you have liked the response!
  • nleuck_101 Profile Picture
    435 on at
    @Haque

    Thank you for your response! It solved my issue.

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard