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 / ForAll comboBox patching
Power Apps
Answered

ForAll comboBox patching

(0) ShareShare
ReportReport
Posted on by 59

Hey PowerApps community,

 

I'm facing a challenging issue with my application, and I'd appreciate your help. Let me break down the steps involved to give you a better idea of the situation. I have a ComboBox where you can select multiple brands, and a Dropdown menu that is filtered based on the ComboBox selection to display the stores associated with the selected brand(s). In the Dropdown, you can also select multiple stores. After this, I want to patch my Dataverse table with the correct brand and store information linked to it. Can anyone guide me on how to achieve this?

Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @LoopinG2023 ,

     

    It seems there are two many-to-many relationships of this table? If so, you need to use Relate function:

    Set(varNew,Patch(Table,Defaults(Table),{Name:"..."}));ForAll(ComboBox1.SelectedItems As CB1,Relate(varNew.ToManyTable,CB1));ForAll(ComboBox2.SelectedItems As CB2,Relate(varNew.ToManyTable,CB2))

     

    Best regards,

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 70

#2
WarrenBelz Profile Picture

WarrenBelz 64 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 36 Super User 2026 Season 1

Last 30 days Overall leaderboard