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 / Re: Updating combobox ...
Power Apps
Unanswered

Re: Updating combobox values in existing record

(0) ShareShare
ReportReport
Posted on by 353

Hi @hbbfzs @WarrenBelz ,

 

I have quite similar issue with yours. 

 

In my case, I have a combobox that stores multiple selection of brandcode. When user select more than 1 brand code, it will concat the brand code with";"

 

For example, user select brandcode 1001 and 1002, hence in my dataverse, I store this row as 1001;1002.

 

In my defaultselecteditems, this is the current code i use:

ForAll(
Filter(
Brands,
Market.Market = ThisItem.cra31_Market.Market,
BrandCode in Split(
ThisItem.cra31_brand,
";"
)
) As selectedBrands,
{Result: selectedBrands.BrandCode & "_" & selectedBrands.BrandName})

 

I have tried to change based on your formatting but it still override the record instead of storing the old and adding the new record only. Please help!

Categories:
I have the same question (0)
  • Sundeep_Malik Profile Picture
    6,501 on at

    Hey @_kikilalaaa 

     

    Maybe you can use Collection for this. 

     

    You can use Collect function for this. Make a similar function as below:

     

    Collect(
    YourCollectionName, // Replace with the name of your collection
    ForAll(
    Filter(
    Brands,
    Market.Market = ThisItem.cra31_Market.Market,
    BrandCode in Split(ThisItem.cra31_brand, ";")
    ),
    { Result: selectedBrands.BrandCode & "_" & selectedBrands.BrandName }
    )
    )

     

    With this formula, when a user selects items in the ComboBox, it will collect the new items into your collection without overwriting the existing records.

     

    Now comes the clearing part. On the OnStart Property of your app you can keep Clear function or even use clear collect.

     

    Clear(YourCollectionName)

     

    Or

     

    ClearCollect(YourCollectionName, {})

     

     

     

    I hope this helps 🙂

     

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