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 462
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)
  • Suggested answer
    Haque Profile Picture
    3,653 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
    462 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard